arm64: dts: allwinner: a64: Enable PMIC power supplies on various boards
authorChen-Yu Tsai <wens@csie.org>
Tue, 5 Feb 2019 15:00:40 +0000 (23:00 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 6 Feb 2019 12:19:13 +0000 (13:19 +0100)
On these A64 devices, the DC input jacks are wired to the ACIN pins of
the PMIC, which is represented by the AC power supply. With the
exception of the Nanopi A64, all devices include LiPo batteries or have
connectors for them, which are represented by the battery power supply.

Enable these power supplies in the device tree.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

index 9d0afd7..7793ebb 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        /*
         * This regulator also drives the PE pingroup GPIOs,
index 31884db..f4e7853 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
 &reg_aldo2 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;
index f7a4bcc..01a9a52 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        regulator-always-on;
        regulator-min-microvolt = <2800000>;
index b0c64f7..281bf9f 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        regulator-min-microvolt = <2800000>;
        regulator-max-microvolt = <2800000>;
index 216f2f5..c0b9cc7 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo2 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;