Adafruit_BBIO.PWM doesn't work properly on Debian 11

Please stop using that library, it isn’t maintained anymore…

Once you use config-pin to setup the pwm pins, just work with.

/dev/bone/pwm

Regards,