Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615010 > unrolled thread

[PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode

Started byAlexander Syring <alex@asyring.de>
First post2017-04-03 11:30 +0200
Last post2017-04-03 13:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode Alexander Syring <alex@asyring.de> - 2017-04-03 11:30 +0200
    Re: [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply  subnode Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-03 13:50 +0200

#1615010 — [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode

FromAlexander Syring <alex@asyring.de>
Date2017-04-03 11:30 +0200
Subject[PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode
Message-ID<ts6tb-4ZD-1@gated-at.bofh.it>
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";
+};
+
 &reg_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 = <&reg_usb2_vbus>;
 	status = "okay";
 };
+
--
2.11.0

[toc] | [next] | [standalone]


#1615131 — Re: [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-04-03 13:50 +0200
SubjectRe: [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode
Message-ID<ts8EF-6js-9@gated-at.bofh.it>
In reply to#1615010

[Multipart message — attachments visible in raw view] — view raw

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@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";
> +};
> +
>  &reg_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 = <&reg_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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web