devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Icenowy Zheng <icenowy@aosc.io>
To: Maxime Ripard <maxime.ripard@free-electrons.com>,
	Chen-Yu Tsai <wens@csie.org>,
	Kishon Vijay Abraham I <kishon@ti.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com,
	Icenowy Zheng <icenowy@aosc.xyz>
Subject: [PATCH 5/6] ARM: sun8i: r40: enable USB host for Banana Pi M2 Ultra
Date: Sun,  8 Oct 2017 12:29:05 +0800	[thread overview]
Message-ID: <20171008042906.46779-6-icenowy@aosc.io> (raw)
In-Reply-To: <20171008042906.46779-1-icenowy@aosc.io>

From: Icenowy Zheng <icenowy@aosc.xyz>

Banana Pi M2 Ultra board features two USB host ports, connected to the
two USB host ports on the SoC.

Add support for them.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
---
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
index 035599d870b9..8c5efe2a9881 100644
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
@@ -93,6 +93,14 @@
 	};
 };
 
+&ehci1 {
+	status = "okay";
+};
+
+&ehci2 {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 
@@ -180,8 +188,22 @@
 	status = "okay";
 };
 
+&ohci1 {
+	status = "okay";
+};
+
+&ohci2 {
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pb_pins>;
 	status = "okay";
 };
+
+&usbphy {
+	usb1_vbus-supply = <&reg_vcc5v0>;
+	usb2_vbus-supply = <&reg_vcc5v0>;
+	status = "okay";
+};
-- 
2.13.6

      parent reply	other threads:[~2017-10-08  4:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-08  4:29 [PATCH 0/6] Allwinner R40 USB host support Icenowy Zheng
     [not found] ` <20171008042906.46779-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-10-08  4:29   ` [PATCH 1/6] phy: sun4i-usb: add support for R40 USB PHY Icenowy Zheng
     [not found]     ` <20171008042906.46779-2-icenowy-h8G6r0blFSE@public.gmane.org>
2017-10-09 20:58       ` Maxime Ripard
     [not found]         ` <20171009205839.432f6jd5zhmstwp3-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-10-18 11:39           ` 'Kishon Vijay Abraham I' via linux-sunxi
     [not found]             ` <46407134-3d1f-0132-f692-1536dcc47980-l0cyMroinI0@public.gmane.org>
2017-10-18 11:42               ` Maxime Ripard
     [not found]                 ` <20171018114219.lykghmhzve5yvhaa-ZC1Zs529Oq4@public.gmane.org>
2017-10-18 11:46                   ` 'Kishon Vijay Abraham I' via linux-sunxi
     [not found]                     ` <020a2b04-dbcc-032a-89d1-75479dd436e7-l0cyMroinI0@public.gmane.org>
2017-12-30 11:38                       ` Icenowy Zheng
2018-01-03  8:40                         ` 'Kishon Vijay Abraham I' via linux-sunxi
2017-10-13 19:29       ` Rob Herring
2017-10-08  4:29   ` [PATCH 2/6] ARM: sun8i: r40: add USB host port nodes for R40 Icenowy Zheng
     [not found]     ` <20171008042906.46779-3-icenowy-h8G6r0blFSE@public.gmane.org>
2017-10-09 21:03       ` Maxime Ripard
     [not found]         ` <20171009210340.ak6wo3vqnwj4gom4-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-10-09 23:24           ` Icenowy Zheng
     [not found]             ` <55B35500-67FC-40AA-9A07-98C843DE55B3-h8G6r0blFSE@public.gmane.org>
2017-10-16  9:32               ` Maxime Ripard
     [not found]                 ` <20171016093229.waizww2n4gwn4qpw-ZC1Zs529Oq4@public.gmane.org>
2017-10-16  9:39                   ` icenowy-h8G6r0blFSE
     [not found]                     ` <7ee77556174b84846a59d57525ec1cb9-h8G6r0blFSE@public.gmane.org>
2017-10-16 12:06                       ` Maxime Ripard
2017-10-18 12:21                         ` icenowy
2017-10-08  4:29   ` [PATCH 3/6] ARM: sun8i: r40: add 5V regulator for Banana Pi M2 Ultra Icenowy Zheng
     [not found]     ` <20171008042906.46779-4-icenowy-h8G6r0blFSE@public.gmane.org>
2017-10-09 21:04       ` Maxime Ripard
     [not found]         ` <20171009210407.ueharyifho3s6xvu-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-10-09 23:25           ` Icenowy Zheng
     [not found]             ` <61E002C8-4046-44E4-8E1A-43C8AF74257C-h8G6r0blFSE@public.gmane.org>
2017-10-10  2:25               ` [linux-sunxi] " Chen-Yu Tsai
2017-10-10  9:39                 ` Maxime Ripard
2017-10-08  4:29   ` [PATCH 4/6] ARM: sun8i: v40: add 5V regulator for Banana Pi M2 Berry Icenowy Zheng
2017-10-08  4:29   ` [PATCH 6/6] ARM: sun8i: v40: enable USB host ports " Icenowy Zheng
2017-10-08  4:29 ` Icenowy Zheng [this message]

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=20171008042906.46779-6-icenowy@aosc.io \
    --to=icenowy@aosc.io \
    --cc=devicetree@vger.kernel.org \
    --cc=icenowy@aosc.xyz \
    --cc=kishon@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=wens@csie.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;
as well as URLs for NNTP newsgroup(s).