ARM: dts: imx7-colibri: add Carrier Board 3.3V/5V regulators
authorStefan Agner <stefan@agner.ch>
Wed, 29 Mar 2017 23:21:13 +0000 (16:21 -0700)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Apr 2017 08:16:21 +0000 (16:16 +0800)
Model the Carrier Board power distribution by adding a fixed 3.3V
and 5V regulator. The 3.3V regulator is connected to the backlight
as well as the display supply. The 5V regulator is used to supply
USB VBUS.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
arch/arm/boot/dts/imx7d-colibri-eval-v3.dts

index 7a98a45a0d953718f66bde7a12c27ae59ed0edaa..18bebd6d8d4714d2107f2d39903ff8b27b9abcee 100644 (file)
@@ -48,6 +48,7 @@
        panel: panel {
                compatible = "edt,et057090dhu";
                backlight = <&bl>;
+               power-supply = <&reg_3v3>;
 
                port {
                        panel_in: endpoint {
                        };
                };
        };
+
+       reg_3v3: regulator-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
+       reg_5v0: regulator-5v0 {
+               compatible = "regulator-fixed";
+               regulator-name = "5V";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+       };
 };
 
 &bl {
        brightness-levels = <0 4 8 16 32 64 128 255>;
        default-brightness-level = <6>;
+       power-supply = <&reg_3v3>;
+
        status = "okay";
 };
 
index bd01d2cc642d8e947896fd881d78e4653587a28c..a608a14d8c8556afbb5f8bf92157250117af82d2 100644 (file)
@@ -57,6 +57,7 @@
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
                gpio = <&gpio4 7 GPIO_ACTIVE_LOW>;
+               vin-supply = <&reg_5v0>;
        };
 };