unable to enable multiple pwms at a time on imx6ul

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

unable to enable multiple pwms at a time on imx6ul

跳至解决方案
993 次查看
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 项奖励
回复
1 解答
979 次查看
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 项奖励
回复
1 回复
980 次查看
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 项奖励
回复