SpacemiT K1 SuperSpeed DWC3 USB SoC Controller

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)

Edit this page