Genesys Logic USB hub controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/genesys,gl850g.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Icenowy Zheng <uwu@icenowy.me>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "usb5e3,608", "usb5e3,610", "usb5e3,620", "usb5e3,626"

reg — required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

GPIO controlling the RESET# pin.

vdd-supply — not listed as required here #

The regulator that provides 3.3V or 5.0V core power to the hub.

peer-hub — not listed as required here #

true — No constraints added by this property rule.

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties matching a name pattern (patternProperties) #

^port@ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Properties and child nodes (properties)

reg — not listed as required here

Minimum value (minimum): 1

Maximum value (maximum): 4

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): usb-hub.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "usb5e3,608"

When the condition matches (then) #

Properties and child nodes (properties)

peer-hub — not listed as required here

false — Not permitted by this property rule.

vdd-supply — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "usb5e3,610", "usb5e3,620"

When the condition matches (then) #

Properties and child nodes (properties)

peer-hub — not listed as required here

true — No constraints added by this property rule.

vdd-supply — not listed as required here

true — No constraints added by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
usb {
    dr_mode = "host";
    #address-cells = <1>;
    #size-cells = <0>;

    hub: hub@1 {
        compatible = "usb5e3,608";
        reg = <1>;
        reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>;
    };
};
#include <dt-bindings/gpio/gpio.h>
usb {
    dr_mode = "host";
    #address-cells = <1>;
    #size-cells = <0>;

    /* 2.0 hub on port 1 */
    hub_2_0: hub@1 {
        compatible = "usb5e3,610";
        reg = <1>;
        peer-hub = <&hub_3_0>;
        reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vcc_5v>;
    };

    /* 3.1 hub on port 4 */
    hub_3_0: hub@2 {
        compatible = "usb5e3,620";
        reg = <2>;
        peer-hub = <&hub_2_0>;
        reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vcc_5v>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page