PWM2 Query for i.MX6Q

cancel
Showing results for 
Search instead for 
Did you mean: 

PWM2 Query for i.MX6Q

167 Views
himalimunshi
Contributor I

I want to use PWM2 on i.MX6Q. While i am adding PWM2 node with IOMUX settings - MX6QDL_PAD_GPIO_1__PWM2_OUT in device tree, my board gets reboot every time after giving log - Starting kernel ... . I can not able to get reset cause.

I am using Linux kernel - 4.1.15_2.0.0 with Yocto BSP Krogoth- 4.1.15_2.0.0

0 Kudos
3 Replies

37 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi himali

for pwm2 settings example one can look at BD nitrogen board dts:

linux-imx6/imx6qdl-nitrogen6_max.dtsi at boundary-imx_4.1.15_1.0.0_ga · boundarydevices/linux-imx6 ·... 

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

0 Kudos

37 Views
himalimunshi
Contributor I

Hi igor

I am using these settings only for dts as mentioned in above link.

&pwm2 {
         pinctrl-names = "default";
         pinctrl-0 = <&pinctrl_pwm2>;
         status = "okay";
};

IOMUX Settings:

pinctrl_pwm2: pwm2grp {
fsl,pins = <
           MX6QDL_PAD_GPIO_1__PWM2_OUT 0x1b0b1

>;
};

- himali

0 Kudos

37 Views
jaymind
Contributor IV

Hi Himali,

The PWM configuration is correct.

Are you still facing that PWM issue for i.MX6Q?

If yes then,

Share Kernel boot-up log and board's ".dts" file.
Also, share some basic details of your development environment. I.e. Which development board (custom!) you are using?

Thanks,

0 Kudos