Skip to content

Commit 73d4839

Browse files
Charan-Pedumurugregkh
authored andcommitted
dt-bindings: usb: generic-ohci: add AT91RM9200 OHCI binding support
Convert the Atmel AT91RM9200 OHCI USB host controller binding to DT schema by defining it in the existing generic OHCI schema. Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260327-atmel-usb-v4-2-eb8b6e49b29d@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2b7f1a4 commit 73d4839

2 files changed

Lines changed: 41 additions & 27 deletions

File tree

Documentation/devicetree/bindings/usb/atmel-usb.txt

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
11
Atmel 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-
303
EHCI
314

325
Required properties:

Documentation/devicetree/bindings/usb/generic-ohci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
140159
required:
141160
- compatible
142161
- reg
143162
- interrupts
144163

145164
allOf:
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:

0 commit comments

Comments
 (0)