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: Fri, 31 Mar 2017 15:58:37 +0200 [thread overview]
Message-ID: <20170331135837.24763-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>
---
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
next reply other threads:[~2017-03-31 13:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 13:58 Alexander Syring [this message]
2017-04-03 9:12 [PATCH] ARM: sun7i: Cubietruck: enable ACIN und USB power supply subnode Alexander Syring
2017-04-03 9:12 ` Alexander Syring
2017-04-03 9:12 ` Alexander Syring
2017-04-03 11:48 ` Maxime Ripard
2017-04-03 11:48 ` Maxime Ripard
2017-04-03 11:48 ` Maxime Ripard
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=20170331135837.24763-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.