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 or a separate node when it is attached to both
15 MUX and USB interface controller.
26 - const: gpio-usb-b-connector
27 - const: usb-b-connector
30 - const: samsung,usb-connector-11pin
31 - const: usb-b-connector
34 description: Symbolic name for the connector.
37 description: Size of the connector, should be specified in case of
38 non-fullsize 'usb-a-connector' or 'usb-b-connector' compatible
40 $ref: /schemas/types.yaml#/definitions/string
47 description: Set this property if the USB device has its own power source.
50 # The following are optional properties for "usb-b-connector".
52 description: An input gpio for USB ID pin.
56 description: An input gpio for USB VBus pin, used to detect presence of
61 description: A phandle to the regulator for USB VBUS if needed when host
62 mode or dual role mode is supported.
63 Particularly, if use an output GPIO to control a VBUS regulator, should
64 model it as a regulator. See bindings/regulator/fixed-regulator.yaml
66 # The following are optional properties for "usb-c-connector".
68 description: Determines the power role that the Type C connector will
69 support. "dual" refers to Dual Role Port (DRP).
70 $ref: /schemas/types.yaml#/definitions/string
78 description: Preferred power role.
79 $ref: /schemas/types.yaml#/definitions/string
87 description: Data role if Type C connector supports USB data. "dual" refers
88 Dual Role Device (DRD).
89 $ref: /schemas/types.yaml#/definitions/string
97 description: Determines the power operation mode that the Type C connector
98 will support and will advertise through CC pins when it has no power
100 - "default" corresponds to default USB voltage and current defined by the
101 USB 2.0 and USB 3.2 specifications, 5V 500mA for USB 2.0 ports and
102 5V 900mA or 1500mA for USB 3.2 ports in single-lane or dual-lane
103 operation respectively.
104 - "1.5A" and "3.0A", 5V 1.5A and 5V 3.0A respectively, as defined in USB
105 Type-C Cable and Connector specification, when Power Delivery is not
108 - $ref: /schemas/types.yaml#/definitions/string
114 # The following are optional properties for "usb-c-connector" with power
117 description: An array of u32 with each entry providing supported power
118 source data object(PDO), the detailed bit definitions of PDO can be found
119 in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.2
120 Source_Capabilities Message, the order of each entry(PDO) should follow
121 the PD spec chapter 6.4.1. Required for power source and power dual role.
122 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO()
123 defined in dt-bindings/usb/pd.h.
126 $ref: /schemas/types.yaml#/definitions/uint32-array
129 description: An array of u32 with each entry providing supported power sink
130 data object(PDO), the detailed bit definitions of PDO can be found in
131 "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.3
132 Sink Capabilities Message, the order of each entry(PDO) should follow the
133 PD spec chapter 6.4.1. Required for power sink and power dual role. User
134 can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined
135 in dt-bindings/usb/pd.h.
138 $ref: /schemas/types.yaml#/definitions/uint32-array
141 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO),
142 providing additional information corresponding to the product, the detailed bit
143 definitions and the order of each VDO can be found in
144 "USB Power Delivery Specification Revision 3.0, Version 2.0 + ECNs 2020-12-10"
145 chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via
146 VDO_IDH/_CERT/_PRODUCT/_UFP/_DFP/_PCABLE/_ACABLE(1/2)/_VPD() defined in
147 dt-bindings/usb/pd.h.
150 $ref: /schemas/types.yaml#/definitions/uint32-array
153 description: Sink required operating power in microwatt, if source can't
154 offer the power, Capability Mismatch is set. Required for power sink and
158 $ref: /schemas/graph.yaml#/properties/ports
159 description: OF graph bindings modeling any data bus to the connector
160 unless the bus is between parent node and the connector. Since a single
161 connector can have multiple data buses every bus has an assigned OF graph
162 port number as described below.
166 $ref: /schemas/graph.yaml#/properties/port
167 description: High Speed (HS), present in all connectors.
170 $ref: /schemas/graph.yaml#/properties/port
171 description: Super Speed (SS), present in SS capable connectors.
174 $ref: /schemas/graph.yaml#/properties/port
175 description: Sideband Use (SBU), present in USB-C. This describes the
176 alternate mode connection of which SBU is a part.
181 new-source-frs-typec-current:
182 description: Initial current capability of the new source when vSafe5V
183 is applied during PD3.0 Fast Role Swap. "Table 6-14 Fixed Supply PDO - Sink"
184 of "USB Power Delivery Specification Revision 3.0, Version 1.2" provides the
185 different power levels and "6.4.1.3.1.6 Fast Role Swap USB Type-C Current"
186 provides a detailed description of the field. The sink PDO from current source
187 reflects the current source's(i.e. transmitter of the FRS signal) power
188 requirement during fr swap. The current sink (i.e. receiver of the FRS signal),
189 a.k.a new source, should check if it will be able to satisfy the current source's,
190 new sink's, requirement during frswap before enabling the frs signal reception.
191 This property refers to maximum current capability that the current sink can
192 satisfy. During FRS, VBUS voltage is at 5V, as the partners are in implicit
193 contract, hence, the power level is only a function of the current capability.
194 "1" refers to default USB power level as described by "Table 6-14 Fixed Supply PDO - Sink".
195 "2" refers to 1.5A@5V.
196 "3" refers to 3.0A@5V.
197 $ref: /schemas/types.yaml#/definitions/uint32
201 description: Allows PMIC charger loops which are slow(i.e. cannot meet the 15ms deadline) to
202 still comply to pSnkStby i.e Maximum power that can be consumed by sink while in Sink Standby
203 state as defined in 7.4.2 Sink Electrical Parameters of USB Power Delivery Specification
204 Revision 3.0, Version 1.2. When the property is set, the port requests pSnkStby(2.5W -
205 5V@500mA) upon entering SNK_DISCOVERY(instead of 3A or the 1.5A, Rp current advertised, during
206 SNK_DISCOVERY) and the actual currrent limit after reception of PS_Ready for PD link or during
207 SNK_READY for non-pd link.
218 const: gpio-usb-b-connector
230 const: samsung,usb-connector-11pin
240 - new-source-frs-typec-current
242 additionalProperties: true
245 # Micro-USB connector with HS lines routed via controller (MUIC).
248 usb_con1: connector {
249 compatible = "usb-b-connector";
255 # USB-C connector attached to CC controller (s2mm005), HS lines routed
256 # to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.
257 # DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
260 usb_con2: connector {
261 compatible = "usb-c-connector";
265 #address-cells = <1>;
270 usb_con_hs: endpoint {
271 remote-endpoint = <&max77865_usbc_hs>;
276 usb_con_ss: endpoint {
277 remote-endpoint = <&usbdrd_phy_ss>;
282 usb_con_sbu: endpoint {
283 remote-endpoint = <&dp_aux>;
290 # USB-C connector attached to a typec port controller(ptn5110), which has
291 # power delivery support and enables drp.
293 #include <dt-bindings/usb/pd.h>
295 usb_con3: connector {
296 compatible = "usb-c-connector";
299 try-power-role = "sink";
300 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
301 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
302 PDO_VAR(5000, 12000, 2000)>;
303 op-sink-microwatt = <10000000>;
307 # USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
308 # with SS 2:1 MUX. HS lines routed to SoC, SS lines routed to the MUX and
309 # the output of MUX is connected to the SoC.
312 compatible = "usb-c-connector";
317 #address-cells = <1>;
322 remote-endpoint = <&usb3_hs_ep>;
328 remote-endpoint = <&hd3ss3220_in_ep>;
334 # USB connector with GPIO control lines
336 #include <dt-bindings/gpio/gpio.h>
340 compatible = "gpio-usb-b-connector", "usb-b-connector";
342 id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
343 vbus-supply = <&usb_p0_vbus>;
347 # Micro-USB connector with HS lines routed via controller (MUIC) and MHL
348 # lines connected to HDMI-MHL bridge (sii8620) on Samsung Exynos5433-based
352 usb_con4: connector {
353 compatible = "samsung,usb-connector-11pin", "usb-b-connector";
358 #address-cells = <1>;
363 muic_to_usb: endpoint {
364 remote-endpoint = <&usb_to_muic>;
369 usb_con_mhl: endpoint {
370 remote-endpoint = <&sii8620_mhl>;