IMX8MM EVK pwm output

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MM EVK pwm output

Jump to solution
2,487 Views
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 Kudos
1 Solution
2,348 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
2,349 Views
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 Kudos