This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: 配置PWM过程中出现问题

Part Number: SK-AM62


你好:

修改设备树如下:

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 */
>;
};

参照链接:https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/PWM.html

在使用echo 0 > /sys/class/pwm/pwmchip0/export时无法产生PWM1 文件,测试AM62评估版的leds--led-0时同样无法生成,请问可能是什么原因?

谢谢!