zynqmp-zcu104-revA.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * dts file for Xilinx ZynqMP ZCU104
  4. *
  5. * (C) Copyright 2017 - 2021, Xilinx, Inc.
  6. *
  7. * Michal Simek <[email protected]>
  8. */
  9. /dts-v1/;
  10. #include "zynqmp.dtsi"
  11. #include "zynqmp-clk-ccf.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
  14. #include <dt-bindings/phy/phy.h>
  15. / {
  16. model = "ZynqMP ZCU104 RevA";
  17. compatible = "xlnx,zynqmp-zcu104-revA", "xlnx,zynqmp-zcu104", "xlnx,zynqmp";
  18. aliases {
  19. ethernet0 = &gem3;
  20. i2c0 = &i2c1;
  21. mmc0 = &sdhci1;
  22. nvmem0 = &eeprom;
  23. rtc0 = &rtc;
  24. serial0 = &uart0;
  25. serial1 = &uart1;
  26. serial2 = &dcc;
  27. spi0 = &qspi;
  28. usb0 = &usb0;
  29. };
  30. chosen {
  31. bootargs = "earlycon";
  32. stdout-path = "serial0:115200n8";
  33. };
  34. memory@0 {
  35. device_type = "memory";
  36. reg = <0x0 0x0 0x0 0x80000000>;
  37. };
  38. clock_8t49n287_5: clk125 {
  39. compatible = "fixed-clock";
  40. #clock-cells = <0>;
  41. clock-frequency = <125000000>;
  42. };
  43. clock_8t49n287_2: clk26 {
  44. compatible = "fixed-clock";
  45. #clock-cells = <0>;
  46. clock-frequency = <26000000>;
  47. };
  48. clock_8t49n287_3: clk27 {
  49. compatible = "fixed-clock";
  50. #clock-cells = <0>;
  51. clock-frequency = <27000000>;
  52. };
  53. };
  54. &can1 {
  55. status = "okay";
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&pinctrl_can1_default>;
  58. };
  59. &dcc {
  60. status = "okay";
  61. };
  62. &fpd_dma_chan1 {
  63. status = "okay";
  64. };
  65. &fpd_dma_chan2 {
  66. status = "okay";
  67. };
  68. &fpd_dma_chan3 {
  69. status = "okay";
  70. };
  71. &fpd_dma_chan4 {
  72. status = "okay";
  73. };
  74. &fpd_dma_chan5 {
  75. status = "okay";
  76. };
  77. &fpd_dma_chan6 {
  78. status = "okay";
  79. };
  80. &fpd_dma_chan7 {
  81. status = "okay";
  82. };
  83. &fpd_dma_chan8 {
  84. status = "okay";
  85. };
  86. &gem3 {
  87. status = "okay";
  88. phy-handle = <&phy0>;
  89. phy-mode = "rgmii-id";
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&pinctrl_gem3_default>;
  92. phy0: ethernet-phy@c {
  93. reg = <0xc>;
  94. ti,rx-internal-delay = <0x8>;
  95. ti,tx-internal-delay = <0xa>;
  96. ti,fifo-depth = <0x1>;
  97. ti,dp83867-rxctrl-strap-quirk;
  98. };
  99. };
  100. &gpio {
  101. status = "okay";
  102. };
  103. &i2c1 {
  104. status = "okay";
  105. clock-frequency = <400000>;
  106. pinctrl-names = "default", "gpio";
  107. pinctrl-0 = <&pinctrl_i2c1_default>;
  108. pinctrl-1 = <&pinctrl_i2c1_gpio>;
  109. scl-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
  110. sda-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
  111. /* Another connection to this bus via PL i2c via PCA9306 - u45 */
  112. i2c-mux@74 { /* u34 */
  113. compatible = "nxp,pca9548";
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. reg = <0x74>;
  117. i2c@0 {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. reg = <0>;
  121. /*
  122. * IIC_EEPROM 1kB memory which uses 256B blocks
  123. * where every block has different address.
  124. * 0 - 256B address 0x54
  125. * 256B - 512B address 0x55
  126. * 512B - 768B address 0x56
  127. * 768B - 1024B address 0x57
  128. */
  129. eeprom: eeprom@54 { /* u23 */
  130. compatible = "atmel,24c08";
  131. reg = <0x54>;
  132. #address-cells = <1>;
  133. #size-cells = <1>;
  134. };
  135. };
  136. i2c@1 {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. reg = <1>;
  140. /* 8T49N287 - u182 */
  141. };
  142. i2c@2 {
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. reg = <2>;
  146. irps5401_43: irps5401@43 { /* IRPS5401 - u175 */
  147. compatible = "infineon,irps5401";
  148. reg = <0x43>; /* pmbus / i2c 0x13 */
  149. };
  150. irps5401_44: irps5401@44 { /* IRPS5401 - u180 */
  151. compatible = "infineon,irps5401";
  152. reg = <0x44>; /* pmbus / i2c 0x14 */
  153. };
  154. };
  155. i2c@4 {
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. reg = <4>;
  159. tca6416_u97: gpio@20 {
  160. compatible = "ti,tca6416";
  161. reg = <0x20>;
  162. gpio-controller;
  163. #gpio-cells = <2>;
  164. /*
  165. * IRQ not connected
  166. * Lines:
  167. * 0 - IRPS5401_ALERT_B
  168. * 1 - HDMI_8T49N241_INT_ALM
  169. * 2 - MAX6643_OT_B
  170. * 3 - MAX6643_FANFAIL_B
  171. * 5 - IIC_MUX_RESET_B
  172. * 6 - GEM3_EXP_RESET_B
  173. * 7 - FMC_LPC_PRSNT_M2C_B
  174. * 4, 10 - 17 - not connected
  175. */
  176. };
  177. };
  178. i2c@5 {
  179. #address-cells = <1>;
  180. #size-cells = <0>;
  181. reg = <5>;
  182. };
  183. i2c@7 {
  184. #address-cells = <1>;
  185. #size-cells = <0>;
  186. reg = <7>;
  187. };
  188. /* 3, 6 not connected */
  189. };
  190. };
  191. &pinctrl0 {
  192. status = "okay";
  193. pinctrl_can1_default: can1-default {
  194. mux {
  195. function = "can1";
  196. groups = "can1_6_grp";
  197. };
  198. conf {
  199. groups = "can1_6_grp";
  200. slew-rate = <SLEW_RATE_SLOW>;
  201. power-source = <IO_STANDARD_LVCMOS18>;
  202. drive-strength = <12>;
  203. };
  204. conf-rx {
  205. pins = "MIO25";
  206. bias-high-impedance;
  207. };
  208. conf-tx {
  209. pins = "MIO24";
  210. bias-disable;
  211. };
  212. };
  213. pinctrl_i2c1_default: i2c1-default {
  214. mux {
  215. groups = "i2c1_4_grp";
  216. function = "i2c1";
  217. };
  218. conf {
  219. groups = "i2c1_4_grp";
  220. bias-pull-up;
  221. slew-rate = <SLEW_RATE_SLOW>;
  222. power-source = <IO_STANDARD_LVCMOS18>;
  223. drive-strength = <12>;
  224. };
  225. };
  226. pinctrl_i2c1_gpio: i2c1-gpio {
  227. mux {
  228. groups = "gpio0_16_grp", "gpio0_17_grp";
  229. function = "gpio0";
  230. };
  231. conf {
  232. groups = "gpio0_16_grp", "gpio0_17_grp";
  233. slew-rate = <SLEW_RATE_SLOW>;
  234. power-source = <IO_STANDARD_LVCMOS18>;
  235. drive-strength = <12>;
  236. };
  237. };
  238. pinctrl_gem3_default: gem3-default {
  239. mux {
  240. function = "ethernet3";
  241. groups = "ethernet3_0_grp";
  242. };
  243. conf {
  244. groups = "ethernet3_0_grp";
  245. slew-rate = <SLEW_RATE_SLOW>;
  246. power-source = <IO_STANDARD_LVCMOS18>;
  247. drive-strength = <12>;
  248. };
  249. conf-rx {
  250. pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
  251. "MIO75";
  252. bias-high-impedance;
  253. low-power-disable;
  254. };
  255. conf-tx {
  256. pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
  257. "MIO69";
  258. bias-disable;
  259. low-power-enable;
  260. };
  261. mux-mdio {
  262. function = "mdio3";
  263. groups = "mdio3_0_grp";
  264. };
  265. conf-mdio {
  266. groups = "mdio3_0_grp";
  267. slew-rate = <SLEW_RATE_SLOW>;
  268. power-source = <IO_STANDARD_LVCMOS18>;
  269. bias-disable;
  270. };
  271. };
  272. pinctrl_sdhci1_default: sdhci1-default {
  273. mux {
  274. groups = "sdio1_0_grp";
  275. function = "sdio1";
  276. };
  277. conf {
  278. groups = "sdio1_0_grp";
  279. slew-rate = <SLEW_RATE_SLOW>;
  280. power-source = <IO_STANDARD_LVCMOS18>;
  281. bias-disable;
  282. drive-strength = <12>;
  283. };
  284. mux-cd {
  285. groups = "sdio1_cd_0_grp";
  286. function = "sdio1_cd";
  287. };
  288. conf-cd {
  289. groups = "sdio1_cd_0_grp";
  290. bias-high-impedance;
  291. bias-pull-up;
  292. slew-rate = <SLEW_RATE_SLOW>;
  293. power-source = <IO_STANDARD_LVCMOS18>;
  294. };
  295. };
  296. pinctrl_uart0_default: uart0-default {
  297. mux {
  298. groups = "uart0_4_grp";
  299. function = "uart0";
  300. };
  301. conf {
  302. groups = "uart0_4_grp";
  303. slew-rate = <SLEW_RATE_SLOW>;
  304. power-source = <IO_STANDARD_LVCMOS18>;
  305. drive-strength = <12>;
  306. };
  307. conf-rx {
  308. pins = "MIO18";
  309. bias-high-impedance;
  310. };
  311. conf-tx {
  312. pins = "MIO19";
  313. bias-disable;
  314. };
  315. };
  316. pinctrl_uart1_default: uart1-default {
  317. mux {
  318. groups = "uart1_5_grp";
  319. function = "uart1";
  320. };
  321. conf {
  322. groups = "uart1_5_grp";
  323. slew-rate = <SLEW_RATE_SLOW>;
  324. power-source = <IO_STANDARD_LVCMOS18>;
  325. drive-strength = <12>;
  326. };
  327. conf-rx {
  328. pins = "MIO21";
  329. bias-high-impedance;
  330. };
  331. conf-tx {
  332. pins = "MIO20";
  333. bias-disable;
  334. };
  335. };
  336. pinctrl_usb0_default: usb0-default {
  337. mux {
  338. groups = "usb0_0_grp";
  339. function = "usb0";
  340. };
  341. conf {
  342. groups = "usb0_0_grp";
  343. slew-rate = <SLEW_RATE_SLOW>;
  344. power-source = <IO_STANDARD_LVCMOS18>;
  345. drive-strength = <12>;
  346. };
  347. conf-rx {
  348. pins = "MIO52", "MIO53", "MIO55";
  349. bias-high-impedance;
  350. };
  351. conf-tx {
  352. pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
  353. "MIO60", "MIO61", "MIO62", "MIO63";
  354. bias-disable;
  355. };
  356. };
  357. };
  358. &psgtr {
  359. status = "okay";
  360. /* nc, sata, usb3, dp */
  361. clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>;
  362. clock-names = "ref1", "ref2", "ref3";
  363. };
  364. &qspi {
  365. status = "okay";
  366. flash@0 {
  367. compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
  368. #address-cells = <1>;
  369. #size-cells = <1>;
  370. reg = <0x0>;
  371. spi-tx-bus-width = <1>;
  372. spi-rx-bus-width = <4>;
  373. spi-max-frequency = <108000000>; /* Based on DC1 spec */
  374. };
  375. };
  376. &rtc {
  377. status = "okay";
  378. };
  379. &sata {
  380. status = "okay";
  381. /* SATA OOB timing settings */
  382. ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
  383. ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
  384. ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
  385. ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
  386. ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
  387. ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
  388. ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
  389. ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
  390. phy-names = "sata-phy";
  391. phys = <&psgtr 3 PHY_TYPE_SATA 1 1>;
  392. };
  393. /* SD1 with level shifter */
  394. &sdhci1 {
  395. status = "okay";
  396. no-1-8-v;
  397. pinctrl-names = "default";
  398. pinctrl-0 = <&pinctrl_sdhci1_default>;
  399. xlnx,mio-bank = <1>;
  400. disable-wp;
  401. };
  402. &uart0 {
  403. status = "okay";
  404. pinctrl-names = "default";
  405. pinctrl-0 = <&pinctrl_uart0_default>;
  406. };
  407. &uart1 {
  408. status = "okay";
  409. pinctrl-names = "default";
  410. pinctrl-0 = <&pinctrl_uart1_default>;
  411. };
  412. /* ULPI SMSC USB3320 */
  413. &usb0 {
  414. status = "okay";
  415. pinctrl-names = "default";
  416. pinctrl-0 = <&pinctrl_usb0_default>;
  417. phy-names = "usb3-phy";
  418. phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
  419. };
  420. &dwc3_0 {
  421. status = "okay";
  422. dr_mode = "host";
  423. snps,usb3_lpm_capable;
  424. maximum-speed = "super-speed";
  425. };
  426. &watchdog0 {
  427. status = "okay";
  428. };
  429. &zynqmp_dpdma {
  430. status = "okay";
  431. };
  432. &zynqmp_dpsub {
  433. status = "okay";
  434. phy-names = "dp-phy0", "dp-phy1";
  435. phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
  436. <&psgtr 0 PHY_TYPE_DP 1 3>;
  437. };