]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx53-tx53: use DRM panel-simple driver for LCD power and backlight control
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Aug 2014 13:48:03 +0000 (15:48 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Aug 2014 13:48:03 +0000 (15:48 +0200)
arch/arm/boot/dts/imx53-tx53-x03x.dts

index f72bb563275d4c67dfd1f2cb61a3b909492f379a..9c65e89f1dc3b9711a743d6d5086c73783165bbf 100644 (file)
@@ -27,6 +27,7 @@
                interface-pix-fmt = "rgb24";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_rgb24_vga1>;
+               fsl,panel = <&lcd>;
                status = "okay";
 
                port {
        backlight: backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
-               power-supply = <&reg_3v3>;
+               power-supply = <&reg_lcd_pwr>;
                brightness-levels = <
                          0  1  2  3  4  5  6  7  8  9
                         10 11 12 13 14 15 16 17 18 19
                default-brightness-level = <50>;
        };
 
+       lcd: panel {
+               compatible = "simple-panel";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_lcd_reset>;
+               enable-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
+               backlight = <&backlight>;
+       };
+
        regulators {
                reg_lcd_pwr: regulator@5 {
                        compatible = "regulator-fixed";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_lcd_pwr>;
                        enable-active-high;
-                       regulator-boot-on;
-               };
-
-               reg_lcd_reset: regulator@6 {
-                       compatible = "regulator-fixed";
-                       reg = <6>;
-                       regulator-name = "LCD RESET";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
-                       pinctrl-names = "default";
-                       pinctrl-0 = <&pinctrl_lcd_reset>;
-                       enable-active-high;
-                       regulator-boot-on;
                };
        };
 };