STMicroelectronics STUSB160x Type-C controller

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

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

Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stusb1600"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

main power supply (4.1V-22V)

vsys-supply — not listed as required here #

low power supply (3.0V-5.5V)

vconn-supply — not listed as required here #

power supply (2.7V-5.5V) used to supply VConn on CC pin in source or dual power role

connector — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "usb-c-connector"

power-role — not listed as required here

true — No constraints added by this property rule.

typec-power-opmode — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "compatible"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    typec: stusb1600@28 {
        compatible = "st,stusb1600";
        reg = <0x28>;
        vdd-supply = <&vbus_drd>;
        vsys-supply = <&vdd_usb>;
        interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
        interrupt-parent = <&gpioi>;

        typec_con: connector {
            compatible = "usb-c-connector";
            label = "USB-C";
            power-role = "dual";
            data-role = "dual";
            typec-power-opmode = "default";

            ports {
                #address-cells = <1>;
                #size-cells = <0>;
                port@0 {
                    reg = <0>;
                    typec_con_ep: endpoint {
                        remote-endpoint = <&usbotg_hs_ep>;
                    };
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page