pwm wandboard dual lite

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

pwm wandboard dual lite

Jump to solution
792 Views
abhay_patil
Contributor II

hi team,

I am using wandboard dual lite and i want to use the pwm2 for backlight in it so I changed in dtsi files as below

 

-----------------imx6qdl-wandboard-revb1.dtsi-------------

            backlight_lcd: backlight-lcd {
            compatible = "pwm-backlight";
            brightness-levels = <0 4 8 16 32 64 128 255>;
            pwms = <&pwm2 0 5000000>;
            power-supply = <&reg_3p3v>;
            default-brightness-level = <7>;
            status = "okay";
};

&pwm2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm2>;
status = "okay";

};

------------------imx6qdl-wandboard.dtsi--------------------------------

pinctrl_pwm2: pwm2grp {
fsl,pins = <
MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
>;
};

also I enabled the driver in 4.19 kernel

CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_GENERIC=y
CONFIG_BACKLIGHT_PWM=y

CONFIG_PWM=y
CONFIG_PWM_SYSFS=y

and also removed  the lines used for usdhc1 and the &usdhc1 node

but still, I am not able to get the sysfs entry for backlight and PWM.

suggest me the changes to get the sysfs for backlight and PWM to control.

i also checked with making the pin as gpio MX6QDL_PAD_SD1_DAT2__GPIO1_IO19

& it works fine for me.

1 Solution
704 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello,

Have you try to enter your question in the Wandboard community, because they have they own BSP so from the point view the DTS file seems ok, but we do not know if the implementation of the PWM it is available in the BSP you can try to look into the Commits Manifest of the BSP or in the Release Notes of the BSP to see if this is supported.  From the HW perpspective the device has the option and it should work.

View solution in original post

2 Replies
704 Views
abhay_patil
Contributor II

haven't done any changes, its issue from h/w side as that corrected I am able to control backlight thank you jamesbone

705 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello,

Have you try to enter your question in the Wandboard community, because they have they own BSP so from the point view the DTS file seems ok, but we do not know if the implementation of the PWM it is available in the BSP you can try to look into the Commits Manifest of the BSP or in the Release Notes of the BSP to see if this is supported.  From the HW perpspective the device has the option and it should work.