* [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies
@ 2019-05-28 6:35 Priit Laes
2019-05-28 12:58 ` [linux-sunxi] " Paul Kocialkowski
2019-05-29 7:24 ` [linux-sunxi] " Maxime Ripard
0 siblings, 2 replies; 4+ messages in thread
From: Priit Laes @ 2019-05-28 6:35 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Maxime Ripard, Chen-Yu Tsai,
devicetree, linux-arm-kernel, linux-kernel
Cc: linux-sunxi, Priit Laes
Lime2 has battery connector so enable these supplies.
Signed-off-by: Priit Laes <plaes@plaes.org>
---
arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
index 9c8eecf4337a..9001b5527615 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
@@ -206,6 +206,14 @@
#include "axp209.dtsi"
+&ac_power_supply {
+ status = "okay";
+};
+
+&battery_power_supply {
+ status = "okay";
+};
+
®_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [linux-sunxi] [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies
2019-05-28 6:35 [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies Priit Laes
@ 2019-05-28 12:58 ` Paul Kocialkowski
[not found] ` <2b671c1f0734177a6283407f753403473b70f5bc.camel-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
2019-05-29 7:24 ` [linux-sunxi] " Maxime Ripard
1 sibling, 1 reply; 4+ messages in thread
From: Paul Kocialkowski @ 2019-05-28 12:58 UTC (permalink / raw)
To: plaes, Rob Herring, Mark Rutland, Maxime Ripard, Chen-Yu Tsai,
devicetree, linux-arm-kernel, linux-kernel
Cc: linux-sunxi
Hi,
On Tue, 2019-05-28 at 09:35 +0300, Priit Laes wrote:
> Lime2 has battery connector so enable these supplies.
Out of curiosity, what is reported to userspace when no battery is
attached?
Looks good otherwise:
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Cheers,
Paul
> Signed-off-by: Priit Laes <plaes@plaes.org>
> ---
> arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
> index 9c8eecf4337a..9001b5527615 100644
> --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
> +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
> @@ -206,6 +206,14 @@
>
> #include "axp209.dtsi"
>
> +&ac_power_supply {
> + status = "okay";
> +};
> +
> +&battery_power_supply {
> + status = "okay";
> +};
> +
> ®_dcdc2 {
> regulator-always-on;
> regulator-min-microvolt = <1000000>;
> --
> 2.11.0
>
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-sunxi] [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies
2019-05-28 6:35 [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies Priit Laes
2019-05-28 12:58 ` [linux-sunxi] " Paul Kocialkowski
@ 2019-05-29 7:24 ` Maxime Ripard
1 sibling, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2019-05-29 7:24 UTC (permalink / raw)
To: Priit Laes
Cc: Rob Herring, Mark Rutland, Chen-Yu Tsai, devicetree,
linux-arm-kernel, linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 274 bytes --]
On Tue, May 28, 2019 at 09:35:44AM +0300, Priit Laes wrote:
> Lime2 has battery connector so enable these supplies.
>
> Signed-off-by: Priit Laes <plaes@plaes.org>
Applied, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-05-29 7:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-28 6:35 [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies Priit Laes
2019-05-28 12:58 ` [linux-sunxi] " Paul Kocialkowski
[not found] ` <2b671c1f0734177a6283407f753403473b70f5bc.camel-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
2019-05-28 13:43 ` Priit Laes
2019-05-29 7:24 ` [linux-sunxi] " Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox