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/st,stusb160x.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: STMicroelectronics STUSB160x Type-C controller bindings
0008 
0009 maintainers:
0010   - Amelie Delaunay <amelie.delaunay@foss.st.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - st,stusb1600
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   interrupts:
0021     maxItems: 1
0022 
0023   vdd-supply:
0024     description: main power supply (4.1V-22V)
0025 
0026   vsys-supply:
0027     description: low power supply (3.0V-5.5V)
0028 
0029   vconn-supply:
0030     description: power supply (2.7V-5.5V) used to supply VConn on CC pin in
0031       source or dual power role
0032 
0033   connector:
0034     type: object
0035     $ref: /schemas/connector/usb-connector.yaml#
0036 
0037     properties:
0038       compatible:
0039         const: usb-c-connector
0040 
0041       power-role: true
0042 
0043       typec-power-opmode: true
0044 
0045     required:
0046       - compatible
0047 
0048 required:
0049   - compatible
0050   - reg
0051   - connector
0052 
0053 additionalProperties: false
0054 
0055 examples:
0056   - |
0057     #include <dt-bindings/interrupt-controller/irq.h>
0058     i2c4 {
0059         #address-cells = <1>;
0060         #size-cells = <0>;
0061 
0062         typec: stusb1600@28 {
0063             compatible = "st,stusb1600";
0064             reg = <0x28>;
0065             vdd-supply = <&vbus_drd>;
0066             vsys-supply = <&vdd_usb>;
0067             interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
0068             interrupt-parent = <&gpioi>;
0069 
0070             typec_con: connector {
0071                 compatible = "usb-c-connector";
0072                 label = "USB-C";
0073                 power-role = "dual";
0074                 data-role = "dual";
0075                 typec-power-opmode = "default";
0076 
0077                 port {
0078                     typec_con_ep: endpoint {
0079                         remote-endpoint = <&usbotg_hs_ep>;
0080                     };
0081                 };
0082             };
0083         };
0084     };
0085 ...