summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/renesas,usb3-peri.txt
blob: 5eecfbc8aa7fcf85a1e526db960bffa9772299bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Renesas Electronics USB3.0 Peripheral driver

Required properties:
  - compatible: Must contain one of the following:
	- "renesas,r8a774a1-usb3-peri"
	- "renesas,r8a774c0-usb3-peri"
	- "renesas,r8a7795-usb3-peri"
	- "renesas,r8a7796-usb3-peri"
	- "renesas,r8a77965-usb3-peri"
	- "renesas,r8a77990-usb3-peri"
	- "renesas,rcar-gen3-usb3-peri" for a generic R-Car Gen3 or RZ/G2
	  compatible device

    When compatible with the generic version, nodes must list the
    SoC-specific version corresponding to the platform first
    followed by the generic version.

  - reg: Base address and length of the register for the USB3.0 Peripheral
  - interrupts: Interrupt specifier for the USB3.0 Peripheral
  - clocks: clock phandle and specifier pair

Optional properties:
  - phys: phandle + phy specifier pair
  - phy-names: must be "usb"
  - usb-role-switch: support role switch. see usb/generic.txt

Sub-nodes:
- any connector to the data bus of this controller should be modelled using the
  OF graph bindings specified in bindings/graph.txt, if the "usb-role-switch"
  property is used.

Example of R-Car H3 ES1.x:
	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>;
	};

	usb3_peri1: usb@ee060000 {
		compatible = "renesas,r8a7795-usb3-peri",
			     "renesas,rcar-gen3-usb3-peri";
		reg = <0 0xee060000 0 0x400>;
		interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
		clocks = <&cpg CPG_MOD 327>;
	};

Example of RZ/G2E:
	usb3_peri0: usb@ee020000 {
		compatible = "renesas,r8a774c0-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>;
		companion = <&xhci0>;
		usb-role-switch;

		port {
			usb3_role_switch: endpoint {
				remote-endpoint = <&hd3ss3220_ep>;
			};
		};
	};