aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2018-02-27 02:11:29 -0500
committerChanwoo Choi <cw00.choi@samsung.com>2018-03-06 21:22:46 -0500
commit593aa2b405f992b59b51b30fed426510fa1a513d (patch)
treeed46531722d231345f6a797120093dec134fcef6
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
dt-bindings: add bindings for USB physical connector
These bindings allow to describe most known standard USB connectors and it should be possible to extend it if necessary. USB connectors, beside USB can be used to route other protocols, for example UART, Audio, MHL. In such case every device passing data through the connector should have appropriate graph bindings. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--Documentation/devicetree/bindings/connector/usb-connector.txt75
1 files changed, 75 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt
new file mode 100644
index 000000000000..e1463f14af38
--- /dev/null
+++ b/Documentation/devicetree/bindings/connector/usb-connector.txt
@@ -0,0 +1,75 @@
1USB Connector
2=============
3
4USB connector node represents physical USB connector. It should be
5a child of USB interface controller.
6
7Required properties:
8- compatible: describes type of the connector, must be one of:
9 "usb-a-connector",
10 "usb-b-connector",
11 "usb-c-connector".
12
13Optional properties:
14- label: symbolic name for the connector,
15- type: size of the connector, should be specified in case of USB-A, USB-B
16 non-fullsize connectors: "mini", "micro".
17
18Required nodes:
19- any data bus to the connector should be modeled using the OF graph bindings
20 specified in bindings/graph.txt, unless the bus is between parent node and
21 the connector. Since single connector can have multpile data buses every bus
22 has assigned OF graph port number as follows:
23 0: High Speed (HS), present in all connectors,
24 1: Super Speed (SS), present in SS capable connectors,
25 2: Sideband use (SBU), present in USB-C.
26
27Examples
28--------
29
301. Micro-USB connector with HS lines routed via controller (MUIC):
31
32muic-max77843@66 {
33 ...
34 usb_con: connector {
35 compatible = "usb-b-connector";
36 label = "micro-USB";
37 type = "micro";
38 };
39};
40
412. USB-C connector attached to CC controller (s2mm005), HS lines routed
42to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.
43DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
44
45ccic: s2mm005@33 {
46 ...
47 usb_con: connector {
48 compatible = "usb-c-connector";
49 label = "USB-C";
50
51 ports {
52 #address-cells = <1>;
53 #size-cells = <0>;
54
55 port@0 {
56 reg = <0>;
57 usb_con_hs: endpoint {
58 remote-endpoint = <&max77865_usbc_hs>;
59 };
60 };
61 port@1 {
62 reg = <1>;
63 usb_con_ss: endpoint {
64 remote-endpoint = <&usbdrd_phy_ss>;
65 };
66 };
67 port@2 {
68 reg = <2>;
69 usb_con_sbu: endpoint {
70 remote-endpoint = <&dp_aux>;
71 };
72 };
73 };
74 };
75};