mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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>
This commit is contained in:
parent
2b7f1a4f19
commit
73d4839a3a
|
|
@ -1,32 +1,5 @@
|
|||
Atmel SOC USB controllers
|
||||
|
||||
OHCI
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
|
||||
used in host mode.
|
||||
- reg: Address and length of the register set for the device
|
||||
- interrupts: Should contain ohci interrupt
|
||||
- clocks: Should reference the peripheral, host and system clocks
|
||||
- clock-names: Should contain three strings
|
||||
"ohci_clk" for the peripheral clock
|
||||
"hclk" for the host clock
|
||||
"uhpck" for the system clock
|
||||
- num-ports: Number of ports.
|
||||
- atmel,vbus-gpio: If present, specifies a gpio that needs to be
|
||||
activated for the bus to be powered.
|
||||
- atmel,oc-gpio: If present, specifies a gpio that needs to be
|
||||
activated for the overcurrent detection.
|
||||
|
||||
usb0: ohci@500000 {
|
||||
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
|
||||
reg = <0x00500000 0x100000>;
|
||||
clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
|
||||
clock-names = "ohci_clk", "hclk", "uhpck";
|
||||
interrupts = <20 4>;
|
||||
num-ports = <2>;
|
||||
};
|
||||
|
||||
EHCI
|
||||
|
||||
Required properties:
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ properties:
|
|||
- ti,ohci-omap3
|
||||
- items:
|
||||
- enum:
|
||||
- atmel,at91rm9200-ohci
|
||||
- cavium,octeon-6335-ohci
|
||||
- nintendo,hollywood-usb-ohci
|
||||
- nxp,ohci-nxp
|
||||
|
|
@ -137,6 +138,24 @@ properties:
|
|||
The associated ISP1301 device. Necessary for the UDC controller for
|
||||
connecting to the USB physical layer.
|
||||
|
||||
atmel,vbus-gpio:
|
||||
description:
|
||||
GPIO used to control or sense the USB VBUS power. Each entry
|
||||
represents a VBUS-related GPIO; count and order may vary by hardware.
|
||||
Entries follow standard GPIO specifier format. A value of 0 indicates
|
||||
an unused or unavailable VBUS signal.
|
||||
minItems: 1
|
||||
maxItems: 3
|
||||
|
||||
atmel,oc-gpio:
|
||||
description:
|
||||
GPIO used to signal USB overcurrent condition. Each entry represents
|
||||
an OC detection GPIO; count and order may vary by hardware. Entries
|
||||
follow standard GPIO specifier format. A value of 0 indicates an
|
||||
unused or unavailable OC signal.
|
||||
minItems: 1
|
||||
maxItems: 3
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
|
@ -144,6 +163,28 @@ required:
|
|||
|
||||
allOf:
|
||||
- $ref: usb-hcd.yaml
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: atmel,at91rm9200-ohci
|
||||
then:
|
||||
properties:
|
||||
clock-names:
|
||||
items:
|
||||
- const: ohci_clk
|
||||
- const: hclk
|
||||
- const: uhpck
|
||||
|
||||
required:
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
else:
|
||||
properties:
|
||||
atmel,vbus-gpio: false
|
||||
atmel,oc-gpio: false
|
||||
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user