PWM2 Query for i.MX6Q

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

PWM2 Query for i.MX6Q

748 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

618 Views
igorpadykov
NXP Employee
NXP Employee

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

618 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

618 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