ti,phy-j721e-wiz.yaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/phy/ti,phy-j721e-wiz.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: TI J721E WIZ (SERDES Wrapper)
  8. maintainers:
  9. - Kishon Vijay Abraham I <kishon@ti.com>
  10. properties:
  11. compatible:
  12. enum:
  13. - ti,j721e-wiz-16g
  14. - ti,j721e-wiz-10g
  15. - ti,j721s2-wiz-10g
  16. - ti,am64-wiz-10g
  17. - ti,j7200-wiz-10g
  18. - ti,j784s4-wiz-10g
  19. power-domains:
  20. maxItems: 1
  21. clocks:
  22. minItems: 3
  23. maxItems: 4
  24. description: clock-specifier to represent input to the WIZ
  25. clock-names:
  26. minItems: 3
  27. items:
  28. - const: fck
  29. - const: core_ref_clk
  30. - const: ext_ref_clk
  31. - const: core_ref1_clk
  32. num-lanes:
  33. minimum: 1
  34. maximum: 4
  35. "#address-cells":
  36. const: 1
  37. "#size-cells":
  38. const: 1
  39. "#reset-cells":
  40. const: 1
  41. "#clock-cells":
  42. const: 1
  43. ranges: true
  44. typec-dir-gpios:
  45. maxItems: 1
  46. description:
  47. GPIO to signal Type-C cable orientation for lane swap.
  48. If GPIO is active, lane 0 and lane 1 of SERDES will be swapped to
  49. achieve the functionality of an external type-C plug flip mux.
  50. typec-dir-debounce-ms:
  51. minimum: 100
  52. maximum: 1000
  53. default: 100
  54. description:
  55. Number of milliseconds to wait before sampling typec-dir-gpio.
  56. If not specified, the default debounce of 100ms will be used.
  57. Type-C spec states minimum CC pin debounce of 100 ms and maximum
  58. of 200 ms. However, some solutions might need more than 200 ms.
  59. refclk-dig:
  60. type: object
  61. additionalProperties: false
  62. description: |
  63. WIZ node should have subnode for refclk_dig to select the reference
  64. clock source for the reference clock used in the PHY and PMA digital
  65. logic.
  66. deprecated: true
  67. properties:
  68. clocks:
  69. minItems: 2
  70. maxItems: 4
  71. description: Phandle to two (Torrent) or four (Sierra) clock nodes representing
  72. the inputs to refclk_dig
  73. "#clock-cells":
  74. const: 0
  75. clock-output-names:
  76. maxItems: 1
  77. assigned-clocks:
  78. maxItems: 1
  79. assigned-clock-parents:
  80. maxItems: 1
  81. required:
  82. - clocks
  83. - "#clock-cells"
  84. - assigned-clocks
  85. - assigned-clock-parents
  86. ti,scm:
  87. $ref: /schemas/types.yaml#/definitions/phandle
  88. description: |
  89. phandle to System Control Module for syscon regmap access.
  90. patternProperties:
  91. "^pll[0|1]-refclk$":
  92. type: object
  93. additionalProperties: false
  94. description: |
  95. WIZ node should have subnodes for each of the PLLs present in
  96. the SERDES.
  97. deprecated: true
  98. properties:
  99. clocks:
  100. maxItems: 2
  101. description: Phandle to clock nodes representing the two inputs to PLL.
  102. "#clock-cells":
  103. const: 0
  104. clock-output-names:
  105. maxItems: 1
  106. assigned-clocks:
  107. maxItems: 1
  108. assigned-clock-parents:
  109. maxItems: 1
  110. required:
  111. - clocks
  112. - "#clock-cells"
  113. - assigned-clocks
  114. - assigned-clock-parents
  115. "^cmn-refclk1?-dig-div$":
  116. type: object
  117. additionalProperties: false
  118. description:
  119. WIZ node should have subnodes for each of the PMA common refclock
  120. provided by the SERDES.
  121. deprecated: true
  122. properties:
  123. clocks:
  124. maxItems: 1
  125. description: Phandle to the clock node representing the input to the
  126. divider clock.
  127. "#clock-cells":
  128. const: 0
  129. clock-output-names:
  130. maxItems: 1
  131. required:
  132. - clocks
  133. - "#clock-cells"
  134. "^serdes@[0-9a-f]+$":
  135. type: object
  136. description: |
  137. WIZ node should have '1' subnode for the SERDES. It could be either
  138. Sierra SERDES or Torrent SERDES. Sierra SERDES should follow the
  139. bindings specified in
  140. Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml
  141. Torrent SERDES should follow the bindings specified in
  142. Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
  143. required:
  144. - compatible
  145. - power-domains
  146. - clocks
  147. - clock-names
  148. - num-lanes
  149. - "#address-cells"
  150. - "#size-cells"
  151. - "#reset-cells"
  152. - ranges
  153. allOf:
  154. - if:
  155. properties:
  156. compatible:
  157. contains:
  158. const: ti,j7200-wiz-10g
  159. then:
  160. required:
  161. - ti,scm
  162. additionalProperties: false
  163. examples:
  164. - |
  165. #include <dt-bindings/soc/ti,sci_pm_domain.h>
  166. wiz@5000000 {
  167. compatible = "ti,j721e-wiz-16g";
  168. #address-cells = <1>;
  169. #size-cells = <1>;
  170. power-domains = <&k3_pds 292 TI_SCI_PD_EXCLUSIVE>;
  171. clocks = <&k3_clks 292 5>, <&k3_clks 292 11>, <&dummy_cmn_refclk>;
  172. clock-names = "fck", "core_ref_clk", "ext_ref_clk";
  173. assigned-clocks = <&k3_clks 292 11>, <&k3_clks 292 0>;
  174. assigned-clock-parents = <&k3_clks 292 15>, <&k3_clks 292 4>;
  175. num-lanes = <2>;
  176. #reset-cells = <1>;
  177. ranges = <0x5000000 0x5000000 0x10000>;
  178. pll0-refclk {
  179. clocks = <&k3_clks 293 13>, <&dummy_cmn_refclk>;
  180. #clock-cells = <0>;
  181. assigned-clocks = <&wiz1_pll0_refclk>;
  182. assigned-clock-parents = <&k3_clks 293 13>;
  183. };
  184. pll1-refclk {
  185. clocks = <&k3_clks 293 0>, <&dummy_cmn_refclk1>;
  186. #clock-cells = <0>;
  187. assigned-clocks = <&wiz1_pll1_refclk>;
  188. assigned-clock-parents = <&k3_clks 293 0>;
  189. };
  190. cmn-refclk-dig-div {
  191. clocks = <&wiz1_refclk_dig>;
  192. #clock-cells = <0>;
  193. };
  194. cmn-refclk1-dig-div {
  195. clocks = <&wiz1_pll1_refclk>;
  196. #clock-cells = <0>;
  197. };
  198. refclk-dig {
  199. clocks = <&k3_clks 292 11>, <&k3_clks 292 0>,
  200. <&dummy_cmn_refclk>, <&dummy_cmn_refclk1>;
  201. #clock-cells = <0>;
  202. assigned-clocks = <&wiz0_refclk_dig>;
  203. assigned-clock-parents = <&k3_clks 292 11>;
  204. };
  205. serdes@5000000 {
  206. compatible = "ti,sierra-phy-t0";
  207. reg-names = "serdes";
  208. reg = <0x5000000 0x10000>;
  209. #address-cells = <1>;
  210. #size-cells = <0>;
  211. resets = <&serdes_wiz0 0>;
  212. reset-names = "sierra_reset";
  213. clocks = <&wiz0_cmn_refclk_dig_div>, <&wiz0_cmn_refclk1_dig_div>;
  214. clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div";
  215. };
  216. };