Skip to contentSkip to conversation

ARM: dts: sun7i: Enable power supplies on A20-OLinuxIno-Micro

PATCH New Harald Geyer 2 participants 2 messages Aug 29, 2017 – Aug 30, 2017

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

PATCH 1/1 ARM: dts: sun7i: Enable power supplies on A20-OLinuxIno-Micro

The axp209.dtsi defines nodes for ac, usb and battery supplies for a while now. This patch enables these nodes for the A20-Olinuxino-Micro, which has connectors for all three of them.

The patch was run-tested against linux-next-20170825.

---
Note: I guess the same change is good for the olinuxino lime boards too. However I don't have such boards to test, so I don't formally submit a patch for them.

 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +12 -0
index 0b7403e..64c993a 100644
@@ -256,6 +256,18 @@
 
 #include "axp209.dtsi"
 
+&ac_power_supply {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
+&usb_power_supply {
+	status = "okay";
+};
+
 &reg_dcdc2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1000000>;
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 ARM: dts: sun7i: Enable power supplies on A20-OLinuxIno-Micro

Quoted 25 lines · Harald Geyer

The axp209.dtsi defines nodes for ac, usb and battery supplies for a while now. This patch enables these nodes for the A20-Olinuxino-Micro, which has connectors for all three of them.

The patch was run-tested against linux-next-20170825.

---
Note: I guess the same change is good for the olinuxino lime boards too. However I don't have such boards to test, so I don't formally submit a patch for them.

 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +2 -0
index 0b7403e..64c993a 100644
@@ -256,6 +256,18 @@
 
 #include "axp209.dtsi"
 
+&ac_power_supply {
+	status = "okay";

arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts line 270

Quoted 10 lines
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +10 -0
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
+&usb_power_supply {
+	status = "okay";
+};
+

We usually try to sort the nodes per alphabetical order (even though it's a bit difficult for the battery and AC-IN power supplies).

I've moved the usb_power_supply node a bit below, where it belongs, and it will be part of 4.15.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170830/c01f4c47/attachment.sig>