Hi team,
Refer https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/PWM.html to modify the device tree as follows:
mypwm {
pwm-3{
pwms = <&main_pwm3 0 50000 0>;
status = "okay";};
};
main_pwm3: dmtimer-main-pwm-3 {
pinctrl-0 = <&mytimer3_pins_default>;
pinctrl-names = "default";
compatible = "ti,omap-dmtimer-pwm";
#pwm-cells = <3>;
ti,timers = <&main_timer3>;
};
mytimer3_pins_default: mytimer3-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x01dc, PIN_OUTPUT, 2) /* (E15) MCAN0_RX.TIMER_IO3 */
>;
};
PWM1 file cannot be generated when echo 0 > /sys/class/pwm/pwmchip0/export is used. Also it cannot be generated when testing leds--led-0 of AM62 evaluation board. What could be the possible issue here?
Could you help look into this case? Thanks.
Best Regards,
Cherry