StarFive JH7110 wrapper module for the Cadence USBSS-DRD controller

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 #

Allowed values (enum): 1, 2

#size-cells — required here #

Allowed values (enum): 1, 2

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)

Edit this page