zynqmp-sck-kv-g-revB.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for KV260 revA Carrier Card
  4. *
  5. * (C) Copyright 2020 - 2021, Xilinx, Inc.
  6. *
  7. * Michal Simek <[email protected]>
  8. */
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/net/ti-dp83867.h>
  11. #include <dt-bindings/phy/phy.h>
  12. #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
  13. /dts-v1/;
  14. /plugin/;
  15. &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. pinctrl-names = "default", "gpio";
  19. pinctrl-0 = <&pinctrl_i2c1_default>;
  20. pinctrl-1 = <&pinctrl_i2c1_gpio>;
  21. scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
  22. sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
  23. /* u14 - 0x40 - ina260 */
  24. /* u43 - 0x2d - usb5744 */
  25. /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */
  26. };
  27. &amba {
  28. si5332_0: si5332_0 { /* u17 */
  29. compatible = "fixed-clock";
  30. #clock-cells = <0>;
  31. clock-frequency = <125000000>;
  32. };
  33. si5332_1: si5332_1 { /* u17 */
  34. compatible = "fixed-clock";
  35. #clock-cells = <0>;
  36. clock-frequency = <25000000>;
  37. };
  38. si5332_2: si5332_2 { /* u17 */
  39. compatible = "fixed-clock";
  40. #clock-cells = <0>;
  41. clock-frequency = <48000000>;
  42. };
  43. si5332_3: si5332_3 { /* u17 */
  44. compatible = "fixed-clock";
  45. #clock-cells = <0>;
  46. clock-frequency = <24000000>;
  47. };
  48. si5332_4: si5332_4 { /* u17 */
  49. compatible = "fixed-clock";
  50. #clock-cells = <0>;
  51. clock-frequency = <26000000>;
  52. };
  53. si5332_5: si5332_5 { /* u17 */
  54. compatible = "fixed-clock";
  55. #clock-cells = <0>;
  56. clock-frequency = <27000000>;
  57. };
  58. };
  59. /* DP/USB 3.0 */
  60. &psgtr {
  61. status = "okay";
  62. /* pcie, usb3, sata */
  63. clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>;
  64. clock-names = "ref0", "ref1", "ref2";
  65. };
  66. &zynqmp_dpsub {
  67. status = "disabled";
  68. phy-names = "dp-phy0", "dp-phy1";
  69. phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>;
  70. };
  71. &zynqmp_dpdma {
  72. status = "okay";
  73. };
  74. &usb0 {
  75. status = "okay";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_usb0_default>;
  78. phy-names = "usb3-phy";
  79. phys = <&psgtr 2 PHY_TYPE_USB3 0 1>;
  80. };
  81. &dwc3_0 {
  82. status = "okay";
  83. dr_mode = "host";
  84. snps,usb3_lpm_capable;
  85. maximum-speed = "super-speed";
  86. };
  87. &sdhci1 { /* on CC with tuned parameters */
  88. status = "okay";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&pinctrl_sdhci1_default>;
  91. /*
  92. * SD 3.0 requires level shifter and this property
  93. * should be removed if the board has level shifter and
  94. * need to work in UHS mode
  95. */
  96. no-1-8-v;
  97. disable-wp;
  98. xlnx,mio-bank = <1>;
  99. clk-phase-sd-hs = <126>, <60>;
  100. clk-phase-uhs-sdr25 = <120>, <60>;
  101. clk-phase-uhs-ddr50 = <126>, <48>;
  102. };
  103. &gem3 { /* required by spec */
  104. status = "okay";
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&pinctrl_gem3_default>;
  107. phy-handle = <&phy0>;
  108. phy-mode = "rgmii-id";
  109. mdio: mdio {
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
  113. reset-delay-us = <2>;
  114. phy0: ethernet-phy@1 {
  115. #phy-cells = <1>;
  116. reg = <1>;
  117. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
  118. ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
  119. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  120. ti,dp83867-rxctrl-strap-quirk;
  121. };
  122. };
  123. };
  124. &pinctrl0 { /* required by spec */
  125. status = "okay";
  126. pinctrl_uart1_default: uart1-default {
  127. conf {
  128. groups = "uart1_9_grp";
  129. slew-rate = <SLEW_RATE_SLOW>;
  130. power-source = <IO_STANDARD_LVCMOS18>;
  131. drive-strength = <12>;
  132. };
  133. conf-rx {
  134. pins = "MIO37";
  135. bias-high-impedance;
  136. };
  137. conf-tx {
  138. pins = "MIO36";
  139. bias-disable;
  140. };
  141. mux {
  142. groups = "uart1_9_grp";
  143. function = "uart1";
  144. };
  145. };
  146. pinctrl_i2c1_default: i2c1-default {
  147. conf {
  148. groups = "i2c1_6_grp";
  149. bias-pull-up;
  150. slew-rate = <SLEW_RATE_SLOW>;
  151. power-source = <IO_STANDARD_LVCMOS18>;
  152. };
  153. mux {
  154. groups = "i2c1_6_grp";
  155. function = "i2c1";
  156. };
  157. };
  158. pinctrl_i2c1_gpio: i2c1-gpio {
  159. conf {
  160. groups = "gpio0_24_grp", "gpio0_25_grp";
  161. slew-rate = <SLEW_RATE_SLOW>;
  162. power-source = <IO_STANDARD_LVCMOS18>;
  163. };
  164. mux {
  165. groups = "gpio0_24_grp", "gpio0_25_grp";
  166. function = "gpio0";
  167. };
  168. };
  169. pinctrl_gem3_default: gem3-default {
  170. conf {
  171. groups = "ethernet3_0_grp";
  172. slew-rate = <SLEW_RATE_SLOW>;
  173. power-source = <IO_STANDARD_LVCMOS18>;
  174. };
  175. conf-rx {
  176. pins = "MIO70", "MIO72", "MIO74";
  177. bias-high-impedance;
  178. low-power-disable;
  179. };
  180. conf-bootstrap {
  181. pins = "MIO71", "MIO73", "MIO75";
  182. bias-disable;
  183. low-power-disable;
  184. };
  185. conf-tx {
  186. pins = "MIO64", "MIO65", "MIO66",
  187. "MIO67", "MIO68", "MIO69";
  188. bias-disable;
  189. low-power-enable;
  190. };
  191. conf-mdio {
  192. groups = "mdio3_0_grp";
  193. slew-rate = <SLEW_RATE_SLOW>;
  194. power-source = <IO_STANDARD_LVCMOS18>;
  195. bias-disable;
  196. };
  197. mux-mdio {
  198. function = "mdio3";
  199. groups = "mdio3_0_grp";
  200. };
  201. mux {
  202. function = "ethernet3";
  203. groups = "ethernet3_0_grp";
  204. };
  205. };
  206. pinctrl_usb0_default: usb0-default {
  207. conf {
  208. groups = "usb0_0_grp";
  209. slew-rate = <SLEW_RATE_SLOW>;
  210. power-source = <IO_STANDARD_LVCMOS18>;
  211. };
  212. conf-rx {
  213. pins = "MIO52", "MIO53", "MIO55";
  214. bias-high-impedance;
  215. };
  216. conf-tx {
  217. pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
  218. "MIO60", "MIO61", "MIO62", "MIO63";
  219. bias-disable;
  220. };
  221. mux {
  222. groups = "usb0_0_grp";
  223. function = "usb0";
  224. };
  225. };
  226. pinctrl_sdhci1_default: sdhci1-default {
  227. conf {
  228. groups = "sdio1_0_grp";
  229. slew-rate = <SLEW_RATE_SLOW>;
  230. power-source = <IO_STANDARD_LVCMOS18>;
  231. bias-disable;
  232. };
  233. conf-cd {
  234. groups = "sdio1_cd_0_grp";
  235. bias-high-impedance;
  236. bias-pull-up;
  237. slew-rate = <SLEW_RATE_SLOW>;
  238. power-source = <IO_STANDARD_LVCMOS18>;
  239. };
  240. mux-cd {
  241. groups = "sdio1_cd_0_grp";
  242. function = "sdio1_cd";
  243. };
  244. mux {
  245. groups = "sdio1_0_grp";
  246. function = "sdio1";
  247. };
  248. };
  249. };
  250. &uart1 {
  251. status = "okay";
  252. pinctrl-names = "default";
  253. pinctrl-0 = <&pinctrl_uart1_default>;
  254. };