Merge branch 'work.init' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / usb / generic-ohci.yaml
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
7 title: USB OHCI Controller Device Tree Bindings
8
9 allOf:
10   - $ref: "usb-hcd.yaml"
11
12 maintainers:
13   - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14
15 properties:
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               - ibm,476gtr-ohci
46               - ingenic,jz4740-ohci
47               - snps,hsdk-v1.0-ohci
48           - const: generic-ohci
49       - const: generic-ohci
50
51   reg:
52     maxItems: 1
53
54   interrupts:
55     maxItems: 1
56
57   resets:
58     minItems: 1
59     maxItems: 2
60
61   clocks:
62     minItems: 1
63     maxItems: 3
64     description: |
65       In case the Renesas R-Car Gen3 SoCs:
66         - if a host only channel: first clock should be host.
67         - if a USB DRD channel: first clock should be host and second
68           one should be peripheral
69
70   power-domains:
71     maxItems: 1
72
73   big-endian:
74     $ref: /schemas/types.yaml#/definitions/flag
75     description:
76       Set this flag for HCDs with big endian descriptors and big
77       endian registers.
78
79   big-endian-desc:
80     $ref: /schemas/types.yaml#/definitions/flag
81     description:
82       Set this flag for HCDs with big endian descriptors.
83
84   big-endian-regs:
85     $ref: /schemas/types.yaml#/definitions/flag
86     description:
87       Set this flag for HCDs with big endian registers.
88
89   remote-wakeup-connected:
90     $ref: /schemas/types.yaml#/definitions/flag
91     description:
92       Remote wakeup is wired on the platform.
93
94   no-big-frame-no:
95     $ref: /schemas/types.yaml#/definitions/flag
96     description:
97       Set if frame_no lives in bits [15:0] of HCCA
98
99   num-ports:
100     $ref: /schemas/types.yaml#/definitions/uint32
101     description:
102       Overrides the detected port count
103
104   phys:
105     maxItems: 1
106
107   phy-names:
108     const: usb
109
110   iommus:
111     maxItems: 1
112
113   dr_mode:
114     enum:
115       - host
116       - otg
117
118 required:
119   - compatible
120   - reg
121   - interrupts
122
123 additionalProperties: false
124
125 examples:
126   - |
127       ohci0: usb@1c14400 {
128           compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
129           reg = <0x01c14400 0x100>;
130           interrupts = <64>;
131           clocks = <&usb_clk 6>, <&ahb_gates 2>;
132           phys = <&usbphy 1>;
133           phy-names = "usb";
134       };
135
136 ...