ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 13 Sep 2017 13:21:30 +0000 (21:21 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 17 Sep 2017 10:04:29 +0000 (12:04 +0200)
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>
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts

index 004b6dd..6ab2a66 100644 (file)
 
 #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";