WCH CH334/CH335 USB 2.0 Hub Controller

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

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

Maintainers (maintainers): "Chaoyi Chen <kernel@airkyi.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "usb1a86,8091"

reg — required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

GPIO controlling the RESET# pin.

vdd33-supply — not listed as required here #

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

v5-supply — not listed as required here #

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

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"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    hub: hub@1 {
        compatible = "usb1a86,8091";
        reg = <1>;
        reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
        v5-supply = <&vcc_3v3>;
        vdd33-supply = <&vcc_3v3>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page