Xilinx SuperSpeed DWC3 USB SoC controller

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 #

Allowed values (enum): 1, 2

#size-cells — required here #

Allowed values (enum): 1, 2

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) #

Allowed values (enum): "usb2-phy", "usb3-phy"

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 here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,versal-dwc3"

When the condition matches (then) #

Properties and child nodes (properties)

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

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Minimum 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:

Edit this page