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    contains:
18      const: generic-ohci
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  resets:
27    minItems: 1
28    maxItems: 2
29
30  clocks:
31    minItems: 1
32    maxItems: 3
33    description: |
34      In case the Renesas R-Car Gen3 SoCs:
35        - if a host only channel: first clock should be host.
36        - if a USB DRD channel: first clock should be host and second
37          one should be peripheral
38
39  power-domains:
40    maxItems: 1
41
42  big-endian:
43    $ref: /schemas/types.yaml#/definitions/flag
44    description:
45      Set this flag for HCDs with big endian descriptors and big
46      endian registers.
47
48  big-endian-desc:
49    $ref: /schemas/types.yaml#/definitions/flag
50    description:
51      Set this flag for HCDs with big endian descriptors.
52
53  big-endian-regs:
54    $ref: /schemas/types.yaml#/definitions/flag
55    description:
56      Set this flag for HCDs with big endian registers.
57
58  remote-wakeup-connected:
59    $ref: /schemas/types.yaml#/definitions/flag
60    description:
61      Remote wakeup is wired on the platform.
62
63  no-big-frame-no:
64    $ref: /schemas/types.yaml#/definitions/flag
65    description:
66      Set if frame_no lives in bits [15:0] of HCCA
67
68  num-ports:
69    $ref: /schemas/types.yaml#/definitions/uint32
70    description:
71      Overrides the detected port count
72
73  phys:
74    description: PHY specifier for the USB PHY
75
76  phy-names:
77    const: usb
78
79  iommus:
80    maxItems: 1
81
82required:
83  - compatible
84  - reg
85  - interrupts
86
87additionalProperties: false
88
89examples:
90  - |
91      ohci0: usb@1c14400 {
92          compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
93          reg = <0x01c14400 0x100>;
94          interrupts = <64>;
95          clocks = <&usb_clk 6>, <&ahb_gates 2>;
96          phys = <&usbphy 1>;
97          phy-names = "usb";
98      };
99
100...
101