ARM: dts: sunxi: Add missing backlight supply
authorMaxime Ripard <maxime@cerno.tech>
Thu, 14 Jan 2021 11:35:26 +0000 (12:35 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 18 Jan 2021 09:13:16 +0000 (10:13 +0100)
The pwm-backlight binding requires a power supply. Make sure we provide
one.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://lore.kernel.org/r/20210114113538.1233933-7-maxime@cerno.tech
arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
arch/arm/boot/dts/sun4i-a10-inet1.dts
arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
arch/arm/boot/dts/sun5i-a13-empire-electronix-d709.dts
arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts
arch/arm/boot/dts/sun5i-gr8-evb.dts
arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi
arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi

index 8ee3ff42bd553814b4f31550294ae5cc16972a9e..63e77c05bfdaaab1d42d40f342f926d51d81b144 100644 (file)
@@ -62,6 +62,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+               power-supply = <&reg_vcc3v3>;
        };
 
        chosen {
index ca878384e9027c94712beeb556a875707f22a36d..60e432a0ef1c596a9ebf1f55c7dc802656082f6e 100644 (file)
@@ -62,6 +62,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+               power-supply = <&reg_vcc3v3>;
        };
 
        chosen {
index 24a3d23e19529b4c01e5d3942bec9657f606e9f3..c3259694764753d28b02bbfa449cb5a998c8b3f1 100644 (file)
@@ -62,6 +62,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+               power-supply = <&reg_vcc3v3>;
        };
 
        chosen {
index a23bf24792ec53cf1dda5f55c79fd95f8ab398cf..d059388d7252e8d47cce9bbaa228b771061632b1 100644 (file)
@@ -61,6 +61,7 @@
                pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
+               power-supply = <&reg_vcc3v3>;
                /* TODO: backlight uses axp gpio1 as enable pin */
        };
 
index 3428bebceff0873076e6e28999789a325df57f9d..d60407772e5d3080f08a59946c08ff4a9c244357 100644 (file)
@@ -28,6 +28,7 @@
                enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
+               power-supply = <&reg_vcc3v3>;
        };
 
        chosen {
index 4c20d731a9c69a7d2f30d88ab29532e82f6762c5..f4fe258ef06d4b3795615329b8df513c5fb32f30 100644 (file)
@@ -71,7 +71,7 @@
                compatible = "pwm-backlight";
                pwms = <&pwm 0 10000 0>;
                enable-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
-
+               power-supply = <&reg_vcc3v3>;
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
        };
index 1a9926d714108db5baa546ccb8851cbeb3c16537..6847f66699ac8d088c328e78dc145070207ed713 100644 (file)
@@ -55,6 +55,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>; /* AXP GPIO1 */
+               power-supply = <&reg_vcc3v0>;
        };
 
        chosen {
index 6a66b0432dfa8dfcd9bb1e276919a5896c6d65ae..fef02fcbbdf82c2c4ab5b27855727585ff6c97e7 100644 (file)
@@ -64,6 +64,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+               power-supply = <&reg_vcc3v3>;
        };
 
        chosen {
index bfc9bb277a49eed7b4f1bccfc9aa1aecabc757b4..83b01b03e08ebf0b027906993104cec2b3c2622d 100644 (file)
@@ -65,7 +65,7 @@
                compatible = "pwm-backlight";
                pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
                enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
-
+               power-supply = <&reg_sw>;
                brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
                default-brightness-level = <9>;
        };
index b3d8b8f056cdf1ca6f1cd7b67555d9a24c47c8fc..daf4be6416df04c1738325f012f109ce6347ed9b 100644 (file)
@@ -54,6 +54,7 @@
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
                enable-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
+               power-supply = <&reg_dc1sw>;
        };
 
        chosen {
index bcf64998a82984e318d858c958290ca7e3d2de7d..bbc26abb1e100b7fe96d95d0fa3812420ddf740a 100644 (file)
@@ -21,6 +21,7 @@
                compatible = "pwm-backlight";
                pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
                enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
+               power-supply = <&reg_ps>;
                /* Backlight configuration differs per PinePhone revision. */
        };
 
                };
        };
 
+       reg_ps: ps-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "ps";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-boot-on;
+       };
+
        reg_vbat_wifi: vbat-wifi {
                compatible = "regulator-fixed";
                regulator-min-microvolt = <3300000>;