OSDN Git Service

ARM: dts: sun8i: a83t: Enable PMIC power supplies on various boards
authorChen-Yu Tsai <wens@csie.org>
Tue, 5 Feb 2019 15:00:39 +0000 (23:00 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 7 Feb 2019 15:51:13 +0000 (16:51 +0100)
On the Bananapi M3 and Cubietruck Plus, the DC input jacks are wired to
the ACIN pins, which is represented by the AC power supply. Both boards
have connectors for LiPo batteries, which are represented by the battery
power supply.

The H8 Homlet is a set-top box design. The DC input jack is wired to the
ACIN pins, but there are no battery connectors.

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/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts

index 1c012a4..9c006fc 100644 (file)
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;
index 7d30d3e..838be7b 100644 (file)
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;
index a5a9f5a..fcbec3d 100644 (file)
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+       status = "okay";
+};
+
+&battery_power_supply {
+       status = "okay";
+};
+
 &reg_aldo1 {
        regulator-always-on;
        regulator-min-microvolt = <1800000>;