arm64: dts: allwinner: h6: orangepi: Add board-wide 5V regulator
authorChen-Yu Tsai <wens@csie.org>
Tue, 20 Nov 2018 06:53:09 +0000 (14:53 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 20 Nov 2018 07:57:17 +0000 (08:57 +0100)
The Orange Pi Lite 2 and Orange Pi One Plus share the same design for
their USB 2.0 ports. VBUS is directly tied to the board wide 5V rail,
which is also directly tied to the DC jack. There is no current limiting
in this design. This 5V rail also supplies the various inputs to the
PMIC.

This patch adds a board wide 5V regulator and sets it as the input to
the PMIC inputs.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi

index 0612c19cd9943427a0c4e21939af2e83213b7d1c..f910d5eb92672fa59764d5b4e03fe1800c4f6de6 100644 (file)
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       reg_vcc5v: vcc5v {
+               /* board wide 5V supply directly from the DC jack */
+               compatible = "regulator-fixed";
+               regulator-name = "vcc-5v";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &mmc0 {
                interrupt-controller;
                #interrupt-cells = <1>;
                x-powers,self-working-mode;
+               vina-supply = <&reg_vcc5v>;
+               vinb-supply = <&reg_vcc5v>;
+               vinc-supply = <&reg_vcc5v>;
+               vind-supply = <&reg_vcc5v>;
+               vine-supply = <&reg_vcc5v>;
+               aldoin-supply = <&reg_vcc5v>;
+               bldoin-supply = <&reg_vcc5v>;
+               cldoin-supply = <&reg_vcc5v>;
 
                regulators {
                        reg_aldo1: aldo1 {