USB bindings
Single-page view · as markdown
Allwinner A10 mUSB OTG Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/allwinner,sun4i-a10-musb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"allwinner,sun4i-a10-musb","allwinner,sun6i-a31-musb","allwinner,sun8i-a33-musb","allwinner,sun8i-h3-musb","allwinner,suniv-f1c100s-musb"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun8i-a83t-musb","allwinner,sun20i-d1-musb","allwinner,sun50i-a100-musb","allwinner,sun50i-h6-musb","allwinner,sun55i-a523-musb"Item 2
Exact value (
const):"allwinner,sun8i-a33-musb"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun50i-h616-musb"Item 2
Exact value (
const):"allwinner,sun8i-h3-musb"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "mc"
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
phys — required here #
Maximum number of items (maxItems): 1
phy-names — required here #
Exact value (const): "usb"
extcon — required here #
Extcon specifier for the OTG PHY
dr_mode — required here #
Allowed values (enum): "host", "otg", "peripheral"
allwinner,sram — not listed as required here #
Phandle to the device SRAM
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "phys", "phy-names", "dr_mode", "extcon"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun6i-a31-musb","allwinner,sun8i-a33-musb","allwinner,sun8i-h3-musb"
When the condition matches (then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb_otg: usb@1c13000 {
compatible = "allwinner,sun4i-a10-musb";
reg = <0x01c13000 0x0400>;
clocks = <&ahb_gates 0>;
interrupts = <38>;
interrupt-names = "mc";
phys = <&usbphy 0>;
phy-names = "usb";
extcon = <&usbphy 0>;
dr_mode = "peripheral";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Amlogic Meson G12A DWC3 USB SoC Controller Glue
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/amlogic,meson-g12a-usb-ctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
The Amlogic G12A embeds a DWC3 USB IP Core configured for USB2 and USB3 in host-only mode, and a DWC2 IP Core configured for USB2 peripheral mode only.
A glue connects the DWC3 core to USB2 PHYs and optionally to an USB3 PHY.
One of the USB2 PHYs can be re-routed in peripheral mode to a DWC2 USB IP.
The DWC3 Glue controls the PHY routing and power, an interrupt line is connected to the Glue to serve as OTG ID change detection.
The Amlogic A1 embeds a DWC3 USB IP Core configured for USB2 in host-only mode.
The Amlogic GXL, GXM & AXG SoCs doesn't embed an USB3 PHY.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson-gxl-usb-ctrl", "amlogic,meson-gxm-usb-ctrl", "amlogic,meson-axg-usb-ctrl", "amlogic,meson-g12a-usb-ctrl", "amlogic,meson-a1-usb-ctrl"
ranges — required here #
true — No constraints added by this property rule.
#address-cells — required here #
#size-cells — required here #
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
resets — required here #
Minimum number of items (minItems): 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
phy-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
phys — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
dr_mode — required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
vbus-supply — not listed as required here #
VBUS power supply when used in OTG switchable mode
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):dwc2.yaml#
Rule 2
Shared schema rule (
$ref):snps,dwc3.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges", "clocks", "resets", "reg", "interrupts", "phy-names", "phys", "dr_mode"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
phy-names— not listed as required hereMinimum number of items (
minItems):2Array item rules (
items)Item 1
Exact value (
const):"usb2-phy0"Item 2
Exact value (
const):"usb2-phy1"Item 3
Exact value (
const):"usb3-phy0"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"usb_ctrl"Item 2
Exact value (
const):"ddr"
phy-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usb2-phy0"Item 2
Exact value (
const):"usb2-phy1"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"usb_ctrl"Item 2
Exact value (
const):"ddr"
phy-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usb2-phy0"Item 2
Exact value (
const):"usb2-phy1"Item 3
Exact value (
const):"usb2-phy2"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
phy-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usb2-phy1"
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"usb_ctrl"Item 2
Exact value (
const):"ddr"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
phy-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usb2-phy1"
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"usb_ctrl"Item 2
Exact value (
const):"usb_bus"Item 3
Exact value (
const):"xtal_usb_ctrl"
Examples (examples) #
usb: usb@ffe09000 {
compatible = "amlogic,meson-g12a-usb-ctrl";
reg = <0xffe09000 0xa0>;
interrupts = <16>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
clocks = <&clkc_usb>;
resets = <&reset_usb>;
dr_mode = "otg";
phys = <&usb2_phy0>, <&usb2_phy1>, <&usb3_phy0>;
phy-names = "usb2-phy0", "usb2-phy1", "usb3-phy0";
dwc2: usb@ff400000 {
compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
reg = <0xff400000 0x40000>;
interrupts = <31>;
clocks = <&clkc_usb1>;
clock-names = "otg";
phys = <&usb2_phy1>;
dr_mode = "peripheral";
g-rx-fifo-size = <192>;
g-np-tx-fifo-size = <128>;
g-tx-fifo-size = <128 128 16 16 16>;
};
dwc3: usb@ff500000 {
compatible = "snps,dwc3";
reg = <0xff500000 0x100000>;
interrupts = <30>;
dr_mode = "host";
snps,dis_u2_susphy_quirk;
snps,quirk-frame-length-adjustment = <0x20>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 113: USB2 PHY0 if USBHOST_A port is used
Line 114: USB2 PHY1 if USBOTG_B port is used
Line 115: USB3 PHY if USB3_0 is used
Line 132: USB2 PHY0 if USBHOST_A port is used
Line 133: USB2 PHY1 if USBOTG_B port is used
Line 152: USB2 PHY0 if USBHOST_A port is used
Line 153: USB2 PHY1 if USBOTG_B port is used
Line 154: USB2 PHY2 if USBOTG_C port is used
Line 168: USB2 PHY1 if USBOTG_B port is used
Line 187: USB2 PHY1 if USBOTG_B port is used
Analogix ANX7411 Type-C controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/analogix,anx7411.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xin Ji <xji@analogixsemi.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "analogix,anx7411"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "usb-c-connector"
Required in this object (required): "compatible", "reg", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec@2c {
compatible = "analogix,anx7411";
reg = <0x2c>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio0>;
typec_con: connector {
compatible = "usb-c-connector";
power-role = "dual";
data-role = "dual";
try-power-role = "source";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
typec_con_ep: endpoint {
remote-endpoint = <&usbotg_hs_ep>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Apple Silicon DWC3 USB controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/apple,dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sven Peter <sven@kernel.org>"
Apple Silicon SoCs use a Synopsys DesignWare DWC3 based controller for each of their Type-C ports.
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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t6000-dwc3","apple,t6020-dwc3","apple,t8112-dwc3"Item 2
Exact value (
const):"apple,t8103-dwc3"
Rule 2
Exact value (
const):"apple,t8103-dwc3"
reg — required here #
Array item rules (items) #
Item 1
Core DWC3 region
Item 2
Apple-specific DWC3 region
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dwc3-core"
Item 2
Exact value (
const):"dwc3-apple"
interrupts — required here #
Maximum number of items (maxItems): 1
iommus — required here #
Maximum number of items (maxItems): 2
resets — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "iommus", "resets", "power-domains", "usb-role-switch"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
usb@82280000 {
compatible = "apple,t8103-dwc3";
reg = <0x82280000 0xcd00>, <0x8228cd00 0x3200>;
reg-names = "dwc3-core", "dwc3-apple";
interrupts = <AIC_IRQ 777 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&dwc3_0_dart_0 0>, <&dwc3_0_dart_1 1>;
power-domains = <&ps_atc0_usb>;
resets = <&atcphy0>;
usb-role-switch;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ASPEED USB 2.0 Device Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/aspeed,ast2600-udc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neal Liu <neal_liu@aspeedtech.com>"
The ASPEED USB 2.0 Device Controller implements 1 control endpoint and 4 generic endpoints for AST260x.
Supports independent DMA channel for each generic endpoint. Supports 32/256 stages descriptor mode for all generic endpoints.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2600-udc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
udc: usb@1e6a2000 {
compatible = "aspeed,ast2600-udc";
reg = <0x1e6a2000 0x300>;
interrupts = <9>;
clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb2bd_default>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 Facebook Inc.
ASPEED USB 2.0 Virtual Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Benjamin Herrenschmidt <benh@kernel.crashing.org>"
The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub register and several sets of Device and Endpoint registers to support the Virtual Hub's downstream USB devices.
Supported number of devices and endpoints vary depending on hardware revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices and 15 generic endpoints, while AST2600 and AST2700 Virtual Hub supports 7 downstream devices and 21 generic endpoints.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2400-usb-vhub", "aspeed,ast2500-usb-vhub", "aspeed,ast2600-usb-vhub", "aspeed,ast2700-usb-vhub"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
aspeed,vhub-downstream-ports — required here #
Number of downstream ports supported by the Virtual Hub
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 5
Minimum value (minimum): 1
Maximum value (maximum): 7
aspeed,vhub-generic-endpoints — required here #
Number of generic endpoints supported by the Virtual Hub
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 15
Minimum value (minimum): 1
Maximum value (maximum): 21
vhub-vendor-id — not listed as required here #
vhub Vendor ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 65535
vhub-product-id — not listed as required here #
vhub Product ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 65535
vhub-device-revision — not listed as required here #
vhub Device Revision in binary-coded decimal
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 65535
vhub-strings — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^string@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
string descriptors of the specific language
Properties and child nodes (properties)
reg — not listed as required here
Maximum number of items (maxItems): 1
16-bit Language Identifier defined by USB-IF
manufacturer — not listed as required here
vhub manufacturer
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
product — not listed as required here
vhub product name
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
serial-number — not listed as required here
vhub device serial number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Required in this object (required): "compatible", "reg", "clocks", "interrupts", "aspeed,vhub-downstream-ports", "aspeed,vhub-generic-endpoints"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"aspeed,ast2700-usb-vhub"
When the condition matches (then) #
When the condition does not match (else) #
Properties and child nodes (
properties) #
resets— not listed as required here #
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
vhub: usb-vhub@1e6a0000 {
compatible = "aspeed,ast2500-usb-vhub";
reg = <0x1e6a0000 0x300>;
interrupts = <5>;
clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
aspeed,vhub-downstream-ports = <5>;
aspeed,vhub-generic-endpoints = <15>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb2ad_default>;
vhub-vendor-id = <0x1d6b>;
vhub-product-id = <0x0107>;
vhub-device-revision = <0x0100>;
vhub-strings {
#address-cells = <1>;
#size-cells = <0>;
string@409 {
reg = <0x409>;
manufacturer = "ASPEED";
product = "USB Virtual Hub";
serial-number = "0000";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 Facebook Inc.
Broadcom STB USB EHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/brcm,bcm7445-ehci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml
Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,bcm7445-ehci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Clock specifier for the EHCI clock
clock-names — not listed as required here #
Exact value (const): "sw_usb"
phys — required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usbphy"
Required in this object (required): "compatible", "reg", "interrupts", "phys", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@f0b00300 {
compatible = "brcm,bcm7445-ehci";
reg = <0xf0b00300 0xa8>;
interrupts = <0x0 0x5a 0x0>;
phys = <&usbphy_0 0x0>;
phy-names = "usbphy";
clocks = <&usb20>;
clock-names = "sw_usb";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom USB Device Controller (BDC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/brcm,bdc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
phys — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB 2.0 or 3.0 PHY
Item 2
USB 3.0 PHY if there is a dedicated 2.0 PHY
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@f0b02000 {
compatible = "brcm,bdc-udc-v2";
reg = <0xf0b02000 0xfc4>;
interrupts = <0x0 0x60 0x0>;
phys = <&usbphy_0 0x0>;
clocks = <&sw_usbd>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom USB pin map Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/brcm,usb-pinmap.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"brcm,usb-pinmap"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt for signals mirrored to out-gpios.
in-gpios — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array of one or two GPIO pins used for input signals.
brcm,in-functions — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Array of input signal names, one per gpio in in-gpios.
brcm,in-masks — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of enable and mask pairs, one per gpio in-gpios.
out-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Array of one GPIO pin used for output signals.
brcm,out-functions — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Array of output signal names, one per gpio in out-gpios.
brcm,out-masks — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of enable, value, changed and clear masks, one per gpio in out-gpios.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Property dependencies (dependencies) #
in-gpios — applies when this property is present #
Also requires: "interrupts"
Examples (examples) #
usb_pinmap: usb-pinmap@22000d0 {
compatible = "brcm,usb-pinmap";
reg = <0x22000d0 0x4>;
in-gpios = <&gpio 18 0>, <&gpio 19 0>;
brcm,in-functions = "VBUS", "PWRFLT";
brcm,in-masks = <0x8000 0x40000 0x10000 0x80000>;
out-gpios = <&gpio 20 0>;
brcm,out-functions = "PWRON";
brcm,out-masks = <0x20000 0x800000 0x400000 0x200000>;
interrupts = <0x0 0xb2 0x4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cadence USBSS-DRD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/cdns,usb3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pawel Laszczak <pawell@cadence.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cdns,usb3"
reg — required here #
Array item rules (items) #
Item 1
OTG controller registers
Item 2
XHCI Host controller registers
Item 3
DEVICE controller registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"otg"
Item 2
Exact value (
const):"xhci"
Item 3
Exact value (
const):"dev"
interrupts — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
XHCI host controller interrupt
Item 2
Device controller interrupt
Item 3
OTG/DRD controller interrupt
Item 4
interrupt used to wake up core, e.g when usbcmd.rs is cleared by xhci core, this interrupt is optional
interrupt-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"host"
Item 2
Exact value (
const):"peripheral"
Item 3
Exact value (
const):"otg"
Item 4
Exact value (
const):"wakeup"
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
This port is used with the 'usb-role-switch' property to connect the cdns3 to type C connector.
maximum-speed — not listed as required here #
Allowed values (enum): "super-speed", "high-speed", "full-speed"
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"cdns3,usb2-phy"Rule 2
Exact value (
const):"cdns3,usb3-phy"
cdns,on-chip-buff-size — not listed as required here #
size of memory intended as internal memory for endpoints buffers expressed in KB
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
cdns,phyrst-a-enable — not listed as required here #
Enable resetting of PHY if Rx fail is detected
Value type (type): "boolean"
Property dependencies (dependencies) #
port — applies when this property is present #
Also requires: "usb-role-switch"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
usb@6000000 {
compatible = "cdns,usb3";
reg = <0x00 0x6000000 0x00 0x10000>,
<0x00 0x6010000 0x00 0x10000>,
<0x00 0x6020000 0x00 0x10000>;
reg-names = "otg", "xhci", "dev";
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host", "peripheral", "otg";
maximum-speed = "super-speed";
dr_mode = "otg";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
USB2 ChipIdea USB controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/chipidea,usb2-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xu Yang <xu.yang_2@nxp.com>"
Properties and child nodes (properties) #
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
dr_mode — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Maximum number of items (maxItems): 1
#reset-cells — not listed as required here #
Exact value (const): 1
phy_type — 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
itc-setting — not listed as required here #
interrupt threshold control register control, the setting should be aligned with ITC bits at register USBCMD.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ahb-burst-config — not listed as required here #
it is vendor dependent, the required value should be aligned with AHBBRST at SBUSCFG, the range is from 0x0 to 0x7. This property is used to change AHB burst configuration, check the chipidea spec for meaning of each value. If this property is not existed, it will use the reset value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
tx-burst-size-dword — not listed as required here #
it is vendor dependent, the tx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from system memory to the USB bus, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 32
rx-burst-size-dword — not listed as required here #
it is vendor dependent, the rx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from the USB bus to system memory, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 32
extcon — not listed as required here #
Phandles to external connector devices. First phandle should point to external connector, which provide "USB" cable events, the second should point to external connector device, which provide "USB-HOST" cable events. If one of the external connector devices is not required, empty <0> phandle should be specified.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
vbus extcon
Item 2
id extcon
phy-clkgate-delay-us — not listed as required here #
The delay time (us) between putting the PHY into low power mode and gating the PHY clock.
non-zero-ttctrl-ttha — not listed as required here #
After setting this property, the value of register ttctrl.ttha will be 0x7f; if not, the value will be 0x0, this is the default value. It needs to be very carefully for setting this property, it is recommended that consult with your IC engineer before setting this value. On the most of chipidea platforms, the "usage_tt" flag at RTL is 0, so this property only affects siTD. If this property is not set, the max packet size is 1023 bytes, and if the total of packet size for previous transactions are more than 256 bytes, it can't accept any transactions within this frame. The use case is single transaction, but higher frame rate. If this property is set, the max packet size is 188 bytes, it can handle more transactions than above case, it can accept transactions until it considers the left room size within frame is less than 188 bytes, software needs to make sure it does not send more than 90% maximum_periodic_data_per_frame. The use case is multiple transactions, but less frame rate.
Value type (type): "boolean"
mux-controls — not listed as required here #
The mux control for toggling host/device output of this controller. It's expected that a mux state of 0 indicates device mode and a mux state of 1 indicates host mode.
Maximum number of items (maxItems): 1
mux-control-names — not listed as required here #
Exact value (const): "usb_switch"
pinctrl-names — not listed as required here #
Names for optional pin modes in "default", "host", "device". In case of HSIC-mode, "idle" and "active" pin modes are mandatory. In this case, the "idle" state needs to pull down the data and strobe pin and the "active" state needs to pull up the strobe pin.
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"idle"Item 2
Exact value (
const):"active"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"host"Item 3
Exact value (
const):"device"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"default"
pinctrl-0 — not listed as required here #
Maximum number of items (maxItems): 1
pinctrl-1 — not listed as required here #
Maximum number of items (maxItems): 1
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usb-phy"
vbus-supply — not listed as required here #
reference to the VBUS regulator.
usb-phy — not listed as required here #
phandle for the PHY device. Use "phys" instead.
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
port — not listed as required here #
Any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used.
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Property dependencies (dependencies) #
port — applies when this property is present #
Also requires: "usb-role-switch"
mux-controls — applies when this property is present #
Also requires: "mux-control-names"
Required in this object (required): "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-drd.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP USB2 ChipIdea USB controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/chipidea,usb2-imx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xu Yang <xu.yang_2@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx23-usb","fsl,imx25-usb","fsl,imx28-usb","fsl,imx35-usb","fsl,imx50-usb","fsl,imx51-usb","fsl,imx53-usb","fsl,imx6q-usb","fsl,imx6sl-usb","fsl,imx6sx-usb","fsl,imx6ul-usb","fsl,imx7d-usb","fsl,vf610-usb"Item 2
Exact value (
const):"fsl,imx27-usb"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx7ulp-usb"Item 3
Exact value (
const):"fsl,imx6ul-usb"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8mm-usb","fsl,imx8mn-usb","fsl,imx93-usb","fsl,imx95-usb"Item 2
Exact value (
const):"fsl,imx7d-usb"Item 3
Exact value (
const):"fsl,imx27-usb"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6ul-usb"Item 3
Exact value (
const):"fsl,imx27-usb"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB controller interrupt or combine USB controller and wakeup interrupts.
Item 2
Wakeup interrupt
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
fsl,usbmisc — not listed as required here #
Phandler of non-core register device, with one argument that indicate usb controller index
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to usbmisc node
Item 2
index of usb controller
disable-over-current — not listed as required here #
Value type (type): "boolean"
disable over current detect
over-current-active-low — not listed as required here #
Value type (type): "boolean"
over current signal polarity is active low
over-current-active-high — not listed as required here #
Value type (type): "boolean"
Over current signal polarity is active high. It's recommended to specify the over current polarity.
power-active-high — not listed as required here #
Value type (type): "boolean"
power signal polarity is active high
external-vbus-divider — not listed as required here #
Value type (type): "boolean"
enables off-chip resistor divider for Vbus
samsung,picophy-pre-emp-curr-control — not listed as required here #
HS Transmitter Pre-Emphasis Current Control. This signal controls the amount of current sourced to the USB_OTG*_DP and USB_OTG*_DN pins after a J-to-K or K-to-J transition. The range is from 0x0 to 0x3, the default value is 0x1. Details can refer to TXPREEMPAMPTUNE0 bits of USBNC_n_PHY_CFG1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
samsung,picophy-dc-vol-level-adjust — not listed as required here #
HS DC Voltage Level Adjustment. Adjust the high-speed transmitter DC level voltage. The range is from 0x0 to 0xf, the default value is 0x3. Details can refer to TXVREFTUNE0 bits of USBNC_n_PHY_CFG1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
fsl,picophy-rise-fall-time-adjust — not listed as required here #
HS Transmitter Rise/Fall Time Adjustment. Adjust the rise/fall times of the high-speed transmitter waveform. It has no unit. The rise/fall time will be increased or decreased by a certain percentage relative to design default time. (0:-10%; 1:design default; 2:+15%; 3:+20%) Details can refer to TXRISETUNE0 bit of USBNC_n_PHY_CFG1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
Default value (default): 1
fsl,usbphy — not listed as required here #
phandle of usb phy that connects to the port. Use "phys" instead.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Deprecated (deprecated): true
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):chipidea,usb2-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
phy_type— required hereExact value (
const):"hsic"When the condition matches (
then) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"idle"Item 2
Exact value (
const):"active"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"fsl,imx27-usb"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ipg"Item 2
Exact value (
const):"ahb"Item 3
Exact value (
const):"per"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ipg"Item 2
Exact value (
const):"ahb"Item 3
Exact value (
const):"per"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usb_ctrl_root"Item 2
Exact value (
const):"usb_wakeup"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fsl,imx7d-usb"Item 2
Exact value (
const):"fsl,imx27-usb"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required here
false— Not permitted by this property rule.
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx23-usb","fsl,imx28-usb","fsl,imx50-usb","fsl,imx51-usb","fsl,imx53-usb","fsl,imx6q-usb","fsl,imx6sl-usb","fsl,imx6sx-usb","fsl,imx6ul-usb","fsl,imx8mm-usb","fsl,imx8mn-usb","fsl,vf610-usb"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required here
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx7d-clock.h>
usb@30b10000 {
compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
reg = <0x30b10000 0x200>;
interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX7D_USB_CTRL_CLK>;
fsl,usbphy = <&usbphynop1>;
fsl,usbmisc = <&usbmisc1 0>;
phy-clkgate-delay-us = <400>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx6qdl-clock.h>
usb@2184400 {
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
reg = <0x02184400 0x200>;
interrupts = <0 41 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_USBOH3>;
fsl,usbphy = <&usbphynop1>;
fsl,usbmisc = <&usbmisc 2>;
phy_type = "hsic";
dr_mode = "host";
ahb-burst-config = <0x0>;
tx-burst-size-dword = <0x10>;
rx-burst-size-dword = <0x10>;
pinctrl-names = "idle", "active";
pinctrl-0 = <&pinctrl_usbh2_idle>;
pinctrl-1 = <&pinctrl_usbh2_active>;
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usb424,9730";
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 159: imx27 Soc needs three clocks
Line 174: imx25 and imx35 Soc need three clocks
Line 192: imx93 Soc needs two clocks
Line 210: imx7d Soc need one clock
Line 223: other Soc need one clock
Line 247: imx95 soc use two interrupts
Line 280: Example for HSIC:
USB2 ChipIdea USB controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ci-hdrc-usb2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xu Yang <xu.yang_2@nxp.com>", "Peng Fan <peng.fan@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"chipidea,usb2","lsi,zevio-usb","nuvoton,npcm750-udc","nvidia,tegra20-ehci","nvidia,tegra20-udc","nvidia,tegra30-ehci","nvidia,tegra30-udc","nvidia,tegra114-udc","nvidia,tegra124-udc","nxp,s32g2-usb","qcom,ci-hdrc"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nvidia,tegra114-ehci","nvidia,tegra124-ehci","nvidia,tegra210-ehci"Item 2
Exact value (
const):"nvidia,tegra30-ehci"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"xlnx,zynq-usb-2.20a"Item 2
Exact value (
const):"chipidea,usb2"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nuvoton,npcm750-udc"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,s32g2-usb"
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
operating-points-v2 — not listed as required here #
A phandle to the OPP table containing the performance states.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phy-select — not listed as required here #
Phandler of TCSR node with two argument that indicate register offset, and phy index
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
phandle to TCSR node
Item 2
register offset
Item 3
phy index
nvidia,phy — not listed as required here #
phandle of usb phy that connects to the port. Use "phys" instead.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Deprecated (deprecated): true
nvidia,needs-double-reset — not listed as required here #
Indicates double reset or not.
Value type (type): "boolean"
Deprecated (deprecated): true
ulpi — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^phy(-[0-9])?$ — name matches this regular expression
The phy child node for Qcom chips.
Value type (type): "object"
Shared schema rule ($ref): /schemas/phy/qcom,usb-hs-phy.yaml
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):chipidea,usb2-common.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-hcd.yaml#
Rule 3 #
Shared schema rule (
$ref):usb-drd.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/berlin2.h>
usb@f7ed0000 {
compatible = "chipidea,usb2";
reg = <0xf7ed0000 0x10000>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&chip CLKID_USB0>;
phys = <&usb_phy0>;
phy-names = "usb-phy";
vbus-supply = <®_usb0_vbus>;
itc-setting = <0x4>; /* 4 micro-frames */
/* Incremental burst of unspecified length */
ahb-burst-config = <0x0>;
tx-burst-size-dword = <0x10>; /* 64 bytes */
rx-burst-size-dword = <0x10>;
extcon = <0>, <&usb_id>;
phy-clkgate-delay-us = <400>;
mux-controls = <&usb_switch>;
mux-control-names = "usb_switch";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cypress cypd4226 Type-C Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/cypress,cypd4226.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wayne Chang <waynec@nvidia.com>"
The Cypress cypd4226 is a dual Type-C controller that is controlled via an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cypress,cypd4226"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Exact value (const): 8
interrupts — required here #
Array item rules (items) #
Item 1
cypd4226 host interrupt
firmware-name — not listed as required here #
Allowed values (enum): "nvidia,gpu", "nvidia,jetson-agx-xavier"
The name of the CCGx firmware built for product series. should be set one of following: - "nvidia,gpu" for the NVIDIA RTX product series - "nvidia,jetson-agx-xavier" for the NVIDIA Jetson product series
Properties matching a name pattern (patternProperties) #
^connector@[01]$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "interrupts"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec@8 {
compatible = "cypress,cypd4226";
reg = <0x08>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
firmware-name = "nvidia,jetson-agx-xavier";
#address-cells = <1>;
#size-cells = <0>;
connector@0 {
compatible = "usb-c-connector";
reg = <0>;
label = "USB-C";
data-role = "dual";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&usb_role_switch0>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Cypress HX3 USB 3.0 hub controller family
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/cypress,hx3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Benjamin Bara <benjamin.bara@skidata.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"usb4b4,6504"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"usb4b4,6502","usb4b4,6503","usb4b4,6507","usb4b4,650a"Item 2
Exact value (
const):"usb4b4,6506"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Array item rules (items) #
Item 1
GPIO specifier for RESETN pin.
vdd-supply — required here #
1V2 power supply (VDD_EFUSE, AVDD12, DVDD12).
vdd2-supply — required here #
3V3 power supply (AVDD33, VDD_IO).
peer-hub — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
Required in this object (required): "compatible", "reg", "peer-hub", "vdd-supply", "vdd2-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb4b4,6504";
reg = <1>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
vdd-supply = <®_1v2_usb>;
vdd2-supply = <®_3v3_usb>;
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb4b4,6506";
reg = <2>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
vdd-supply = <®_1v2_usb>;
vdd2-supply = <®_3v3_usb>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
DesignWare HS OTG USB 2.0 controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/dwc2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-hcd.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"brcm,bcm2835-usb"
Rule 2
Exact value (
const):"hisilicon,hi6220-usb"
Rule 3
Exact value (
const):"ingenic,jz4775-otg"
Rule 4
Exact value (
const):"ingenic,jz4780-otg"
Rule 5
Exact value (
const):"ingenic,x1000-otg"
Rule 6
Exact value (
const):"ingenic,x1600-otg"
Rule 7
Exact value (
const):"ingenic,x1700-otg"
Rule 8
Exact value (
const):"ingenic,x1830-otg"
Rule 9
Exact value (
const):"ingenic,x2000-otg"
Rule 10
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3066-usb"Item 2
Exact value (
const):"snps,dwc2"
Rule 11
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-usb","rockchip,rk3036-usb","rockchip,rk3128-usb","rockchip,rk3188-usb","rockchip,rk3228-usb","rockchip,rk3288-usb","rockchip,rk3308-usb","rockchip,rk3328-usb","rockchip,rk3368-usb","rockchip,rv1108-usb"Item 2
Exact value (
const):"rockchip,rk3066-usb"Item 3
Exact value (
const):"snps,dwc2"
Rule 12
Exact value (
const):"lantiq,arx100-usb"
Rule 13
Exact value (
const):"lantiq,ase-usb"
Rule 14
Exact value (
const):"lantiq,danube-usb"
Rule 15
Exact value (
const):"lantiq,xrx200-usb"
Rule 16
Exact value (
const):"lantiq,xrx300-usb"
Rule 17
Array item rules (
items)Item 1
Allowed values (
enum):"amlogic,meson8-usb","amlogic,meson8b-usb","amlogic,meson-gxbb-usb","amlogic,meson-g12a-usb","amlogic,meson-a1-usb","intel,socfpga-agilex-hsotg"Item 2
Exact value (
const):"snps,dwc2"
Rule 18
Exact value (
const):"amcc,dwc-otg"
Rule 19
Exact value (
const):"apm,apm82181-dwc-otg"
Rule 20
Exact value (
const):"snps,dwc2"
Rule 21
Exact value (
const):"sophgo,cv1800b-usb"
Rule 22
Exact value (
const):"st,stm32f4x9-fsotg"
Rule 23
Exact value (
const):"st,stm32f4x9-hsotg"
Rule 24
Exact value (
const):"st,stm32f7-hsotg"
Rule 25
Exact value (
const):"st,stm32mp15-fsotg"
Rule 26
Array item rules (
items)Item 1
Exact value (
const):"st,stm32mp15-hsotg"Item 2
Exact value (
const):"snps,dwc2"
Rule 27
Exact value (
const):"samsung,s3c6400-hsotg"
Rule 28
Exact value (
const):"intel,socfpga-agilex-hsotg"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"otg"
Item 2
Exact value (
const):"utmi"
Minimum number of items (minItems): 1
disable-over-current — not listed as required here #
Value type (type): "boolean"
whether to disable detection of over-current condition.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Array item rules (items) #
Item 1
common reset
Item 2
ecc reset
Minimum number of items (minItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dwc2"
Item 2
Exact value (
const):"dwc2-ecc"
Minimum number of items (minItems): 1
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usb2-phy"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
vbus-supply — not listed as required here #
reference to the VBUS regulator. Depending on the current mode this is enabled (in "host" mode") or disabled (in "peripheral" mode). The regulator is updated if the controller is configured in "otg" mode and the status changes between "host" and "peripheral".
vusb_d-supply — not listed as required here #
phandle to voltage regulator of digital section,
vusb_a-supply — not listed as required here #
phandle to voltage regulator of analog section.
usb33d-supply — not listed as required here #
reference to the VBUS and ID sensing comparators supply, in order to perform OTG operation, used on STM32MP15 SoCs.
dr_mode — not listed as required here #
true — No constraints added by this property rule.
otg-rev — not listed as required here #
true — No constraints added by this property rule.
hnp-disable — not listed as required here #
true — No constraints added by this property rule.
srp-disable — not listed as required here #
true — No constraints added by this property rule.
usb-role-switch — not listed as required here #
true — No constraints added by this property rule.
role-switch-default-mode — not listed as required here #
true — No constraints added by this property rule.
g-rx-fifo-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
size of rx fifo size in gadget mode.
g-np-tx-fifo-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
size of non-periodic tx fifo size in gadget mode.
g-tx-fifo-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
size of periodic tx fifo per endpoint (except ep0) in gadget mode.
snps,need-phy-for-wake — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present indicates that the phy needs to be left on for remote wakeup during suspend.
snps,reset-phy-on-wake — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present indicates that we need to reset the PHY when we detect a wakeup. This is due to a hardware errata.
port — not listed as required here #
Any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used.
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
tpl-support — not listed as required here #
true — No constraints added by this property rule.
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Property dependencies (dependencies) #
port — applies when this property is present #
Also requires: "usb-role-switch"
role-switch-default-mode — applies when this property is present #
Also requires: "usb-role-switch"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@101c0000 {
compatible = "rockchip,rk3066-usb", "snps,dwc2";
reg = <0x10180000 0x40000>;
interrupts = <18>;
clocks = <&usb_otg_ahb_clk>;
clock-names = "otg";
phys = <&usbphy>;
phy-names = "usb2-phy";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Xilinx SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/dwc3-xilinx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"xlnx,zynqmp-dwc3","xlnx,versal-dwc3"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
#size-cells — required here #
ranges — required here #
true — No constraints added by this property rule.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
power-domains — required here #
specifies a phandle to PM domain provider node
Maximum number of items (maxItems): 1
clocks — required here #
A list of phandle and clock-specifier pairs for the clocks listed in clock-names.
Array item rules (items) #
Item 1
Master/Core clock, has to be >= 125 MHz for SS operation and >= 60MHz for HS operation.
Item 2
Clock source to core during PHY power down.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus_clk"
Item 2
Exact value (
const):"ref_clk"
resets — required here #
Minimum number of items (minItems): 1
A list of phandles for resets listed in reset-names.
Array item rules (items) #
Item 1
USB core reset
Item 2
USB hibernation reset
Item 3
USB APB reset
reset-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"usb_crst"
Item 2
Exact value (
const):"usb_hibrst"
Item 3
Exact value (
const):"usb_apbrst"
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
reset-gpios — not listed as required here #
GPIO used for the reset ulpi-phy
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "power-domains", "clocks", "clock-names", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
reset-names— not listed as required hereMaximum number of items (
maxItems):1When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):3
reset-names— not listed as required hereMinimum number of items (
minItems):3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/dma/xlnx-zynqmp-dpdma.h>
#include <dt-bindings/power/xlnx-zynqmp-power.h>
#include <dt-bindings/reset/xlnx-zynqmp-resets.h>
#include <dt-bindings/reset/xlnx-zynqmp-resets.h>
#include <dt-bindings/phy/phy.h>
axi {
#address-cells = <2>;
#size-cells = <2>;
usb@0 {
#address-cells = <0x2>;
#size-cells = <0x2>;
compatible = "xlnx,zynqmp-dwc3";
reg = <0x0 0xff9d0000 0x0 0x100>;
clocks = <&zynqmp_clk 32>, <&zynqmp_clk 34>;
clock-names = "bus_clk", "ref_clk";
power-domains = <&zynqmp_firmware PD_USB_0>;
resets = <&zynqmp_reset ZYNQMP_RESET_USB1_CORERESET>,
<&zynqmp_reset ZYNQMP_RESET_USB1_HIBERRESET>,
<&zynqmp_reset ZYNQMP_RESET_USB1_APB>;
reset-names = "usb_crst", "usb_hibrst", "usb_apbrst";
phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
phy-names = "usb3-phy";
ranges;
usb@fe200000 {
compatible = "snps,dwc3";
reg = <0x0 0xfe200000 0x0 0x40000>;
interrupt-names = "host", "otg";
interrupts = <0 65 4>, <0 69 4>;
dr_mode = "host";
dma-coherent;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 82: Required child node:
ESWIN EIC7700 SoC Usb Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/eswin,eic7700-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wei Yang <yangwei1@eswincomputing.com>", "Senchuan Zhang <zhangsenchuan@eswincomputing.com>", "Hang Cao <caohang@eswincomputing.com>"
The Usb controller on EIC7700 SoC.
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 #
Exact value (const): "eswin,eic7700-dwc3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"peripheral"
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"aclk"
Item 2
Exact value (
const):"cfg"
Item 3
Exact value (
const):"usb_en"
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"vaux"
Item 2
Exact value (
const):"usb_rst"
eswin,hsp-sp-csr — required here #
HSP CSR is to control and get status of different high-speed peripherals (such as Ethernet, USB, SATA, etc.) via register, which can tune board-level's parameters of PHY, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to HSP Register Controller hsp_sp_csr node.
Item 2
USB bus register offset.
Item 3
AXI low power register offset.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets", "reset-names", "eswin,hsp-sp-csr"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@50480000 {
compatible = "eswin,eic7700-dwc3";
reg = <0x50480000 0x10000>;
clocks = <&clock 135>,
<&clock 136>,
<&hspcrg 18>;
clock-names = "aclk", "cfg", "usb_en";
interrupt-parent = <&plic>;
interrupts = <85>;
interrupt-names = "peripheral";
resets = <&reset 84>, <&hspcrg 2>;
reset-names = "vaux", "usb_rst";
dr_mode = "peripheral";
maximum-speed = "high-speed";
phy_type = "utmi";
eswin,hsp-sp-csr = <&hsp_sp_csr 0x800 0x818>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Faraday Technology FOTG200 series HS OTG USB 2.0 controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/faraday,fotg210.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-hcd.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"faraday,fotg200"
Rule 2
Exact value (
const):"faraday,fotg210"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"cortina,gemini-usb"Item 2
Exact value (
const):"faraday,fotg200"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"PCLK"
resets — not listed as required here #
Maximum number of items (maxItems): 1
syscon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
a phandle to the global Gemini system controller on Gemini systems
dr_mode — not listed as required here #
true — No constraints added by this property rule.
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usb2-phy"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/cortina,gemini-clock.h>
#include <dt-bindings/reset/cortina,gemini-reset.h>
usb0: usb@68000000 {
compatible = "cortina,gemini-usb", "faraday,fotg200";
reg = <0x68000000 0x1000>;
interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon GEMINI_RESET_USB0>;
clocks = <&syscon GEMINI_CLK_GATE_USB0>;
clock-names = "PCLK";
syscon = <&syscon>;
dr_mode = "host";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2022 Linaro Ltd.
ON Semiconductor Analog Audio Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fcs,fsa4480.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fcs,fsa4480"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fcs,fsa4480"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
power supply (2.7V-5.5V)
mode-switch — not listed as required here #
true — No constraints added by this property rule.
orientation-switch — not listed as required here #
true — No constraints added by this property rule.
port — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
A port node to link the FSA4480 to a TypeC controller for the purpose of handling altmode muxing and orientation switching.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Specifies how the AUX+/- lines are connected to SBU1/2.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1Default AUX/SBU layout (FSA4480) - AUX+ connected to SBU2 - AUX- connected to SBU1 Default AUX/SBU layout (OCP96011) - AUX+ connected to SBU1 - AUX- connected to SBU2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):0Swapped AUX/SBU layout (FSA4480) - AUX+ connected to SBU1 - AUX- connected to SBU2 Swapped AUX/SBU layout (OCP96011) - AUX+ connected to SBU2 - AUX- connected to SBU1
Required in this object (required): "compatible", "reg", "port"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c13 {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@42 {
compatible = "fcs,fsa4480";
reg = <0x42>;
interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
vcc-supply = <&vreg_bob>;
mode-switch;
orientation-switch;
port {
fsa4480_ept: endpoint {
remote-endpoint = <&typec_controller>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Fairchild FUSB302 Type-C Port controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fcs,fusb302.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fcs,fusb302"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vbus-supply — required here #
VBUS power supply
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vbus-supply", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/usb/pd.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-portc@54 {
compatible = "fcs,fusb302";
reg = <0x54>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
vbus-supply = <&vbus_typec>;
connector {
compatible = "usb-c-connector";
label = "USB-C";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_VAR(3000, 12000, 3000)
PDO_PPS_APDO(3000, 11000, 3000)>;
op-sink-microwatt = <10000000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
NXP iMX8MP Soc USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Li Jun <jun.li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx95-dwc3"Item 2
Exact value (
const):"fsl,imx8mp-dwc3"
Rule 2
Exact value (
const):"fsl,imx8mp-dwc3"
reg — required here #
Array item rules (items) #
Item 1
Address and length of the register set for HSIO Block Control
Item 2
Address and length of the register set for the wrapper of dwc3 core on the SOC.
#address-cells — required here #
#size-cells — required here #
dma-ranges — not listed as required here #
See section 2.3.9 of the DeviceTree Specification.
ranges — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
The interrupt that is asserted when a wakeup event is received.
clocks — required here #
A list of phandle and clock-specifier pairs for the clocks listed in clock-names.
Array item rules (items) #
Item 1
system hsio root clock.
Item 2
suspend clock, used for usb wakeup logic.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hsio"
Item 2
Exact value (
const):"suspend"
fsl,permanently-attached — not listed as required here #
Value type (type): "boolean"
Indicates if the device attached to a downstream port is permanently attached.
fsl,disable-port-power-control — not listed as required here #
Value type (type): "boolean"
Indicates whether the host controller implementation includes port power control. Defines Bit 3 in capability register (HCCPARAMS).
fsl,over-current-active-low — not listed as required here #
Value type (type): "boolean"
Over current signal polarity is active low.
fsl,power-active-low — not listed as required here #
Value type (type): "boolean"
Power pad (PWR) polarity is active low.
power-domains — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "interrupts", "power-domains"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"fsl,imx8mp-dwc3"When the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/power/imx8mp-power.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb3_0: usb@32f10100 {
compatible = "fsl,imx8mp-dwc3";
reg = <0x32f10100 0x8>,
<0x381f0000 0x20>;
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
<&clk IMX8MP_CLK_USB_ROOT>;
clock-names = "hsio", "suspend";
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>;
#address-cells = <1>;
#size-cells = <1>;
dma-ranges = <0x40000000 0x40000000 0xc0000000>;
ranges;
usb@38100000 {
compatible = "snps,dwc3";
reg = <0x38100000 0x10000>;
clocks = <&clk IMX8MP_CLK_HSIO_AXI>,
<&clk IMX8MP_CLK_USB_CORE_REF>,
<&clk IMX8MP_CLK_USB_ROOT>;
clock-names = "bus_early", "ref", "suspend";
assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>;
assigned-clock-rates = <500000000>;
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
phys = <&usb3_phy0>, <&usb3_phy0>;
phy-names = "usb2-phy", "usb3-phy";
snps,dis-u2-freeclk-exists-quirk;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 NXP
Line 81: Required child node:
NXP iMX8MQ Soc USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,imx8mq-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Li Jun <jun.li@nxp.com>", "Peng Fan <peng.fan@nxp.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fsl,imx8mq-dwc3"
Item 2
Exact value (
const):"snps,dwc3"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8mq-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb_dwc3_1: usb@38200000 {
compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
reg = <0x38200000 0x10000>;
clocks = <&clk IMX8MQ_CLK_USB2_CTRL_ROOT>,
<&clk IMX8MQ_CLK_USB_CORE_REF>,
<&clk IMX8MQ_CLK_32K>;
clock-names = "bus_early", "ref", "suspend";
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
phys = <&usb3_phy1>, <&usb3_phy1>;
phy-names = "usb2-phy", "usb3-phy";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP iMX8QM Soc USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,imx8qm-cdns3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,imx8qm-usb3"
reg — required here #
Array item rules (items) #
Item 1
Register set for iMX USB3 Platform Control
#address-cells — required here #
#size-cells — required here #
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Array item rules (items) #
Item 1
Standby clock. Used during ultra low power states.
Item 2
USB bus clock for usb3 controller.
Item 3
AXI clock for AXI interface.
Item 4
ipg clock for register access.
Item 5
Core clock for usb3 controller.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"lpm"
Item 2
Exact value (
const):"bus"
Item 3
Exact value (
const):"aclk"
Item 4
Exact value (
const):"ipg"
Item 5
Exact value (
const):"core"
power-domains — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): cdns,usb3.yaml#
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "power-domains"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8-lpcg.h>
#include <dt-bindings/firmware/imx/rsrc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@5b110000 {
compatible = "fsl,imx8qm-usb3";
reg = <0x5b110000 0x10000>;
ranges;
clocks = <&usb3_lpcg IMX_LPCG_CLK_1>,
<&usb3_lpcg IMX_LPCG_CLK_0>,
<&usb3_lpcg IMX_LPCG_CLK_7>,
<&usb3_lpcg IMX_LPCG_CLK_4>,
<&usb3_lpcg IMX_LPCG_CLK_5>;
clock-names = "lpm", "bus", "aclk", "ipg", "core";
assigned-clocks = <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MST_BUS>;
assigned-clock-rates = <250000000>;
power-domains = <&pd IMX_SC_R_USB_2>;
#address-cells = <1>;
#size-cells = <1>;
usb@5b120000 {
compatible = "cdns,usb3";
reg = <0x5b120000 0x10000>, /* memory area for OTG/DRD registers */
<0x5b130000 0x10000>, /* memory area for HOST registers */
<0x5b140000 0x10000>; /* memory area for DEVICE registers */
reg-names = "otg", "xhci", "dev";
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host", "peripheral", "otg", "wakeup";
phys = <&usb3_phy>;
phy-names = "cdns3,usb3-phy";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 NXP
Line 48: Required child node:
Freescale layerscape SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,ls1028a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,ls1012a-dwc3","fsl,ls1043a-dwc3","fsl,ls1046a-dwc3","fsl,ls1088a-dwc3","fsl,ls208xa-dwc3","fsl,lx2160a-dwc3"Item 2
Exact value (
const):"fsl,ls1028a-dwc3"
Rule 2
Exact value (
const):"fsl,ls1028a-dwc3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3-common.yaml#
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@fe800000 {
compatible = "fsl,ls1028a-dwc3";
reg = <0xfe800000 0x100000>;
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale SOC USB controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,usb2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
The device node for a USB controller that is part of a Freescale SOC is as described in the document "Open Firmware Recommended Practice: Universal Serial Bus" with the following modifications and additions.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl-usb2-dr-v2.2","fsl-usb2-dr-v2.5"Item 2
Exact value (
const):"fsl-usb2-dr"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
phy_type — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "ulpi", "serial", "utmi", "utmi_wide"
port0 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates port0 is connected for fsl-usb2-mph compatible controllers.
port1 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates port1 is connected for "fsl-usb2-mph" compatible controllers.
fsl,invert-drvvbus — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
for MPC5121 USB0 only. Indicates the port power polarity of internal PHY signal DRVVBUS is inverted.
fsl,invert-pwr-fault — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
for MPC5121 USB0 only. Indicates the PWR_FAULT signal polarity is inverted.
Required in this object (required): "compatible", "reg", "interrupts", "phy_type"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
usb@22000 {
compatible = "fsl-usb2-mph";
reg = <22000 1000>;
interrupts = <27 IRQ_TYPE_EDGE_RISING>;
phy_type = "ulpi";
port0;
port1;
};
#include <dt-bindings/interrupt-controller/irq.h>
usb@23000 {
compatible = "fsl-usb2-dr";
reg = <23000 1000>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
dr_mode = "otg";
phy_type = "ulpi";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale i.MX wrapper module for Chipidea USB2 controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,usbmisc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xu Yang <xu.yang_2@nxp.com>", "Peng Fan <peng.fan@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx25-usbmisc","fsl,imx27-usbmisc","fsl,imx35-usbmisc","fsl,imx51-usbmisc","fsl,imx53-usbmisc","fsl,imx6q-usbmisc","fsl,vf610-usbmisc","nxp,s32g2-usbmisc","nxp,s32g3-usbmisc"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6ul-usbmisc","fsl,imx6sl-usbmisc","fsl,imx6sx-usbmisc","fsl,imx7d-usbmisc"Item 2
Exact value (
const):"fsl,imx6q-usbmisc"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx7ulp-usbmisc","fsl,imx8mm-usbmisc","fsl,imx8mn-usbmisc","fsl,imx8ulp-usbmisc","fsl,imx94-usbmisc","fsl,imx95-usbmisc"Item 2
Exact value (
const):"fsl,imx7d-usbmisc"Item 3
Exact value (
const):"fsl,imx6q-usbmisc"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx6sll-usbmisc"Item 2
Exact value (
const):"fsl,imx6ul-usbmisc"Item 3
Exact value (
const):"fsl,imx6q-usbmisc"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Base and length of the Wrapper module register
Item 2
Base and length of the HSIO Block Control register
#index-cells — not listed as required here #
Exact value (const): 1
Cells used to describe usb controller index.
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usbmisc@2184800 {
compatible = "fsl,imx6q-usbmisc";
reg = <0x02184800 0x200>;
#index-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 67: imx95 soc needs use HSIO Block Control
USB EHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/generic-ehci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"ibm,usb-ehci-440epx"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun4i-a10-ehci","allwinner,sun50i-a100-ehci","allwinner,sun50i-a64-ehci","allwinner,sun50i-h6-ehci","allwinner,sun50i-h616-ehci","allwinner,sun55i-a523-ehci","allwinner,sun5i-a13-ehci","allwinner,sun6i-a31-ehci","allwinner,sun7i-a20-ehci","allwinner,sun8i-a23-ehci","allwinner,sun8i-a83t-ehci","allwinner,sun8i-h3-ehci","allwinner,sun8i-r40-ehci","allwinner,sun8i-v3s-ehci","allwinner,sun9i-a80-ehci","allwinner,sun20i-d1-ehci","aspeed,ast2400-ehci","aspeed,ast2500-ehci","aspeed,ast2600-ehci","aspeed,ast2700-ehci","brcm,bcm3384-ehci","brcm,bcm63268-ehci","brcm,bcm6328-ehci","brcm,bcm6358-ehci","brcm,bcm6362-ehci","brcm,bcm6368-ehci","brcm,bcm7125-ehci","brcm,bcm7346-ehci","brcm,bcm7358-ehci","brcm,bcm7360-ehci","brcm,bcm7362-ehci","brcm,bcm7420-ehci","brcm,bcm7425-ehci","brcm,bcm7435-ehci","hpe,gxp-ehci","ibm,476gtr-ehci","nxp,lpc1850-ehci","qca,ar7100-ehci","rockchip,rk3588-ehci","snps,hsdk-v1.0-ehci","socionext,uniphier-ehci"Item 2
Exact value (
const):"generic-ehci"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"atmel,at91sam9g45-ehci","cavium,octeon-6335-ehci","ibm,usb-ehci-440epx","ibm,usb-ehci-460ex","nintendo,hollywood-usb-ehci","st,spear600-ehci"Item 2
Exact value (
const):"usb-ehci"
Rule 3
Allowed values (
enum):"generic-ehci","marvell,ac5-ehci","marvell,armada-3700-ehci","marvell,orion-ehci","nuvoton,npcm750-ehci","nuvoton,npcm845-ehci","ti,ehci-omap","usb-ehci","via,vt8500-ehci"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
In case the Renesas R-Car Gen3 SoCs:
- if a host only channel: first clock should be host.
- if a USB DRD channel: first clock should be host and second
one should be peripheral
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian descriptors and big endian registers.
big-endian-desc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian descriptors.
big-endian-regs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian registers.
has-transaction-translator — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag if EHCI has a Transaction Translator built into the root hub.
needs-reset-on-resume — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag to force EHCI reset after resume.
spurious-oc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag to indicate that the hardware sometimes turns on the OC bit when an over-current isn't actually present.
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
phy-names — not listed as required here #
Exact value (const): "usb"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
dr_mode — not listed as required here #
Allowed values (enum): "host", "otg"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@e0000300 {
compatible = "ibm,usb-ehci-440epx", "usb-ehci";
interrupt-parent = <&UIC0>;
interrupts = <0x1a 4>;
reg = <0xe0000300 90>, <0xe0000390 70>;
big-endian;
};
ehci0: usb@1c14000 {
compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
reg = <0x01c14000 0x100>;
interrupts = <39>;
clocks = <&ahb_gates 1>;
phys = <&usbphy 1>;
phy-names = "usb";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
USB OHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/generic-ohci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun4i-a10-ohci","allwinner,sun50i-a100-ohci","allwinner,sun50i-a64-ohci","allwinner,sun50i-h6-ohci","allwinner,sun50i-h616-ohci","allwinner,sun55i-a523-ohci","allwinner,sun5i-a13-ohci","allwinner,sun6i-a31-ohci","allwinner,sun7i-a20-ohci","allwinner,sun8i-a23-ohci","allwinner,sun8i-a83t-ohci","allwinner,sun8i-h3-ohci","allwinner,sun8i-r40-ohci","allwinner,sun8i-v3s-ohci","allwinner,sun9i-a80-ohci","allwinner,sun20i-d1-ohci","brcm,bcm3384-ohci","brcm,bcm63268-ohci","brcm,bcm6328-ohci","brcm,bcm6358-ohci","brcm,bcm6362-ohci","brcm,bcm6368-ohci","brcm,bcm7125-ohci","brcm,bcm7346-ohci","brcm,bcm7358-ohci","brcm,bcm7360-ohci","brcm,bcm7362-ohci","brcm,bcm7420-ohci","brcm,bcm7425-ohci","brcm,bcm7435-ohci","hpe,gxp-ohci","ibm,476gtr-ohci","ingenic,jz4740-ohci","rockchip,rk3588-ohci","snps,hsdk-v1.0-ohci"Item 2
Exact value (
const):"generic-ohci"
Rule 2
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"cavium,octeon-6335-ohci","nintendo,hollywood-usb-ohci","nxp,ohci-nxp","st,spear600-ohci"Item 2
Exact value (
const):"usb-ohci"
reg — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
In case the Renesas R-Car Gen3 SoCs:
- if a host only channel: first clock should be host.
- if a USB DRD channel: first clock should be host and second
one should be peripheral
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian descriptors and big endian registers.
big-endian-desc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian descriptors.
big-endian-regs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set this flag for HCDs with big endian registers.
remote-wakeup-connected — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Remote wakeup is wired on the platform.
no-big-frame-no — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set if frame_no lives in bits [15:0] of HCCA
num-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Overrides the detected port count
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
phy-names — not listed as required here #
Exact value (const): "usb"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
dr_mode — not listed as required here #
Allowed values (enum): "host", "otg"
transceiver — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The associated ISP1301 device. Necessary for the UDC controller for connecting to the USB physical layer.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nxp,ohci-nxp"When the condition matches (
then) #Properties and child nodes (
properties)
transceiver— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3588-ohci"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):3
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ohci0: usb@1c14400 {
compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
reg = <0x01c14400 0x100>;
interrupts = <64>;
clocks = <&usb_clk 6>, <&ahb_gates 2>;
phys = <&usbphy 1>;
phy-names = "usb";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
USB xHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/generic-xhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mathias Nyman <mathias.nyman@intel.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Generic xHCI device
Exact value (
const):"generic-xhci"
Rule 2
Armada 375/38x SoCs
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,armada-375-xhci","marvell,armada-380-xhci"
Rule 3
Armada 37xx/8k SoCs
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,armada3700-xhci","marvell,armada-8k-xhci"Item 2
Exact value (
const):"generic-xhci"
Rule 4
Broadcom SoCs with power domains
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,xhci-brcm-v2"
Rule 5
Broadcom STB SoCs with xHCI
Allowed values (
enum):"brcm,xhci-brcm-v2","brcm,bcm7445-xhci"
Rule 6
Generic xHCI device
Exact value (
const):"xhci-platform"Deprecated (
deprecated):true
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
dr_mode — not listed as required here #
Allowed values (enum): "host", "otg"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"brcm,bcm2711-xhci"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
usb@f0931000 {
compatible = "generic-xhci";
reg = <0xf0931000 0x8c8>;
interrupts = <0x0 0x4e 0x0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Genesys Logic USB hub controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/genesys,gl850g.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Icenowy Zheng <uwu@icenowy.me>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb5e3,608", "usb5e3,610", "usb5e3,620", "usb5e3,626"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
GPIO controlling the RESET# pin.
vdd-supply — not listed as required here #
The regulator that provides 3.3V or 5.0V core power to the hub.
peer-hub — not listed as required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties and child nodes (properties)
reg — not listed as required here
Minimum value (minimum): 1
Maximum value (maximum): 4
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hub.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
peer-hub— not listed as required here
false— Not permitted by this property rule.
vdd-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
peer-hub— not listed as required here
true— No constraints added by this property rule.
vdd-supply— not listed as required here
true— No constraints added by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
hub: hub@1 {
compatible = "usb5e3,608";
reg = <1>;
reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
usb {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb5e3,610";
reg = <1>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
vdd-supply = <&vcc_5v>;
};
/* 3.1 hub on port 4 */
hub_3_0: hub@2 {
compatible = "usb5e3,620";
reg = <2>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
vdd-supply = <&vcc_5v>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Google Tensor Series G5 (Laguna) DWC3 USB SoC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/google,lga-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roy Luo <royluo@google.com>"
Describes the DWC3 USB controller block implemented on Google Tensor SoCs, starting with the G5 generation (laguna). Based on Synopsys DWC3 IP, the controller features Dual-Role Device single port with hibernation add-on.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,lga-dwc3"
reg — required here #
Array item rules (items) #
Item 1
Core DWC3 IP registers.
interrupts — required here #
Array item rules (items) #
Item 1
Core DWC3 interrupt.
Item 2
High speed power management event for remote wakeup.
Item 3
Super speed power management event for remote wakeup.
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"hs_pme"
Item 3
Exact value (
const):"ss_pme"
clocks — required here #
Array item rules (items) #
Item 1
Non-sticky module clock.
Item 2
Sticky module clock.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"non_sticky"
Item 2
Exact value (
const):"sticky"
resets — required here #
Array item rules (items) #
Item 1
Non-sticky module reset.
Item 2
Sticky module reset.
Item 3
DRD bus reset.
Item 4
Top-level reset.
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"non_sticky"
Item 2
Exact value (
const):"sticky"
Item 3
Exact value (
const):"drd_bus"
Item 4
Exact value (
const):"top"
power-domains — required here #
Array item rules (items) #
Item 1
Power switchable domain, the child of top domain. Turning it on puts the controller into full power state, turning it off puts the controller into power gated state.
Item 2
Top domain, the parent of power switchable domain. Turning it on puts the controller into power gated state, turning it off completely shuts off the controller.
power-domain-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"psw"
Item 2
Exact value (
const):"top"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
google,usb-cfg-csr — required here #
A phandle to a syscon node used to access the USB configuration registers. These registers are the top-level wrapper of the USB subsystem and provide control and status for the integrated USB controller and USB PHY.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to the syscon node.
Item 2
USB host controller configuration register offset.
Item 3
USB custom interrrupts control register offset.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "power-domains", "power-domain-names", "google,usb-cfg-csr"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
usb@c400000 {
compatible = "google,lga-dwc3";
reg = <0 0x0c400000 0 0xd060>;
interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 597 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 598 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "core", "hs_pme", "ss_pme";
clocks = <&hsion_usbc_non_sticky_clk>, <&hsion_usbc_sticky_clk>;
clock-names = "non_sticky", "sticky";
resets = <&hsion_resets_usbc_non_sticky>, <&hsion_resets_usbc_sticky>,
<&hsion_resets_usb_drd_bus>, <&hsion_resets_usb_top>;
reset-names = "non_sticky", "sticky", "drd_bus", "top";
power-domains = <&hsio_n_usb_psw>, <&hsio_n_usb>;
power-domain-names = "psw", "top";
phys = <&usb_phy 0>;
phy-names = "usb2-phy";
snps,quirk-frame-length-adjustment = <0x20>;
snps,gfladj-refclk-lpm-sel-quirk;
snps,incr-burst-type-adjustment = <4>;
google,usb-cfg-csr = <&usb_cfg_csr 0x0 0x20>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright (c) 2025, Google LLC
GPIO-based SBU mux
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
In USB Type-C applications the SBU lines needs to be connected, disconnected and swapped depending on the altmode and orientation. This binding describes a family of hardware solutions which switches between these modes using GPIO signals.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"nxp,cbdtu02043","onnn,fsusb42","onnn,fsusb43l10x","pericom,pi3usb102","ti,tmuxhs4212"
Item 2
Exact value (
const):"gpio-sbu-mux"
enable-gpios — not listed as required here #
Switch enable GPIO
select-gpios — required here #
Orientation select
vcc-supply — not listed as required here #
power supply
mode-switch — not listed as required here #
true — No constraints added by this property rule.
orientation-switch — required here #
true — No constraints added by this property rule.
port — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
A port node to link the SBU mux to a TypeC controller for the purpose of handling altmode muxing and orientation switching.
Required in this object (required): "compatible", "select-gpios", "orientation-switch", "port"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Rule 3 #
Condition (
if) #When the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
tcpm {
connector {
compatible = "usb-c-connector";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
tcpm_hs_out: endpoint {
remote-endpoint = <&usb_hs_phy_in>;
};
};
port@1 {
reg = <1>;
tcpm_ss_out: endpoint {
remote-endpoint = <&usb_ss_phy_in>;
};
};
port@2 {
reg = <2>;
tcpm_sbu_out: endpoint {
remote-endpoint = <&sbu_mux_in>;
};
};
};
};
};
sbu-mux {
compatible = "pericom,pi3usb102", "gpio-sbu-mux";
enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
mode-switch;
orientation-switch;
port {
sbu_mux_in: endpoint {
remote-endpoint = <&tcpm_sbu_out>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
HiSilicon Hi3798MV200 DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/hisilicon,hi3798mv200-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yang Xiwen <forbidden405@foxmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "hisilicon,hi3798mv200-dwc3"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Array item rules (items) #
Item 1
Controller bus clock
Item 2
Controller suspend clock
Item 3
Controller reference clock
Item 4
Controller gm clock
Item 5
Controller gs clock
Item 6
Controller utmi clock
Item 7
Controller pipe clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus"
Item 2
Exact value (
const):"suspend"
Item 3
Exact value (
const):"ref"
Item 4
Exact value (
const):"gm"
Item 5
Exact value (
const):"gs"
Item 6
Exact value (
const):"utmi"
Item 7
Exact value (
const):"pipe"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "soft"
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required in this object (required): "compatible", "ranges", "#address-cells", "#size-cells", "clocks", "clock-names", "resets", "reset-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb {
compatible = "hisilicon,hi3798mv200-dwc3";
ranges;
#address-cells = <1>;
#size-cells = <1>;
clocks = <&clk_bus>,
<&clk_suspend>,
<&clk_ref>,
<&clk_gm>,
<&clk_gs>,
<&clk_utmi>,
<&clk_pipe>;
clock-names = "bus", "suspend", "ref", "gm", "gs", "utmi", "pipe";
resets = <&crg 0xb0 12>;
reset-names = "soft";
usb@98a0000 {
compatible = "snps,dwc3";
reg = <0x98a0000 0x10000>;
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_bus>,
<&clk_suspend>,
<&clk_ref>;
clock-names = "bus_early", "suspend", "ref";
phys = <&usb2_phy1_port2>, <&combphy0 0>;
phy-names = "usb2-phy", "usb3-phy";
maximum-speed = "super-speed";
dr_mode = "host";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Ingenic JZ47xx USB IP
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ingenic,musb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^usb@.*"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"ingenic,jz4770-musb","ingenic,jz4740-musb"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ingenic,jz4725b-musb"Item 2
Exact value (
const):"ingenic,jz4740-musb"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"udc"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mc"
phys — required here #
Maximum number of items (maxItems): 1
usb-role-switch — not listed as required here #
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "phys"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
usb_phy: usb-phy {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
udc: usb@13040000 {
compatible = "ingenic,jz4740-musb";
reg = <0x13040000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <24>;
interrupt-names = "mc";
clocks = <&cgu JZ4740_CLK_UDC>;
clock-names = "udc";
phys = <&usb_phy>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intel IXP4xx SoC USB Device Controller (UDC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/intel,ixp4xx-udc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The IXP4xx SoCs has a full-speed USB Device Controller with 16 endpoints and a built-in transceiver.
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,ixp4xx-udc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
usb@c800b000 {
compatible = "intel,ixp4xx-udc";
reg = <0xc800b000 0x1000>;
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intel Keem Bay DWC3 USB controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/intel,keembay-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@intel.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,keembay-dwc3"
reg — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"async_master"
Item 2
Exact value (
const):"ref"
Item 3
Exact value (
const):"alt_ref"
Item 4
Exact value (
const):"suspend"
ranges — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
#size-cells — not listed as required here #
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required in this object (required): "compatible", "clocks", "clock-names", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#define KEEM_BAY_A53_AUX_USB
#define KEEM_BAY_A53_AUX_USB_REF
#define KEEM_BAY_A53_AUX_USB_ALT_REF
#define KEEM_BAY_A53_AUX_USB_SUSPEND
usb {
compatible = "intel,keembay-dwc3";
clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
<&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
<&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
<&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
clock-names = "async_master", "ref", "alt_ref", "suspend";
ranges;
#address-cells = <1>;
#size-cells = <1>;
usb@34000000 {
compatible = "snps,dwc3";
reg = <0x34000000 0x10000>;
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
dr_mode = "peripheral";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 37: Required child node:
ITE IT5202 Type-C USB Alternate Mode Passive MUX
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ite,it5205.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>", "Tianping Fang <tianping.fang@mediatek.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ite,it5205"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Power supply for VCC pin (3.3V)
mode-switch — not listed as required here #
Flag the port as possible handle of altmode switching
Value type (type): "boolean"
orientation-switch — required here #
Flag the port as possible handler of orientation switching
Value type (type): "boolean"
ite,ovp-enable — not listed as required here #
Enable Over Voltage Protection functionality
Value type (type): "boolean"
port — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
A port node to link the IT5205 to a TypeC controller for the purpose of handling altmode muxing and orientation switching.
Required in this object (required): "compatible", "reg", "orientation-switch", "port"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@48 {
compatible = "ite,it5205";
reg = <0x48>;
mode-switch;
orientation-switch;
vcc-supply = <&mt6359_vibr_ldo_reg>;
port {
it5205_usbss_sbu: endpoint {
remote-endpoint = <&typec_controller>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Marvell PXA/MMP EHCI
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/marvell,pxau2o-ehci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lubomir Rintel <lkundrak@v3.sk>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "marvell,pxau2o-ehci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "USBCLK"
phys — required here #
Maximum number of items (maxItems): 1
phy-names — required here #
Exact value (const): "usb"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "phys", "phy-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/marvell,mmp2.h>
usb@d4208000 {
compatible = "marvell,pxau2o-ehci";
reg = <0xd4208000 0x200>;
interrupts = <44>;
clocks = <&soc_clocks MMP2_CLK_USB>;
clock-names = "USBCLK";
phys = <&usb_otg_phy>;
phy-names = "usb";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk>
Maxim TCPCI Type-C PD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/maxim,max33359.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Badhri Jagan Sridharan <badhri@google.com>"
Maxim TCPCI Type-C PD controller
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"maxim,max77759-tcpci"Item 2
Exact value (
const):"maxim,max33359"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml#
Properties for usb c connector.
Required in this object (required): "compatible", "reg", "interrupts", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/usb/pd.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
maxtcpc@25 {
compatible = "maxim,max33359";
reg = <0x25>;
interrupt-parent = <&gpa8>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
self-powered;
op-sink-microwatt = <2600000>;
new-source-frs-typec-current = <FRS_5V_1P5A>;
source-pdos = <PDO_FIXED(5000, 900,
PDO_FIXED_SUSPEND |
PDO_FIXED_USB_COMM |
PDO_FIXED_DATA_SWAP |
PDO_FIXED_DUAL_ROLE)>;
sink-pdos = <PDO_FIXED(5000, 3000,
PDO_FIXED_USB_COMM |
PDO_FIXED_DATA_SWAP |
PDO_FIXED_DUAL_ROLE)
PDO_FIXED(9000, 2000, 0)>;
sink-bc12-completion-time-ms = <500>;
pd-revision = /bits/ 8 <0x03 0x01 0x01 0x08>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MAXIM MAX3420/1 USB Peripheral Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jassi Brar <jaswinder.singh@linaro.org>"
The controller provices USB2.0 compliant FullSpeed peripheral implementation over the SPI interface.
Specifications about the part can be found at:
http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max3420-udc", "maxim,max3421-udc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
usb irq from max3420
Item 2
vbus detection irq
Minimum number of items (minItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"udc"
Item 2
Exact value (
const):"vbus"
Minimum number of items (minItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 26000000
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
udc@0 {
compatible = "maxim,max3420-udc";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "udc", "vbus";
spi-max-frequency = <12500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Mediatek MT6360 Type-C Port Switch and Power Delivery controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
Mediatek MT6360 is a multi-functional device. It integrates charger, ADC, flash, RGB indicators, regulators (BUCKs/LDOs), and TypeC Port Switch with Power Delivery controller. This document only describes MT6360 Type-C Port Switch and Power Delivery controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt6360-tcpc"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"PD_IRQB"
connector — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml#
Properties for usb c connector.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "interrupts", "interrupt-names"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/usb/pd.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
mt6360@34 {
compatible = "mediatek,mt6360";
reg = <0x34>;
interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "IRQB";
interrupt-controller;
#interrupt-cells = <1>;
tcpc {
compatible = "mediatek,mt6360-tcpc";
interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "PD_IRQB";
connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
op-sink-microwatt = <10000000>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&usb_hs>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&usb_ss>;
};
};
port@2 {
reg = <2>;
endpoint {
remote-endpoint = <&dp_aux>;
};
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediatTek MT6370 Type-C Port Switch and Power Delivery controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/mediatek,mt6370-tcpc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
MediaTek MT6370 is a multi-functional device. It integrates charger, ADC, flash, RGB indicators, regulators (DSV/VIBLDO), and TypeC Port Switch with Power Delivery controller. This document only describes MT6370 Type-C Port Switch and Power Delivery controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt6370-tcpc"
interrupts — required here #
Maximum number of items (maxItems): 1
connector — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "interrupts"
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek USB3 xHCI
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chunfeng Yun <chunfeng.yun@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
There are two scenarios: case 1: only supports xHCI driver; case 2: supports dual-role mode, and the host is based on xHCI driver.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"mediatek,mt2701-xhci","mediatek,mt2712-xhci","mediatek,mt7622-xhci","mediatek,mt7623-xhci","mediatek,mt7629-xhci","mediatek,mt7986-xhci","mediatek,mt7988-xhci","mediatek,mt8173-xhci","mediatek,mt8183-xhci","mediatek,mt8186-xhci","mediatek,mt8188-xhci","mediatek,mt8189-xhci","mediatek,mt8192-xhci","mediatek,mt8195-xhci","mediatek,mt8365-xhci"
Item 2
Exact value (
const):"mediatek,mtk-xhci"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
the registers of xHCI MAC
Item 2
the registers of IP Port Control
reg-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"ippc"
interrupts — required here #
use "interrupts-extended" when the interrupts are connected to the separate interrupt controllers
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
xHCI host controller interrupt
Item 2
optional, wakeup interrupt used to support runtime PM
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"host"
Item 2
Exact value (
const):"wakeup"
power-domains — not listed as required here #
A phandle to USB power domain node to control USB's MTCMOS
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Controller clock used by normal mode
Item 2
Reference clock used by low power mode etc
Item 3
Mcu bus clock for register access
Item 4
DMA bus clock for data transfer
Item 5
controller clock
Item 6
frame count clock
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"sys_ck"
Item 2
Exact value (
const):"ref_ck"
Item 3
Exact value (
const):"mcu_ck"
Item 4
Exact value (
const):"dma_ck"
Item 5
Exact value (
const):"xhci_ck"
Item 6
Exact value (
const):"frmcnt_ck"
phys — not listed as required here #
List of all PHYs used on this HCD, it's better to keep PHYs in order as the hardware layout
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB2/HS PHY
Item 2
USB3/SS(P) PHY
Item 3
USB2/HS PHY
Item 4
USB3/SS(P) PHY
Item 5
USB2/HS PHY
Item 6
USB3/SS(P) PHY
Item 7
USB2/HS PHY
Item 8
USB3/SS(P) PHY
Item 9
USB2/HS PHY
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Output endpoint to a Type-C connector
vusb33-supply — not listed as required here #
Regulator of USB AVDD3.3v
vbus-supply — not listed as required here #
Regulator of USB VBUS5v
resets — not listed as required here #
Maximum number of items (maxItems): 1
usb3-lpm-capable — not listed as required here #
true — No constraints added by this property rule.
usb2-lpm-disable — not listed as required here #
true — No constraints added by this property rule.
imod-interval-ns — not listed as required here #
Interrupt moderation interval value, it is 8 times as much as that defined in the xHCI spec on MTK's controller.
Default value (default): 5000
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
It is a quirk used to work around Gen1 isoc-in endpoint transfer issue that still send out unexpected ACK after device finishes the burst transfer with a short packet and cause an exception, specially on a 4K camera device, it happens on controller before about IPM v1.6.0; the side-effect is that it may cause performance drop about 10%, including bulk transfer, prefer to use 3k here. The size is in bytes.
Allowed values (enum): 1024, 2048, 3072, 4096
wakeup-source — not listed as required here #
enable USB remote wakeup, see power/wakeup-source.txt
Value type (type): "boolean"
mediatek,syscon-wakeup — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
A phandle to syscon used to access the register of the USB wakeup glue layer between xHCI and SPM, the field should always be 3 cells long.
Array item rules (items) #
Array item rules (
items)Item 1
The first cell represents a phandle to syscon
Item 2
The second cell represents the register base address of the glue layer in syscon
Item 3
The third cell represents the hardware version of the glue layer, 1 - used by mt8173 etc, revision 1 without following IPM rule; 2 - used by mt2712 etc, revision 2 following IPM rule; 101 - used by mt8183, specific 1.01; 102 - used by mt8192, specific 1.02; 103 - used by mt8195, IP0, specific 1.03; 104 - used by mt8195, IP1, specific 1.04; 105 - used by mt8195, IP2, specific 1.05; 106 - used by mt8195, IP3, specific 1.06; 110 - used by mt8189, IP4, specific 1.10;
Allowed values (
enum):1,2,101,102,103,104,105,106,110
mediatek,u3p-dis-msk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The mask to disable u3ports, bit0 for u3port0, bit1 for u3port1, ... etc
mediatek,u2p-dis-msk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The mask to disable u2ports, bit0 for u2port0, bit1 for u2port1, ... etc
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
@[0-9a-f]{1}$ — name matches this regular expression #
Value type (type): "object"
The hard wired USB devices.
Property dependencies (dependencies) #
wakeup-source — applies when this property is present #
Also requires: "mediatek,syscon-wakeup"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/power/mt8173-power.h>
usb@11270000 {
compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
reg = <0x11270000 0x1000>, <0x11280700 0x0100>;
reg-names = "mac", "ippc";
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
clock-names = "sys_ck", "ref_ck";
phys = <&u3port0 PHY_TYPE_USB3>, <&u2port1 PHY_TYPE_USB2>;
vusb33-supply = <&mt6397_vusb_reg>;
vbus-supply = <&usb_p1_vbus>;
imod-interval-ns = <10000>;
mediatek,syscon-wakeup = <&pericfg 0x400 1>;
wakeup-source;
usb3-lpm-capable;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 MediaTek
Line 22: common properties for both case 1 and case 2
Line 53: optional, only needed for case 1.
Line 87: required, the following ones are optional
Line 100: required, others are optional
Line 144: the following properties are only used for case 1
MediaTek USB3 DRD Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/mediatek,mtu3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chunfeng Yun <chunfeng.yun@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml
The DRD controller has a glue layer IPPC (IP Port Control), and its host is based on xHCI.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"mediatek,mt2712-mtu3","mediatek,mt8173-mtu3","mediatek,mt8183-mtu3","mediatek,mt8186-mtu3","mediatek,mt8188-mtu3","mediatek,mt8192-mtu3","mediatek,mt8195-mtu3","mediatek,mt8365-mtu3"
Item 2
Exact value (
const):"mediatek,mtu3"
reg — required here #
Array item rules (items) #
Item 1
the registers of device MAC
Item 2
the registers of IP Port Control
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"ippc"
interrupts — required here #
use "interrupts-extended" when the interrupts are connected to the separate interrupt controllers
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
SSUSB device controller interrupt
Item 2
optional, wakeup interrupt used to support runtime PM
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"device"
Item 2
Exact value (
const):"wakeup"
power-domains — not listed as required here #
A phandle to USB power domain node to control USB's MTCMOS
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Controller clock used by normal mode
Item 2
Reference clock used by low power mode etc
Item 3
Mcu bus clock for register access
Item 4
DMA bus clock for data transfer
Item 5
DRD controller clock
Item 6
Frame count clock
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"sys_ck"
Item 2
Exact value (
const):"ref_ck"
Item 3
Exact value (
const):"mcu_ck"
Item 4
Exact value (
const):"dma_ck"
Item 5
Exact value (
const):"xhci_ck"
Item 6
Exact value (
const):"frmcnt_ck"
phys — not listed as required here #
List of all the USB PHYs used, it's better to keep the sequence as the hardware layout.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB2/HS PHY
Item 2
USB3/SS(P) PHY
Item 3
USB2/HS PHY
Item 4
USB3/SS(P) PHY
Item 5
USB2/HS PHY
Item 6
USB3/SS(P) PHY
Item 7
USB2/HS PHY
Item 8
USB3/SS(P) PHY
Item 9
USB2/HS PHY
vusb33-supply — not listed as required here #
Regulator of USB AVDD3.3v
vbus-supply — not listed as required here #
Deprecated (deprecated): true
Regulator of USB VBUS5v, needed when supports dual-role mode. Particularly, if use an output GPIO to control a VBUS regulator, should model it as a regulator. See bindings/regulator/fixed-regulator.yaml It's considered valid for compatibility reasons, not allowed for new bindings, and put into a usb-connector node.
dr_mode — not listed as required here #
Allowed values (enum): "host", "peripheral", "otg"
Default value (default): "otg"
maximum-speed — not listed as required here #
Allowed values (enum): "super-speed-plus", "super-speed", "high-speed", "full-speed"
resets — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
#size-cells — not listed as required here #
ranges — not listed as required here #
true — No constraints added by this property rule.
extcon — not listed as required here #
Deprecated (deprecated): true
Phandle to the extcon device detecting the IDDIG state, needed when supports dual-role mode. It's considered valid for compatibility reasons, not allowed for new bindings, and use "usb-role-switch" property instead.
usb-role-switch — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Support role switch.
Value type (type): "boolean"
role-switch-default-mode — not listed as required here #
Allowed values (enum): "host", "peripheral"
Default value (default): "host"
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Connector for dual role switch, especially for "gpio-usb-b-connector"
Value type (type): "object"
port — not listed as required here #
Any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used. See graph.txt
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
High Speed (HS) data bus.
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) data bus.
enable-manual-drd — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
supports manual dual-role switch via debugfs; usually used when receptacle is TYPE-A and also wants to support dual-role mode.
Value type (type): "boolean"
wakeup-source — not listed as required here #
enable USB remote wakeup, see power/wakeup-source.txt
Value type (type): "boolean"
mediatek,syscon-wakeup — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
A phandle to syscon used to access the register of the USB wakeup glue layer between xHCI and SPM, the field should always be 3 cells long.
Array item rules (items) #
Array item rules (
items)Item 1
The first cell represents a phandle to syscon
Item 2
The second cell represents the register base address of the glue layer in syscon
Item 3
The third cell represents the hardware version of the glue layer, 1 - used by mt8173 etc, revision 1 without following IPM rule; 2 - used by mt2712 etc, revision 2 with following IPM rule; 101 - used by mt8183, specific 1.01; 102 - used by mt8192, specific 1.02; 103 - used by mt8195, IP0, specific 1.03; 105 - used by mt8195, IP2, specific 1.05; 106 - used by mt8195, IP3, specific 1.06;
mediatek,u3p-dis-msk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The mask to disable u3ports, bit0 for u3port0, bit1 for u3port1, ... etc
mediatek,u2p-dis-msk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The mask to disable u2ports, bit0 for u2port0, bit1 for u2port1, ... etc; but can't disable u2port0 if dual role mode is enabled, so will be skipped in this case.
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/usb/mediatek,mtk-xhci.yaml#
The xhci should be added as subnode to mtu3 as shown in the following example if the host mode is enabled.
Property dependencies (dependencies) #
connector — applies when this property is present #
Also requires: "usb-role-switch"
port — applies when this property is present #
Also requires: "usb-role-switch"
role-switch-default-mode — applies when this property is present #
Also requires: "usb-role-switch"
wakeup-source — applies when this property is present #
Also requires: "mediatek,syscon-wakeup"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/power/mt8173-power.h>
usb@11271000 {
compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
reg = <0x11271000 0x3000>, <0x11280700 0x0100>;
reg-names = "mac", "ippc";
interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_LOW>;
phys = <&phy_port0 PHY_TYPE_USB3>, <&phy_port1 PHY_TYPE_USB2>;
power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
clocks = <&topckgen CLK_TOP_USB30_SEL>;
clock-names = "sys_ck";
vusb33-supply = <&mt6397_vusb_reg>;
vbus-supply = <&usb_p0_vbus>;
extcon = <&extcon_usb>;
dr_mode = "otg";
wakeup-source;
mediatek,syscon-wakeup = <&pericfg 0x400 1>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
xhci: usb@11270000 {
compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
reg = <0x11270000 0x1000>;
reg-names = "mac";
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
clock-names = "sys_ck", "ref_ck";
vusb33-supply = <&mt6397_vusb_reg>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/power/mt2712-power.h>
usb@112c1000 {
compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
reg = <0x112c1000 0x3000>, <0x112d0700 0x0100>;
reg-names = "mac", "ippc";
interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_LOW>;
phys = <&u2port2 PHY_TYPE_USB2>;
power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
clocks = <&topckgen CLK_TOP_USB30_SEL>;
clock-names = "sys_ck";
dr_mode = "otg";
usb-role-switch;
#address-cells = <1>;
#size-cells = <1>;
ranges;
host0: usb@11270000 {
compatible = "mediatek,mt2712-xhci", "mediatek,mtk-xhci";
reg = <0x11270000 0x1000>;
reg-names = "mac";
interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_LOW>;
power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
clock-names = "sys_ck", "ref_ck";
};
connector {
compatible = "gpio-usb-b-connector", "usb-b-connector";
type = "micro";
id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
vbus-supply = <&usb_p0_vbus>;
};
};
usb@11201000 {
compatible = "mediatek,mt8183-mtu3", "mediatek,mtu3";
reg = <0x11201000 0x2e00>, <0x11203e00 0x0100>;
reg-names = "mac", "ippc";
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>;
phys = <&u2port0 PHY_TYPE_USB2>;
clocks = <&clk26m>;
clock-names = "sys_ck";
mediatek,syscon-wakeup = <&pericfg 0x400 1>;
wakeup-source;
dr_mode = "otg";
usb-role-switch;
role-switch-default-mode = "host";
#address-cells = <1>;
#size-cells = <1>;
ranges;
host: usb@11200000 {
compatible = "mediatek,mt8183-xhci", "mediatek,mtk-xhci";
reg = <0x11200000 0x1000>;
reg-names = "mac";
interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_LOW>;
clocks = <&clk26m>;
clock-names = "sys_ck";
};
port {
usb_role_sw: endpoint {
remote-endpoint = <&hs_ep>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 MediaTek
Line 75: required, others are optional
Line 88: required, others are optional
Line 90: the following for backward compatible
Line 216: Required child node when support dual-role
Line 242: Dual role switch by extcon
Line 281: Dual role switch by gpio-usb-b-connector
Line 319: Dual role switch with type-c
MediaTek MUSB DRD/OTG Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/mediatek,musb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Min Guo <min.guo@mediatek.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^usb@[0-9a-f]+$"
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"mediatek,mt8516-musb","mediatek,mt2701-musb","mediatek,mt7623-musb"
Item 2
Exact value (
const):"mediatek,mtk-musb"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mc"
clocks — required here #
Array item rules (items) #
Item 1
The main/core clock
Item 2
The system bus clock
Item 3
The 48Mhz clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"mcu"
Item 3
Exact value (
const):"univpll"
phys — required here #
Maximum number of items (maxItems): 1
usb-role-switch — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Support role switch. See usb/generic.txt
Value type (type): "boolean"
dr_mode — not listed as required here #
Allowed values (enum): "host", "otg", "peripheral"
power-domains — not listed as required here #
A phandle to USB power domain node to control USB's MTCMOS
Maximum number of items (maxItems): 1
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Connector for dual role switch
Value type (type): "object"
Property dependencies (dependencies) #
usb-role-switch — applies when this property is present #
Also requires: "connector"
connector — applies when this property is present #
Also requires: "usb-role-switch"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "phys", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt2701-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/power/mt2701-power.h>
usb@11200000 {
compatible = "mediatek,mt2701-musb", "mediatek,mtk-musb";
reg = <0x11200000 0x1000>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "mc";
phys = <&u2port2 PHY_TYPE_USB2>;
dr_mode = "otg";
clocks = <&pericfg CLK_PERI_USB0>,
<&pericfg CLK_PERI_USB0_MCU>,
<&pericfg CLK_PERI_USB_SLV>;
clock-names = "main","mcu","univpll";
power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
usb-role-switch;
connector {
compatible = "gpio-usb-b-connector", "usb-b-connector";
type = "micro";
id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
vbus-supply = <&usb_vbus>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020 MediaTek
Microchip LAN969x SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/microchip,lan9691-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robert Marko <robert.marko@sartura.hr>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"snps,dwc3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Gated USB DRD clock
Item 2
Controller reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus_early"
Item 2
Exact value (
const):"ref"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3.yaml#
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@300000 {
compatible = "microchip,lan9691-dwc3", "snps,dwc3";
reg = <0x300000 0x80000>;
interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 12>, <&clks 11>;
clock-names = "bus_early", "ref";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MPFS USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/microchip,mpfs-musb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-musb"Item 2
Exact value (
const):"microchip,mpfs-musb"
Rule 2
Exact value (
const):"microchip,mpfs-musb"
dr_mode — not listed as required here #
true — No constraints added by this property rule.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma"
Item 2
Exact value (
const):"mc"
clocks — required here #
Maximum number of items (maxItems): 1
microchip,ext-vbus-drv — not listed as required here #
Some ULPI USB PHYs do not support an internal VBUS supply and driving the CPEN pin requires the configuration of the UPLI_USE__EXTVBUS bit in ULPI_BUSCONTROL.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include "dt-bindings/clock/microchip,mpfs-clock.h"
usb@20201000 {
compatible = "microchip,mpfs-musb";
reg = <0x20201000 0x1000>;
clocks = <&clkcfg CLK_USB>;
interrupt-parent = <&plic>;
interrupts = <86>, <87>;
interrupt-names = "dma", "mc";
dr_mode = "host";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip USB2514 Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/microchip,usb2514.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"usb424,2412","usb424,2417","usb424,2514","usb424,2517"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"usb424,2514"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
GPIO connected to the RESET_N pin.
vdd-supply — not listed as required here #
3.3V power supply.
vdda-supply — not listed as required here #
3.3V analog power supply.
clocks — not listed as required here #
External 24MHz clock connected to the CLKIN pin.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^.*@[0-9a-f]{1,2}$ — name matches this regular expression #
The hard wired USB devices
Value type (type): "object"
Shared schema rule ($ref): /schemas/usb/usb-device.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"usb424,2514"When the condition matches (
then) #Properties and child nodes (
properties)
vdda-supply— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx6qdl-clock.h>
#include <dt-bindings/gpio/gpio.h>
usb {
#address-cells = <1>;
#size-cells = <0>;
usb-hub@1 {
compatible = "usb424,2514";
reg = <1>;
clocks = <&clks IMX6QDL_CLK_CKO>;
reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
vdd-supply = <®_3v3_hub>;
vdda-supply = <®_3v3a_hub>;
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usbb95,772b";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Microchip USB5744 4-port Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/microchip,usb5744.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Microchip's USB5744 SmartHubTM IC is a 4 port, SuperSpeed (SS)/Hi-Speed (HS), low power, low pin count configurable and fully compliant with the USB 3.1 Gen 1 specification. The USB5744 also supports Full Speed (FS) and Low Speed (LS) USB signaling, offering complete coverage of all defined USB operating speeds. The new SuperSpeed hubs operate in parallel with the USB 2.0 controller, so 5 Gbps SuperSpeed data transfers are not affected by slower USB 2.0 traffic.
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>", "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb424,2744", "usb424,5744", "microchip,usb5744"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO controlling the GRST# pin.
vdd-supply — not listed as required here #
3V3 power supply to the hub
vdd2-supply — not listed as required here #
1V2 power supply to the hub
peer-hub — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
i2c-bus — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle of an usb hub connected via i2c bus.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,usb5744"When the condition matches (
then) #Properties and child nodes (
properties)
reset-gpios— not listed as required here
false— Not permitted by this property rule.
vdd-supply— not listed as required here
false— Not permitted by this property rule.
vdd2-supply— not listed as required here
false— Not permitted by this property rule.
peer-hub— not listed as required here
false— Not permitted by this property rule.
i2c-bus— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Shared schema rule (
$ref):/schemas/usb/usb-device.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c: i2c {
#address-cells = <1>;
#size-cells = <0>;
hub: usb-hub@2d {
compatible = "microchip,usb5744";
reg = <0x2d>;
};
};
usb {
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb424,2744";
reg = <1>;
peer-hub = <&hub_3_0>;
i2c-bus = <&hub>;
reset-gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb424,5744";
reg = <2>;
peer-hub = <&hub_2_0>;
i2c-bus = <&hub>;
reset-gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra XUSB device mode controller (XUDC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra-xudc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Tegra XUDC controller supports both USB 2.0 HighSpeed/FullSpeed and USB 3.0 SuperSpeed protocols.
Maintainers (maintainers): "Nagarjuna Kristam <nkristam@nvidia.com>", "JC Kuo <jckuo@nvidia.com>", "Thierry Reding <treding@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"nvidia,tegra210-xudc","nvidia,tegra186-xudc","nvidia,tegra194-xudc","nvidia,tegra234-xudc"
reg — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
XUSB device controller registers
Item 2
XUSB device PCI Config registers
Item 3
XUSB device registers.
reg-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"base"
Item 2
Exact value (
const):"fpci"
Item 3
Exact value (
const):"ipfs"
interrupts — required here #
Maximum number of items (maxItems): 1
Must contain the XUSB device interrupt.
clocks — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Clock to enable core XUSB dev clock.
Item 2
Clock to enable XUSB super speed clock.
Item 3
Clock to enable XUSB super speed dev clock.
Item 4
Clock to enable XUSB high speed dev clock.
Item 5
Clock to enable XUSB full speed dev clock.
clock-names — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Exact value (
const):"dev"
Item 2
Exact value (
const):"ss"
Item 3
Exact value (
const):"ss_src"
Item 4
Exact value (
const):"fs_src"
Item 5
Exact value (
const):"hs_src"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
memory read client
Item 2
memory write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Array item rules (items) #
Item 1
XUSBB(device) power-domain
Item 2
XUSBA(superspeed) power-domain
power-domain-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dev"
Item 2
Exact value (
const):"ss"
nvidia,xusb-padctl — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XUDC controller.
phys — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Must contain an entry for each entry in phy-names. See ../phy/phy-bindings.txt for details.
phy-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"usb2-0"
Item 2
Exact value (
const):"usb3-0"
avddio-usb-supply — not listed as required here #
PCIe/USB3 analog logic power supply. Must supply 1.05 V.
hvdd-usb-supply — not listed as required here #
USB controller power supply. Must supply 3.3 V.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "power-domains", "power-domain-names", "nvidia,xusb-padctl", "phys", "phy-names"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— not listed as required hereMinimum number of items (
minItems):3
clocks— not listed as required hereMinimum number of items (
minItems):5
clock-names— not listed as required hereMinimum number of items (
minItems):5Required in this object (
required):"avddio-usb-supply","hvdd-usb-supply"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"nvidia,tegra186-xudc","nvidia,tegra194-xudc","nvidia,tegra234-xudc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
reg-names— not listed as required hereMaximum number of items (
maxItems):2
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereMaximum number of items (
maxItems):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"nvidia,tegra194-xudc","nvidia,tegra234-xudc"When the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@700d0000 {
compatible = "nvidia,tegra210-xudc";
reg = <0x700d0000 0x8000>,
<0x700d8000 0x1000>,
<0x700d9000 0x1000>;
reg-names = "base", "fpci", "ipfs";
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car TEGRA210_CLK_XUSB_DEV>,
<&tegra_car TEGRA210_CLK_XUSB_SS>,
<&tegra_car TEGRA210_CLK_XUSB_SSP_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_FS_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_HS_SRC>;
clock-names = "dev", "ss", "ss_src", "fs_src", "hs_src";
power-domains = <&pd_xusbdev>, <&pd_xusbss>;
power-domain-names = "dev", "ss";
nvidia,xusb-padctl = <&padctl>;
phys = <µ_b>;
phy-names = "usb2-0";
avddio-usb-supply = <&vdd_pex_1v05>;
hvdd-usb-supply = <&vdd_3v3_sys>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 22: For Tegra210
Line 23: For Tegra186
Line 24: For Tegra194
Line 25: For Tegra234
Line 70: read
NVIDIA Tegra124 xHCI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra124-xusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by the Tegra XUSB pad controller.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
NVIDIA Tegra124
Exact value (
const):"nvidia,tegra124-xusb"
Rule 2
NVIDIA Tegra132
Array item rules (
items)Item 1
Exact value (
const):"nvidia,tegra132-xusb"Item 2
Exact value (
const):"nvidia,tegra124-xusb"
reg — required here #
Array item rules (items) #
Item 1
base and length of the xHCI host registers
Item 2
base and length of the XUSB FPCI registers
Item 3
base and length of the XUSB IPFS registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hcd"
Item 2
Exact value (
const):"fpci"
Item 3
Exact value (
const):"ipfs"
interrupts — required here #
Array item rules (items) #
Item 1
xHCI host interrupt
Item 2
mailbox interrupt
clocks — required here #
Array item rules (items) #
Item 1
XUSB host clock
Item 2
XUSB host source clock
Item 3
XUSB Falcon source clock
Item 4
XUSB SuperSpeed clock
Item 5
XUSB SuperSpeed clock divider
Item 6
XUSB SuperSpeed source clock
Item 7
XUSB HighSpeed clock source
Item 8
XUSB FullSpeed clock source
Item 9
USB PLL
Item 10
reference clock
Item 11
I/O PLL
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_host_src"
Item 3
Exact value (
const):"xusb_falcon_src"
Item 4
Exact value (
const):"xusb_ss"
Item 5
Exact value (
const):"xusb_ss_div2"
Item 6
Exact value (
const):"xusb_ss_src"
Item 7
Exact value (
const):"xusb_hs_src"
Item 8
Exact value (
const):"xusb_fs_src"
Item 9
Exact value (
const):"pll_u_480m"
Item 10
Exact value (
const):"clk_m"
Item 11
Exact value (
const):"pll_e"
resets — required here #
Array item rules (items) #
Item 1
reset for the XUSB host controller
Item 2
reset for the SuperSpeed logic
Item 3
shared reset for xusb_{ss,hs,fs,falcon,host}_src.
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
Item 3
Exact value (
const):"xusb_src"
nvidia,xusb-padctl — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XHCI controller
phys — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
phy-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
Array item rules (items) #
Allowed values (
enum):"usb2-0","usb2-1","usb2-2","hsic-0","hsic-1","usb3-0","usb3-1"
avddio-pex-supply — required here #
PCIe/USB3 analog logic power supply. Must supply 1.05 V.
dvddio-pex-supply — required here #
PCIe/USB3 digital logic power supply. Must supply 1.05 V.
avdd-usb-supply — required here #
USB controller power supply. Must supply 3.3 V.
avdd-pll-utmip-supply — not listed as required here #
UTMI PLL power supply. Must supply 1.8 V.
avdd-pll-erefe-supply — not listed as required here #
PLLE reference PLL power supply. Must supply 1.05 V.
avdd-usb-ss-pll-supply — not listed as required here #
PCIe/USB3 PLL power supply. Must supply 1.05 V.
hvdd-usb-ss-supply — required here #
High-voltage PCIe/USB3 power supply. Must supply 3.3 V.
hvdd-usb-ss-pll-e-supply — not listed as required here #
High-voltage PLLE power supply. Must supply 3.3 V.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "resets", "reset-names", "nvidia,xusb-padctl", "phys", "phy-names", "avddio-pex-supply", "dvddio-pex-supply", "avdd-usb-supply", "hvdd-usb-ss-supply"
Examples (examples) #
#include <dt-bindings/clock/tegra124-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@70090000 {
compatible = "nvidia,tegra124-xusb";
reg = <0x70090000 0x8000>,
<0x70098000 0x1000>,
<0x70099000 0x1000>;
reg-names = "hcd", "fpci", "ipfs";
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car TEGRA124_CLK_XUSB_HOST>,
<&tegra_car TEGRA124_CLK_XUSB_HOST_SRC>,
<&tegra_car TEGRA124_CLK_XUSB_FALCON_SRC>,
<&tegra_car TEGRA124_CLK_XUSB_SS>,
<&tegra_car TEGRA124_CLK_XUSB_SS_DIV2>,
<&tegra_car TEGRA124_CLK_XUSB_SS_SRC>,
<&tegra_car TEGRA124_CLK_XUSB_HS_SRC>,
<&tegra_car TEGRA124_CLK_XUSB_FS_SRC>,
<&tegra_car TEGRA124_CLK_PLL_U_480M>,
<&tegra_car TEGRA124_CLK_CLK_M>,
<&tegra_car TEGRA124_CLK_PLL_E>;
clock-names = "xusb_host", "xusb_host_src", "xusb_falcon_src",
"xusb_ss", "xusb_ss_div2", "xusb_ss_src",
"xusb_hs_src", "xusb_fs_src", "pll_u_480m",
"clk_m", "pll_e";
resets = <&tegra_car 89>, <&tegra_car 156>, <&tegra_car 143>;
reset-names = "xusb_host", "xusb_ss", "xusb_src";
nvidia,xusb-padctl = <&padctl>;
phys = <&phy_usb2_1>, <&phy_usb2_2>, <&phy_pcie_0>;
phy-names = "usb2-1", "usb2-2", "usb3-0";
avddio-pex-supply = <&vdd_1v05_run>;
dvddio-pex-supply = <&vdd_1v05_run>;
avdd-usb-supply = <&vdd_3v3_lp0>;
avdd-pll-utmip-supply = <&vddio_1v8>;
avdd-pll-erefe-supply = <&avdd_1v05_run>;
avdd-usb-ss-pll-supply = <&vdd_1v05_run>;
hvdd-usb-ss-supply = <&vdd_3v3_lp0>;
hvdd-usb-ss-pll-e-supply = <&vdd_3v3_lp0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: required
Line 90: optional
NVIDIA Tegra186 xHCI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra186-xusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by the Tegra XUSB pad controller.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "nvidia,tegra186-xusb"
reg — not listed as required here #
Array item rules (items) #
Item 1
base and length of the xHCI host registers
Item 2
base and length of the XUSB FPCI registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hcd"
Item 2
Exact value (
const):"fpci"
interrupts — not listed as required here #
Array item rules (items) #
Item 1
xHCI host interrupt
Item 2
mailbox interrupt
clocks — not listed as required here #
Array item rules (items) #
Item 1
XUSB host clock
Item 2
XUSB Falcon source clock
Item 3
XUSB SuperSpeed clock
Item 4
XUSB SuperSpeed source clock
Item 5
XUSB HighSpeed clock source
Item 6
XUSB FullSpeed clock source
Item 7
USB PLL
Item 8
reference clock
Item 9
I/O PLL
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_falcon_src"
Item 3
Exact value (
const):"xusb_ss"
Item 4
Exact value (
const):"xusb_ss_src"
Item 5
Exact value (
const):"xusb_hs_src"
Item 6
Exact value (
const):"xusb_fs_src"
Item 7
Exact value (
const):"pll_u_480m"
Item 8
Exact value (
const):"clk_m"
Item 9
Exact value (
const):"pll_e"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
read client
Item 2
write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
nvidia,xusb-padctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XHCI controller
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
Array item rules (items) #
Allowed values (
enum):"usb2-0","usb2-1","usb2-2","hsic-0","usb3-0","usb3-1","usb3-2"
power-domains — not listed as required here #
Array item rules (items) #
Item 1
XUSBC power domain (for Host and USB 2.0)
Item 2
XUSBA power domain (for SuperSpeed)
power-domain-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
dvddio-pex-supply — not listed as required here #
PCIe/USB3 analog logic power supply. Must supply 1.05 V.
hvddio-pex-supply — not listed as required here #
High-voltage PCIe/USB3 power supply. Must supply 1.8 V.
avdd-usb-supply — not listed as required here #
USB controller power supply. Must supply 3.3 V.
avdd-pll-utmip-supply — not listed as required here #
UTMI PLL power supply. Must supply 1.8 V.
avdd-pll-uerefe-supply — not listed as required here #
PLLE reference PLL power supply. Must supply 1.05 V.
dvdd-usb-ss-pll-supply — not listed as required here #
PCIe/USB3 PLL power supply. Must supply 1.05 V.
hvdd-usb-ss-pll-e-supply — not listed as required here #
High-voltage PLLE power supply. Must supply 1.8 V.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra186-mc.h>
#include <dt-bindings/power/tegra186-powergate.h>
#include <dt-bindings/reset/tegra186-reset.h>
usb@3530000 {
compatible = "nvidia,tegra186-xusb";
reg = <0x03530000 0x8000>,
<0x03538000 0x1000>;
reg-names = "hcd", "fpci";
interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bpmp TEGRA186_CLK_XUSB_HOST>,
<&bpmp TEGRA186_CLK_XUSB_FALCON>,
<&bpmp TEGRA186_CLK_XUSB_SS>,
<&bpmp TEGRA186_CLK_XUSB_CORE_SS>,
<&bpmp TEGRA186_CLK_CLK_M>,
<&bpmp TEGRA186_CLK_XUSB_FS>,
<&bpmp TEGRA186_CLK_PLLU>,
<&bpmp TEGRA186_CLK_CLK_M>,
<&bpmp TEGRA186_CLK_PLLE>;
clock-names = "xusb_host", "xusb_falcon_src", "xusb_ss",
"xusb_ss_src", "xusb_hs_src", "xusb_fs_src",
"pll_u_480m", "clk_m", "pll_e";
power-domains = <&bpmp TEGRA186_POWER_DOMAIN_XUSBC>,
<&bpmp TEGRA186_POWER_DOMAIN_XUSBA>;
power-domain-names = "xusb_host", "xusb_ss";
interconnects = <&mc TEGRA186_MEMORY_CLIENT_XUSB_HOSTR &emc>,
<&mc TEGRA186_MEMORY_CLIENT_XUSB_HOSTW &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu TEGRA186_SID_XUSB_HOST>;
nvidia,xusb-padctl = <&padctl>;
#address-cells = <1>;
#size-cells = <0>;
phys = <&phy_usb2_0>, <&phy_usb2_1>, <&phy_usb3_0>;
phy-names = "usb2-0", "usb2-1", "usb3-0";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 66: read
NVIDIA Tegra194 xHCI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra194-xusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by the Tegra XUSB pad controller.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "nvidia,tegra194-xusb"
reg — not listed as required here #
Array item rules (items) #
Item 1
base and length of the xHCI host registers
Item 2
base and length of the XUSB FPCI registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hcd"
Item 2
Exact value (
const):"fpci"
interrupts — not listed as required here #
Array item rules (items) #
Item 1
xHCI host interrupt
Item 2
mailbox interrupt
clocks — not listed as required here #
Array item rules (items) #
Item 1
XUSB host clock
Item 2
XUSB Falcon source clock
Item 3
XUSB SuperSpeed clock
Item 4
XUSB SuperSpeed source clock
Item 5
XUSB HighSpeed clock source
Item 6
XUSB FullSpeed clock source
Item 7
USB PLL
Item 8
reference clock
Item 9
I/O PLL
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_falcon_src"
Item 3
Exact value (
const):"xusb_ss"
Item 4
Exact value (
const):"xusb_ss_src"
Item 5
Exact value (
const):"xusb_hs_src"
Item 6
Exact value (
const):"xusb_fs_src"
Item 7
Exact value (
const):"pll_u_480m"
Item 8
Exact value (
const):"clk_m"
Item 9
Exact value (
const):"pll_e"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
read client
Item 2
write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
nvidia,xusb-padctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XHCI controller
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items) #
Allowed values (
enum):"usb2-0","usb2-1","usb2-2","usb2-3","usb3-0","usb3-1","usb3-2","usb3-3"
power-domains — not listed as required here #
Array item rules (items) #
Item 1
XUSBC power domain (for Host and USB 2.0)
Item 2
XUSBA power domain (for SuperSpeed)
power-domain-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
dvddio-pex-supply — not listed as required here #
PCIe/USB3 analog logic power supply. Must supply 1.05 V.
hvddio-pex-supply — not listed as required here #
High-voltage PCIe/USB3 power supply. Must supply 1.8 V.
avdd-usb-supply — not listed as required here #
USB controller power supply. Must supply 3.3 V.
avdd-pll-utmip-supply — not listed as required here #
UTMI PLL power supply. Must supply 1.8 V.
avdd-pll-uerefe-supply — not listed as required here #
PLLE reference PLL power supply. Must supply 1.05 V.
dvdd-usb-ss-pll-supply — not listed as required here #
PCIe/USB3 PLL power supply. Must supply 1.05 V.
hvdd-usb-ss-pll-e-supply — not listed as required here #
High-voltage PLLE power supply. Must supply 1.8 V.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra194-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra194-mc.h>
#include <dt-bindings/power/tegra194-powergate.h>
#include <dt-bindings/reset/tegra194-reset.h>
usb@3610000 {
compatible = "nvidia,tegra194-xusb";
reg = <0x03610000 0x40000>,
<0x03600000 0x10000>;
reg-names = "hcd", "fpci";
interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bpmp TEGRA194_CLK_XUSB_CORE_HOST>,
<&bpmp TEGRA194_CLK_XUSB_FALCON>,
<&bpmp TEGRA194_CLK_XUSB_CORE_SS>,
<&bpmp TEGRA194_CLK_XUSB_SS>,
<&bpmp TEGRA194_CLK_CLK_M>,
<&bpmp TEGRA194_CLK_XUSB_FS>,
<&bpmp TEGRA194_CLK_UTMIPLL>,
<&bpmp TEGRA194_CLK_CLK_M>,
<&bpmp TEGRA194_CLK_PLLE>;
clock-names = "xusb_host", "xusb_falcon_src",
"xusb_ss", "xusb_ss_src", "xusb_hs_src",
"xusb_fs_src", "pll_u_480m", "clk_m",
"pll_e";
interconnects = <&mc TEGRA194_MEMORY_CLIENT_XUSB_HOSTR &emc>,
<&mc TEGRA194_MEMORY_CLIENT_XUSB_HOSTW &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu TEGRA194_SID_XUSB_HOST>;
power-domains = <&bpmp TEGRA194_POWER_DOMAIN_XUSBC>,
<&bpmp TEGRA194_POWER_DOMAIN_XUSBA>;
power-domain-names = "xusb_host", "xusb_ss";
nvidia,xusb-padctl = <&xusb_padctl>;
phys = <&phy_usb2_0>, <&phy_usb2_1>, <&phy_usb2_3>, <&phy_usb3_0>,
<&phy_usb3_2>, <&phy_usb3_3>;
phy-names = "usb2-0", "usb2-1", "usb2-3", "usb3-0", "usb3-2", "usb3-3";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 66: read
NVIDIA Tegra210 xHCI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra210-xusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by the Tegra XUSB pad controller.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "nvidia,tegra210-xusb"
reg — not listed as required here #
Array item rules (items) #
Item 1
base and length of the xHCI host registers
Item 2
base and length of the XUSB FPCI registers
Item 3
base and length of the XUSB IPFS registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hcd"
Item 2
Exact value (
const):"fpci"
Item 3
Exact value (
const):"ipfs"
interrupts — not listed as required here #
Array item rules (items) #
Item 1
xHCI host interrupt
Item 2
mailbox interrupt
clocks — not listed as required here #
Array item rules (items) #
Item 1
XUSB host clock
Item 2
XUSB host source clock
Item 3
XUSB Falcon source clock
Item 4
XUSB SuperSpeed clock
Item 5
XUSB SuperSpeed clock divider
Item 6
XUSB SuperSpeed source clock
Item 7
XUSB HighSpeed clock source
Item 8
XUSB FullSpeed clock source
Item 9
USB PLL
Item 10
reference clock
Item 11
I/O PLL
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_host_src"
Item 3
Exact value (
const):"xusb_falcon_src"
Item 4
Exact value (
const):"xusb_ss"
Item 5
Exact value (
const):"xusb_ss_div2"
Item 6
Exact value (
const):"xusb_ss_src"
Item 7
Exact value (
const):"xusb_hs_src"
Item 8
Exact value (
const):"xusb_fs_src"
Item 9
Exact value (
const):"pll_u_480m"
Item 10
Exact value (
const):"clk_m"
Item 11
Exact value (
const):"pll_e"
resets — not listed as required here #
Array item rules (items) #
Item 1
reset for the XUSB host controller
Item 2
reset for the SuperSpeed logic
Item 3
shared reset for xusb_{ss,hs,fs,falcon,host}_src.
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
Item 3
Exact value (
const):"xusb_src"
nvidia,xusb-padctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XHCI controller
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
Array item rules (items) #
Allowed values (
enum):"usb2-0","usb2-1","usb2-2","usb2-3","hsic-0","usb3-0","usb3-1","usb3-2","usb3-3"
power-domains — not listed as required here #
Array item rules (items) #
Item 1
XUSBC power domain (for Host and USB 2.0)
Item 2
XUSBA power domain (for SuperSpeed)
power-domain-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
dvddio-pex-supply — not listed as required here #
PCIe/USB3 analog logic power supply. Must supply 1.05 V.
hvddio-pex-supply — not listed as required here #
High-voltage PCIe/USB3 power supply. Must supply 1.8 V.
avdd-usb-supply — not listed as required here #
USB controller power supply. Must supply 3.3 V.
avdd-pll-utmip-supply — not listed as required here #
UTMI PLL power supply. Must supply 1.8 V.
avdd-pll-uerefe-supply — not listed as required here #
PLLE reference PLL power supply. Must supply 1.05 V.
dvdd-usb-ss-pll-supply — not listed as required here #
PCIe/USB3 PLL power supply. Must supply 1.05 V.
hvdd-usb-ss-pll-e-supply — not listed as required here #
High-voltage PLLE power supply. Must supply 1.8 V.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@70090000 {
compatible = "nvidia,tegra210-xusb";
reg = <0x70090000 0x8000>,
<0x70098000 0x1000>,
<0x70099000 0x1000>;
reg-names = "hcd", "fpci", "ipfs";
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car TEGRA210_CLK_XUSB_HOST>,
<&tegra_car TEGRA210_CLK_XUSB_HOST_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_FALCON_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_SS>,
<&tegra_car TEGRA210_CLK_XUSB_SS_DIV2>,
<&tegra_car TEGRA210_CLK_XUSB_SS_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_HS_SRC>,
<&tegra_car TEGRA210_CLK_XUSB_FS_SRC>,
<&tegra_car TEGRA210_CLK_PLL_U_480M>,
<&tegra_car TEGRA210_CLK_CLK_M>,
<&tegra_car TEGRA210_CLK_PLL_E>;
clock-names = "xusb_host", "xusb_host_src",
"xusb_falcon_src", "xusb_ss",
"xusb_ss_div2", "xusb_ss_src",
"xusb_hs_src", "xusb_fs_src",
"pll_u_480m", "clk_m", "pll_e";
resets = <&tegra_car 89>, <&tegra_car 156>,
<&tegra_car 143>;
reset-names = "xusb_host", "xusb_ss", "xusb_src";
power-domains = <&pd_xusbhost>, <&pd_xusbss>;
power-domain-names = "xusb_host", "xusb_ss";
nvidia,xusb-padctl = <&padctl>;
phys = <&phy_usb2_0>, <&phy_usb2_1>, <&phy_usb2_2>, <&phy_usb2_3>,
<&phy_pcie_6>, <&phy_pcie_5>;
phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0",
"usb3-1";
dvddio-pex-supply = <&vdd_pex_1v05>;
hvddio-pex-supply = <&vdd_1v8>;
avdd-usb-supply = <&vdd_3v3_sys>;
avdd-pll-utmip-supply = <&vdd_1v8>;
avdd-pll-uerefe-supply = <&vdd_pex_1v05>;
dvdd-usb-ss-pll-supply = <&vdd_pex_1v05>;
hvdd-usb-ss-pll-e-supply = <&vdd_1v8>;
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usb955,9ff";
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra234 xHCI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra234-xusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by the Tegra XUSB pad controller. The xHCI controller controls up to eight ports; there are four USB 2.0 ports and four USB 3.2 Gen1 x1 ports.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "nvidia,tegra234-xusb"
reg — not listed as required here #
Array item rules (items) #
Item 1
xHCI host registers
Item 2
XUSB FPCI registers
Item 3
XUSB bar2 registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hcd"
Item 2
Exact value (
const):"fpci"
Item 3
Exact value (
const):"bar2"
interrupts — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
xHCI host interrupt
Item 2
mailbox interrupt
Item 3
USB wake event 0
Item 4
USB wake event 1
Item 5
USB wake event 2
Item 6
USB wake event 3
Item 7
USB wake event 4
Item 8
USB wake event 5
Item 9
USB wake event 6
The first two interrupts are required for the USB host controller. The remaining USB wake event interrupts are optional. Each USB wake event is independent; it is not necessary to use all of these events on a platform. The USB host controller can function even if no wake-up events are defined. The USB wake event interrupts are handled by the Tegra PMC; hence, the interrupt controller for these is the PMC and the interrupt IDs correspond to the PMC wake event IDs. A complete list of wake event IDs is provided below, and this information is also present in the Tegra TRM document.
PMC wake-up 76 for USB3 port 0 wakeup
PMC wake-up 77 for USB3 port 1 wakeup
PMC wake-up 78 for USB3 port 2 and port 3 wakeup
PMC wake-up 79 for USB2 port 0 wakeup
PMC wake-up 80 for USB2 port 1 wakeup
PMC wake-up 81 for USB2 port 2 wakeup
PMC wake-up 82 for USB2 port 3 wakeup
clocks — not listed as required here #
Array item rules (items) #
Item 1
XUSB host clock
Item 2
XUSB Falcon source clock
Item 3
XUSB SuperSpeed clock
Item 4
XUSB SuperSpeed source clock
Item 5
XUSB HighSpeed clock source
Item 6
XUSB FullSpeed clock source
Item 7
USB PLL
Item 8
reference clock
Item 9
I/O PLL
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_falcon_src"
Item 3
Exact value (
const):"xusb_ss"
Item 4
Exact value (
const):"xusb_ss_src"
Item 5
Exact value (
const):"xusb_hs_src"
Item 6
Exact value (
const):"xusb_fs_src"
Item 7
Exact value (
const):"pll_u_480m"
Item 8
Exact value (
const):"clk_m"
Item 9
Exact value (
const):"pll_e"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
read client
Item 2
write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
nvidia,xusb-padctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the XUSB pad controller that is used to configure the USB pads used by the XHCI controller
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items) #
Allowed values (
enum):"usb2-0","usb2-1","usb2-2","usb2-3","usb3-0","usb3-1","usb3-2","usb3-3"
power-domains — not listed as required here #
Array item rules (items) #
Item 1
XUSBC power domain (for Host and USB 2.0)
Item 2
XUSBA power domain (for SuperSpeed)
power-domain-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"xusb_host"
Item 2
Exact value (
const):"xusb_ss"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra234-mc.h>
#include <dt-bindings/power/tegra234-powergate.h>
usb@3610000 {
compatible = "nvidia,tegra234-xusb";
reg = <0x03610000 0x40000>,
<0x03600000 0x10000>,
<0x03650000 0x10000>;
reg-names = "hcd", "fpci", "bar2";
interrupts-extended = <&gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
<&gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
<&pmc 76 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_HOST>,
<&bpmp TEGRA234_CLK_XUSB_FALCON>,
<&bpmp TEGRA234_CLK_XUSB_CORE_SS>,
<&bpmp TEGRA234_CLK_XUSB_SS>,
<&bpmp TEGRA234_CLK_CLK_M>,
<&bpmp TEGRA234_CLK_XUSB_FS>,
<&bpmp TEGRA234_CLK_UTMIP_PLL>,
<&bpmp TEGRA234_CLK_CLK_M>,
<&bpmp TEGRA234_CLK_PLLE>;
clock-names = "xusb_host", "xusb_falcon_src",
"xusb_ss", "xusb_ss_src", "xusb_hs_src",
"xusb_fs_src", "pll_u_480m", "clk_m",
"pll_e";
interconnects = <&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTR &emc>,
<&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTW &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu_niso1 TEGRA234_SID_XUSB_HOST>;
power-domains = <&bpmp TEGRA234_POWER_DOMAIN_XUSBC>,
<&bpmp TEGRA234_POWER_DOMAIN_XUSBA>;
power-domain-names = "xusb_host", "xusb_ss";
nvidia,xusb-padctl = <&xusb_padctl>;
phys = <&pad_lanes_usb2_0>;
phy-names = "usb2-0";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 96: read
NXP ISP1760 family controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nxp,isp1760.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Siewior <bigeasy@linutronix.de>", "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"
NXP ISP1760 family, which includes ISP1760/1761/1763 devicetree controller bindings
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,usb-isp1760", "nxp,usb-isp1761", "nxp,usb-isp1763"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Host controller interrupt
Item 2
Device controller interrupt in isp1761
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"host"
Item 2
Exact value (
const):"peripheral"
bus-width — not listed as required here #
Number of data lines.
Allowed values (enum): 8, 16, 32
Default value (default): 32
dr_mode — not listed as required here #
Allowed values (enum): "host", "peripheral"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@40200000 {
compatible = "nxp,usb-isp1763";
reg = <0x40200000 0x100000>;
interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
bus-width = <16>;
dr_mode = "host";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP LPC32xx SoC USB Device Controller (UDC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nxp,lpc3220-udc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc3220-udc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
USB Device Low Priority Interrupt
Item 2
USB Device High Priority Interrupt
Item 3
USB Device DMA Interrupt
Item 4
External USB Transceiver Interrupt (OTG ATX)
clocks — not listed as required here #
Maximum number of items (maxItems): 1
transceiver — required here #
phandle of the associated ISP1301 device - this is necessary for the UDC controller for connecting to the USB physical layer
Required in this object (required): "compatible", "reg", "interrupts", "transceiver"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usbd@31020000 {
compatible = "nxp,lpc3220-udc";
reg = <0x31020000 0x300>;
interrupt-parent = <&mic>;
interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>;
transceiver = <&isp1301>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP PTN36502 Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nxp,ptn36502.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Luca Weiss <luca.weiss@fairphone.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,ptn36502"
reg — required here #
Maximum number of items (maxItems): 1
vdd18-supply — not listed as required here #
Power supply for VDD18 pin
orientation-switch — not listed as required here #
true — No constraints added by this property rule.
retimer-switch — not listed as required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Output endpoint to the Type-C connector
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Input endpoint from the Super-Speed PHY
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of handling altmode muxing and orientation switching.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@1a {
compatible = "nxp,ptn36502";
reg = <0x1a>;
vdd18-supply = <&usb_redrive_1v8>;
retimer-switch;
orientation-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usb_con_ss: endpoint {
remote-endpoint = <&typec_con_ss>;
};
};
port@1 {
reg = <1>;
phy_con_ss: endpoint {
remote-endpoint = <&usb_phy_ss>;
};
};
port@2 {
reg = <2>;
usb_con_sbu: endpoint {
remote-endpoint = <&typec_dp_aux>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP PTN5110 Type-C Port Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/nxp,ptn5110.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Li Jun <jun.li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"nxp,ptn5110"
Item 2
Exact value (
const):"tcpci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/usb/pd.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tcpci@50 {
compatible = "nxp,ptn5110", "tcpci";
reg = <0x50>;
interrupt-parent = <&gpio3>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
usb_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) PDO_VAR(5000, 12000, 2000)>;
op-sink-microwatt = <10000000>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
typec1_dr_sw: endpoint {
remote-endpoint = <&usb1_drd_sw>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ON Semiconductor Type-C DisplayPort ALT Mode Linear Redriver
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/onnn,nb7vpq904m.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "onnn,nb7vpq904m"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
power supply (1.8V)
enable-gpios — not listed as required here #
true — No constraints added by this property rule.
orientation-switch — not listed as required here #
true — No constraints added by this property rule.
retimer-switch — not listed as required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Output endpoint to the Type-C connector
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Super Speed (SS) Input endpoint from the Super-Speed PHY
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
An array of physical data lane indexes. Position determines how lanes are connected to the redriver, It is assumed the same order is kept on the other side of the redriver. Lane number represents the following - 0 is RX2 lane - 1 is TX2 lane - 2 is TX1 lane - 3 is RX1 lane The position determines the physical port of the redriver, in the order A, B, C & D.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1Item 3
Exact value (
const):2Item 4
Exact value (
const):3This is the lanes default layout - Port A to RX2 lane - Port B to TX2 lane - Port C to TX1 lane - Port D to RX1 lane
Rule 2
Array item rules (
items)Item 1
Exact value (
const):3Item 2
Exact value (
const):2Item 3
Exact value (
const):1Item 4
Exact value (
const):0This is the USBRX2/USBTX2 and USBRX1/USBTX1 swapped lanes layout - Port A to RX1 lane - Port B to TX1 lane - Port C to TX2 lane - Port D to RX2 lane
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of handling altmode muxing and orientation switching.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@32 {
compatible = "onnn,nb7vpq904m";
reg = <0x32>;
vcc-supply = <&vreg_l15b_1p8>;
retimer-switch;
orientation-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usb_con_ss: endpoint {
remote-endpoint = <&typec_con_ss>;
};
};
port@1 {
reg = <1>;
phy_con_ss: endpoint {
remote-endpoint = <&usb_phy_ss>;
data-lanes = <3 2 1 0>;
};
};
port@2 {
reg = <2>;
usb_con_sbu: endpoint {
remote-endpoint = <&typec_dp_aux>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Parade PS5511 4+1 Port USB 3.2 Gen 1 Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/parade,ps5511.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pin-yen Lin <treapking@chromium.org>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "usb1da0,5511", "usb1da0,55a1"
reset-gpios — not listed as required here #
Array item rules (items) #
Item 1
GPIO specifier for RESETB pin.
vddd11-supply — not listed as required here #
1V1 power supply to the hub
vdd33-supply — not listed as required here #
3V3 power supply to the hub
peer-hub — required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties and child nodes (properties)
reg — not listed as required here
Minimum value (minimum): 1
Maximum value (maximum): 5
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Properties and child nodes (
properties) #
reg— not listed as required here #Minimum value (
minimum):1Maximum value (
maximum):5
Required in this object (required): "peer-hub"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hub.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ports— not listed as required hereProperties and child nodes (
properties)
port@5— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^.*@5$— name matches this regular expression
false— Not permitted by this property rule.
Examples (examples) #
usb {
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb1da0,55a1";
reg = <1>;
peer-hub = <&hub_3_0>;
#address-cells = <1>;
#size-cells = <0>;
/* USB 2.0 device on port 5 */
device@5 {
reg = <5>;
compatible = "usb123,4567";
};
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb1da0,5511";
reg = <2>;
peer-hub = <&hub_2_0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* Type-A connector on port 3 */
port@3 {
reg = <3>;
endpoint {
remote-endpoint = <&usb_a0_ss>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Parade PS883x USB and DisplayPort Retimer
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/parade,ps8830.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Abel Vesa <abel.vesa@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"parade,ps8833"Item 2
Exact value (
const):"parade,ps8830"
Rule 2
Exact value (
const):"parade,ps8830"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
XO Clock
reset-gpios — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
power supply (1.07V)
vdd33-supply — required here #
power supply (3.3V)
vdd33-cap-supply — required here #
power supply (3.3V)
vddar-supply — not listed as required here #
power supply (1.07V)
vddat-supply — required here #
power supply (1.07V)
vddio-supply — required here #
power supply (1.2V or 1.8V)
orientation-switch — required here #
true — No constraints added by this property rule.
retimer-switch — required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Output endpoint to the Type-C connector
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Super Speed (SS) Input endpoint from the Super-Speed PHY
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of handling altmode muxing and orientation switching.
Required in this object (required): "compatible", "reg", "clocks", "reset-gpios", "vdd-supply", "vdd33-supply", "vdd33-cap-supply", "vddat-supply", "vddio-supply", "orientation-switch", "retimer-switch"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@8 {
compatible = "parade,ps8830";
reg = <0x8>;
clocks = <&clk_rtmr_xo>;
vdd-supply = <&vreg_rtmr_1p15>;
vdd33-supply = <&vreg_rtmr_3p3>;
vdd33-cap-supply = <&vreg_rtmr_3p3>;
vddar-supply = <&vreg_rtmr_1p15>;
vddat-supply = <&vreg_rtmr_1p15>;
vddio-supply = <&vreg_rtmr_1p8>;
reset-gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
retimer-switch;
orientation-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&typec_con_ss>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&usb_phy_ss>;
};
};
port@2 {
reg = <2>;
endpoint {
remote-endpoint = <&typec_dp_aux>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Legacy Qualcomm SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/qcom,dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wesley Cheng <quic_wcheng@quicinc.com>"
Deprecated (deprecated): true
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"qcom,dwc3"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,ipq4019-dwc3","qcom,ipq5018-dwc3","qcom,ipq5332-dwc3","qcom,ipq5424-dwc3","qcom,ipq6018-dwc3","qcom,ipq8064-dwc3","qcom,ipq8074-dwc3","qcom,ipq9574-dwc3","qcom,msm8953-dwc3","qcom,msm8994-dwc3","qcom,msm8996-dwc3","qcom,msm8998-dwc3","qcom,qcm2290-dwc3","qcom,qcs404-dwc3","qcom,qcs615-dwc3","qcom,qcs8300-dwc3","qcom,qdu1000-dwc3","qcom,sa8775p-dwc3","qcom,sar2130p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sc8180x-dwc3","qcom,sc8180x-dwc3-mp","qcom,sc8280xp-dwc3","qcom,sc8280xp-dwc3-mp","qcom,sdm660-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm4250-dwc3","qcom,sm6115-dwc3","qcom,sm6125-dwc3","qcom,sm6350-dwc3","qcom,sm6375-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8350-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3","qcom,sm8750-dwc3","qcom,x1e80100-dwc3","qcom,x1e80100-dwc3-mp"
Item 2
Exact value (
const):"qcom,dwc3"
reg — required here #
Offset and length of register set for QSCRATCH wrapper
Maximum number of items (maxItems): 1
#address-cells — required here #
#size-cells — required here #
ranges — required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
specifies a phandle to PM domain provider node
Maximum number of items (maxItems): 1
required-opps — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Several clocks are used, depending on the variant. Typical ones are::
- cfg_noc:: System Config NOC clock.
- core:: Master/Core clock, has to be >= 125 MHz for SS operation and >=
60MHz for HS operation.
- iface:: System bus AXI clock.
- sleep:: Sleep clock, used for wakeup when USB3 core goes into low
power mode (U3).
- mock_utmi:: Mock utmi clock needed for ITP/SOF generation in host
mode. Its frequency should be 19.2MHz.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
resets — not listed as required here #
Maximum number of items (maxItems): 1
interconnects — not listed as required here #
Maximum number of items (maxItems): 2
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb-ddr"
Item 2
Exact value (
const):"apps-usb"
interrupts — required here #
Different types of interrupts are used based on HS PHY used on target:
- pwr_event: Used for wakeup based on other power events.
- hs_phy_irq: Apart from DP/DM/QUSB2 PHY interrupts, there is
hs_phy_irq which is not triggered by default and its
functionality is mutually exclusive to that of
{dp/dm}_hs_phy_irq and qusb2_phy_irq.
- qusb2_phy: SoCs with QUSB2 PHY do not have separate DP/DM IRQs and
expose only a single IRQ whose behavior can be modified
by the QUSB2PHY_INTR_CTRL register. The required DPSE/
DMSE configuration is done in QUSB2PHY_INTR_CTRL register
of PHY address space.
- {dp/dm}_hs_phy_irq: These IRQ's directly reflect changes on the DP/
DM pads of the SoC. These are used for wakeup
only on SoCs with non-QUSB2 targets with
exception of SDM670/SDM845/SM6350.
- ss_phy_irq: Used for remote wakeup in Super Speed mode of operation.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 18
interrupt-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 18
qcom,select-utmi-as-pipe-clk — not listed as required here #
If present, disable USB3 pipe_clk requirement. Used when dwc3 operates without SSPHY and only HS/FS/LS modes are supported.
Value type (type): "boolean"
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
wakeup-source — not listed as required here
false — Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq4019-dwc3","qcom,ipq5332-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"sleep"Item 3
Exact value (
const):"mock_utmi"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Master/Core clock, has to be >= 125 MHz for SS operation and >= 60MHz for HS operation.
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq9574-dwc3","qcom,msm8953-dwc3","qcom,msm8996-dwc3","qcom,msm8998-dwc3","qcom,qcs8300-dwc3","qcom,sa8775p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm6350-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):5
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
clock-names— not listed as required hereExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"sleep"Item 3
Exact value (
const):"mock_utmi"Rule 2
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq8074-dwc3","qcom,qdu1000-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq5018-dwc3","qcom,msm8994-dwc3","qcom,qcs404-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"iface"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,sc8280xp-dwc3","qcom,sc8280xp-dwc3-mp","qcom,x1e80100-dwc3","qcom,x1e80100-dwc3-mp"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):9
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"noc_aggr"Item 7
Exact value (
const):"noc_aggr_north"Item 8
Exact value (
const):"noc_aggr_south"Item 9
Exact value (
const):"noc_sys"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):5
clock-names— not listed as required hereExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Rule 2
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,qcm2290-dwc3","qcom,qcs615-dwc3","qcom,sar2130p-dwc3","qcom,sc8180x-dwc3","qcom,sc8180x-dwc3-mp","qcom,sm6115-dwc3","qcom,sm6125-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3","qcom,sm8750-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):6
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"xo"
Rule 10 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):6
clock-names— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"xo"
Rule 11 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq6018-dwc3","qcom,ipq8074-dwc3","qcom,msm8953-dwc3","qcom,msm8998-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):2Array item rules (
items)Item 1
Exact value (
const):"pwr_event"Item 2
Exact value (
const):"qusb2_phy"Item 3
Exact value (
const):"ss_phy_irq"
Rule 12 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,msm8994-dwc3","qcom,msm8996-dwc3","qcom,qcs404-dwc3","qcom,sdm660-dwc3","qcom,sm6115-dwc3","qcom,sm6125-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"pwr_event"Item 2
Exact value (
const):"qusb2_phy"Item 3
Exact value (
const):"hs_phy_irq"Item 4
Exact value (
const):"ss_phy_irq"
Rule 13 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq5018-dwc3","qcom,ipq5332-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):3
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pwr_event"Item 2
Exact value (
const):"dp_hs_phy_irq"Item 3
Exact value (
const):"dm_hs_phy_irq"
Rule 14 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"pwr_event"Item 2
Exact value (
const):"dp_hs_phy_irq"Item 3
Exact value (
const):"dm_hs_phy_irq"Item 4
Exact value (
const):"ss_phy_irq"
Rule 15 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq4019-dwc3","qcom,ipq8064-dwc3","qcom,qcs615-dwc3","qcom,qcs8300-dwc3","qcom,qdu1000-dwc3","qcom,sa8775p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sc8180x-dwc3","qcom,sc8280xp-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm4250-dwc3","qcom,sm6350-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8350-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3","qcom,sm8750-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):5
interrupt-names— not listed as required hereMinimum number of items (
minItems):4Array item rules (
items)Item 1
Exact value (
const):"pwr_event"Item 2
Exact value (
const):"hs_phy_irq"Item 3
Exact value (
const):"dp_hs_phy_irq"Item 4
Exact value (
const):"dm_hs_phy_irq"Item 5
Exact value (
const):"ss_phy_irq"
Rule 16 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,sc8180x-dwc3-mp","qcom,x1e80100-dwc3-mp"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):10Maximum number of items (
maxItems):10
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pwr_event_1"Item 2
Exact value (
const):"pwr_event_2"Item 3
Exact value (
const):"hs_phy_1"Item 4
Exact value (
const):"hs_phy_2"Item 5
Exact value (
const):"dp_hs_phy_1"Item 6
Exact value (
const):"dm_hs_phy_1"Item 7
Exact value (
const):"dp_hs_phy_2"Item 8
Exact value (
const):"dm_hs_phy_2"Item 9
Exact value (
const):"ss_phy_1"Item 10
Exact value (
const):"ss_phy_2"
Rule 17 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):18Maximum number of items (
maxItems):18
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pwr_event_1"Item 2
Exact value (
const):"pwr_event_2"Item 3
Exact value (
const):"pwr_event_3"Item 4
Exact value (
const):"pwr_event_4"Item 5
Exact value (
const):"hs_phy_1"Item 6
Exact value (
const):"hs_phy_2"Item 7
Exact value (
const):"hs_phy_3"Item 8
Exact value (
const):"hs_phy_4"Item 9
Exact value (
const):"dp_hs_phy_1"Item 10
Exact value (
const):"dm_hs_phy_1"Item 11
Exact value (
const):"dp_hs_phy_2"Item 12
Exact value (
const):"dm_hs_phy_2"Item 13
Exact value (
const):"dp_hs_phy_3"Item 14
Exact value (
const):"dm_hs_phy_3"Item 15
Exact value (
const):"dp_hs_phy_4"Item 16
Exact value (
const):"dm_hs_phy_4"Item 17
Exact value (
const):"ss_phy_1"Item 18
Exact value (
const):"ss_phy_2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
usb@a6f8800 {
compatible = "qcom,sdm845-dwc3", "qcom,dwc3";
reg = <0 0x0a6f8800 0 0x400>;
#address-cells = <2>;
#size-cells = <2>;
ranges;
clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
<&gcc GCC_USB30_PRIM_MASTER_CLK>,
<&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>,
<&gcc GCC_USB30_PRIM_SLEEP_CLK>,
<&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>;
clock-names = "cfg_noc",
"core",
"iface",
"sleep",
"mock_utmi";
assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
<&gcc GCC_USB30_PRIM_MASTER_CLK>;
assigned-clock-rates = <19200000>, <150000000>;
interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 489 IRQ_TYPE_EDGE_BOTH>,
<GIC_SPI 488 IRQ_TYPE_EDGE_BOTH>,
<GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "pwr_event", "hs_phy_irq",
"dp_hs_phy_irq", "dm_hs_phy_irq", "ss_phy_irq";
power-domains = <&gcc USB30_PRIM_GDSC>;
resets = <&gcc GCC_USB30_PRIM_BCR>;
usb@a600000 {
compatible = "snps,dwc3";
reg = <0 0x0a600000 0 0xcd00>;
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&apps_smmu 0x740 0>;
snps,dis_u2_susphy_quirk;
snps,dis_enblslpm_quirk;
phys = <&usb_1_hsphy>, <&usb_1_ssphy>;
phy-names = "usb2-phy", "usb3-phy";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 12: Use the combined qcom,snps-dwc3 instead
Line 156: Required child node:
Qualcomm PMIC based USB Type-C block
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/qcom,pmic-typec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bryan O'Donoghue <bryan.odonoghue@linaro.org>"
Qualcomm PMIC Type-C block
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pmi632-typec","qcom,pm8150b-typec"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,pm6150-typec","qcom,pm7250b-typec"Item 2
Exact value (
const):"qcom,pm8150b-typec"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pmi632-typec"
connector — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
reg — required here #
Type-C port and pdphy SPMI register base offsets
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Minimum number of items (minItems): 8
Array item rules (items) #
Item 1
Type-C CC attach notification, VBUS error, tCCDebounce done
Item 2
Type-C VCONN powered
Item 3
Type-C CC state change
Item 4
Type-C VCONN over-current
Item 5
Type-C VBUS state change
Item 6
Type-C Attach/detach notification
Item 7
Type-C Legacy cable detect
Item 8
Type-C Try.Src Try.Snk state change
Item 9
Power Domain Signal TX - HardReset or CableReset signal TX
Item 10
Power Domain Signal RX - HardReset or CableReset signal RX
Item 11
Power Domain TX complete
Item 12
Power Domain RX complete
Item 13
Power Domain TX fail
Item 14
Power Domain TX message discard
Item 15
Power Domain RX message discard
Item 16
Power Domain Fast Role Swap event
interrupt-names — required here #
Minimum number of items (minItems): 8
Array item rules (items) #
Item 1
Exact value (
const):"or-rid-detect-change"
Item 2
Exact value (
const):"vpd-detect"
Item 3
Exact value (
const):"cc-state-change"
Item 4
Exact value (
const):"vconn-oc"
Item 5
Exact value (
const):"vbus-change"
Item 6
Exact value (
const):"attach-detach"
Item 7
Exact value (
const):"legacy-cable-detect"
Item 8
Exact value (
const):"try-snk-src-detect"
Item 9
Exact value (
const):"sig-tx"
Item 10
Exact value (
const):"sig-rx"
Item 11
Exact value (
const):"msg-tx"
Item 12
Exact value (
const):"msg-rx"
Item 13
Exact value (
const):"msg-tx-failed"
Item 14
Exact value (
const):"msg-tx-discarded"
Item 15
Exact value (
const):"msg-rx-discarded"
Item 16
Exact value (
const):"fr-swap"
vdd-vbus-supply — required here #
VBUS power supply.
vdd-pdphy-supply — not listed as required here #
VDD regulator supply to the PDPHY.
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Contains a port which produces data-role switching messages.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "vdd-vbus-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
interrupts— not listed as required hereMaximum number of items (
maxItems):8
interrupt-names— not listed as required hereMaximum number of items (
maxItems):8
vdd-pdphy-supply— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
interrupts— not listed as required hereMinimum number of items (
minItems):16
interrupt-names— not listed as required hereMaximum number of items (
maxItems):16
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/usb/pd.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
pm8150b_typec: typec@1500 {
compatible = "qcom,pm8150b-typec";
reg = <0x1500>,
<0x1700>;
interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "or-rid-detect-change",
"vpd-detect",
"cc-state-change",
"vconn-oc",
"vbus-change",
"attach-detach",
"legacy-cable-detect",
"try-snk-src-detect",
"sig-tx",
"sig-rx",
"msg-tx",
"msg-rx",
"msg-tx-failed",
"msg-tx-discarded",
"msg-rx-discarded",
"fr-swap";
vdd-vbus-supply = <&pm8150b_vbus>;
vdd-pdphy-supply = <&vreg_l2a_3p1>;
connector {
compatible = "usb-c-connector";
power-role = "source";
data-role = "dual";
self-powered;
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_DUAL_ROLE |
PDO_FIXED_USB_COMM | PDO_FIXED_DATA_SWAP)>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
pmic_typec_hs_in: endpoint {
remote-endpoint = <&usb_hs_out>;
};
};
port@1 {
reg = <1>;
pmic_typec_ss_in: endpoint {
remote-endpoint = <&usb_phy_typec_ss_out>;
};
};
port@2 {
reg = <2>;
pmic_typec_sbu: endpoint {
remote-endpoint = <&usb_mux_sbu>;
};
};
};
};
};
};
usb {
dr_mode = "otg";
usb-role-switch;
port {
usb_hs_out: endpoint {
remote-endpoint = <&pmic_typec_hs_in>;
};
};
};
usb-phy {
orientation-switch;
port {
usb_phy_typec_ss_out: endpoint {
remote-endpoint = <&pmic_typec_ss_in>;
};
};
};
usb-mux {
orientation-switch;
mode-switch;
port {
usb_mux_sbu: endpoint {
remote-endpoint = <&pmic_typec_sbu>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/qcom,snps-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wesley Cheng <quic_wcheng@quicinc.com>"
Describes the Qualcomm USB block, based on Synopsys DWC3.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"qcom,snps-dwc3"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,glymur-dwc3","qcom,glymur-dwc3-mp","qcom,ipq4019-dwc3","qcom,ipq5018-dwc3","qcom,ipq5332-dwc3","qcom,ipq5424-dwc3","qcom,ipq6018-dwc3","qcom,ipq8064-dwc3","qcom,ipq8074-dwc3","qcom,ipq9574-dwc3","qcom,kaanapali-dwc3","qcom,milos-dwc3","qcom,msm8953-dwc3","qcom,msm8994-dwc3","qcom,msm8996-dwc3","qcom,msm8998-dwc3","qcom,qcm2290-dwc3","qcom,qcs404-dwc3","qcom,qcs615-dwc3","qcom,qcs8300-dwc3","qcom,qdu1000-dwc3","qcom,sa8775p-dwc3","qcom,sar2130p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sc8180x-dwc3","qcom,sc8180x-dwc3-mp","qcom,sc8280xp-dwc3","qcom,sc8280xp-dwc3-mp","qcom,sdm660-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm4250-dwc3","qcom,sm6115-dwc3","qcom,sm6125-dwc3","qcom,sm6350-dwc3","qcom,sm6375-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8350-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3","qcom,sm8750-dwc3","qcom,x1e80100-dwc3","qcom,x1e80100-dwc3-mp"
Item 2
Exact value (
const):"qcom,snps-dwc3"
reg — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
required-opps — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Several clocks are used, depending on the variant. Typical ones are::
- cfg_noc:: System Config NOC clock.
- core:: Master/Core clock, has to be >= 125 MHz for SS operation and >=
60MHz for HS operation.
- iface:: System bus AXI clock.
- sleep:: Sleep clock, used for wakeup when USB3 core goes into low
power mode (U3).
- mock_utmi:: Mock utmi clock needed for ITP/SOF generation in host
mode. Its frequency should be 19.2MHz.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
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
resets — not listed as required here #
Maximum number of items (maxItems): 1
interconnects — not listed as required here #
Maximum number of items (maxItems): 2
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb-ddr"
Item 2
Exact value (
const):"apps-usb"
interrupts — required here #
Different types of interrupts are used based on HS PHY used on target:
- dwc_usb3: Core DWC3 interrupt
- pwr_event: Used for wakeup based on other power events.
- hs_phy_irq: Apart from DP/DM/QUSB2 PHY interrupts, there is
hs_phy_irq which is not triggered by default and its
functionality is mutually exclusive to that of
{dp/dm}_hs_phy_irq and qusb2_phy_irq.
- qusb2_phy: SoCs with QUSB2 PHY do not have separate DP/DM IRQs and
expose only a single IRQ whose behavior can be modified
by the QUSB2PHY_INTR_CTRL register. The required DPSE/
DMSE configuration is done in QUSB2PHY_INTR_CTRL register
of PHY address space.
- {dp/dm}_hs_phy_irq: These IRQ's directly reflect changes on the DP/
DM pads of the SoC. These are used for wakeup
only on SoCs with non-QUSB2 targets with
exception of SDM670/SDM845/SM6350.
- ss_phy_irq: Used for remote wakeup in Super Speed mode of operation.
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 19
interrupt-names — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 19
qcom,select-utmi-as-pipe-clk — not listed as required here #
If present, disable USB3 pipe_clk requirement. Used when dwc3 operates without SSPHY and only HS/FS/LS modes are supported.
Value type (type): "boolean"
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq4019-dwc3","qcom,ipq5332-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"sleep"Item 3
Exact value (
const):"mock_utmi"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Master/Core clock, has to be >= 125 MHz for SS operation and >= 60MHz for HS operation.
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq9574-dwc3","qcom,kaanapali-dwc3","qcom,msm8953-dwc3","qcom,msm8996-dwc3","qcom,msm8998-dwc3","qcom,qcs8300-dwc3","qcom,sa8775p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm6350-dwc3","qcom,sm8750-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):5
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
clock-names— not listed as required hereExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"sleep"Item 3
Exact value (
const):"mock_utmi"Rule 2
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq8074-dwc3","qcom,qdu1000-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq5018-dwc3","qcom,msm8994-dwc3","qcom,qcs404-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"iface"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,sc8280xp-dwc3","qcom,sc8280xp-dwc3-mp","qcom,x1e80100-dwc3","qcom,x1e80100-dwc3-mp"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):9
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"noc_aggr"Item 7
Exact value (
const):"noc_aggr_north"Item 8
Exact value (
const):"noc_aggr_south"Item 9
Exact value (
const):"noc_sys"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):5
clock-names— not listed as required hereExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Rule 2
Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"sleep"Item 4
Exact value (
const):"mock_utmi"
Rule 10 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,milos-dwc3","qcom,qcm2290-dwc3","qcom,qcs615-dwc3","qcom,sar2130p-dwc3","qcom,sc8180x-dwc3","qcom,sc8180x-dwc3-mp","qcom,sm6115-dwc3","qcom,sm6125-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):6
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"xo"
Rule 11 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):6
clock-names— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"xo"
Rule 12 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,glymur-dwc3","qcom,glymur-dwc3-mp"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):7
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_noc"Item 2
Exact value (
const):"core"Item 3
Exact value (
const):"iface"Item 4
Exact value (
const):"sleep"Item 5
Exact value (
const):"mock_utmi"Item 6
Exact value (
const):"noc_aggr_north"Item 7
Exact value (
const):"noc_aggr_south"
Rule 13 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq6018-dwc3","qcom,ipq8074-dwc3","qcom,msm8953-dwc3","qcom,msm8998-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event"Item 3
Exact value (
const):"qusb2_phy"Item 4
Exact value (
const):"ss_phy_irq"
Rule 14 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,msm8994-dwc3","qcom,msm8996-dwc3","qcom,qcs404-dwc3","qcom,sdm660-dwc3","qcom,sm6115-dwc3","qcom,sm6125-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):5
interrupt-names— not listed as required hereMinimum number of items (
minItems):4Array item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event"Item 3
Exact value (
const):"qusb2_phy"Item 4
Exact value (
const):"hs_phy_irq"Item 5
Exact value (
const):"ss_phy_irq"
Rule 15 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq5018-dwc3","qcom,ipq5332-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):4
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event"Item 3
Exact value (
const):"dp_hs_phy_irq"Item 4
Exact value (
const):"dm_hs_phy_irq"
Rule 16 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,glymur-dwc3","qcom,milos-dwc3","qcom,x1e80100-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):5
interrupt-names— not listed as required hereMinimum number of items (
minItems):4Array item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event"Item 3
Exact value (
const):"dp_hs_phy_irq"Item 4
Exact value (
const):"dm_hs_phy_irq"Item 5
Exact value (
const):"ss_phy_irq"
Rule 17 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq4019-dwc3","qcom,ipq8064-dwc3","qcom,kaanapali-dwc3","qcom,qcs615-dwc3","qcom,qcs8300-dwc3","qcom,qdu1000-dwc3","qcom,sa8775p-dwc3","qcom,sc7180-dwc3","qcom,sc7280-dwc3","qcom,sc8180x-dwc3","qcom,sc8280xp-dwc3","qcom,sdm670-dwc3","qcom,sdm845-dwc3","qcom,sdx55-dwc3","qcom,sdx65-dwc3","qcom,sdx75-dwc3","qcom,sm4250-dwc3","qcom,sm6350-dwc3","qcom,sm8150-dwc3","qcom,sm8250-dwc3","qcom,sm8350-dwc3","qcom,sm8450-dwc3","qcom,sm8550-dwc3","qcom,sm8650-dwc3","qcom,sm8750-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):6
interrupt-names— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event"Item 3
Exact value (
const):"hs_phy_irq"Item 4
Exact value (
const):"dp_hs_phy_irq"Item 5
Exact value (
const):"dm_hs_phy_irq"Item 6
Exact value (
const):"ss_phy_irq"
Rule 18 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,glymur-dwc3-mp","qcom,sc8180x-dwc3-mp","qcom,x1e80100-dwc3-mp"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event_1"Item 3
Exact value (
const):"pwr_event_2"Item 4
Exact value (
const):"hs_phy_1"Item 5
Exact value (
const):"hs_phy_2"Item 6
Exact value (
const):"dp_hs_phy_1"Item 7
Exact value (
const):"dm_hs_phy_1"Item 8
Exact value (
const):"dp_hs_phy_2"Item 9
Exact value (
const):"dm_hs_phy_2"Item 10
Exact value (
const):"ss_phy_1"Item 11
Exact value (
const):"ss_phy_2"
Rule 19 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):19Maximum number of items (
maxItems):19
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dwc_usb3"Item 2
Exact value (
const):"pwr_event_1"Item 3
Exact value (
const):"pwr_event_2"Item 4
Exact value (
const):"pwr_event_3"Item 5
Exact value (
const):"pwr_event_4"Item 6
Exact value (
const):"hs_phy_1"Item 7
Exact value (
const):"hs_phy_2"Item 8
Exact value (
const):"hs_phy_3"Item 9
Exact value (
const):"hs_phy_4"Item 10
Exact value (
const):"dp_hs_phy_1"Item 11
Exact value (
const):"dm_hs_phy_1"Item 12
Exact value (
const):"dp_hs_phy_2"Item 13
Exact value (
const):"dm_hs_phy_2"Item 14
Exact value (
const):"dp_hs_phy_3"Item 15
Exact value (
const):"dm_hs_phy_3"Item 16
Exact value (
const):"dp_hs_phy_4"Item 17
Exact value (
const):"dm_hs_phy_4"Item 18
Exact value (
const):"ss_phy_1"Item 19
Exact value (
const):"ss_phy_2"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
usb@a600000 {
compatible = "qcom,sdm845-dwc3", "qcom,snps-dwc3";
reg = <0 0x0a600000 0 0x100000>;
clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
<&gcc GCC_USB30_PRIM_MASTER_CLK>,
<&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>,
<&gcc GCC_USB30_PRIM_SLEEP_CLK>,
<&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>;
clock-names = "cfg_noc",
"core",
"iface",
"sleep",
"mock_utmi";
assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>,
<&gcc GCC_USB30_PRIM_MASTER_CLK>;
assigned-clock-rates = <19200000>, <150000000>;
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 489 IRQ_TYPE_EDGE_BOTH>,
<GIC_SPI 488 IRQ_TYPE_EDGE_BOTH>,
<GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "dwc_usb3", "pwr_event", "hs_phy_irq",
"dp_hs_phy_irq", "dm_hs_phy_irq", "ss_phy_irq";
power-domains = <&gcc USB30_PRIM_GDSC>;
resets = <&gcc GCC_USB30_PRIM_BCR>;
iommus = <&apps_smmu 0x740 0>;
snps,dis_u2_susphy_quirk;
snps,dis_enblslpm_quirk;
phys = <&usb_1_hsphy>, <&usb_1_ssphy>;
phy-names = "usb2-phy", "usb3-phy";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 156: Required child node:
Qualcomm WCD9380/WCD9385 USB SubSystem Altmode/Analog Audio Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/qcom,wcd939x-usbss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
Qualcomm WCD9390/WCD9395 is a standalone Hi-Fi audio codec IC with a functionally separate USB SubSystem for Altmode/Analog Audio Switch accessible over an I2C interface. The Audio Headphone and Microphone data path between the Codec and the USB-C Mux subsystems are external to the IC, thus requiring DT port-endpoint graph description to handle USB-C altmode & orientation switching for Audio Accessory Mode.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"qcom,wcd9390-usbss"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"qcom,wcd9395-usbss"Item 2
Exact value (
const):"qcom,wcd9390-usbss"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
USBSS VDD power supply
mode-switch — not listed as required here #
true — No constraints added by this property rule.
orientation-switch — not listed as required here #
true — No constraints added by this property rule.
ports — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
A port node to link the WCD939x USB SubSystem to a TypeC controller for the purpose of handling altmode muxing and orientation switching.
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
A port node to link the WCD939x USB SubSystem to the Codec SubSystem for the purpose of handling USB-C Audio Accessory Mode muxing and orientation switching.
Required in this object (required): "compatible", "reg", "ports"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@42 {
compatible = "qcom,wcd9390-usbss";
reg = <0x42>;
vdd-supply = <&vreg_bob>;
mode-switch;
orientation-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
wcd9390_usbss_sbu: endpoint {
remote-endpoint = <&typec_sbu>;
};
};
port@1 {
reg = <1>;
wcd9390_usbss_codec: endpoint {
remote-endpoint = <&wcd9390_codec_usbss>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Realtek DWC3 USB SoC Controller Glue
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/realtek,rtd-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stanley Chang <stanley_chang@realtek.com>"
The Realtek DHC SoC embeds a DWC3 USB IP Core configured for USB 2.0 and USB 3.0 in host or dual-role mode.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"realtek,rtd1295-dwc3","realtek,rtd1315e-dwc3","realtek,rtd1319-dwc3","realtek,rtd1319d-dwc3","realtek,rtd1395-dwc3","realtek,rtd1619-dwc3","realtek,rtd1619b-dwc3"
Item 2
Exact value (
const):"realtek,rtd-dwc3"
reg — required here #
Array item rules (items) #
Item 1
Address and length of register set for wrapper of dwc3 core.
Item 2
Address and length of register set for pm control.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required child node
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@98013e00 {
compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3";
reg = <0x98013e00 0x140>, <0x98013f60 0x4>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
usb@98050000 {
compatible = "snps,dwc3";
reg = <0x98050000 0x9000>;
interrupts = <0 94 4>;
phys = <&usb2phy &usb3phy>;
phy-names = "usb2-phy", "usb3-phy";
dr_mode = "otg";
usb-role-switch;
role-switch-default-mode = "host";
snps,dis_u2_susphy_quirk;
snps,parkmode-disable-ss-quirk;
snps,parkmode-disable-hs-quirk;
maximum-speed = "high-speed";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2023 Realtek Semiconductor Corporation
Realtek DHC RTD SoCs USB Type-C Connector detection
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/realtek,rtd-type-c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stanley Chang <stanley_chang@realtek.com>"
Realtek digital home center (DHC) RTD series SoCs include a type c module. This module is able to detect the state of type c connector.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "realtek,rtd1295-type-c", "realtek,rtd1312c-type-c", "realtek,rtd1315e-type-c", "realtek,rtd1319-type-c", "realtek,rtd1319d-type-c", "realtek,rtd1395-type-c", "realtek,rtd1619-type-c", "realtek,rtd1619b-type-c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb-cal"
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
The phandle to nvmem cell that contains the trimming data. The type c parameter trimming data specified via efuse. If unspecified, default value is used.
realtek,rd-ctrl-gpios — not listed as required here #
The gpio node to control external Rd on board.
Maximum number of items (maxItems): 1
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties for usb c connector.
Value type (type): "object"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
type-c@7220 {
compatible = "realtek,rtd1619b-type-c";
reg = <0x7220 0x20>;
interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&usb_cc1_pins>, <&usb_cc2_pins>;
nvmem-cells = <&otp_usb_cal>;
nvmem-cell-names = "usb-cal";
connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2023 Realtek Semiconductor Corporation
Realtek RTS5411 USB 3.0 hub controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/realtek,rts5411.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthias Kaehlcke <mka@chromium.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hub.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
vdd-supply — not listed as required here #
phandle to the regulator that provides power to the hub.
peer-hub — required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties and child nodes (properties)
reg — not listed as required here
Minimum value (minimum): 1
Maximum value (maximum): 4
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Properties and child nodes (
properties) #
reg— not listed as required here #Minimum value (
minimum):1Maximum value (
maximum):4
Required in this object (required): "peer-hub", "compatible", "reg"
Examples (examples) #
usb {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usbbda,5411";
reg = <1>;
vdd-supply = <&pp3300_hub>;
peer-hub = <&hub_3_0>;
#address-cells = <1>;
#size-cells = <0>;
/* USB 2.0 device on port 2 */
device@2 {
compatible = "usb123,4567";
reg = <2>;
};
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usbbda,411";
reg = <2>;
vdd-supply = <&pp3300_hub>;
peer-hub = <&hub_2_0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* Type-A connector on port 4 */
port@4 {
reg = <4>;
endpoint {
remote-endpoint = <&usb_a0_ss>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Renesas USB 3.2 Gen2 Host controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,rzg3e-xhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g056-xhci","renesas,r9a09g057-xhci"Item 2
Exact value (
const):"renesas,r9a09g047-xhci"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g047-xhci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Logical OR of all interrupt signals.
Item 2
System management interrupt
Item 3
Host system error interrupt
Item 4
Power management event interrupt
Item 5
xHC interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"all"
Item 2
Exact value (
const):"smi"
Item 3
Exact value (
const):"hse"
Item 4
Exact value (
const):"pme"
Item 5
Exact value (
const):"xhc"
clocks — required here #
Maximum number of items (maxItems): 1
phys — required here #
Maximum number of items (maxItems): 2
phy-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb2-phy"
Item 2
Exact value (
const):"usb3-phy"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "power-domains", "resets", "phys", "phy-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@15850000 {
compatible = "renesas,r9a09g047-xhci";
reg = <0x15850000 0x10000>;
interrupts = <GIC_SPI 759 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 758 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 757 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 756 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 755 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "all", "smi", "hse", "pme", "xhc";
clocks = <&cpg CPG_MOD 0xaf>;
power-domains = <&cpg>;
resets = <&cpg 0xaa>;
phys = <&usb3_phy>, <&usb3_phy>;
phy-names = "usb2-phy", "usb3-phy";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: RZ/V2N
Line 18: RZ/V2H(P)
Line 22: RZ/G3E
Renesas RZ/N1 SoCs USBF (USB Function) controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Renesas USBF controller is an USB2.0 device controller (UDC).
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"renesas,rzn1-usbf"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Internal bus clock (AHB) for Function
Item 2
Internal bus clock (AHB) for Power Management
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclkf"
Item 2
Exact value (
const):"hclkpm"
power-domains — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
The USBF EPC interrupt
Item 2
The USBF AHB-EPC interrupt
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
usb@4001e000 {
compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf";
reg = <0x4001e000 0x2000>;
interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysctrl R9A06G032_HCLK_USBF>,
<&sysctrl R9A06G032_HCLK_USBPM>;
clock-names = "hclkf", "hclkpm";
power-domains = <&sysctrl>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas RZ/V2M USB 3.1 DRD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,rzv2m-usb3drd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
The RZ/V2{M, MA} USB3.1 DRD module supports the following functions * Role swapping function by the ID pin of the Micro-AB receptacle * Battery Charging Specification Revision 1.2
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r9a09g011-usb3drd","renesas,r9a09g055-usb3drd"
Item 2
Exact value (
const):"renesas,rzv2m-usb3drd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Dual Role Device (DRD)
Item 2
Battery Charging
Item 3
Global Purpose Input
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"drd"
Item 2
Exact value (
const):"bc"
Item 3
Exact value (
const):"gpi"
clocks — required here #
Array item rules (items) #
Item 1
Peripheral AXI clock
Item 2
APB clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"reg"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
#size-cells — not listed as required here #
Properties matching a name pattern (patternProperties) #
^usb3peri@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/usb/renesas,usb3-peri.yaml
^usb@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): renesas,usb-xhci.yaml#
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r9a09g011-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb3drd: usb@85070400 {
compatible = "renesas,r9a09g011-usb3drd", "renesas,rzv2m-usb3drd";
reg = <0x85070400 0x100>;
interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "drd", "bc", "gpi";
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
clock-names = "axi", "reg";
power-domains = <&cpg>;
resets = <&cpg R9A09G011_USB_DRD_RESET>;
ranges;
#address-cells = <1>;
#size-cells = <1>;
usb3host: usb@85060000 {
compatible = "renesas,r9a09g011-xhci",
"renesas,rzv2m-xhci";
reg = <0x85060000 0x2000>;
interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
clock-names = "axi", "reg";
power-domains = <&cpg>;
resets = <&cpg R9A09G011_USB_ARESETN_H>;
};
usb3peri: usb3peri@85070000 {
compatible = "renesas,r9a09g011-usb3-peri",
"renesas,rzv2m-usb3-peri";
reg = <0x85070000 0x400>;
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
clock-names = "axi", "reg";
power-domains = <&cpg>;
resets = <&cpg R9A09G011_USB_ARESETN_P>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 21: RZ/V2M
Line 22: RZ/V2MA
Renesas USB xHCI controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,usb-xhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>", "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,xhci-r8a7742","renesas,xhci-r8a7743","renesas,xhci-r8a7744","renesas,xhci-r8a7790","renesas,xhci-r8a7791","renesas,xhci-r8a7793"Item 2
Exact value (
const):"renesas,rcar-gen2-xhci"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,xhci-r8a774a1","renesas,xhci-r8a774b1","renesas,xhci-r8a774c0","renesas,xhci-r8a774e1","renesas,xhci-r8a7795","renesas,xhci-r8a7796","renesas,xhci-r8a77961","renesas,xhci-r8a77965","renesas,xhci-r8a77990"Item 2
Exact value (
const):"renesas,rcar-gen3-xhci"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g011-xhci","renesas,r9a09g055-xhci"Item 2
Exact value (
const):"renesas,rzv2m-xhci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Main clock for host
Item 2
Register access clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"reg"
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains", "resets"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
xhci0: usb@ee000000 {
compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci";
reg = <0xee000000 0xc00>;
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 328>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 328>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 18: RZ/G1H
Line 19: RZ/G1M
Line 20: RZ/G1N
Line 21: R-Car H2
Line 22: R-Car M2-W
Line 23: R-Car M2-N
Line 24: R-Car Gen2 and RZ/G1
Line 27: RZ/G2M
Line 28: RZ/G2N
Line 29: RZ/G2E
Line 30: RZ/G2H
Line 31: R-Car H3
Line 32: R-Car M3-W
Line 33: R-Car M3-W+
Line 34: R-Car M3-N
Line 35: R-Car E3
Line 36: R-Car Gen3 and RZ/G2
Line 39: RZ/V2M
Line 40: RZ/V2MA
Line 41: RZ/{V2M, V2MA}
Renesas USB 3.0 Peripheral controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r8a774a1-usb3-peri","renesas,r8a774b1-usb3-peri","renesas,r8a774c0-usb3-peri","renesas,r8a774e1-usb3-peri","renesas,r8a7795-usb3-peri","renesas,r8a7796-usb3-peri","renesas,r8a77961-usb3-peri","renesas,r8a77965-usb3-peri","renesas,r8a77990-usb3-peri"Item 2
Exact value (
const):"renesas,rcar-gen3-usb3-peri"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g011-usb3-peri","renesas,r9a09g055-usb3-peri"Item 2
Exact value (
const):"renesas,rzv2m-usb3-peri"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Main clock
Item 2
Register access clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"reg"
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usb"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
usb-role-switch — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Support role switch.
companion — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle of a companion.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used.
Properties and child nodes (properties) #
port@0 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
High Speed (HS) data bus.
port@1 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) data bus.
Required in this object (required): "port@0", "port@1"
Required in this object (required): "compatible", "interrupts", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a774c0-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a774c0-sysc.h>
usb3_peri0: usb@ee020000 {
compatible = "renesas,r8a774c0-usb3-peri", "renesas,rcar-gen3-usb3-peri";
reg = <0xee020000 0x400>;
interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 328>;
companion = <&xhci0>;
usb-role-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usb3_hs_ep: endpoint {
remote-endpoint = <&hs_ep>;
};
};
port@1 {
reg = <1>;
usb3_role_switch: endpoint {
remote-endpoint = <&hd3ss3220_out_ep>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 17: RZ/G2M
Line 18: RZ/G2N
Line 19: RZ/G2E
Line 20: RZ/G2H
Line 21: R-Car H3
Line 22: R-Car M3-W
Line 23: R-Car M3-W+
Line 24: R-Car M3-N
Line 25: R-Car E3
Line 30: RZ/V2M
Line 31: RZ/V2MA
Renesas USBHS (HS-USB) controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/renesas,usbhs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,usbhs-r7s72100"Item 2
Exact value (
const):"renesas,rza1-usbhs"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rza2-usbhs"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,usbhs-r9a07g043","renesas,usbhs-r9a07g044","renesas,usbhs-r9a07g054","renesas,usbhs-r9a08g045","renesas,usbhs-r9a09g047","renesas,usbhs-r9a09g056","renesas,usbhs-r9a09g057"Item 2
Exact value (
const):"renesas,rzg2l-usbhs"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,usbhs-r8a7742","renesas,usbhs-r8a7743","renesas,usbhs-r8a7744","renesas,usbhs-r8a7745","renesas,usbhs-r8a77470","renesas,usbhs-r8a7790","renesas,usbhs-r8a7791","renesas,usbhs-r8a7792","renesas,usbhs-r8a7793","renesas,usbhs-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-usbhs"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,usbhs-r8a774a1","renesas,usbhs-r8a774b1","renesas,usbhs-r8a774c0","renesas,usbhs-r8a774e1","renesas,usbhs-r8a7795","renesas,usbhs-r8a7796","renesas,usbhs-r8a77961","renesas,usbhs-r8a77965","renesas,usbhs-r8a77990","renesas,usbhs-r8a77995"Item 2
Exact value (
const):"renesas,rcar-gen3-usbhs"
Rule 6
Exact value (
const):"renesas,usbhs-r9a09g077"
Rule 7
Array item rules (
items)Item 1
Exact value (
const):"renesas,usbhs-r9a09g087"Item 2
Exact value (
const):"renesas,usbhs-r9a09g077"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB 2.0 host
Item 2
USB 2.0 peripheral
Item 3
USB 2.0 clock selector
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
renesas,buswait — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Integer to use BUSWAIT register.
renesas,enable-gpio — not listed as required here #
Deprecated (deprecated): true
Maximum number of items (maxItems): 1
renesas,enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio specifier to check GPIO determining if USB function should be enabled.
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb"
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
dma-names — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"ch0"
Item 2
Exact value (
const):"ch1"
Item 3
Exact value (
const):"ch2"
Item 4
Exact value (
const):"ch3"
dr_mode — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB 2.0 host
Item 2
USB 2.0 peripheral
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzg2l-usbhs"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
U2P_IXL_INT
Item 2
U2P_INT_DMA[0]
Item 3
U2P_INT_DMA[1]
Item 4
U2P_INT_DMAERR
When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,usbhs-r9a09g077"When the condition matches (
then)Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
clocks— not listed as required hereMaximum number of items (
maxItems):1
interrupts— not listed as required hereArray item rules (
items)Item 1
USB function interrupt USB_FI
Item 2
USB function DMA0 transmit completion interrupt USB_FDMA0
Item 3
USB function DMA1 transmit completion interrupt USB_FDMA1
When the condition does not match (
else)Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
usbhs: usb@e6590000 {
compatible = "renesas,usbhs-r8a7790", "renesas,rcar-gen2-usbhs";
reg = <0xe6590000 0x100>;
interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 704>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 16: RZ/A1
Line 21: RZ/A2
Line 26: RZ/G2UL and RZ/Five
Line 27: RZ/G2{L,LC}
Line 28: RZ/V2L
Line 29: RZ/G3S
Line 30: RZ/G3E
Line 31: RZ/V2N
Line 32: RZ/V2H(P)
Line 37: RZ/G1H
Line 38: RZ/G1M
Line 39: RZ/G1N
Line 40: RZ/G1E
Line 41: RZ/G1C
Line 42: R-Car H2
Line 43: R-Car M2-W
Line 44: R-Car V2H
Line 45: R-Car M2-N
Line 46: R-Car E2
Line 51: RZ/G2M
Line 52: RZ/G2N
Line 53: RZ/G2E
Line 54: RZ/G2H
Line 55: R-Car H3
Line 56: R-Car M3-W
Line 57: R-Car M3-W+
Line 58: R-Car M3-N
Line 59: R-Car E3
Line 60: R-Car D3
Line 63: RZ/T2H
Line 66: RZ/N2H
Line 67: RZ/T2H
Richtek RT1711H Type-C Port Switch and Power Delivery controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/richtek,rt1711h.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gene Chen <gene_chen@richtek.com>"
The RT1711H is a USB Type-C controller that complies with the latest USB Type-C and PD standards. It does the USB Type-C detection including attach and orientation. It integrates the physical layer of the USB BMC power delivery protocol to allow up to 100W of power. The BMC PD block enables full support for alternative interfaces of the Type-C specification.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "richtek,rt1711h", "richtek,rt1715"
RT1711H support PD20, RT1715 support PD30 except Fast Role Swap.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vbus-supply — not listed as required here #
VBUS power supply
wakeup-source — not listed as required here #
Value type (type): "boolean"
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties for usb c connector.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "connector", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/usb/pd.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
rt1711h@4e {
compatible = "richtek,rt1711h";
reg = <0x4e>;
interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
wakeup-source;
connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
op-sink-microwatt = <10000000>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&usb_hs>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&usb_ss>;
};
};
port@2 {
reg = <2>;
endpoint {
remote-endpoint = <&dp_aux>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Richtek RT1719 sink-only Type-C PD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/richtek,rt1719.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
The RT1719 is a sink-only USB Type-C controller that complies with the latest USB Type-C and PD standards. It does the USB Type-C detection including attach and orientation. It integrates the physical layer of the USB BMC power delivery protocol to allow up to 100W of power. The BMC PD block enables full support for alternative interfaces of the Type-C specification.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "richtek,rt1719"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
enable IRQ remote wakeup, see power/wakeup-source.txt
Value type (type): "boolean"
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml#
Properties for usb c connector.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "connector", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
rt1719@43 {
compatible = "richtek,rt1719";
reg = <0x43>;
interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>;
wakeup-source;
connector {
compatible = "usb-c-connector";
label = "USB-C";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&usb_hs>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&usb_ss>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Rockchip SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/rockchip,dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
The common content of the node is defined in snps,dwc3.yaml. Phy documentation is provided in the following places. USB2.0 PHY Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml Type-C PHY Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3328-dwc3","rockchip,rk3562-dwc3","rockchip,rk3568-dwc3","rockchip,rk3576-dwc3","rockchip,rk3588-dwc3"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"rockchip,rk3328-dwc3","rockchip,rk3562-dwc3","rockchip,rk3568-dwc3","rockchip,rk3576-dwc3","rockchip,rk3588-dwc3"
Item 2
Exact value (
const):"snps,dwc3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Controller reference clock, must to be 24 MHz
Item 2
Controller suspend clock, must to be 24 MHz or 32 KHz
Item 3
Master/Core clock, must to be >= 62.5 MHz for SS operation and >= 30MHz for HS operation
Item 4
Controller grf clock OR UTMI clock
Item 5
PIPE clock
clock-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"suspend_clk"
Item 3
Exact value (
const):"bus_clk"
Item 4
Item 5
Exact value (
const):"pipe"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "usb3-otg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3328-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):4
clock-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"ref_clk"Item 2
Exact value (
const):"suspend_clk"Item 3
Exact value (
const):"bus_clk"Item 4
Exact value (
const):"grf_clk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3562-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ref_clk"Item 2
Exact value (
const):"suspend_clk"Item 3
Exact value (
const):"bus_clk"Item 4
Exact value (
const):"pipe"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3568-dwc3","rockchip,rk3576-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereMaximum number of items (
maxItems):3
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3588-dwc3"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"ref_clk"Item 2
Exact value (
const):"suspend_clk"Item 3
Exact value (
const):"bus_clk"Item 4
Exact value (
const):"utmi"Item 5
Exact value (
const):"pipe"
Examples (examples) #
#include <dt-bindings/clock/rk3328-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
usbdrd3_0: usb@fe800000 {
compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
reg = <0x0 0xfe800000 0x0 0x100000>;
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
<&cru ACLK_USB3OTG>;
clock-names = "ref_clk", "suspend_clk",
"bus_clk", "grf_clk";
dr_mode = "otg";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Rockchip RK3399 SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/rockchip,rk3399-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rockchip,rk3399-dwc3"
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 2
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Array item rules (items) #
Item 1
Controller reference clock, must to be 24 MHz
Item 2
Controller suspend clock, must to be 24 MHz or 32 KHz
Item 3
Master/Core clock, must to be >= 62.5 MHz for SS operation and >= 30MHz for HS operation
Item 4
USB3 aclk peri
Item 5
USB3 aclk
Item 6
Controller grf clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"suspend_clk"
Item 3
Exact value (
const):"bus_clk"
Item 4
Exact value (
const):"aclk_usb3_rksoc_axi_perf"
Item 5
Exact value (
const):"aclk_usb3"
Item 6
Exact value (
const):"grf_clk"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "usb3-otg"
Properties matching a name pattern (patternProperties) #
^usb@ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "resets", "reset-names"
Examples (examples) #
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/power/rk3399-power.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
usb {
compatible = "rockchip,rk3399-dwc3";
#address-cells = <2>;
#size-cells = <2>;
ranges;
clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
<&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
<&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
clock-names = "ref_clk", "suspend_clk",
"bus_clk", "aclk_usb3_rksoc_axi_perf",
"aclk_usb3", "grf_clk";
resets = <&cru SRST_A_USB3_OTG0>;
reset-names = "usb3-otg";
usb@fe800000 {
compatible = "snps,dwc3";
reg = <0x0 0xfe800000 0x0 0x100000>;
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
clocks = <&cru SCLK_USB3OTG0_REF>, <&cru ACLK_USB3OTG0>,
<&cru SCLK_USB3OTG0_SUSPEND>;
clock-names = "ref", "bus_early", "suspend";
dr_mode = "otg";
phys = <&u2phy0_otg>, <&tcphy0_usb3>;
phy-names = "usb2-phy", "usb3-phy";
phy_type = "utmi_wide";
snps,dis_enblslpm_quirk;
snps,dis-u2-freeclk-exists-quirk;
snps,dis_u2_susphy_quirk;
snps,dis-del-phy-power-chg-quirk;
snps,dis-tx-ipgap-linecheck-quirk;
power-domains = <&power RK3399_PD_USB3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Samsung Exynos SoC USB 3.0 DWC3 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/samsung,exynos-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"google,gs101-dwusb3","samsung,exynos2200-dwusb3","samsung,exynos5250-dwusb3","samsung,exynos5433-dwusb3","samsung,exynos7-dwusb3","samsung,exynos7870-dwusb3","samsung,exynos850-dwusb3","samsung,exynosautov920-dwusb3"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"samsung,exynos8890-dwusb3"Item 2
Exact value (
const):"samsung,exynos7-dwusb3"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"samsung,exynos990-dwusb3"Item 2
Exact value (
const):"samsung,exynos850-dwusb3"
#address-cells — required here #
Exact value (const): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
ranges — required here #
true — No constraints added by this property rule.
#size-cells — required here #
Exact value (const): 1
vdd10-supply — not listed as required here #
1.0V power supply
vdd33-supply — required here #
3.0V/3.3V power supply
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required child node
Required in this object (required): "compatible", "#address-cells", "clocks", "clock-names", "ranges", "#size-cells", "vdd33-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus_early"Item 2
Exact value (
const):"susp_clk"Item 3
Exact value (
const):"link_aclk"Item 4
Exact value (
const):"link_pclk"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos2200-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"link_aclk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos5250-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usbdrd30"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos5433-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"aclk"Item 2
Exact value (
const):"susp_clk"Item 3
Exact value (
const):"phyclk"Item 4
Exact value (
const):"pipe_pclk"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"usbdrd30"Item 2
Exact value (
const):"usbdrd30_susp_clk"Item 3
Exact value (
const):"usbdrd30_axius_clk"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus_early"Item 2
Exact value (
const):"ref"Item 3
Exact value (
const):"ctrl"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos850-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus_early"Item 2
Exact value (
const):"ref"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov920-dwusb3"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ref"Item 2
Exact value (
const):"susp_clk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos5420.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@12000000 {
compatible = "samsung,exynos5250-dwusb3";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x12000000 0x10000>;
clocks = <&clock CLK_USBD300>;
clock-names = "usbdrd30";
vdd33-supply = <&ldo9_reg>;
vdd10-supply = <&ldo11_reg>;
usb@0 {
compatible = "snps,dwc3";
reg = <0x0 0x10000>;
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
phys = <&usbdrd_phy0 0>, <&usbdrd_phy0 1>;
phy-names = "usb2-phy", "usb3-phy";
snps,dis_u3_susphy_quirk;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung Exynos SoC USB 2.0 EHCI/OHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/samsung,exynos-usb2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynos4210-ehci", "samsung,exynos4210-ohci"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"usbhost"
interrupts — required here #
Maximum number of items (maxItems): 1
phys — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
phy-names — required here #
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg — required here #
Maximum number of items (maxItems): 1
samsung,vbus-gpio — not listed as required here #
Only for controller in EHCI mode, if present, specifies the GPIO that needs to be pulled up for the bus to be powered.
Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "phys", "phy-names", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos4210-ohci"When the condition matches (
then) #Properties and child nodes (
properties)
samsung,vbus-gpio— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos5420.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@12110000 {
compatible = "samsung,exynos4210-ehci";
reg = <0x12110000 0x100>;
interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clock CLK_USBH20>;
clock-names = "usbhost";
phys = <&usb2_phy 0>;
phy-names = "host";
#address-cells = <1>;
#size-cells = <0>;
hub@1 {
compatible = "usb0424,9514";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
usbether@1 {
compatible = "usb0424,ec00";
reg = <1>;
local-mac-address = [00 00 00 00 00 00];
};
};
};
usb@12120000 {
compatible = "samsung,exynos4210-ohci";
reg = <0x12120000 0x100>;
interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clock CLK_USBH20>;
clock-names = "usbhost";
phys = <&usb2_phy 0>;
phy-names = "host";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SMSC USB3503 High-Speed Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/smsc,usb3503.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dongjin Kim <tobetter@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "smsc,usb3503", "smsc,usb3503a", "smsc,usb3803"
reg — not listed as required here #
Maximum number of items (maxItems): 1
connect-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO for connect
intn-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO for interrupt
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO for reset
bypass-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO for bypass. Control signal to select between HUB MODE and BYPASS MODE.
disabled-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Array item rules (items) #
Minimum value (
minimum):1Maximum value (
maximum):3
Specifies the ports unused using their port number. Do not describe this property if all ports have to be enabled.
initial-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies initial mode. 1 for Hub mode, 2 for standby mode and 3 for bypass mode. In bypass mode the downstream port 3 is connected to the upstream port with low switch resistance R_on.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Clock used for driving REFCLK signal. If not provided the driver assumes that clock signal is always available, its rate is specified by REF_SEL pins and a value from the primary reference clock frequencies table is used.
clock-names — not listed as required here #
Exact value (const): "refclk"
refclk-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Frequency of the REFCLK signal as defined by REF_SEL pins. If not provided, driver will not set rate of the REFCLK signal and assume that a value from the primary reference clock frequencies table is used.
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
bypass-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
initial-mode— not listed as required hereWhen the condition does not match (
else) #Properties and child nodes (
properties)
initial-mode— not listed as required here
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
usb-hub@8 {
compatible = "smsc,usb3503";
reg = <0x08>;
connect-gpios = <&gpx3 0 1>;
disabled-ports = <2 3>;
intn-gpios = <&gpx3 4 1>;
reset-gpios = <&gpx3 5 1>;
initial-mode = <1>;
clocks = <&clks 80>;
clock-names = "refclk";
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
usb-hub@8 {
compatible = "smsc,usb3803";
reg = <0x08>;
connect-gpios = <&gpx3 0 1>;
disabled-ports = <2 3>;
intn-gpios = <&gpx3 4 1>;
reset-gpios = <&gpx3 5 1>;
bypass-gpios = <&gpx3 6 1>;
initial-mode = <3>;
clocks = <&clks 80>;
clock-names = "refclk";
};
};
#include <dt-bindings/gpio/gpio.h>
usb-hub {
/* I2C is not connected */
compatible = "smsc,usb3503";
initial-mode = <1>; /* initialize in HUB mode */
disabled-ports = <1>;
intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
refclk-frequency = <19200000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Synopsys DesignWare USB3 Controller common properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/snps,dwc3-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Felipe Balbi <balbi@kernel.org>"
Defines the properties of the DWC3 core as being embedded in either an vendor-specific implementation or as a standalone component.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
dr_mode— required hereExact value (
const):"peripheral"When the condition matches (
then) #Shared schema rule (
$ref):usb.yaml#When the condition does not match (
else) #Shared schema rule (
$ref):usb-xhci.yaml#
Properties and child nodes (properties) #
extcon — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
usb-phy — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB2/HS PHY
Item 2
USB3/SS PHY
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)
Rule 2
Array item rules (
items)String pattern (
pattern):"^usb(2-([0-9]|1[0-4])|3-[0-3])$"
snps,usb2-lpm-disable — not listed as required here #
Indicate if we don't want to enable USB2 HW LPM for host mode.
Value type (type): "boolean"
snps,usb3_lpm_capable — not listed as required here #
Determines if platform is USB3 LPM capable
Value type (type): "boolean"
snps,usb2-gadget-lpm-disable — not listed as required here #
Indicate if we don't want to enable USB2 HW LPM for gadget mode.
Value type (type): "boolean"
snps,reserved-endpoints — not listed as required here #
Reserve endpoints for other needs, e.g, for tracing control and output. When set, the driver will avoid using them for the regular USB transfers.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 30
Array item rules (items) #
Minimum value (
minimum):2Maximum value (
maximum):31
snps,dis-start-transfer-quirk — not listed as required here #
When set, disable isoc START TRANSFER command failure SW work-around for DWC_usb31 version 1.70a-ea06 and prior.
Value type (type): "boolean"
snps,disable_scramble_quirk — not listed as required here #
True when SW should disable data scrambling. Only really useful for FPGA builds.
Value type (type): "boolean"
snps,has-lpm-erratum — not listed as required here #
True when DWC3 was configured with LPM Erratum enabled
Value type (type): "boolean"
snps,lpm-nyet-threshold — not listed as required here #
LPM NYET threshold
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
snps,u2exit_lfps_quirk — not listed as required here #
Set if we want to enable u2exit lfps quirk
Value type (type): "boolean"
snps,u2ss_inp3_quirk — not listed as required here #
Set if we enable P3 OK for U2/SS Inactive quirk
Value type (type): "boolean"
snps,req_p1p2p3_quirk — not listed as required here #
When set, the core will always request for P1/P2/P3 transition sequence.
Value type (type): "boolean"
snps,del_p1p2p3_quirk — not listed as required here #
When set core will delay P1/P2/P3 until a certain amount of 8B10B errors occur.
Value type (type): "boolean"
snps,del_phy_power_chg_quirk — not listed as required here #
When set core will delay PHY power change from P0 to P1/P2/P3.
Value type (type): "boolean"
snps,lfps_filter_quirk — not listed as required here #
When set core will filter LFPS reception.
Value type (type): "boolean"
snps,rx_detect_poll_quirk — not listed as required here #
when set core will disable a 400us delay to start Polling LFPS after RX.Detect.
Value type (type): "boolean"
snps,tx_de_emphasis_quirk — not listed as required here #
When set core will set Tx de-emphasis value
Value type (type): "boolean"
snps,tx_de_emphasis — not listed as required here #
The value driven to the PHY is controlled by the LTSSM during USB3 Compliance mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Allowed values (enum): 0, 1, 2
snps,dis_u3_susphy_quirk — not listed as required here #
When set core will disable USB3 suspend phy
Value type (type): "boolean"
snps,dis_u2_susphy_quirk — not listed as required here #
When set core will disable USB2 suspend phy
Value type (type): "boolean"
snps,dis_enblslpm_quirk — not listed as required here #
When set clears the enblslpm in GUSB2PHYCFG, disabling the suspend signal to the PHY.
Value type (type): "boolean"
snps,dis-u1-entry-quirk — not listed as required here #
Set if link entering into U1 needs to be disabled
Value type (type): "boolean"
snps,dis-u2-entry-quirk — not listed as required here #
Set if link entering into U2 needs to be disabled
Value type (type): "boolean"
snps,dis_rxdet_inp3_quirk — not listed as required here #
When set core will disable receiver detection in PHY P3 power state.
Value type (type): "boolean"
snps,dis-u2-freeclk-exists-quirk — not listed as required here #
When set, clear the u2_freeclk_exists in GUSB2PHYCFG, specify that USB2 PHY doesn't provide a free-running PHY clock.
Value type (type): "boolean"
snps,dis-del-phy-power-chg-quirk — not listed as required here #
When set core will change PHY power from P0 to P1/P2/P3 without delay.
Value type (type): "boolean"
snps,dis-tx-ipgap-linecheck-quirk — not listed as required here #
When set, disable u2mac linestate check during HS transmit
Value type (type): "boolean"
snps,parkmode-disable-ss-quirk — not listed as required here #
When set, all SuperSpeed bus instances in park mode are disabled.
Value type (type): "boolean"
snps,parkmode-disable-hs-quirk — not listed as required here #
When set, all HighSpeed bus instances in park mode are disabled.
Value type (type): "boolean"
snps,dis_metastability_quirk — not listed as required here #
When set, disable metastability workaround. CAUTION! Use only if you are absolutely sure of it.
Value type (type): "boolean"
snps,dis-split-quirk — not listed as required here #
When set, change the way URBs are handled by the driver. Needed to avoid -EPROTO errors with usbhid on some devices (Hikey 970).
Value type (type): "boolean"
snps,gfladj-refclk-lpm-sel-quirk — not listed as required here #
When set, run the SOF/ITP counter based on ref_clk.
Value type (type): "boolean"
snps,resume-hs-terminations — not listed as required here #
Fix the issue of HS terminations CRC error on resume by enabling this quirk. When set, all the termsel, xcvrsel, opmode becomes 0 during end of resume. This option is to support certain legacy ULPI PHYs.
Value type (type): "boolean"
snps,ulpi-ext-vbus-drv — not listed as required here #
Some ULPI USB PHY does not support internal VBUS supply, and driving the CPEN pin, requires the configuration of the ulpi DRVVBUSEXTERNAL bit. When set, the xhci host will configure the USB2 PHY drives VBUS with an external supply.
Value type (type): "boolean"
snps,is-utmi-l1-suspend — not listed as required here #
True when DWC3 asserts output signal utmi_l1_suspend_n, false when asserts utmi_sleep_n.
Value type (type): "boolean"
snps,hird-threshold — not listed as required here #
HIRD threshold
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
snps,hsphy_interface — not listed as required here #
High-Speed PHY interface selection between UTMI+ and ULPI when the DWC_USB3_HSPHY_INTERFACE has value 3.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "utmi", "ulpi"
snps,quirk-frame-length-adjustment — not listed as required here #
Value for GFLADJ_30MHZ field of GFLADJ register for post-silicon frame length adjustment when the fladj_30mhz_sdbnd signal is invalid or incorrect.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 63
snps,ref-clock-period-ns — not listed as required here #
Value for REFCLKPER field of GUCTL register for reference clock period in nanoseconds, when the hardware set default does not match the actual clock. This binding is deprecated. Instead, provide an appropriate reference clock.
Minimum value (minimum): 8
Maximum value (maximum): 62
Deprecated (deprecated): true
snps,rx-thr-num-pkt — not listed as required here #
USB RX packet threshold count. In host mode, this field specifies the space that must be available in the RX FIFO before the core can start the corresponding USB RX transaction (burst). In device mode, this field specifies the space that must be available in the RX FIFO before the core can send ERDY for a flow-controlled endpoint. It is only used for SuperSpeed. The valid values for this field are from 1 to 15. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 15
snps,rx-max-burst — not listed as required here #
Max USB RX burst size. In host mode, this field specifies the Maximum Bulk IN burst the DWC_usb3 core can perform. When the system bus is slower than the USB, RX FIFO can overrun during a long burst. You can program a smaller value to this field to limit the RX burst size that the core can perform. It only applies to SS Bulk, Isochronous, and Interrupt IN endpoints in the host mode. In device mode, this field specifies the NUMP value that is sent in ERDY for an OUT endpoint. The valid values for this field are from 1 to 16. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-thr-num-pkt — not listed as required here #
USB TX packet threshold count. This field specifies the number of packets that must be in the TXFIFO before the core can start transmission for the corresponding USB transaction (burst). This count is valid in both host and device modes. It is only used for SuperSpeed operation. Valid values are from 1 to 15. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 15
snps,tx-max-burst — not listed as required here #
Max USB TX burst size. When the system bus is slower than the USB, TX FIFO can underrun during a long burst. Program a smaller value to this field to limit the TX burst size that the core can execute. In Host mode, it only applies to SS Bulk, Isochronous, and Interrupt OUT endpoints. This value is not used in device mode. Valid values are from 1 to 16. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,rx-thr-num-pkt-prd — not listed as required here #
Periodic ESS RX packet threshold count (host mode only). Set this and snps,rx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.4) to enable periodic ESS RX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,rx-max-burst-prd — not listed as required here #
Max periodic ESS RX burst size (host mode only). Set this and snps,rx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.4) to enable periodic ESS RX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-thr-num-pkt-prd — not listed as required here #
Periodic ESS TX packet threshold count (host mode only). Set this and snps,tx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.3) to enable periodic ESS TX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-max-burst-prd — not listed as required here #
Max periodic ESS TX burst size (host mode only). Set this and snps,tx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.3) to enable periodic ESS TX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
tx-fifo-resize — not listed as required here #
Determines if the TX fifos can be dynamically resized depending on the number of IN endpoints used and if bursting is supported. This may help improve bandwidth on platforms with higher system latencies, as increased fifo space allows for the controller to prefetch data into its internal memory.
Value type (type): "boolean"
tx-fifo-max-num — not listed as required here #
Specifies the max number of packets the txfifo resizing logic can account for when higher endpoint bursting is used. (bMaxBurst > 6) The higher the number, the more fifo space the txfifo resizing logic will allocate for that endpoint.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 3
snps,incr-burst-type-adjustment — not listed as required here #
Value for INCR burst type of GSBUSCFG0 register, undefined length INCR burst type enable and INCRx type. A single value means INCRX burst mode enabled. If more than one value specified, undefined length INCR burst type will be enabled with burst lengths utilized up to the maximum of the values passed in this property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Items must be unique (uniqueItems): true
Array item rules (items) #
num-hc-interrupters — not listed as required here #
Maximum value (maximum): 8
Default value (default): 1
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Connector for dual role switch
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
This port is used with the 'usb-role-switch' property to connect the dwc3 to type C connector.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Those ports should be used with any connector to the data bus of this controller using the OF graph bindings specified if the "usb-role-switch" property is used.
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
High Speed (HS) data bus.
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) data bus.
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable USB remote wakeup.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 142: -6dB de-emphasis
Line 143: -3.5dB de-emphasis
Line 144: No de-emphasis
Synopsys DesignWare USB3 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
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
Socionext Uniphier SuperSpeed DWC3 USB SoC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/socionext,uniphier-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>", "Masami Hiramatsu <mhiramat@kernel.org>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-dwc3"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"socionext,uniphier-dwc3"
Item 2
Exact value (
const):"snps,dwc3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Host or single combined interrupt
Item 2
Peripheral interrupt
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"peripheral"
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
Item 2
Exact value (
const):"bus_early"
Item 3
Exact value (
const):"suspend"
phys — required here #
1 to 4 HighSpeed PHYs followed by 1 or 2 SuperSpeed PHYs
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "phys"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc3.yaml#
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb@65a00000 {
compatible = "socionext,uniphier-dwc3", "snps,dwc3";
reg = <0x65a00000 0xcd00>;
interrupt-names = "dwc_usb3";
interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "ref", "bus_early", "suspend";
clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
resets = <&usb0_rst 15>;
phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
<&usb0_ssphy0>, <&usb0_ssphy1>;
dr_mode = "host";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SpacemiT K1 SuperSpeed DWC3 USB SoC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/spacemit,k1-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ze Huang <huang.ze@linux.dev>"
The SpacemiT K1 embeds a DWC3 USB IP Core which supports Host functions for USB 3.0 and DRD for USB 2.0.
Key features: - USB3.0 SuperSpeed and USB2.0 High/Full/Low-Speed support - Supports low-power modes (USB2.0 suspend, USB3.0 U1/U2/U3) - Internal DMA controller and flexible endpoint FIFO sizing
Communication Interface: - Use of PIPE3 (125MHz) interface for USB3.0 PHY - Use of UTMI+ (30/60MHz) interface for USB2.0 PHY
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 #
Exact value (const): "spacemit,k1-dwc3"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "usbdrd30"
interrupts — required here #
Maximum number of items (maxItems): 1
phys — required here #
Array item rules (items) #
Item 1
phandle to USB2/HS PHY
Item 2
phandle to USB3/SS PHY
phy-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb2-phy"
Item 2
Exact value (
const):"usb3-phy"
resets — required here #
Array item rules (items) #
Item 1
USB3.0 AHB reset
Item 2
USB3.0 VCC reset
Item 3
USB3.0 PHY reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"vcc"
Item 3
Exact value (
const):"phy"
reset-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 2
delay after reset sequence [us]
vbus-supply — not listed as required here #
A phandle to the regulator supplying the VBUS voltage.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "phys", "phy-names", "resets", "reset-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@c0a00000 {
compatible = "spacemit,k1-dwc3";
reg = <0xc0a00000 0x10000>;
clocks = <&syscon_apmu 16>;
clock-names = "usbdrd30";
interrupts = <125>;
phys = <&usb2phy>, <&usb3phy>;
phy-names = "usb2-phy", "usb3-phy";
resets = <&syscon_apmu 8>,
<&syscon_apmu 9>,
<&syscon_apmu 10>;
reset-names = "ahb", "vcc", "phy";
reset-delay = <2>;
vbus-supply = <&usb3_vbus>;
#address-cells = <1>;
#size-cells = <0>;
hub_2_0: hub@1 {
compatible = "usb2109,2817";
reg = <1>;
vdd-supply = <&usb3_vhub>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio 3 28 1>;
};
hub_3_0: hub@2 {
compatible = "usb2109,817";
reg = <2>;
vdd-supply = <&usb3_vhub>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio 3 28 1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics STUSB160x Type-C controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/st,stusb160x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stusb1600"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
main power supply (4.1V-22V)
vsys-supply — not listed as required here #
low power supply (3.0V-5.5V)
vconn-supply — not listed as required here #
power supply (2.7V-5.5V) used to supply VConn on CC pin in source or dual power role
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "usb-c-connector"
power-role — not listed as required here
true — No constraints added by this property rule.
typec-power-opmode — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible"
Required in this object (required): "compatible", "reg", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec: stusb1600@28 {
compatible = "st,stusb1600";
reg = <0x28>;
vdd-supply = <&vbus_drd>;
vsys-supply = <&vdd_usb>;
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpioi>;
typec_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
power-role = "dual";
data-role = "dual";
typec-power-opmode = "default";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
typec_con_ep: endpoint {
remote-endpoint = <&usbotg_hs_ep>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
STMicroelectronics STM32G0 USB Type-C PD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/st,typec-stm32g0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32G0 MCU can be programmed to control Type-C connector(s) through I2C typically using the UCSI protocol over I2C, with a dedicated alert (interrupt) pin.
Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stm32g0-typec"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
firmware-name — not listed as required here #
Should contain the name of the default firmware image file located on the firmware search path
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec@53 {
compatible = "st,stm32g0-typec";
reg = <0x53>;
/* Alert pin on GPIO PE12 */
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpioe>;
/* Example with one type-C connector */
connector {
compatible = "usb-c-connector";
label = "USB-C";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
con_usb_c_ep: endpoint {
remote-endpoint = <&usb_ep>;
};
};
};
};
};
};
usb {
usb-role-switch;
port {
usb_ep: endpoint {
remote-endpoint = <&con_usb_c_ep>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
StarFive JH7110 wrapper module for the Cadence USBSS-DRD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/starfive,jh7110-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Minda Chen <minda.chen@starfivetech.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "starfive,jh7110-usb"
ranges — required here #
true — No constraints added by this property rule.
starfive,stg-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to System Register Controller stg_syscon node.
Item 2
dr mode register offset of STG_SYSCONSAIF__SYSCFG register for USB.
The phandle to System Register Controller syscon node and the offset of STG_SYSCONSAIF__SYSCFG register for USB.
dr_mode — required here #
Allowed values (enum): "host", "otg", "peripheral"
#address-cells — required here #
#size-cells — required here #
clocks — required here #
Array item rules (items) #
Item 1
link power management clock
Item 2
standby clock
Item 3
APB clock
Item 4
AXI clock
Item 5
UTMI APB clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"lpm"
Item 2
Exact value (
const):"stb"
Item 3
Exact value (
const):"apb"
Item 4
Exact value (
const):"axi"
Item 5
Exact value (
const):"utmi_apb"
resets — required here #
Array item rules (items) #
Item 1
Power up reset
Item 2
APB clock reset
Item 3
AXI clock reset
Item 4
UTMI APB clock reset
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"pwrup"
Item 2
Exact value (
const):"apb"
Item 3
Exact value (
const):"axi"
Item 4
Exact value (
const):"utmi_apb"
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): cdns,usb3.yaml#
Required child node
Required in this object (required): "compatible", "ranges", "starfive,stg-syscon", "#address-cells", "#size-cells", "dr_mode", "clocks", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb@10100000 {
compatible = "starfive,jh7110-usb";
ranges = <0x0 0x10100000 0x100000>;
#address-cells = <1>;
#size-cells = <1>;
starfive,stg-syscon = <&stg_syscon 0x4>;
clocks = <&syscrg 4>,
<&stgcrg 5>,
<&stgcrg 1>,
<&stgcrg 3>,
<&stgcrg 2>;
clock-names = "lpm", "stb", "apb", "axi", "utmi_apb";
resets = <&stgcrg 10>,
<&stgcrg 8>,
<&stgcrg 7>,
<&stgcrg 9>;
reset-names = "pwrup", "apb", "axi", "utmi_apb";
dr_mode = "host";
usb@0 {
compatible = "cdns,usb3";
reg = <0x0 0x10000>,
<0x10000 0x10000>,
<0x20000 0x10000>;
reg-names = "otg", "xhci", "dev";
interrupts = <100>, <108>, <110>;
interrupt-names = "host", "peripheral", "otg";
maximum-speed = "super-speed";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI's AM62 wrapper module for the Synopsys USBSS-DRD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,am62-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Aswath Govindraju <a-govindraju@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,am62-usb"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB CFG register space
Item 2
USB PHY2 register space
ranges — not listed as required here #
true — No constraints added by this property rule.
power-domains — required here #
PM domain provider node and an args specifier containing the USB ISO device id value. See, Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
Maximum number of items (maxItems): 1
clocks — required here #
Clock phandle to usb2_refclk
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
ti,vbus-divider — not listed as required here #
Should be present if USB VBUS line is connected to the VBUS pin of the SoC via a 1/3 voltage divider.
Value type (type): "boolean"
ti,syscon-phy-pll-refclk — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
Phandle to the SYSCON entry
Item 2
USB phy control register offset within SYSCON
Specifier for conveying frequency of ref clock input, for the operation of USB2PHY.
#address-cells — not listed as required here #
Exact value (const): 2
#size-cells — not listed as required here #
Exact value (const): 2
Properties matching a name pattern (patternProperties) #
^usb@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required child node
Required in this object (required): "compatible", "reg", "power-domains", "clocks", "clock-names", "ti,syscon-phy-pll-refclk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/soc/ti,sci_pm_domain.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
usbss1: usb@f910000 {
compatible = "ti,am62-usb";
reg = <0x00 0x0f910000 0x00 0x800>,
<0x00 0x0f918000 0x00 0x400>;
clocks = <&k3_clks 162 3>;
clock-names = "ref";
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
#address-cells = <2>;
#size-cells = <2>;
usb@31100000 {
compatible = "snps,dwc3";
reg = <0x00 0x31100000 0x00 0x50000>;
interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
<GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
interrupt-names = "host", "peripheral";
maximum-speed = "high-speed";
dr_mode = "otg";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
TI HD3SS3220 TypeC DRP Port Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,hd3ss3220.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
HD3SS3220 is a USB SuperSpeed (SS) 2:1 mux with DRP port controller. The device provides Channel Configuration (CC) logic and 5V VCONN sourcing for ecosystems implementing USB Type-C. The HD3SS3220 can be configured as a Downstream Facing Port (DFP), Upstream Facing Port (UFP) or a Dual Role Port (DRP) making it ideal for any application.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,hd3ss3220"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
id-gpios — not listed as required here #
An input gpio for USB ID pin. Upon detecting a UFP device, HD3SS3220 will keep ID pin high if VBUS is not at VSafe0V. Once VBUS is at VSafe0V, the HD3SS3220 will assert ID pin low. This is done to enforce Type-C requirement that VBUS must be at VSafe0V before re-enabling VBUS.
Maximum number of items (maxItems): 1
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
OF graph bindings (specified in bindings/graph.txt) that model SS data bus to the SS capable connector.
Properties and child nodes (properties) #
port@0 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) MUX inputs connected to SS capable connector.
port@1 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output of 2:1 MUX connected to Super Speed (SS) data bus.
Required in this object (required): "port@0", "port@1"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
hd3ss3220@47 {
compatible = "ti,hd3ss3220";
reg = <0x47>;
interrupt-parent = <&gpio6>;
interrupts = <3>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
hd3ss3220_in_ep: endpoint {
remote-endpoint = <&ss_ep>;
};
};
port@1 {
reg = <1>;
hd3ss3220_out_ep: endpoint {
remote-endpoint = <&usb3_role_switch>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI wrapper module for the Cadence USBSS-DRD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,j721e-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roger Quadros <rogerq@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"ti,j721e-usb"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ti,am64-usb"Item 2
Exact value (
const):"ti,j721e-usb"
reg — required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
power-domains — required here #
PM domain provider node and an args specifier containing the USB device id value. See, Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
Maximum number of items (maxItems): 1
clocks — required here #
Clock phandles to usb2_refclk and lpm_clk
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
Item 2
Exact value (
const):"lpm"
ti,usb2-only — not listed as required here #
If present, it restricts the controller to USB2.0 mode of operation. Must be present if USB3 PHY is not available for USB.
Value type (type): "boolean"
ti,vbus-divider — not listed as required here #
Should be present if USB VBUS line is connected to the VBUS pin of the SoC via a 1/3 voltage divider.
Value type (type): "boolean"
#address-cells — not listed as required here #
Exact value (const): 2
#size-cells — not listed as required here #
Exact value (const): 2
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^usb@ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "compatible", "reg", "power-domains", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/soc/ti,sci_pm_domain.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
cdns_usb@4104000 {
compatible = "ti,j721e-usb";
reg = <0x00 0x4104000 0x00 0x100>;
power-domains = <&k3_pds 288 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 288 15>, <&k3_clks 288 3>;
clock-names = "ref", "lpm";
assigned-clocks = <&k3_clks 288 15>; /* USB2_REFCLK */
assigned-clock-parents = <&k3_clks 288 16>; /* HFOSC0 */
#address-cells = <2>;
#size-cells = <2>;
usb@6000000 {
compatible = "cdns,usb3";
reg = <0x00 0x6000000 0x00 0x10000>,
<0x00 0x6010000 0x00 0x10000>,
<0x00 0x6020000 0x00 0x10000>;
reg-names = "otg", "xhci", "dev";
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, /* irq.6 */
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; /* otgirq.0 */
interrupt-names = "host",
"peripheral",
"otg";
maximum-speed = "super-speed";
dr_mode = "otg";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
TI Keystone Soc USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,keystone-dwc3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roger Quadros <rogerq@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Should contain a phandle to a PM domain provider node and an args specifier containing the USB device id value. This property is as per the binding, Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
phys — not listed as required here #
Maximum number of items (maxItems): 1
PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY to be turned on before the controller. Documentation/devicetree/bindings/phy/phy-bindings.txt
phy-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb3-phy"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
dma-ranges — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
usb@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): snps,dwc3.yaml#
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
dwc3@2680000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x2680000 0x10000>;
clocks = <&clkusb>;
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
ranges;
usb@2690000 {
compatible = "snps,dwc3";
reg = <0x2690000 0x70000>;
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
usb-phy = <&usb_phy>, <&usb_phy>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,tps6598x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bryan O'Donoghue <bryan.odonoghue@linaro.org>"
Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
A variant of this controller known as Apple CD321x or Apple ACE is also present on hardware with Apple SoCs such as the M1.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tps6598x", "apple,cd321x", "ti,tps25750"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
main PD controller address
Item 2
I2C slave address field in PBMs input data which is used as the device address when writing the patch for TPS25750. The patch address can be any value except 0x00, 0x20, 0x21, 0x22, and 0x23
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"patch-address"
reset-gpios — not listed as required here #
GPIO used for the HRESET pin.
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"irq"
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
firmware-name — not listed as required here #
Should contain the name of the default patch binary file located on the firmware search path which is used to switch the controller into APP mode. This is used when tps25750 doesn't have an EEPROM connected to it.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,tps25750"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
connector— required hereRequired in this object (
required):"data-role"Required in this object (
required):"connector","reg-names"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tps6598x: tps6598x@38 {
compatible = "ti,tps6598x";
reg = <0x38>;
wakeup-source;
interrupt-parent = <&msmgpio>;
interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "irq";
pinctrl-names = "default";
pinctrl-0 = <&typec_pins>;
reset-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
typec_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
port {
typec_ep: endpoint {
remote-endpoint = <&otg_ep>;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec@21 {
compatible = "ti,tps25750";
reg = <0x21>, <0x0f>;
reg-names = "main", "patch-address";
interrupt-parent = <&msmgpio>;
interrupts = <100 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "irq";
firmware-name = "tps25750.bin";
pinctrl-names = "default";
pinctrl-0 = <&typec_pins>;
typec_con0: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
port {
typec_ep0: endpoint {
remote-endpoint = <&otg_ep>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TUSB1046-DCI Type-C crosspoint switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,tusb1046.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Romain Gantois <romain.gantois@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-switch.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-switch-ports.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,tusb1046"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "port"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec-mux@44 {
compatible = "ti,tusb1046";
reg = <0x44>;
mode-switch;
orientation-switch;
port {
endpoint {
remote-endpoint = <&typec_controller>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TUSB73x0 USB 3.0 xHCI Host Controller (PCIe)
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,tusb73x0-pci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Francesco Dolcini <francesco.dolcini@toradex.com>"
TUSB73x0 USB 3.0 xHCI Host Controller via PCIe x1 Gen2 interface. The TUSB7320 supports up to two downstream ports, the TUSB7340 supports up to four downstream ports, both variants share the same PCI device ID.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pci104c,8241"
reg — required here #
Maximum number of items (maxItems): 1
ti,pwron-active-high — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Configure the polarity of the PWRONx# signals. When this is present, the PWRONx# pins are active high and their internal pull-down resistors are disabled. When this is absent, the PWRONx# pins are active low (default) and their internal pull-down resistors are enabled.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-xhci.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie@0 {
reg = <0x0 0x1000>;
ranges = <0x02000000 0x0 0x100000 0x10000000 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
usb@0 {
compatible = "pci104c,8241";
reg = <0x0 0x0 0x0 0x0 0x0>;
ti,pwron-active-high;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TWL4030 USB PHY and Comparator
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,twl4030-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
Bindings for the USB PHY and comparator module found within the TWL4030 family of companion chips. If a sibling node is compatible with "ti,twl4030-bci", the driver for that node will query this device for USB power status.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,twl4030-usb"
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
OTG interrupt number for ID events.
Item 2
USB interrupt number for VBUS events.
usb1v5-supply — required here #
Phandle to the vusb1v5 regulator.
usb1v8-supply — required here #
Phandle to the vusb1v8 regulator.
usb3v1-supply — required here #
Phandle to the vusb3v1 regulator.
usb_mode — required here #
The mode used by the PHY to connect to the controller:
1: ULPI mode
2: CEA2011_3PIN mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
#phy-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "interrupts", "usb1v5-supply", "usb1v8-supply", "usb3v1-supply", "usb_mode"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
usb-phy {
compatible = "ti,twl4030-usb";
interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
usb1v5-supply = <®_vusb1v5>;
usb1v8-supply = <®_vusb1v8>;
usb3v1-supply = <®_vusb3v1>;
usb_mode = <1>;
#phy-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TWL6030 USB Comparator
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,twl6030-usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
Bindings for the USB comparator module found within the TWL6030 family of companion chips.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,twl6030-usb"
interrupts — required here #
Array item rules (items) #
Item 1
OTG for ID events in host mode
Item 2
USB device mode for VBUS events
usb-supply — required here #
Phandle to the VUSB regulator. For TWL6030, this should be the 'vusb' regulator. For TWL6032 subclass, it should be the 'ldousb' regulator.
Required in this object (required): "compatible", "interrupts", "usb-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
usb {
compatible = "ti,twl6030-usb";
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>, <10 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
usb-supply = <®_vusb>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI USB8020B USB 3.0 hub controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,usb8020b.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Macpaul Lin <macpaul.lin@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb451,8025", "usb451,8027"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Array item rules (items) #
Item 1
GPIO specifier for GRST# pin.
vdd-supply — not listed as required here #
VDD power supply to the hub
peer-hub — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
Required in this object (required): "compatible", "reg", "peer-hub"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb451,8027";
reg = <1>;
peer-hub = <&hub_3_0>;
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
vdd-supply = <&usb_hub_fixed_3v3>;
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb451,8025";
reg = <2>;
peer-hub = <&hub_2_0>;
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
vdd-supply = <&usb_hub_fixed_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
TI USB8041 and USB8044 USB 3.0 hub controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,usb8041.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Stein <alexander.stein@ew.tq-group.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb451,8140", "usb451,8142", "usb451,8440", "usb451,8442"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Array item rules (items) #
Item 1
GPIO specifier for GRST# pin.
vdd-supply — not listed as required here #
VDD power supply to the hub
peer-hub — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
Required in this object (required): "compatible", "reg", "peer-hub"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb451,8142";
reg = <1>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb451,8140";
reg = <2>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Generic USB Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-device.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Usually, we only use device tree for hard wired USB device. The reference binding doc is from: http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps
Four types of device-tree nodes are defined: "host-controller nodes" representing USB host controllers, "device nodes" representing USB devices, "interface nodes" representing USB interfaces and "combined nodes" representing simple USB devices.
A combined node shall be used instead of a device node and an interface node for devices of class 0 or 9 (hub) with a single configuration and a single interface.
A "hub node" is a combined node or an interface node that represents a USB hub.
Properties and child nodes (properties) #
compatible — not listed as required here #
Rule for matching array elements (contains) #
String pattern (
pattern):"^usb[0-9a-f]{1,4},[0-9a-f]{1,4}$"
Device nodes or combined nodes. "usbVID,PID", where VID is the vendor id and PID the product id. The textual representation of VID and PID shall be in lower case hexadecimal with leading zeroes suppressed. The other compatible strings from the above standard binding could also be used, but a device adhering to this binding may leave out all except for "usbVID,PID".
reg — required here #
the number of the USB hub port or the USB host-controller port to which this device is attached.
Array item rules (items) #
Item 1
Minimum value (
minimum):1Maximum value (
maximum):255
#address-cells — not listed as required here #
should be 1 for hub nodes with device nodes, should be 2 for device nodes with interface nodes.
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^interface@[0-9a-f]{1,2}(,[0-9a-f]{1,2})$ — name matches this regular expression #
Value type (type): "object"
USB interface nodes. The configuration component is not included in the textual representation of an interface-node unit address for configuration 1.
Properties and child nodes (properties) #
compatible — not listed as required here
String pattern (pattern): "^usbif[0-9a-f]{1,4},[0-9a-f]{1,4}.config[0-9a-f]{1,2}.[0-9a-f]{1,2}$"
Interface nodes. "usbifVID,PID.configCN.IN", where VID is the vendor id, PID is the product id, CN is the configuration value and IN is the interface number. The textual representation of VID, PID, CN and IN shall be in lower case hexadecimal with leading zeroes suppressed. The other compatible strings from the above standard binding could also be used, but a device adhering to this binding may leave out all except for "usbifVID,PID.configCN.IN".
reg — not listed as required here
should be 2 cells long, the first cell represents the interface number and the second cell represents the configuration value.
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
usb@11270000 {
reg = <0x11270000 0x1000>;
interrupts = <0x0 0x4e 0x0>;
#address-cells = <1>;
#size-cells = <0>;
hub@1 {
compatible = "usb5e3,608";
reg = <1>;
};
device@2 {
compatible = "usb123,4567";
reg = <2>;
};
device@3 {
compatible = "usb123,abcd";
reg = <3>;
#address-cells = <2>;
#size-cells = <0>;
interface@0 {
compatible = "usbif123,abcd.config1.0";
reg = <0 1>;
};
interface@0,2 {
compatible = "usbif123,abcd.config2.0";
reg = <0 2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 87: hub connected to port 1
Line 88: device connected to port 2
Line 89: device connected to port 3
Line 90: interface 0 of configuration 1
Line 91: interface 0 of configuration 2
Generic USB OTG Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-drd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Properties and child nodes (properties) #
otg-rev — not listed as required here #
Tells usb driver the release number of the OTG and EH supplement with which the device and its descriptors are compliant, in binary-coded decimal (i.e. 2.0 is 0200H). This property is used if any real OTG features (HNP/SRP/ADP) is enabled. If ADP is required, otg-rev should be 0x0200 or above.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 256, 288, 304, 512
dr_mode — not listed as required here #
Tells Dual-Role USB controllers that we want to work on a particular mode. In case this attribute isn't passed via DT, USB DRD controllers should default to OTG.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "host", "peripheral", "otg"
Default value (default): "otg"
hnp-disable — not listed as required here #
Tells OTG controllers we want to disable OTG HNP. Normally HNP is the basic function of real OTG except you want it to be a srp-capable only B device.
Value type (type): "boolean"
srp-disable — not listed as required here #
Tells OTG controllers we want to disable OTG SRP. SRP is optional for OTG device.
Value type (type): "boolean"
adp-disable — not listed as required here #
Tells OTG controllers we want to disable OTG ADP. ADP is optional for OTG device.
Value type (type): "boolean"
usb-role-switch — not listed as required here #
Indicates that the device is capable of assigning the USB data role (USB host or USB device) for a given USB connector, such as Type-C, Type-B(micro). See connector/usb-connector.yaml.
role-switch-default-mode — not listed as required here #
Indicates if usb-role-switch is enabled, the device default operation mode of controller while usb role is USB_ROLE_NONE.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "host", "peripheral"
Default value (default): "peripheral"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
usb@4a030000 {
compatible = "snps,dwc3";
reg = <0x4a030000 0xcfff>;
interrupts = <0 92 4>;
usb-phy = <&usb2_phy>, <&usb3_phy>;
maximum-speed = "super-speed";
dr_mode = "otg";
phy_type = "utmi_wide";
otg-rev = <0x0200>;
adp-disable;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Generic USB Host Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-hcd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb.yaml#
Properties and child nodes (properties) #
companion — not listed as required here #
Phandle of a companion device
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
tpl-support — not listed as required here #
Indicates if the Targeted Peripheral List is supported for given targeted hosts (non-PC hosts).
Value type (type): "boolean"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^.*@[0-9a-f]{1,2}$ — name matches this regular expression #
The hard wired USB devices
Value type (type): "object"
Shared schema rule ($ref): /schemas/usb/usb-device.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
usb {
phys = <&usb2_phy1>, <&usb3_phy1>;
phy-names = "usb2", "usb3";
#address-cells = <1>;
#size-cells = <0>;
hub@1 {
compatible = "usb5e3,610";
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Generic USB Hub
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-hub.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pin-yen Lin <treapking@chromium.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Properties and child nodes (properties) #
#address-cells — not listed as required here #
Exact value (const): 1
peer-hub — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
The downstream facing USB ports
Properties matching a name pattern (patternProperties) #
^port@[1-9a-f][0-9a-f]*$ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties matching a name pattern (patternProperties) #
^.*@[1-9a-f][0-9a-f]*$ — name matches this regular expression #
The hard wired USB devices
Value type (type): "object"
Shared schema rule ($ref): /schemas/usb/usb-device.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
usb {
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb123,4567";
reg = <1>;
peer-hub = <&hub_3_0>;
#address-cells = <1>;
#size-cells = <0>;
/* USB 2.0 device on port 5 */
device@5 {
reg = <5>;
compatible = "usb765,4321";
};
};
/* 3.0 hub on port 2 */
hub_3_0: hub@2 {
compatible = "usb123,abcd";
reg = <2>;
peer-hub = <&hub_2_0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* Type-A connector on port 3 */
port@3 {
reg = <3>;
endpoint {
remote-endpoint = <&usb_a0_ss>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
USB NOP PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-nop-xceiv.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "usb-nop-xceiv"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "main_clk"
clock-frequency — not listed as required here #
true — No constraints added by this property rule.
#phy-cells — required here #
Exact value (const): 0
vcc-supply — not listed as required here #
phandle to the regulator that provides power to the PHY.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vbus-detect-gpio — not listed as required here #
Should specify the GPIO detecting a VBus insertion
Maximum number of items (maxItems): 1
vbus-supply — not listed as required here #
regulator supplying VBUS. It will be enabled and disabled dynamically in OTG mode. If the regulator is controlled by a GPIO line, this should be modeled as a regulator-fixed and referenced by this supply.
wakeup-source — not listed as required here #
Specify if the USB phy can detect the remote wakeup signal while the system sleep.
Required in this object (required): "compatible", "#phy-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
hsusb1_phy {
compatible = "usb-nop-xceiv";
clock-frequency = <19200000>;
clocks = <&osc 0>;
clock-names = "main_clk";
vcc-supply = <&hsusb1_vcc_regulator>;
reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
vbus-supply = <&vbus_regulator>;
#phy-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
USB Orientation and Mode Switches Ports Graph Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-switch-ports.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Ports Graph properties for devices handling USB mode and orientation switching.
Properties and child nodes (properties) #
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
A port node to link the device to a TypeC controller for the purpose of handling altmode muxing and orientation switching.
Properties and child nodes (properties) #
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Items must be unique (uniqueItems): true
Array item rules (items)
Maximum value (
maximum):8
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) Output endpoint to the Type-C connector
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Super Speed (SS) Input endpoint from the Super-Speed PHY
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Items must be unique (uniqueItems): true
Array item rules (items)
Maximum value (
maximum):8
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
USB Orientation and Mode Switches Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Common properties for devices handling USB mode and orientation switching.
Properties and child nodes (properties) #
mode-switch — not listed as required here #
Possible handler of altmode switching
Value type (type): "boolean"
orientation-switch — not listed as required here #
Possible handler of orientation switching
Value type (type): "boolean"
retimer-switch — not listed as required here #
Possible handler of SuperSpeed signals retiming
Value type (type): "boolean"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Generic Platform UHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-uhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"generic-uhci"
Rule 2
Exact value (
const):"platform-uhci"Deprecated (
deprecated):true
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"aspeed,ast2400-uhci","aspeed,ast2500-uhci","aspeed,ast2600-uhci","aspeed,ast2700-uhci"Item 2
Exact value (
const):"generic-uhci"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
#ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"generic-uhci"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"aspeed,ast2700-uhci"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
usb@d8007b00 {
compatible = "generic-uhci";
reg = <0xd8007b00 0x200>;
interrupts = <43>;
clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
};
#include <dt-bindings/clock/aspeed-clock.h>
usb@1e6b0000 {
compatible = "aspeed,ast2500-uhci", "generic-uhci";
reg = <0x1e6b0000 0x100>;
interrupts = <14>;
#ports = <2>;
clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Generic USB xHCI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb-xhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mathias Nyman <mathias.nyman@intel.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml#
Properties and child nodes (properties) #
usb2-lpm-disable — not listed as required here #
Indicates if we don't want to enable USB2 HW LPM
Value type (type): "boolean"
usb3-lpm-capable — not listed as required here #
Determines if platform is USB3 LPM capable
Value type (type): "boolean"
quirk-broken-port-ped — not listed as required here #
Set if the controller has broken port disable mechanism
Value type (type): "boolean"
imod-interval-ns — not listed as required here #
Interrupt moderation interval
Default value (default): 5000
num-hc-interrupters — not listed as required here #
Maximum number of interrupters to allocate
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Minimum value (minimum): 1
Maximum value (maximum): 1024
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
usb@f0930000 {
compatible = "generic-xhci";
reg = <0xf0930000 0x8c8>;
interrupts = <0x0 0x4e 0x0>;
usb2-lpm-disable;
usb3-lpm-capable;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Generic USB Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^usb(@.*)?"
phys — not listed as required here #
List of all the USB PHYs on this HCD
phy-names — not listed as required here #
Name specifier for the USB PHY
usb-phy — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
List of all the USB PHYs on this HCD to be accepted by the legacy USB Physical Layer subsystem.
Deprecated (deprecated): true
phy_type — not listed as required here #
Tells USB controllers that we want to configure the core to support a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is selected, UTMI+ low pin interface if ULPI is specified, Serial core/PHY interconnect if serial is specified and High-Speed Inter-Chip feature if HSIC is selected. In case this isn't passed via DT, USB controllers should default to HW capability.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "utmi", "utmi_wide", "ulpi", "serial", "hsic"
maximum-speed — not listed as required here #
Tells USB controllers we want to work up to a certain speed. In case this isn't passed via DT, USB controllers should default to their maximum HW capability.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "low-speed", "full-speed", "high-speed", "super-speed", "super-speed-plus", "super-speed-plus-gen2x1", "super-speed-plus-gen1x2", "super-speed-plus-gen2x2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Microchip USB 2.0 Hi-Speed Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/usb251xb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Richard Leitner <richard.leitner@skidata.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,usb2422", "microchip,usb2512b", "microchip,usb2512bi", "microchip,usb2513b", "microchip,usb2513bi", "microchip,usb2514b", "microchip,usb2514bi", "microchip,usb2517", "microchip,usb2517i", "microchip,usb251xb"
reg — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Should specify the gpio for hub reset
vdd-supply — not listed as required here #
Should specify the phandle to the regulator supplying vdd
skip-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Skip Hub configuration, but only send the USB-Attach command
vendor-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Default value (default): 1060
Set USB Vendor ID of the hub
product-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Set USB Product ID of the hub
device-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Default value (default): 2995
Set USB Device ID of the hub
language-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Default value (default): 0
Set USB Language ID
manufacturer — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Set USB Manufacturer string (max 31 characters long)
product — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Set USB Product string (max 31 characters long)
serial — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Set USB Serial string (max 31 characters long)
bus-powered — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
selects between self- and bus-powered operation (boolean, default is self-powered)
self-powered — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
selects between self- and bus-powered operation (boolean, default is self-powered)
disable-hi-speed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
disable USB Hi-Speed support (boolean)
multi-tt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
selects between multi- and single-transaction-translator (boolean, default is multi-tt)
single-tt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
selects between multi- and single-transaction-translator (boolean, default is multi-tt)
disable-eop — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
disable End of Packet generation in full-speed mode (boolean)
ganged-sensing — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
select over-current sense type in self-powered mode (boolean, default is individual)
individual-sensing — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
select over-current sense type in self-powered mode (boolean, default is individual)
ganged-port-switching — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
select port power switching mode (boolean, default is individual)
individual-port-switching — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
select port power switching mode (boolean, default is individual)
dynamic-power-switching — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
enable auto-switching from self- to bus-powered operation if the local power source is removed or unavailable (boolean)
oc-delay-us — not listed as required here #
Allowed values (enum): 100, 4000, 8000, 16000
Default value (default): 8000
Delay time (in microseconds) for filtering the over-current sense inputs. If an invalid value is given, the default is used instead.
compound-device — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
indicate the hub is part of a compound device (boolean)
port-mapping-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
enable port mapping mode (boolean)
led-usb-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
led usb/speed indication mode selection (boolean, default is speed mode)
led-speed-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
led usb/speed indication mode selection (boolean, default is speed mode)
string-support — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
enable string descriptor support (required for manufacturer, product and serial string configuration)
non-removable-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Should specify the ports which have a non-removable device connected.
sp-disabled-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Specifies the ports which will be self-power disabled
bp-disabled-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Specifies the ports which will be bus-power disabled
sp-max-total-current-microamp — not listed as required here #
Maximum value (maximum): 100000
Default value (default): 1000
Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry including a permanently attached peripheral.
bp-max-total-current-microamp — not listed as required here #
Maximum value (maximum): 510000
Default value (default): 100000
Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry including a permanently attached peripheral.
sp-max-removable-current-microamp — not listed as required here #
Maximum value (maximum): 100000
Default value (default): 1000
Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry excluding a permanently attached peripheral.
bp-max-removable-current-microamp — not listed as required here #
Maximum value (maximum): 510000
Default value (default): 100000
Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry excluding a permanently attached peripheral.
power-on-time-ms — not listed as required here #
Maximum value (maximum): 510
Default value (default): 100
Specifies the time it takes from the time the host initiates the power-on sequence to a port until the port has adequate power.
swap-dx-lanes — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Specifies the ports which will swap the differential-pair (D+/D-), default is not-swapped.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
usb-hub@2c {
compatible = "microchip,usb2512b";
reg = <0x2c>;
reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
usb-hub@2d {
compatible = "microchip,usb2514b";
reg = <0x2d>;
vendor-id = /bits/ 16 <0x0000>;
product-id = /bits/ 16 <0x0000>;
string-support;
manufacturer = "Foo";
product = "Foo-Bar";
serial = "1234567890A";
/* correct misplaced usb connectors on port 1,2 */
swap-dx-lanes = <1 2>;
};
};
#include <dt-bindings/gpio/gpio.h>
usb-hub {
/* I2C is not connected */
compatible = "microchip,usb2512b";
reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Via labs VL817 USB 3.1 hub controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/vialab,vl817.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Anand Moon <linux.amoon@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-device.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb2109,2817", "usb2109,817"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO controlling the RESET# pin.
vdd-supply — required here #
phandle to the regulator that provides power to the hub.
peer-hub — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the peer hub on the controller.
Required in this object (required): "compatible", "reg", "vdd-supply", "peer-hub"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
#address-cells = <1>;
#size-cells = <0>;
/* 2.0 hub on port 1 */
hub_2_0: hub@1 {
compatible = "usb2109,2817";
reg = <1>;
vdd-supply = <&vcc_5v>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
/* 3.1 hub on port 4 */
hub_3_0: hub@2 {
compatible = "usb2109,817";
reg = <2>;
vdd-supply = <&vcc_5v>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
WCH CH334/CH335 USB 2.0 Hub Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/wch,ch334.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chaoyi Chen <kernel@airkyi.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hub.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "usb1a86,8091"
reg — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
GPIO controlling the RESET# pin.
vdd33-supply — not listed as required here #
The regulator that provides 3.3V core power to the hub.
v5-supply — not listed as required here #
The regulator that provides 3.3V or 5V power to the hub.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties and child nodes (properties)
reg — not listed as required here
Minimum value (minimum): 1
Maximum value (maximum): 4
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
#address-cells = <1>;
#size-cells = <0>;
hub: hub@1 {
compatible = "usb1a86,8091";
reg = <1>;
reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
v5-supply = <&vcc_3v3>;
vdd33-supply = <&vcc_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
WUSB3801 Type-C port controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/willsemi,wusb3801.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Will Semiconductor WUSB3801 is a USB Type-C port controller which supports role and plug orientation detection using the CC pins. It is compatible with the USB Type-C Cable and Connector Specification v1.2.
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "willsemi,wusb3801"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
The managed USB Type-C connector. Since WUSB3801 does not support Power Delivery, the node should have the "pd-disable" property.
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "usb-c-connector"
Required in this object (required): "pd-disable"
Required in this object (required): "compatible", "reg", "interrupts", "connector"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tcpc@60 {
compatible = "willsemi,wusb3801";
reg = <0x60>;
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
connector {
compatible = "usb-c-connector";
label = "USB-C";
vbus-supply = <&otg_switch>;
power-role = "dual";
try-power-role = "sink";
data-role = "dual";
typec-power-opmode = "default";
pd-disable;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx udc controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / USB bindings
Schema identifier ($id): "http://devicetree.org/schemas/usb/xlnx,usb2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "xlnx,usb2-device-4.00.a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
xlnx,has-builtin-dma — not listed as required here #
If present, hardware has dma capability.
Value type (type): "boolean"
clocks — not listed as required here #
Minimum number of items (minItems): 1
clock-names — not listed as required here #
Exact value (const): "s_axi_aclk"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
axi-usb2-device@42e00000 {
compatible = "xlnx,usb2-device-4.00.a";
interrupts = <0x0 0x39 0x1>;
reg = <0xee000000 0xc00>;
xlnx,has-builtin-dma;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)