diff mbox

[PATCH/RFC,10/11] arm64: dts: renesas: r8a7795: add OF graph for usb role switch

Message ID 1524039005-30618-11-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yoshihiro Shimoda April 18, 2018, 8:10 a.m. UTC
This patch adds OF graph properties for usb role switch in r8a7795.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 44 ++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 1d5e3ac..61c1fa0 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -1746,6 +1746,12 @@ 
 			power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
 			resets = <&cpg 328>;
 			status = "disabled";
+
+			port {
+				usb3_host_ep0: endpoint {
+					remote-endpoint = <&usb3_host_ep0>;
+				};
+			};
 		};
 
 		usb3_peri0: usb@ee020000 {
@@ -1757,6 +1763,44 @@ 
 			power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
 			resets = <&cpg 328>;
 			status = "disabled";
+
+			port {
+				usb3_peri_ep0: endpoint {
+					remote-endpoint = <&usb3_peri_sw0>;
+				};
+			};
+
+			usb3_role_sw0: usb3-role-sw {
+				compatible = "renesas,rcar-usb3-role-switch";
+				renesas,host = <&xhci0>;
+
+				ports {
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					port@1 {
+						reg = <1>;
+
+						usb3_host_sw0: endpoint {
+							remote-endpoint = <&usb3_host_ep0>;
+						};
+					};
+
+					port@2 {
+						reg = <2>;
+						usb3_peri_sw0: endpoint {
+							remote-endpoint = <&usb3_peri_ep0>;
+							device-connection-id = "usb-role-switch";
+						};
+					};
+
+					port@3 {
+						reg = <3>;
+						usb3_role_sw0_ep: endpoint {
+						};
+					};
+				};
+			};
 		};
 
 		usb_dmac0: dma-controller@e65a0000 {