1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/generic-ohci.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: USB OHCI Controller Device Tree Bindings
8
9allOf:
10  - $ref: "usb-hcd.yaml"
11
12maintainers:
13  - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14
15properties:
16  compatible:
17    oneOf:
18      - items:
19          - enum:
20              - allwinner,sun4i-a10-ohci
21              - allwinner,sun50i-a64-ohci
22              - allwinner,sun50i-h6-ohci
23              - allwinner,sun5i-a13-ohci
24              - allwinner,sun6i-a31-ohci
25              - allwinner,sun7i-a20-ohci
26              - allwinner,sun8i-a23-ohci
27              - allwinner,sun8i-a83t-ohci
28              - allwinner,sun8i-h3-ohci
29              - allwinner,sun8i-r40-ohci
30              - allwinner,sun9i-a80-ohci
31              - brcm,bcm3384-ohci
32              - brcm,bcm63268-ohci
33              - brcm,bcm6328-ohci
34              - brcm,bcm6358-ohci
35              - brcm,bcm6362-ohci
36              - brcm,bcm6368-ohci
37              - brcm,bcm7125-ohci
38              - brcm,bcm7346-ohci
39              - brcm,bcm7358-ohci
40              - brcm,bcm7360-ohci
41              - brcm,bcm7362-ohci
42              - brcm,bcm7420-ohci
43              - brcm,bcm7425-ohci
44              - brcm,bcm7435-ohci
45              - hpe,gxp-ohci
46              - ibm,476gtr-ohci
47              - ingenic,jz4740-ohci
48              - snps,hsdk-v1.0-ohci
49          - const: generic-ohci
50      - const: generic-ohci
51
52  reg:
53    maxItems: 1
54
55  interrupts:
56    maxItems: 1
57
58  resets:
59    minItems: 1
60    maxItems: 2
61
62  clocks:
63    minItems: 1
64    maxItems: 3
65    description: |
66      In case the Renesas R-Car Gen3 SoCs:
67        - if a host only channel: first clock should be host.
68        - if a USB DRD channel: first clock should be host and second
69          one should be peripheral
70
71  power-domains:
72    maxItems: 1
73
74  big-endian:
75    $ref: /schemas/types.yaml#/definitions/flag
76    description:
77      Set this flag for HCDs with big endian descriptors and big
78      endian registers.
79
80  big-endian-desc:
81    $ref: /schemas/types.yaml#/definitions/flag
82    description:
83      Set this flag for HCDs with big endian descriptors.
84
85  big-endian-regs:
86    $ref: /schemas/types.yaml#/definitions/flag
87    description:
88      Set this flag for HCDs with big endian registers.
89
90  remote-wakeup-connected:
91    $ref: /schemas/types.yaml#/definitions/flag
92    description:
93      Remote wakeup is wired on the platform.
94
95  no-big-frame-no:
96    $ref: /schemas/types.yaml#/definitions/flag
97    description:
98      Set if frame_no lives in bits [15:0] of HCCA
99
100  num-ports:
101    $ref: /schemas/types.yaml#/definitions/uint32
102    description:
103      Overrides the detected port count
104
105  phys:
106    maxItems: 1
107
108  phy-names:
109    const: usb
110
111  iommus:
112    maxItems: 1
113
114  dr_mode:
115    enum:
116      - host
117      - otg
118
119required:
120  - compatible
121  - reg
122  - interrupts
123
124additionalProperties: false
125
126examples:
127  - |
128      ohci0: usb@1c14400 {
129          compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
130          reg = <0x01c14400 0x100>;
131          interrupts = <64>;
132          clocks = <&usb_clk 6>, <&ahb_gates 2>;
133          phys = <&usbphy 1>;
134          phy-names = "usb";
135      };
136
137...
138