summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/r7s9210-rza2mevb.dts
diff options
context:
space:
mode:
authorChris Brandt <chris.brandt@renesas.com>2019-05-15 17:20:48 +0200
committerSimon Horman <horms+renesas@verge.net.au>2019-05-20 13:41:47 +0200
commit003ddc67e62672279134c85dc2609a913b89d64b (patch)
tree1d3dfce5a80f6d37b20fa5488b542b7bb8260335 /arch/arm/boot/dts/r7s9210-rza2mevb.dts
parentARM: dts: r7s9210: Add USB Device support (diff)
downloadlinux-003ddc67e62672279134c85dc2609a913b89d64b.tar.xz
linux-003ddc67e62672279134c85dc2609a913b89d64b.zip
ARM: dts: rza2mevb: Add USB Host support
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>
Diffstat (limited to 'arch/arm/boot/dts/r7s9210-rza2mevb.dts')
-rw-r--r--arch/arm/boot/dts/r7s9210-rza2mevb.dts36
1 files changed, 36 insertions, 0 deletions
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";
+};