* [PATCH] ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board
@ 2017-09-13 13:21 Icenowy Zheng
2017-09-14 7:54 ` Maxime Ripard
0 siblings, 1 reply; 2+ messages in thread
From: Icenowy Zheng @ 2017-09-13 13:21 UTC (permalink / raw)
To: Maxime Ripard, Chen-Yu Tsai
Cc: linux-arm-kernel, linux-kernel, linux-sunxi, Icenowy Zheng
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>
---
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 8 ++++++++
1 file changed, 8 insertions(+)
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";
+};
+
®_ahci_5v {
gpio = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
status = "okay";
--
2.13.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board
2017-09-13 13:21 [PATCH] ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board Icenowy Zheng
@ 2017-09-14 7:54 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2017-09-14 7:54 UTC (permalink / raw)
To: Icenowy Zheng; +Cc: Chen-Yu Tsai, linux-arm-kernel, linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
On Wed, Sep 13, 2017 at 09:21:30PM +0800, Icenowy Zheng wrote:
> 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>
Applied for 4.15, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-14 7:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 13:21 [PATCH] ARM: sun7i: a20: enable ac/battery power supplies for Lamobo R1 board Icenowy Zheng
2017-09-14 7:54 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).