* [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode
@ 2017-04-03 9:12 Alexander Syring
[not found] ` <20170403091245.9766-1-alex-a4LgQbPKaXiELgA04lAiVw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Syring @ 2017-04-03 9:12 UTC (permalink / raw)
To: alex
Cc: Mark Rutland, devicetree, linux-sunxi, Russell King, linux-kernel,
Chen-Yu Tsai, Rob Herring, Maxime Ripard, linux-arm-kernel
The Cubietruck has an AXP209 PMIC and can be power-supplied by ACIN via
the CHG-IN pin or by USB.
This enables the ACIN and the USB power supply subnode in the DT.
Signed-off-by: Alexander Syring <alex@asyring.de>
---
Send again to all relevant people
---
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
index feb995d29799..98431ef15bc9 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -267,6 +267,10 @@
#include "axp209.dtsi"
+&ac_power_supply {
+ status = "okay";
+};
+
®_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
@@ -323,6 +327,10 @@
status = "okay";
};
+&usb_power_supply {
+ status = "okay";
+};
+
&usbphy {
pinctrl-names = "default";
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
@@ -333,3 +341,4 @@
usb2_vbus-supply = <®_usb2_vbus>;
status = "okay";
};
+
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread[parent not found: <20170403091245.9766-1-alex-a4LgQbPKaXiELgA04lAiVw@public.gmane.org>]
* Re: [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode [not found] ` <20170403091245.9766-1-alex-a4LgQbPKaXiELgA04lAiVw@public.gmane.org> @ 2017-04-03 11:48 ` Maxime Ripard 0 siblings, 0 replies; 2+ messages in thread From: Maxime Ripard @ 2017-04-03 11:48 UTC (permalink / raw) To: Alexander Syring Cc: Rob Herring, Mark Rutland, Russell King, Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1459 bytes --] Hi, On Mon, Apr 03, 2017 at 11:12:45AM +0200, Alexander Syring wrote: > The Cubietruck has an AXP209 PMIC and can be power-supplied by ACIN via > the CHG-IN pin or by USB. > > This enables the ACIN and the USB power supply subnode in the DT. > > Signed-off-by: Alexander Syring <alex-a4LgQbPKaXiELgA04lAiVw@public.gmane.org> > --- > > Send again to all relevant people > > --- > arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts > index feb995d29799..98431ef15bc9 100644 > --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts > +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts > @@ -267,6 +267,10 @@ > > #include "axp209.dtsi" > > +&ac_power_supply { > + status = "okay"; > +}; > + > ®_dcdc2 { > regulator-always-on; > regulator-min-microvolt = <1000000>; > @@ -323,6 +327,10 @@ > status = "okay"; > }; > > +&usb_power_supply { > + status = "okay"; > +}; > + > &usbphy { > pinctrl-names = "default"; > pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; > @@ -333,3 +341,4 @@ > usb2_vbus-supply = <®_usb2_vbus>; > status = "okay"; > }; > + You had a whitespace error here. I fixed it, and applied. 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-04-03 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-03 9:12 [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode Alexander Syring
[not found] ` <20170403091245.9766-1-alex-a4LgQbPKaXiELgA04lAiVw@public.gmane.org>
2017-04-03 11:48 ` Maxime Ripard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox