usb-connector.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. USB Connector
  2. =============
  3. USB connector node represents physical USB connector. It should be
  4. a child of USB interface controller.
  5. Required properties:
  6. - compatible: describes type of the connector, must be one of:
  7. "usb-a-connector",
  8. "usb-b-connector",
  9. "usb-c-connector".
  10. Optional properties:
  11. - label: symbolic name for the connector,
  12. - type: size of the connector, should be specified in case of USB-A, USB-B
  13. non-fullsize connectors: "mini", "micro".
  14. Optional properties for usb-c-connector:
  15. - power-role: should be one of "source", "sink" or "dual"(DRP) if typec
  16. connector has power support.
  17. - try-power-role: preferred power role if "dual"(DRP) can support Try.SNK
  18. or Try.SRC, should be "sink" for Try.SNK or "source" for Try.SRC.
  19. - data-role: should be one of "host", "device", "dual"(DRD) if typec
  20. connector supports USB data.
  21. Required properties for usb-c-connector with power delivery support:
  22. - source-pdos: An array of u32 with each entry providing supported power
  23. source data object(PDO), the detailed bit definitions of PDO can be found
  24. in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.2
  25. Source_Capabilities Message, the order of each entry(PDO) should follow
  26. the PD spec chapter 6.4.1. Required for power source and power dual role.
  27. User can specify the source PDO array via PDO_FIXED/BATT/VAR() defined in
  28. dt-bindings/usb/pd.h.
  29. - sink-pdos: An array of u32 with each entry providing supported power
  30. sink data object(PDO), the detailed bit definitions of PDO can be found
  31. in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.3
  32. Sink Capabilities Message, the order of each entry(PDO) should follow
  33. the PD spec chapter 6.4.1. Required for power sink and power dual role.
  34. User can specify the sink PDO array via PDO_FIXED/BATT/VAR() defined in
  35. dt-bindings/usb/pd.h.
  36. - op-sink-microwatt: Sink required operating power in microwatt, if source
  37. can't offer the power, Capability Mismatch is set. Required for power
  38. sink and power dual role.
  39. Required nodes:
  40. - any data bus to the connector should be modeled using the OF graph bindings
  41. specified in bindings/graph.txt, unless the bus is between parent node and
  42. the connector. Since single connector can have multpile data buses every bus
  43. has assigned OF graph port number as follows:
  44. 0: High Speed (HS), present in all connectors,
  45. 1: Super Speed (SS), present in SS capable connectors,
  46. 2: Sideband use (SBU), present in USB-C.
  47. Examples
  48. --------
  49. 1. Micro-USB connector with HS lines routed via controller (MUIC):
  50. muic-max77843@66 {
  51. ...
  52. usb_con: connector {
  53. compatible = "usb-b-connector";
  54. label = "micro-USB";
  55. type = "micro";
  56. };
  57. };
  58. 2. USB-C connector attached to CC controller (s2mm005), HS lines routed
  59. to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.
  60. DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.
  61. ccic: s2mm005@33 {
  62. ...
  63. usb_con: connector {
  64. compatible = "usb-c-connector";
  65. label = "USB-C";
  66. ports {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. port@0 {
  70. reg = <0>;
  71. usb_con_hs: endpoint {
  72. remote-endpoint = <&max77865_usbc_hs>;
  73. };
  74. };
  75. port@1 {
  76. reg = <1>;
  77. usb_con_ss: endpoint {
  78. remote-endpoint = <&usbdrd_phy_ss>;
  79. };
  80. };
  81. port@2 {
  82. reg = <2>;
  83. usb_con_sbu: endpoint {
  84. remote-endpoint = <&dp_aux>;
  85. };
  86. };
  87. };
  88. };
  89. };
  90. 3. USB-C connector attached to a typec port controller(ptn5110), which has
  91. power delivery support and enables drp.
  92. typec: ptn5110@50 {
  93. ...
  94. usb_con: connector {
  95. compatible = "usb-c-connector";
  96. label = "USB-C";
  97. power-role = "dual";
  98. try-power-role = "sink";
  99. source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
  100. sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
  101. PDO_VAR(5000, 12000, 2000)>;
  102. op-sink-microwatt = <10000000>;
  103. };
  104. };