unable to enable multiple pwms at a time on imx6ul

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

unable to enable multiple pwms at a time on imx6ul

Jump to solution
526 Views
Shivasagar_myana
Contributor I

Hi,

    I am trying to enable multiple pwm's on imx6ul at a time, i have been  enabled pwm3 & 4 in dts file.

&pwm3 {

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_pwm3>;

status = "okay";

};

&pwm4 {

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_pwm4>;

status = "okay";

};

pinctrl_pwm3: pwm3grp {

fsl,pins = <

MX6UL_PAD_GPIO1_IO04__PWM3_OUT 0x110b0

>;

};

pinctrl_pwm4: pwm4grp {

fsl,pins = <

MX6UL_PAD_GPIO1_IO05__PWM4_OUT 0x110b0

>

};

i am getting pwmchip1 and pwmchip2 in /sys/class/pwm , but iam unable to enable both at a time, by using the below link  i have  enabled.

https://www.digi.com/resources/documentation/digidocs/embedded/dey/2.6/cc6ul/bsp_r_pwm_6ul

after enable pwmchip1 i am getting one node as pwm0, and iam getting pwm with period and duty cycle, but after that iam enabling pwmchip2 on that time it is giving error like" pwm0 is already enabled cant create pwm0 ".

Our requirement is two PWM at a time with different period and different duty cycle.

could you please tell how we can achieve this.

Thanks and regards,

shivasagar.

0 Kudos
1 Solution
512 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shivasagar

 

one can recheck pwm dts configuration using complete digi dts example:

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul-ccimx6ulsbcpro.dts

 

Best regards
igor

View solution in original post

0 Kudos
1 Reply
513 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shivasagar

 

one can recheck pwm dts configuration using complete digi dts example:

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul-ccimx6ulsbcpro.dts

 

Best regards
igor

0 Kudos