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
96 # The following are optional properties for "usb-c-connector" with power
99 description: An array of u32 with each entry providing supported power
100 source data object(PDO), the detailed bit definitions of PDO can be found
101 in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.2
102 Source_Capabilities Message, the order of each entry(PDO) should follow
103 the PD spec chapter 6.4.1. Required for power source and power dual role.
104 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO()
105 defined in dt-bindings/usb/pd.h.
108 $ref: /schemas/types.yaml#/definitions/uint32-array
111 description: An array of u32 with each entry providing supported power sink
112 data object(PDO), the detailed bit definitions of PDO can be found in
113 "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.3
114 Sink Capabilities Message, the order of each entry(PDO) should follow the
115 PD spec chapter 6.4.1. Required for power sink and power dual role. User
116 can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined
117 in dt-bindings/usb/pd.h.
120 $ref: /schemas/types.yaml#/definitions/uint32-array
123 description: Sink required operating power in microwatt, if source can't
124 offer the power, Capability Mismatch is set. Required for power sink and
128 description: OF graph bindings (specified in bindings/graph.txt) that model
129 any data bus to the connector unless the bus is between parent node and
130 the connector. Since a single connector can have multiple data buses every
131 bus has an assigned OF graph port number as described below.
136 description: High Speed (HS), present in all connectors.
140 description: Super Speed (SS), present in SS capable connectors.
144 description: Sideband Use (SBU), present in USB-C. This describes the
145 alternate mode connection of which SBU is a part.
150 new-source-frs-typec-current:
151 description: Initial current capability of the new source when vSafe5V
152 is applied during PD3.0 Fast Role Swap. "Table 6-14 Fixed Supply PDO - Sink"
153 of "USB Power Delivery Specification Revision 3.0, Version 1.2" provides the
154 different power levels and "6.4.1.3.1.6 Fast Role Swap USB Type-C Current"
155 provides a detailed description of the field. The sink PDO from current source
156 reflects the current source's(i.e. transmitter of the FRS signal) power
157 requirement during fr swap. The current sink (i.e. receiver of the FRS signal),
158 a.k.a new source, should check if it will be able to satisfy the current source's,
159 new sink's, requirement during frswap before enabling the frs signal reception.
160 This property refers to maximum current capability that the current sink can
161 satisfy. During FRS, VBUS voltage is at 5V, as the partners are in implicit
162 contract, hence, the power level is only a function of the current capability.
163 "1" refers to default USB power level as described by "Table 6-14 Fixed Supply PDO - Sink".
164 "2" refers to 1.5A@5V.
165 "3" refers to 3.0A@5V.
166 $ref: /schemas/types.yaml#/definitions/uint32
177 const: gpio-usb-b-connector
189 const: samsung,usb-connector-11pin
195 additionalProperties: true
198 # Micro-USB connector with HS lines routed via controller (MUIC).
201 usb_con1: connector {
202 compatible = "usb-b-connector";
208 # USB-C connector attached to CC controller (s2mm005), HS lines routed
209 # to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.
210 # DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
213 usb_con2: connector {
214 compatible = "usb-c-connector";
218 #address-cells = <1>;
223 usb_con_hs: endpoint {
224 remote-endpoint = <&max77865_usbc_hs>;
229 usb_con_ss: endpoint {
230 remote-endpoint = <&usbdrd_phy_ss>;
235 usb_con_sbu: endpoint {
236 remote-endpoint = <&dp_aux>;
243 # USB-C connector attached to a typec port controller(ptn5110), which has
244 # power delivery support and enables drp.
246 #include <dt-bindings/usb/pd.h>
248 usb_con3: connector {
249 compatible = "usb-c-connector";
252 try-power-role = "sink";
253 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
254 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
255 PDO_VAR(5000, 12000, 2000)>;
256 op-sink-microwatt = <10000000>;
260 # USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
261 # with SS 2:1 MUX. HS lines routed to SoC, SS lines routed to the MUX and
262 # the output of MUX is connected to the SoC.
265 compatible = "usb-c-connector";
270 #address-cells = <1>;
275 remote-endpoint = <&usb3_hs_ep>;
281 remote-endpoint = <&hd3ss3220_in_ep>;
287 # USB connector with GPIO control lines
289 #include <dt-bindings/gpio/gpio.h>
293 compatible = "gpio-usb-b-connector", "usb-b-connector";
295 id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
296 vbus-supply = <&usb_p0_vbus>;
300 # Micro-USB connector with HS lines routed via controller (MUIC) and MHL
301 # lines connected to HDMI-MHL bridge (sii8620) on Samsung Exynos5433-based
305 usb_con4: connector {
306 compatible = "samsung,usb-connector-11pin", "usb-b-connector";
311 #address-cells = <1>;
316 muic_to_usb: endpoint {
317 remote-endpoint = <&usb_to_muic>;
322 usb_con_mhl: endpoint {
323 remote-endpoint = <&sii8620_mhl>;