ARM: dts: imx6qdl-vicut1.dtsi: Add backlight-isb node
authorDavid Jander <david@protonic.nl>
Tue, 26 Jul 2022 12:32:21 +0000 (14:32 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 21 Aug 2022 12:18:16 +0000 (20:18 +0800)
On some older hardware models this is needed. It will do no harm if used
with newer models though.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-vicut1.dtsi

index a1676b5d2980fbd6c466ac00edc629f36bb1962f..8a2512f3f37865246988e6d82fb1c802792b7a2e 100644 (file)
                power-supply = <&reg_3v3>;
        };
 
+       /* only for backwards compatibility with old HW */
+       backlight_isb: backlight-isb {
+               compatible = "pwm-backlight";
+               pwms = <&pwm2 0 5000000 0>;
+               brightness-levels = <0 8 48 255>;
+               num-interpolated-steps = <5>;
+               default-brightness-level = <0>;
+               power-supply = <&reg_3v3>;
+       };
+
        connector {
                compatible = "composite-video-connector";
                label = "Composite0";
        status = "okay";
 };
 
+&pwm2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm2>;
+       status = "okay";
+};
+
 &pwm3 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm3>;
                >;
        };
 
+       pinctrl_pwm2: pwm2grp {
+               fsl,pins = <
+                       MX6QDL_PAD_DISP0_DAT9__PWM2_OUT                 0x1b0b0
+               >;
+       };
+
        pinctrl_pwm3: pwm3grp {
                fsl,pins = <
                        MX6QDL_PAD_SD4_DAT1__PWM3_OUT                   0x1b0b0