All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-renesas-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
	Magnus Damm <magnus.damm@gmail.com>,
	Chris Brandt <chris.brandt@renesas.com>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH 15/22] ARM: dts: rza2mevb: Add USB Host support
Date: Fri, 21 Jun 2019 11:13:42 +0200	[thread overview]
Message-ID: <003ddc67e62672279134c85dc2609a913b89d64b.1561104194.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1561104194.git.horms+renesas@verge.net.au>

From: Chris Brandt <chris.brandt@renesas.com>

Enable USB Host support for both the Type-C connector on the CPU board
and the Type-A plug on the sub board.

Both boards are also capable of USB Device operation as well after the
appropriate Device Tree modifications.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r7s9210-rza2mevb.dts | 36 ++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index fa44e35e0fda..e140168da573 100644
--- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
+++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
@@ -107,6 +107,18 @@
 		pinmux = <RZA2_PINMUX(PORT5, 4, 3)>,	/* SD1_CD */
 			 <RZA2_PINMUX(PORT5, 5, 3)>;	/* SD1_WP */
 	};
+
+	usb0_pins: usb0 {
+		pinmux = <RZA2_PINMUX(PORT5, 2, 3)>,	/* VBUSIN0 */
+			 <RZA2_PINMUX(PORTC, 6, 1)>,	/* VBUSEN0 */
+			 <RZA2_PINMUX(PORTC, 7, 1)>;	/* OVRCUR0 */
+	};
+
+	usb1_pins: usb1 {
+		pinmux = <RZA2_PINMUX(PORTC, 0, 1)>,	/* VBUSIN1 */
+			 <RZA2_PINMUX(PORTC, 5, 1)>,	/* VBUSEN1 */
+			 <RZA2_PINMUX(PORT7, 5, 5)>;	/* OVRCUR1 */
+	};
 };
 
 /* High resolution System tick timers */
@@ -161,3 +173,27 @@
 	bus-width = <4>;
 	status = "okay";
 };
+
+/* USB-0 as Host */
+&usb2_phy0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb0_pins>;
+	dr_mode = "host";	/* Requires JP3 to be fitted */
+	status = "okay";
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+/* USB-1 as Host */
+&usb2_phy1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb1_pins>;
+	dr_mode = "host";
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
-- 
2.11.0


WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-renesas-soc@vger.kernel.org
Cc: Simon Horman <horms+renesas@verge.net.au>,
	Chris Brandt <chris.brandt@renesas.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 15/22] ARM: dts: rza2mevb: Add USB Host support
Date: Fri, 21 Jun 2019 11:13:42 +0200	[thread overview]
Message-ID: <003ddc67e62672279134c85dc2609a913b89d64b.1561104194.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1561104194.git.horms+renesas@verge.net.au>

From: Chris Brandt <chris.brandt@renesas.com>

Enable USB Host support for both the Type-C connector on the CPU board
and the Type-A plug on the sub board.

Both boards are also capable of USB Device operation as well after the
appropriate Device Tree modifications.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r7s9210-rza2mevb.dts | 36 ++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index fa44e35e0fda..e140168da573 100644
--- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
+++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
@@ -107,6 +107,18 @@
 		pinmux = <RZA2_PINMUX(PORT5, 4, 3)>,	/* SD1_CD */
 			 <RZA2_PINMUX(PORT5, 5, 3)>;	/* SD1_WP */
 	};
+
+	usb0_pins: usb0 {
+		pinmux = <RZA2_PINMUX(PORT5, 2, 3)>,	/* VBUSIN0 */
+			 <RZA2_PINMUX(PORTC, 6, 1)>,	/* VBUSEN0 */
+			 <RZA2_PINMUX(PORTC, 7, 1)>;	/* OVRCUR0 */
+	};
+
+	usb1_pins: usb1 {
+		pinmux = <RZA2_PINMUX(PORTC, 0, 1)>,	/* VBUSIN1 */
+			 <RZA2_PINMUX(PORTC, 5, 1)>,	/* VBUSEN1 */
+			 <RZA2_PINMUX(PORT7, 5, 5)>;	/* OVRCUR1 */
+	};
 };
 
 /* High resolution System tick timers */
@@ -161,3 +173,27 @@
 	bus-width = <4>;
 	status = "okay";
 };
+
+/* USB-0 as Host */
+&usb2_phy0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb0_pins>;
+	dr_mode = "host";	/* Requires JP3 to be fitted */
+	status = "okay";
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+/* USB-1 as Host */
+&usb2_phy1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb1_pins>;
+	dr_mode = "host";
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
-- 
2.11.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-06-21  9:14 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-21  9:13 [GIT PULL] Renesas ARM Based SoC DT Updates for v5.3 Simon Horman
2019-06-21  9:13 ` Simon Horman
2019-06-21  9:13 ` [PATCH 01/22] ARM: dts: r7s9210: Add RSPI Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 02/22] ARM: dts: r7s9210: Add Ethernet support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 03/22] ARM: dts: r7s9210: Add RIIC support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 04/22] ARM: dts: r7s9210: Add SDHI support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 05/22] ARM: dts: rza2mevb: Add Ethernet support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 06/22] ARM: dts: rza2mevb: Add SDHI support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 07/22] ARM: dts: rza2mevb: add ethernet aliases Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 08/22] ARM: dts: r7s9210: Add USB clock Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 09/22] ARM: dts: rza2mevb: Add 48MHz " Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 10/22] ARM: dts: r8a779x: Configure PMIC IRQ pinmux Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 11/22] ARM: dts: r7s72100: Add IRQC device node Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 12/22] ARM: dts: rskrza1: Add input switches Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 13/22] ARM: dts: r7s9210: Add USB Host support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 14/22] ARM: dts: r7s9210: Add USB Device support Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` Simon Horman [this message]
2019-06-21  9:13   ` [PATCH 15/22] ARM: dts: rza2mevb: Add USB Host support Simon Horman
2019-06-21  9:13 ` [PATCH 16/22] ARM: dts: renesas: Use ip=on for bootargs Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 17/22] ARM: dts: rza2mevb: sort nodes of rza2mevb board Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 18/22] ARM: dts: r7s9210: Add IRQC device node Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 19/22] ARM: dts: rza2mevb: Add input switch Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 20/22] ARM: dts: iwg20d-q7-common: Fix SDHI1 VccQ regularor Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 21/22] ARM: dts: iwg23s-sbc: Fix SDHI2 VccQ regulator Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-21  9:13 ` [PATCH 22/22] ARM: dts: r8a7792: Add CMT0 and CMT1 to r8a7792 Simon Horman
2019-06-21  9:13   ` Simon Horman
2019-06-25 11:45 ` [GIT PULL] Renesas ARM Based SoC DT Updates for v5.3 Olof Johansson
2019-06-25 11:45   ` Olof Johansson

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=003ddc67e62672279134c85dc2609a913b89d64b.1561104194.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=chris.brandt@renesas.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /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.