arm64: dts: allwinner: pinebook: Add GPIO port regulators
authorSamuel Holland <samuel@sholland.org>
Sun, 19 Jan 2020 16:31:02 +0000 (10:31 -0600)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 10 Feb 2020 07:57:42 +0000 (08:57 +0100)
Allwinner A64 SoC has separate supplies for PC, PD, PE, PG and PL.

VCC-PC and VCC-PG are supplied by ELDO1 at 1.8v.
VCC-PD is supplied by DCDC1 (VCC-IO) at 3.3v.
VCC-PE is supplied by ALDO1, and is unused.

VCC-PL creates a circular dependency, so it is omitted for now.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts

index a1e1577..1ec3912 100644 (file)
        status = "okay";
 };
 
+&pio {
+       vcc-pc-supply = <&reg_eldo1>;
+       vcc-pd-supply = <&reg_dcdc1>;
+       vcc-pe-supply = <&reg_aldo1>;
+       vcc-pg-supply = <&reg_eldo1>;
+};
+
 &pwm {
        status = "okay";
 };
        status = "okay";
 };
 
+&r_pio {
+       /*
+        * FIXME: We can't add that supply for now since it would
+        * create a circular dependency between pinctrl, the regulator
+        * and the RSB Bus.
+        *
+        * vcc-pl-supply = <&reg_aldo2>;
+        */
+};
+
 &r_rsb {
        status = "okay";