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.

ehrpwm2B的设备树文件配置



我使用Beagleboneblack板子。

SDK是ti-processor-sdk-linux-am335x-evm-05.03.00.07。

文件系统是arago-base-tisdk-image-am335x-evm。

我在设备树文件am335x-bone-common.dtsi中做如下配置:

pwm2_pins: pwm2_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x824, PIN_OUTPUT_PULLUP | MUX_MODE4) /* GPMC_AD9.ehrpwm2B */
>;
};

&epwmss2 {
status = "okay";

ehrpwm2: pwm@48304200 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pins>;
};
};

但是板子运行起来,在/sys/class/pwm/pwmchip0目录下没有找到PWM0文件夹

参考ti的这篇帖子

是要有该文件夹的,如