Skip to content

Commit 588614b

Browse files
bijudasrobherring
authored andcommitted
dt-bindings: update usb-c-connector example
Some hardware designs have USB typec connector attached to both SoC and super speed mux. We need to use separate connector node for such design. Signed-off-by: Biju Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 0450d1f commit 588614b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ maintainers:
1111

1212
description:
1313
A USB connector node represents a physical USB connector. It should be a child
14-
of a USB interface controller.
14+
of a USB interface controller or a separate node when it is attached to both
15+
MUX and USB interface controller.
1516

1617
properties:
1718
compatible:
@@ -237,6 +238,33 @@ examples:
237238
};
238239
};
239240
241+
# USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
242+
# with SS 2:1 MUX. HS lines routed to SoC, SS lines routed to the MUX and
243+
# the output of MUX is connected to the SoC.
244+
- |
245+
connector {
246+
compatible = "usb-c-connector";
247+
label = "USB-C";
248+
data-role = "dual";
249+
250+
ports {
251+
#address-cells = <1>;
252+
#size-cells = <0>;
253+
port@0 {
254+
reg = <0>;
255+
hs_ep: endpoint {
256+
remote-endpoint = <&usb3_hs_ep>;
257+
};
258+
};
259+
port@1 {
260+
reg = <1>;
261+
ss_ep: endpoint {
262+
remote-endpoint = <&hd3ss3220_in_ep>;
263+
};
264+
};
265+
};
266+
};
267+
240268
# USB connector with GPIO control lines
241269
- |
242270
#include <dt-bindings/gpio/gpio.h>

0 commit comments

Comments
 (0)