File tree Expand file tree Collapse file tree
Documentation/devicetree/bindings/usb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Atmel SOC USB controllers
22
3- OHCI
4-
5- Required properties:
6- - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
7- used in host mode.
8- - reg: Address and length of the register set for the device
9- - interrupts: Should contain ohci interrupt
10- - clocks: Should reference the peripheral, host and system clocks
11- - clock-names: Should contain three strings
12- "ohci_clk" for the peripheral clock
13- "hclk" for the host clock
14- "uhpck" for the system clock
15- - num-ports: Number of ports.
16- - atmel,vbus-gpio: If present, specifies a gpio that needs to be
17- activated for the bus to be powered.
18- - atmel,oc-gpio: If present, specifies a gpio that needs to be
19- activated for the overcurrent detection.
20-
21- usb0: ohci@500000 {
22- compatible = "atmel,at91rm9200-ohci", "usb-ohci";
23- reg = <0x00500000 0x100000>;
24- clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
25- clock-names = "ohci_clk", "hclk", "uhpck";
26- interrupts = <20 4>;
27- num-ports = <2>;
28- };
29-
303EHCI
314
325Required properties:
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ properties:
5555 - ti,ohci-omap3
5656 - items :
5757 - enum :
58+ - atmel,at91rm9200-ohci
5859 - cavium,octeon-6335-ohci
5960 - nintendo,hollywood-usb-ohci
6061 - nxp,ohci-nxp
@@ -137,13 +138,53 @@ properties:
137138 The associated ISP1301 device. Necessary for the UDC controller for
138139 connecting to the USB physical layer.
139140
141+ atmel,vbus-gpio :
142+ description :
143+ GPIO used to control or sense the USB VBUS power. Each entry
144+ represents a VBUS-related GPIO; count and order may vary by hardware.
145+ Entries follow standard GPIO specifier format. A value of 0 indicates
146+ an unused or unavailable VBUS signal.
147+ minItems : 1
148+ maxItems : 3
149+
150+ atmel,oc-gpio :
151+ description :
152+ GPIO used to signal USB overcurrent condition. Each entry represents
153+ an OC detection GPIO; count and order may vary by hardware. Entries
154+ follow standard GPIO specifier format. A value of 0 indicates an
155+ unused or unavailable OC signal.
156+ minItems : 1
157+ maxItems : 3
158+
140159required :
141160 - compatible
142161 - reg
143162 - interrupts
144163
145164allOf :
146165 - $ref : usb-hcd.yaml
166+ - if :
167+ properties :
168+ compatible :
169+ contains :
170+ const : atmel,at91rm9200-ohci
171+ then :
172+ properties :
173+ clock-names :
174+ items :
175+ - const : ohci_clk
176+ - const : hclk
177+ - const : uhpck
178+
179+ required :
180+ - clocks
181+ - clock-names
182+
183+ else :
184+ properties :
185+ atmel,vbus-gpio : false
186+ atmel,oc-gpio : false
187+
147188 - if :
148189 not :
149190 properties :
You can’t perform that action at this time.
0 commit comments