Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3937

Troubleshooting • Re: Raspberry CM4 pwm-backlight duty cycle missing

$
0
0
I've figured out that this seems to be the reason why it results in bl_power 4. Is there any option to get the Raspberry Pi PWM default enabled?

https://github.com/raspberrypi/linux/bl ... #L423-L424

This is the config in my overlay

Code:

    fragment@1 {        target = <&gpio>;        __overlay__ {            pwm_pins: pwm_pins {                brcm,pins = <12>;                brcm,function = <4>; // ALT0            };        };    };    fragment@2 {        target = <&pwm>;        frag1: __overlay__ {            pinctrl-names = "default";            pinctrl-0 = <&pwm_pins>;            assigned-clock-rates = <1000000>;            status = "okay";        };    };    fragment@3 {        target-path = "/";        __overlay__ {            rpi_backlight: rpi_backlight {                compatible = "pwm-backlight";                brightness-levels = <0 6 8 12 16 24 32 40 48 64 96 128 160 192 224 255>;                default-brightness-level = <6>;                pwms = <&pwm 0 200000 0>;                status = "okay";            };        };    };

Statistics: Posted by batwing — Wed Mar 19, 2025 3:11 pm



Viewing all articles
Browse latest Browse all 3937

Trending Articles