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.
工具/软件:Linux
您好!
AM335x 是否支持一个 PWM 输出?
我按如下方式设置器件树。
ehrpwm2_pins:ehrpwm2_pins{
pinctrl-single、pins =<
0xA0 (PIN_OUTPUT | MUX_MODE3)/*(R1) LCD_Data0.ehrpwm2A *
>;
};
但/sys/class/pwm.中没有文件
我的环境:
Linux:Linux-3.14.26-g2489c02
内核配置: CONFIG_PWM_TIECAP=y
CONFIG_PWM_TIEHRPWM=y
电源 参考站点:
http://processors.wiki.ti.com/index.php/AM335x_PWM_Driver's_Guide
http://processors.wiki.ti.com/index.php/Linux_Core_PWM_User's_Guide
您好!
设备树配置出现问题。
对器件进行如下修改后、将对其进行识别。
epwms2{(&E)
状态="正常";
ehrpwm2:ehrpwm@48304200{
pinctrl-names ="default";
pinctrl-0 =<&ehrpwm2_PINs>;
状态="正常";
};
};
# ls /sys/class/pwm
pwmchip0
对吗?
如何控制蜂鸣器?