zynqmp-zcu104-revC.dts 9.2 KB

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