SMSC USB3503 High-Speed Hub Controller

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): 1

Maximum 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 here

Allowed values (enum): "smsc,usb3803"

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

Required in this object (required): "bypass-gpios"

When the condition matches (then) #

Properties and child nodes (properties)

initial-mode — not listed as required here

Allowed values (enum): 1, 2, 3

When the condition does not match (else) #

Properties and child nodes (properties)

initial-mode — not listed as required here

Allowed values (enum): 1, 2

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

Edit this page