summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2017-09-13 16:21:30 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-09-17 13:04:29 +0300
commita3ccbc0097d199d2b2470066fabe7915bc71c8af (patch)
tree407224439cb64fe7a3ec56b034fa0abf7c921f28
parent2513273771b2b6fc66aee467ca31088a7bd84e49 (diff)
downloadlinux-a3ccbc0097d199d2b2470066fabe7915bc71c8af.tar.xz
ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board
The Lamobo R1 board connected the ACIN of the AXP209 PMIC to a MicroUSB port, and the battery input is connected to a generic connector. Enable these two power supplies in the device tree. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
index 004b6ddac813..6ab2a6649eb1 100644
--- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
+++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
@@ -241,6 +241,14 @@
#include "axp209.dtsi"
+&ac_power_supply {
+ status = "okay";
+};
+
+&battery_power_supply {
+ status = "okay";
+};
+
&reg_ahci_5v {
gpio = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
status = "okay";