..
I am not sure how to set pwm0 to GPIO12 pin.
Code:
compatible = "brcm,bcm2835"; /* PWM0 function */ fragment@0 { target = <&gpio>; __overlay__ { pwm_pins: pwm_pins { brcm,pins = <12>; brcm,function = <4>; brcm,pull = <0>; }; }; }; fragment@1 { target = <&pwm>; frag1: __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&pwm_pins>; assigned-clock-rates = <100000000>; status = "okay"; }; };
As PWM on GPIO12 is PWM0_0 below is still valid
Code:
pwms = <&pwm 0 5000000 0>;
Statistics: Posted by aBUGSworstnightmare — Sat Mar 02, 2024 7:41 am