AnsweredAssumed Answered

I.MX6Q Custom Device Tree  - Backlight not working

Question asked by Paul DeMetrotion on Dec 15, 2015
Latest reply on Dec 17, 2015 by Paul DeMetrotion

I have developed a custom device tree that has two LVDS outputs with independent backlights. Neither of the backlights get enabled or configured. Below is the device tree entries. Any idea what I am missing? Thanks in advance.

 

backlight {
backlight-0 {
compatible = "pwm-backlight";
pwms = <&pwm1 0 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <7>;
enable-gpios = <&gpio1 5 0>;
};

 

 

backlight-1 {
compatible = "pwm-backlight";
pwms = <&pwm2 0 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <7>;
enable-gpios = <&gpio7 13 0>;
};
};

 

 

&pwm1 {

pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm1>;
status = "okay";

};

 

 

&pwm2 {

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

};

 

 

pinctrl_pwm1: pwm1grp {
fsl,pins = <
MX6QDL_PAD_GPIO_9__PWM1_OUT            0x1b0b1  // backlight lvds1
>;
};

 

 

pinctrl_pwm2: pwm2grp {
fsl,pins = <
MX6QDL_PAD_DISP0_DAT9__PWM2_OUT        0x1b0b1  // backlight lvds2
>;
};

Outcomes