public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: alex@asyring.de (Alexander Syring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode
Date: Mon,  3 Apr 2017 11:12:45 +0200	[thread overview]
Message-ID: <20170403091245.9766-1-alex@asyring.de> (raw)

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

             reply	other threads:[~2017-04-03  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-03  9:12 Alexander Syring [this message]
2017-04-03 11:48 ` [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode Maxime Ripard
  -- strict thread matches above, loose matches on Subject: below --
2017-03-31 13:58 Alexander Syring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170403091245.9766-1-alex@asyring.de \
    --to=alex@asyring.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox