Skip to contentSkip to conversation

ARM: dts: sun8i: a83t: Enable PMIC power supplies on various boards

PATCH Applied Chen-Yu Tsai 2 participants 3 messages Feb 5, 2019 – Feb 6, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: sun8i: a83t: Enable PMIC power supplies on various boards

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.

---
 arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 4 ++++
 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts           | 8 ++++++++
 arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts       | 8 ++++++++
 3 files changed, 20 insertions(+)
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +4 -0
index 1c012a4def16..9c006fc18821 100644
@@ -154,6 +154,10 @@
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +8 -0
index 7d30d3e530fb..838be7b3715f 100644
@@ -237,6 +237,14 @@
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +8 -0
index a5a9f5a0603e..fcbec3d7ccd7 100644
@@ -247,6 +247,14 @@
 
 #include "axp81x.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 arm64: dts: allwinner: a64: Enable PMIC power supplies on various boards

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.

---
 arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 8 ++++++++
 arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts   | 4 ++++
 arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts    | 8 ++++++++
 arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 8 ++++++++
 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts       | 8 ++++++++
 arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts      | 8 ++++++++
 6 files changed, 44 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +8 -0
index 9d0afd7d50ec..7793ebb5d2b8 100644
@@ -222,6 +222,14 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	/*
 	 * This regulator also drives the PE pingroup GPIOs,
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +4 -0
index 31884dbc8838..f4e78531f639 100644
@@ -186,6 +186,10 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
 &reg_aldo2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +8 -0
index f7a4bccaa5d4..01a9a52edae4 100644
@@ -177,6 +177,14 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-always-on;
 	regulator-min-microvolt = <2800000>;
arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +8 -0
index 8974b5a1d3b1..510f661229dc 100644
@@ -194,6 +194,14 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-min-microvolt = <2800000>;
 	regulator-max-microvolt = <2800000>;
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +8 -0
index 216f2f5db5ef..c0b9cc7a6b3a 100644
@@ -169,6 +169,14 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +8 -0
index f9eede0a8bd3..7b7b14ba58e6 100644
@@ -145,6 +145,14 @@
 
 #include "axp803.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo1 {
 	regulator-always-on;
 	regulator-min-microvolt = <2800000>;
Signature · 1 line
2.20.1
#2 lore raw

Re: [PATCH 2/2] arm64: dts: allwinner: a64: Enable PMIC power supplies on various boards

Quoted 8 lines · Chen-Yu Tsai

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.

Applied both, thanks!
Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com