]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx6q-logicpd: Shutdown LCD regulator during suspend
authorAdam Ford <aford173@gmail.com>
Tue, 2 Apr 2019 19:25:46 +0000 (14:25 -0500)
committerShawn Guo <shawnguo@kernel.org>
Thu, 11 Apr 2019 05:44:12 +0000 (13:44 +0800)
The LCD power sequencer is very finicky.  The backlight cannot
be driven until after the sequencer is done.  Until now, the
regulators were marked with 'regulator-always-on' to make sure
it came up before the backlight.  This patch allows the LCD
regulators to power down and prevent the backlight from being
used again until the sequencer is ready.  This reduces
standby power consumption by ~100mW.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-logicpd.dts

index 45eb0b7f75f83c88339a7e04ebc42cdf77e037fb..d96ae54be3381399f9fe2285a6a0f45e7278b54f 100644 (file)
@@ -21,6 +21,8 @@ backlight: backlight-lvds {
 
        panel-lvds0 {
                compatible = "okaya,rs800480t-7x0gp";
+               power-supply = <&reg_lcd_reset>;
+               backlight = <&backlight>;
 
                port {
                        panel_in_lvds0: endpoint {
@@ -38,7 +40,6 @@ reg_lcd: regulator-lcd {
                regulator-max-microvolt = <3300000>;
                gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>;
                enable-active-high;
-               regulator-always-on;
                vin-supply = <&reg_3v3>;
                startup-delay-us = <500000>;
        };
@@ -52,7 +53,6 @@ reg_lcd_reset: regulator-lcd-reset {
                regulator-max-microvolt = <3300000>;
                gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
                enable-active-high;
-               regulator-always-on;
                vin-supply = <&reg_lcd>;
        };
 };