Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/willsemi,wusb3801.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: WUSB3801 Type-C port controller DT bindings
0008 
0009 description:
0010   The Will Semiconductor WUSB3801 is a USB Type-C port controller which
0011   supports role and plug orientation detection using the CC pins. It is
0012   compatible with the USB Type-C Cable and Connector Specification v1.2.
0013 
0014 maintainers:
0015   - Samuel Holland <samuel@sholland.org>
0016 
0017 properties:
0018   compatible:
0019     enum:
0020       - willsemi,wusb3801
0021 
0022   reg:
0023     maxItems: 1
0024 
0025   interrupts:
0026     maxItems: 1
0027 
0028   connector:
0029     type: object
0030     $ref: ../connector/usb-connector.yaml#
0031     description:
0032       The managed USB Type-C connector. Since WUSB3801 does not support
0033       Power Delivery, the node should have the "pd-disable" property.
0034 
0035     properties:
0036       compatible:
0037         const: usb-c-connector
0038 
0039     required:
0040       - pd-disable
0041 
0042 required:
0043   - compatible
0044   - reg
0045   - interrupts
0046   - connector
0047 
0048 additionalProperties: false
0049 
0050 examples:
0051   - |
0052     #include <dt-bindings/interrupt-controller/irq.h>
0053 
0054     i2c {
0055       #address-cells = <1>;
0056       #size-cells = <0>;
0057 
0058       tcpc@60 {
0059         compatible = "willsemi,wusb3801";
0060         reg = <0x60>;
0061         interrupt-parent = <&gpio0>;
0062         interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
0063 
0064         connector {
0065           compatible = "usb-c-connector";
0066           label = "USB-C";
0067           vbus-supply = <&otg_switch>;
0068           power-role = "dual";
0069           try-power-role = "sink";
0070           data-role = "dual";
0071           typec-power-opmode = "default";
0072           pd-disable;
0073         };
0074       };
0075     };