Synopsys DesignWare USB3 Controller
Schema identifier ($id): "http://devicetree.org/schemas/usb/snps,dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Felipe Balbi <balbi@kernel.org>"
This is usually a subnode to DWC3 glue to which it is connected, but can also be presented as a standalone DT node with an optional vendor-specific compatible string.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Rule for matching array elements (contains) #
Exactly one of these rules must match (
oneOf)Rule 1
Exact value (
const):"snps,dwc3"Rule 2
Exact value (
const):"synopsys,dwc3"Deprecated (
deprecated):true
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
It's either a single common DWC3 interrupt (dwc_usb3) or individual interrupts for the host, gadget and DRD modes.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"dwc_usb3"
Rule 2
Array item rules (
items)Allowed values (
enum):"host","peripheral","otg","wakeup"
clocks — not listed as required here #
In general the core supports three types of clocks. bus_early is a SoC Bus Clock (AHB/AXI/Native). ref generates ITP when the UTMI/ULPI PHY is suspended. suspend clocks a small part of the USB3 core when SS PHY in P3. But particular cases may differ from that having less or more clock sources with another names.
clock-names — not listed as required here #
Rule for matching array elements (contains) #
At least one of these rules must match (
anyOf)Rule 1
Rule 2
true— This rule adds no constraints.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
The DWC3 has 2 power-domains. The power management unit (PMU) and everything else. The PMU is typically always powered and may not have an entry.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Core
Item 2
Power management unit
resets — not listed as required here #
Minimum number of items (minItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Examples (examples) #
usb@4a030000 {
compatible = "snps,dwc3";
reg = <0x4a030000 0xcfff>;
interrupts = <0 92 4>;
usb-phy = <&usb2_phy>, <&usb3_phy>;
snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
};
usb@4a000000 {
compatible = "snps,dwc3";
reg = <0x4a000000 0xcfff>;
interrupts = <0 92 4>;
clocks = <&clk 1>, <&clk 2>, <&clk 3>;
clock-names = "bus_early", "ref", "suspend";
phys = <&usb2_phy>, <&usb3_phy>;
phy-names = "usb2-phy", "usb3-phy";
snps,dis_u2_susphy_quirk;
snps,dis_enblslpm_quirk;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0