Got it working but it happens that my Raspberry Pi 5 uses /sys/class/pwm/pwmchip0 and not pwmchip2