This patch adds a new documentation for Renesas R-Car USB 3.0 role switch that can change the USB 3.0 role to either host or peripheral by a hardware register that is included in USB3.0 peripheral module. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx> --- .../bindings/usb/renesas,rcar-usb3-role-sw.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt diff --git a/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt b/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt new file mode 100644 index 0000000..e074c03 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt @@ -0,0 +1,47 @@ +Renesas Electronics R-Car USB 3.0 role switch + +A renesas_usb3's node can contain this node. + +Required properties: + - compatible: Must contain "renesas,rcar-usb3-role-switch". + +Required nodes: + - The connection to a usb3.0 host node needs by using OF graph bindings. + - port@0 = USB 3.0 host port + - port@1 = USB 3.0 peripheral port + +Example of R-Car H3 ES2.0: + usb3_peri0: usb@ee020000 { + compatible = "renesas,r8a7795-usb3-peri", + "renesas,rcar-gen3-usb3-peri"; + reg = <0 0xee020000 0 0x400>; + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 328>; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; + resets = <&cpg 328>; + + usb3-role-sw { + compatible = "renesas,rcar-usb3-role-switch"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb3_host_sw: endpoint { + remote-endpoint = <&usb3_host_ep>; + }; + }; + + port@1 { + reg = <1>; + + usb3_peri_sw: endpoint { + remote-endpoint = <&usb3_peri_ep>; + }; + }; + }; + }; + }; -- 1.9.1