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
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              - allwinner,sun20i-d1-ohci
32              - brcm,bcm3384-ohci
33              - brcm,bcm63268-ohci
34              - brcm,bcm6328-ohci
35              - brcm,bcm6358-ohci
36              - brcm,bcm6362-ohci
37              - brcm,bcm6368-ohci
38              - brcm,bcm7125-ohci
39              - brcm,bcm7346-ohci
40              - brcm,bcm7358-ohci
41              - brcm,bcm7360-ohci
42              - brcm,bcm7362-ohci
43              - brcm,bcm7420-ohci
44              - brcm,bcm7425-ohci
45              - brcm,bcm7435-ohci
46              - hpe,gxp-ohci
47              - ibm,476gtr-ohci
48              - ingenic,jz4740-ohci
49              - snps,hsdk-v1.0-ohci
50          - const: generic-ohci
51      - const: generic-ohci
52
53  reg:
54    maxItems: 1
55
56  interrupts:
57    maxItems: 1
58
59  resets:
60    minItems: 1
61    maxItems: 2
62
63  clocks:
64    minItems: 1
65    maxItems: 3
66    description: |
67      In case the Renesas R-Car Gen3 SoCs:
68        - if a host only channel: first clock should be host.
69        - if a USB DRD channel: first clock should be host and second
70          one should be peripheral
71
72  power-domains:
73    maxItems: 1
74
75  big-endian:
76    $ref: /schemas/types.yaml#/definitions/flag
77    description:
78      Set this flag for HCDs with big endian descriptors and big
79      endian registers.
80
81  big-endian-desc:
82    $ref: /schemas/types.yaml#/definitions/flag
83    description:
84      Set this flag for HCDs with big endian descriptors.
85
86  big-endian-regs:
87    $ref: /schemas/types.yaml#/definitions/flag
88    description:
89      Set this flag for HCDs with big endian registers.
90
91  remote-wakeup-connected:
92    $ref: /schemas/types.yaml#/definitions/flag
93    description:
94      Remote wakeup is wired on the platform.
95
96  no-big-frame-no:
97    $ref: /schemas/types.yaml#/definitions/flag
98    description:
99      Set if frame_no lives in bits [15:0] of HCCA
100
101  num-ports:
102    $ref: /schemas/types.yaml#/definitions/uint32
103    description:
104      Overrides the detected port count
105
106  phys:
107    minItems: 1
108    maxItems: 3
109
110  phy-names:
111    const: usb
112
113  iommus:
114    maxItems: 1
115
116  dr_mode:
117    enum:
118      - host
119      - otg
120
121required:
122  - compatible
123  - reg
124  - interrupts
125
126additionalProperties: false
127
128examples:
129  - |
130      ohci0: usb@1c14400 {
131          compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
132          reg = <0x01c14400 0x100>;
133          interrupts = <64>;
134          clocks = <&usb_clk 6>, <&ahb_gates 2>;
135          phys = <&usbphy 1>;
136          phy-names = "usb";
137      };
138
139...
140