unable to enable multiple pwms at a time on imx6ul

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

unable to enable multiple pwms at a time on imx6ul

ソリューションへジャンプ
997件の閲覧回数
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 解決策
983件の閲覧回数
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 返信
984件の閲覧回数
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 件の賞賛
返信