IMX8MM EVK pwm output

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8MM EVK pwm output

跳至解决方案
4,324 次查看
dudisasson
Contributor I

Hi,

I want to output pwm from PWM1 & PWM 2 pins but there is no pwmchip under sys/class/pwm.

this is what I have in my fsl-imx8mm.dsti file:

pwm1: pwm@30660000 {
compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
reg = <0x0 0x30660000 0x0 0x10000>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
<&clk IMX8MM_CLK_PWM1_ROOT>;
clock-names = "ipg", "per";
#pwm-cells = <2>;
status = "disabled";
};

pwm2: pwm@30670000 {
compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
reg = <0x0 0x30670000 0x0 0x10000>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
<&clk IMX8MM_CLK_PWM2_ROOT>;
clock-names = "ipg", "per";
#pwm-cells = <2>;
status = "disabled";
};

Do i need to configure the pwm in my dts? is there another way i can enable it?

If not, how do i add it to my device tree?

Thanks,

Dudi. 

0 项奖励
回复
1 解答
4,185 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Dudi

one can look at dts pwm settings on

linux-imx6/imx8mmn-nitrogen8mm.dtsi at boundary-imx_4.19.x_1.1.0 · boundarydevices/linux-imx6 · GitH... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
4,186 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Dudi

one can look at dts pwm settings on

linux-imx6/imx8mmn-nitrogen8mm.dtsi at boundary-imx_4.19.x_1.1.0 · boundarydevices/linux-imx6 · GitH... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复