WUSB3801 Type-C port controller
Schema identifier ($id): "http://devicetree.org/schemas/usb/willsemi,wusb3801.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Will Semiconductor WUSB3801 is a USB Type-C port controller which supports role and plug orientation detection using the CC pins. It is compatible with the USB Type-C Cable and Connector Specification v1.2.
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "willsemi,wusb3801"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
connector — required here #
Value type (type): "object"
Shared schema rule ($ref): ../connector/usb-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
The managed USB Type-C connector. Since WUSB3801 does not support Power Delivery, the node should have the "pd-disable" property.
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "usb-c-connector"
Required in this object (required): "pd-disable"
Required in this object (required): "compatible", "reg", "interrupts", "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>;
tcpc@60 {
compatible = "willsemi,wusb3801";
reg = <0x60>;
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
connector {
compatible = "usb-c-connector";
label = "USB-C";
vbus-supply = <&otg_switch>;
power-role = "dual";
try-power-role = "sink";
data-role = "dual";
typec-power-opmode = "default";
pd-disable;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)