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 9d0afd7d50eca23c1fbfbf58de74ead975106ff3..7793ebb5d2b83d8b7be5164e62d95bf984071bb2 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 31884dbc8838fd4681f3021f8a302ec3ffe2efa5..f4e78531f63961d0af2ca843bef1fe71bbf48e62 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
 &reg_aldo2 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;
index f7a4bccaa5d40a0a4c15309cf3b832eb711f0fbf..01a9a52edae4afa88c43f821531345543742a64e 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 b0c64f75792c163bd7d0000ea023541079fbd1be..281bf9fe5ca27f31df2bdfec76f36745994c3972 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 216f2f5db5ef3223385b6117f535c67dbd72e15a..c0b9cc7a6b3a11134a876a15560c47c60df2ff0d 100644 (file)
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo2 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;