ASPEED USB 2.0 Virtual Hub Controller

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

Required in this object (required): "resets"

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.

Edit this page