1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/renesas,usbhs.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas USBHS (HS-USB) controller
8
9maintainers:
10  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - const: renesas,usbhs-r7s72100 # RZ/A1
17          - const: renesas,rza1-usbhs
18
19      - items:
20          - const: renesas,usbhs-r7s9210 # RZ/A2
21          - const: renesas,rza2-usbhs
22
23      - items:
24          - enum:
25              - renesas,usbhs-r8a7742  # RZ/G1H
26              - renesas,usbhs-r8a7743  # RZ/G1M
27              - renesas,usbhs-r8a7744  # RZ/G1N
28              - renesas,usbhs-r8a7745  # RZ/G1E
29              - renesas,usbhs-r8a77470 # RZ/G1C
30              - renesas,usbhs-r8a7790  # R-Car H2
31              - renesas,usbhs-r8a7791  # R-Car M2-W
32              - renesas,usbhs-r8a7792  # R-Car V2H
33              - renesas,usbhs-r8a7793  # R-Car M2-N
34              - renesas,usbhs-r8a7794  # R-Car E2
35          - const: renesas,rcar-gen2-usbhs
36
37      - items:
38          - enum:
39              - renesas,usbhs-r8a774a1 # RZ/G2M
40              - renesas,usbhs-r8a774b1 # RZ/G2N
41              - renesas,usbhs-r8a774c0 # RZ/G2E
42              - renesas,usbhs-r8a7795  # R-Car H3
43              - renesas,usbhs-r8a7796  # R-Car M3-W
44              - renesas,usbhs-r8a77961 # R-Car M3-W+
45              - renesas,usbhs-r8a77965 # R-Car M3-N
46              - renesas,usbhs-r8a77990 # R-Car E3
47              - renesas,usbhs-r8a77995 # R-Car D3
48          - const: renesas,rcar-gen3-usbhs
49
50  reg:
51    maxItems: 1
52
53  clocks:
54    minItems: 1
55    maxItems: 3
56    items:
57      - description: USB 2.0 host
58      - description: USB 2.0 peripheral
59      - description: USB 2.0 clock selector
60
61  interrupts:
62    maxItems: 1
63
64  renesas,buswait:
65    $ref: /schemas/types.yaml#/definitions/uint32
66    description: |
67      Integer to use BUSWAIT register.
68
69  renesas,enable-gpio:
70    description: |
71      gpio specifier to check GPIO determining if USB function should be
72      enabled.
73
74  phys:
75    maxItems: 1
76    items:
77      - description: phandle + phy specifier pair.
78
79  phy-names:
80    maxItems: 1
81    items:
82      - const: usb
83
84  dmas:
85    minItems: 2
86    maxItems: 4
87
88  dma-names:
89    minItems: 2
90    maxItems: 4
91    items:
92      - const: ch0
93      - const: ch1
94      - const: ch2
95      - const: ch3
96
97  dr_mode: true
98
99  power-domains:
100    maxItems: 1
101
102  resets:
103    minItems: 1
104    maxItems: 2
105    items:
106      - description: USB 2.0 host
107      - description: USB 2.0 peripheral
108
109required:
110  - compatible
111  - reg
112  - clocks
113  - interrupts
114
115additionalProperties: false
116
117examples:
118  - |
119    #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
120    #include <dt-bindings/interrupt-controller/arm-gic.h>
121    #include <dt-bindings/power/r8a7790-sysc.h>
122
123    usbhs: usb@e6590000 {
124        compatible = "renesas,usbhs-r8a7790", "renesas,rcar-gen2-usbhs";
125        reg = <0xe6590000 0x100>;
126        interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
127        clocks = <&cpg CPG_MOD 704>;
128    };
129