1 # SPDX-License-Identifier: GPL-2.0-only
4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
13 A USB connector node represents a physical USB connector. It should be a child
14 of a USB interface controller.
24 description: Symbolic name for the connector.
27 description: Size of the connector, should be specified in case of
28 non-fullsize 'usb-a-connector' or 'usb-b-connector' compatible
31 - $ref: /schemas/types.yaml#definitions/string
37 description: Set this property if the USB device has its own power source.
40 # The following are optional properties for "usb-b-connector".
42 description: An input gpio for USB ID pin.
46 description: An input gpio for USB VBus pin, used to detect presence of
51 description: A phandle to the regulator for USB VBUS if needed when host
52 mode or dual role mode is supported.
53 Particularly, if use an output GPIO to control a VBUS regulator, should
54 model it as a regulator. See bindings/regulator/fixed-regulator.yaml
56 # The following are optional properties for "usb-c-connector".
58 description: Determines the power role that the Type C connector will
59 support. "dual" refers to Dual Role Port (DRP).
61 - $ref: /schemas/types.yaml#definitions/string
68 description: Preferred power role.
70 - $ref: /schemas/types.yaml#definitions/string
77 description: Data role if Type C connector supports USB data. "dual" refers
78 Dual Role Device (DRD).
80 - $ref: /schemas/types.yaml#definitions/string
86 # The following are optional properties for "usb-c-connector" with power
89 description: An array of u32 with each entry providing supported power
90 source data object(PDO), the detailed bit definitions of PDO can be found
91 in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.2
92 Source_Capabilities Message, the order of each entry(PDO) should follow
93 the PD spec chapter 6.4.1. Required for power source and power dual role.
94 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO()
95 defined in dt-bindings/usb/pd.h.
99 - $ref: /schemas/types.yaml#/definitions/uint32-array
102 description: An array of u32 with each entry providing supported power sink
103 data object(PDO), the detailed bit definitions of PDO can be found in
104 "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.3
105 Sink Capabilities Message, the order of each entry(PDO) should follow the
106 PD spec chapter 6.4.1. Required for power sink and power dual role. User
107 can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined
108 in dt-bindings/usb/pd.h.
112 - $ref: /schemas/types.yaml#/definitions/uint32-array
115 description: Sink required operating power in microwatt, if source can't
116 offer the power, Capability Mismatch is set. Required for power sink and
120 description: OF graph bindings (specified in bindings/graph.txt) that model
121 any data bus to the connector unless the bus is between parent node and
122 the connector. Since a single connector can have multiple data buses every
123 bus has an assigned OF graph port number as described below.
128 description: High Speed (HS), present in all connectors.
132 description: Super Speed (SS), present in SS capable connectors.
136 description: Sideband Use (SBU), present in USB-C. This describes the
137 alternate mode connection of which SBU is a part.
146 # Micro-USB connector with HS lines routed via controller (MUIC).
149 usb_con1: connector {
150 compatible = "usb-b-connector";
156 # USB-C connector attached to CC controller (s2mm005), HS lines routed
157 # to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.
158 # DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
161 usb_con2: connector {
162 compatible = "usb-c-connector";
166 #address-cells = <1>;
171 usb_con_hs: endpoint {
172 remote-endpoint = <&max77865_usbc_hs>;
177 usb_con_ss: endpoint {
178 remote-endpoint = <&usbdrd_phy_ss>;
183 usb_con_sbu: endpoint {
184 remote-endpoint = <&dp_aux>;
191 # USB-C connector attached to a typec port controller(ptn5110), which has
192 # power delivery support and enables drp.
194 #include <dt-bindings/usb/pd.h>
196 usb_con3: connector {
197 compatible = "usb-c-connector";
200 try-power-role = "sink";
201 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
202 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
203 PDO_VAR(5000, 12000, 2000)>;
204 op-sink-microwatt = <10000000>;