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.
Solved! Go to Solution.
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
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