Tool/software:
We had a problem with pwm output when spl started, but no pwm output when switching to sbl started。We used the pin of ac28, and we compared the pin multiplexing of the two startup methods to be the same。
root@j721s2-evm:~# devmem2 0x0011C040 /dev/mem opened. Memory mapped at address 0xffff85505000. Read at address 0x0011C040 (0xffff85505040): 0x00050009
Method of setting pwm:
echo 0> /sys/class/pwm/pwmchip2/export echo "5000000" > /sys/class/pwm/pwmchip2/pwm0/period echo "2000000" > /sys/class/pwm/pwmchip2/pwm0/duty_cycle echo "1" > /sys/class/pwm/pwmchip2/pwm0/enable
devicetree
ehrpwm2_pins_default: ehrpwm2-default-pins { pinctrl-single,pins = < J721S2_IOPAD(0x040, PIN_INPUT, 9) /* (AC28) MCASP0_AXR0.EHRPWM2_A */ >; }; &main_ehrpwm2 { pinctrl-names = "default"; pinctrl-0 = <&ehrpwm2_pins_default>; status = "okay"; };
please help check,thank!