zynqmp-zcu102.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. /*
  2. * dts file for Xilinx ZynqMP ZCU102
  3. *
  4. * (C) Copyright 2015, Xilinx, Inc.
  5. *
  6. * Michal Simek <michal.simek@xilinx.com>
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. /dts-v1/;
  11. #include "zynqmp.dtsi"
  12. #include "zynqmp-clk.dtsi"
  13. #include <dt-bindings/gpio/gpio.h>
  14. / {
  15. model = "ZynqMP ZCU102 RevA";
  16. compatible = "xlnx,zynqmp-zcu102", "xlnx,zynqmp";
  17. aliases {
  18. ethernet0 = &gem3;
  19. gpio0 = &gpio;
  20. i2c0 = &i2c0;
  21. i2c1 = &i2c1;
  22. mmc0 = &sdhci1;
  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>, <0x8 0x00000000 0x0 0x80000000>;
  37. };
  38. gpio-keys {
  39. compatible = "gpio-keys";
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. autorepeat;
  43. sw19 {
  44. label = "sw19";
  45. gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
  46. linux,code = <108>; /* down */
  47. gpio-key,wakeup;
  48. autorepeat;
  49. };
  50. };
  51. leds {
  52. compatible = "gpio-leds";
  53. heartbeat_led {
  54. label = "heartbeat";
  55. gpios = <&gpio 23 0>;
  56. linux,default-trigger = "heartbeat";
  57. };
  58. };
  59. };
  60. &can1 {
  61. status = "okay";
  62. };
  63. &dcc {
  64. status = "okay";
  65. };
  66. /* fpd_dma clk 667MHz, lpd_dma 500MHz */
  67. &fpd_dma_chan1 {
  68. status = "okay";
  69. xlnx,include-sg; /* for testing purpose */
  70. xlnx,overfetch; /* for testing purpose */
  71. xlnx,ratectrl = <0>; /* for testing purpose */
  72. xlnx,src-issue = <31>;
  73. };
  74. &fpd_dma_chan2 {
  75. status = "okay";
  76. xlnx,ratectrl = <100>; /* for testing purpose */
  77. xlnx,src-issue = <4>; /* for testing purpose */
  78. };
  79. &fpd_dma_chan3 {
  80. status = "okay";
  81. };
  82. &fpd_dma_chan4 {
  83. status = "okay";
  84. xlnx,include-sg; /* for testing purpose */
  85. };
  86. &fpd_dma_chan5 {
  87. status = "okay";
  88. };
  89. &fpd_dma_chan6 {
  90. status = "okay";
  91. xlnx,include-sg; /* for testing purpose */
  92. };
  93. &fpd_dma_chan7 {
  94. status = "okay";
  95. };
  96. &fpd_dma_chan8 {
  97. status = "okay";
  98. xlnx,include-sg; /* for testing purpose */
  99. };
  100. &gem3 {
  101. status = "okay";
  102. local-mac-address = [00 0a 35 00 02 90];
  103. phy-handle = <&phy0>;
  104. phy-mode = "rgmii-id";
  105. phy0: phy@21 {
  106. reg = <21>;
  107. ti,rx-internal-delay = <0x8>;
  108. ti,tx-internal-delay = <0xa>;
  109. ti,fifo-depth = <0x1>;
  110. };
  111. };
  112. &gpio {
  113. status = "okay";
  114. };
  115. &gpu {
  116. status = "okay";
  117. };
  118. &i2c0 {
  119. status = "okay";
  120. clock-frequency = <400000>;
  121. tca6416_u97: gpio@20 {
  122. /*
  123. * Enable all GTs to out from U-Boot
  124. * i2c mw 20 6 0 - setup IO to output
  125. * i2c mw 20 2 ef - setup output values on pins 0-7
  126. * i2c mw 20 3 ff - setup output values on pins 10-17
  127. */
  128. compatible = "ti,tca6416";
  129. reg = <0x20>;
  130. gpio-controller;
  131. #gpio-cells = <2>;
  132. /*
  133. * IRQ not connected
  134. * Lines:
  135. * 0 - PS_GTR_LAN_SEL0
  136. * 1 - PS_GTR_LAN_SEL1
  137. * 2 - PS_GTR_LAN_SEL2
  138. * 3 - PS_GTR_LAN_SEL3
  139. * 4 - PCI_CLK_DIR_SEL
  140. * 5 - IIC_MUX_RESET_B
  141. * 6 - GEM3_EXP_RESET_B
  142. * 7, 10 - 17 - not connected
  143. */
  144. gtr_sel0 {
  145. gpio-hog;
  146. gpios = <0 0>;
  147. output-high; /* PCIE = 0, DP = 1 */
  148. line-name = "sel0";
  149. };
  150. gtr_sel1 {
  151. gpio-hog;
  152. gpios = <1 0>;
  153. output-high; /* PCIE = 0, DP = 1 */
  154. line-name = "sel1";
  155. };
  156. gtr_sel2 {
  157. gpio-hog;
  158. gpios = <2 0>;
  159. output-high; /* PCIE = 0, USB0 = 1 */
  160. line-name = "sel2";
  161. };
  162. gtr_sel3 {
  163. gpio-hog;
  164. gpios = <3 0>;
  165. output-high; /* PCIE = 0, SATA = 1 */
  166. line-name = "sel3";
  167. };
  168. };
  169. tca6416_u61: gpio@21 { /* FIXME enable it by i2c mw 21 6 0 */
  170. compatible = "ti,tca6416";
  171. reg = <0x21>;
  172. gpio-controller;
  173. #gpio-cells = <2>;
  174. /*
  175. * IRQ not connected
  176. * Lines:
  177. * 0 - VCCPSPLL_EN
  178. * 1 - MGTRAVCC_EN
  179. * 2 - MGTRAVTT_EN
  180. * 3 - VCCPSDDRPLL_EN
  181. * 4 - MIO26_PMU_INPUT_LS
  182. * 5 - PL_PMBUS_ALERT
  183. * 6 - PS_PMBUS_ALERT
  184. * 7 - MAXIM_PMBUS_ALERT
  185. * 10 - PL_DDR4_VTERM_EN
  186. * 11 - PL_DDR4_VPP_2V5_EN
  187. * 12 - PS_DIMM_VDDQ_TO_PSVCCO_ON
  188. * 13 - PS_DIMM_SUSPEND_EN
  189. * 14 - PS_DDR4_VTERM_EN
  190. * 15 - PS_DDR4_VPP_2V5_EN
  191. * 16 - 17 - not connected
  192. */
  193. };
  194. i2cswitch@75 { /* u60 */
  195. compatible = "nxp,pca9544";
  196. #address-cells = <1>;
  197. #size-cells = <0>;
  198. reg = <0x75>;
  199. i2c@0 { /* i2c mw 75 0 1 */
  200. #address-cells = <1>;
  201. #size-cells = <0>;
  202. reg = <0>;
  203. /* PS_PMBUS */
  204. ina226@40 { /* u76 */
  205. compatible = "ti,ina226";
  206. reg = <0x40>;
  207. shunt-resistor = <5000>;
  208. };
  209. ina226@41 { /* u77 */
  210. compatible = "ti,ina226";
  211. reg = <0x41>;
  212. shunt-resistor = <5000>;
  213. };
  214. ina226@42 { /* u78 */
  215. compatible = "ti,ina226";
  216. reg = <0x42>;
  217. shunt-resistor = <5000>;
  218. };
  219. ina226@43 { /* u87 */
  220. compatible = "ti,ina226";
  221. reg = <0x43>;
  222. shunt-resistor = <5000>;
  223. };
  224. ina226@44 { /* u85 */
  225. compatible = "ti,ina226";
  226. reg = <0x44>;
  227. shunt-resistor = <5000>;
  228. };
  229. ina226@45 { /* u86 */
  230. compatible = "ti,ina226";
  231. reg = <0x45>;
  232. shunt-resistor = <5000>;
  233. };
  234. ina226@46 { /* u93 */
  235. compatible = "ti,ina226";
  236. reg = <0x46>;
  237. shunt-resistor = <5000>;
  238. };
  239. ina226@47 { /* u88 */
  240. compatible = "ti,ina226";
  241. reg = <0x47>;
  242. shunt-resistor = <5000>;
  243. };
  244. ina226@4a { /* u15 */
  245. compatible = "ti,ina226";
  246. reg = <0x4a>;
  247. shunt-resistor = <5000>;
  248. };
  249. ina226@4b { /* u92 */
  250. compatible = "ti,ina226";
  251. reg = <0x4b>;
  252. shunt-resistor = <5000>;
  253. };
  254. };
  255. i2c@1 { /* i2c mw 75 0 1 */
  256. #address-cells = <1>;
  257. #size-cells = <0>;
  258. reg = <1>;
  259. /* PL_PMBUS */
  260. ina226@40 { /* u79 */
  261. compatible = "ti,ina226";
  262. reg = <0x40>;
  263. shunt-resistor = <2000>;
  264. };
  265. ina226@41 { /* u81 */
  266. compatible = "ti,ina226";
  267. reg = <0x41>;
  268. shunt-resistor = <5000>;
  269. };
  270. ina226@42 { /* u80 */
  271. compatible = "ti,ina226";
  272. reg = <0x42>;
  273. shunt-resistor = <5000>;
  274. };
  275. ina226@43 { /* u84 */
  276. compatible = "ti,ina226";
  277. reg = <0x43>;
  278. shunt-resistor = <5000>;
  279. };
  280. ina226@44 { /* u16 */
  281. compatible = "ti,ina226";
  282. reg = <0x44>;
  283. shunt-resistor = <5000>;
  284. };
  285. ina226@45 { /* u65 */
  286. compatible = "ti,ina226";
  287. reg = <0x45>;
  288. shunt-resistor = <5000>;
  289. };
  290. ina226@46 { /* u74 */
  291. compatible = "ti,ina226";
  292. reg = <0x46>;
  293. shunt-resistor = <5000>;
  294. };
  295. ina226@47 { /* u75 */
  296. compatible = "ti,ina226";
  297. reg = <0x47>;
  298. shunt-resistor = <5000>;
  299. };
  300. };
  301. i2c@2 { /* i2c mw 75 0 1 */
  302. #address-cells = <1>;
  303. #size-cells = <0>;
  304. reg = <2>;
  305. /* MAXIM_PMBUS - 00 */
  306. max15301@a { /* u46 */
  307. compatible = "max15301";
  308. reg = <0xa>;
  309. };
  310. max15303@b { /* u4 */
  311. compatible = "max15303";
  312. reg = <0xb>;
  313. };
  314. max15303@10 { /* u13 */
  315. compatible = "max15303";
  316. reg = <0x10>;
  317. };
  318. max15301@13 { /* u47 */
  319. compatible = "max15301";
  320. reg = <0x13>;
  321. };
  322. max15303@14 { /* u7 */
  323. compatible = "max15303";
  324. reg = <0x14>;
  325. };
  326. max15303@15 { /* u6 */
  327. compatible = "max15303";
  328. reg = <0x15>;
  329. };
  330. max15303@16 { /* u10 */
  331. compatible = "max15303";
  332. reg = <0x16>;
  333. };
  334. max15303@17 { /* u9 */
  335. compatible = "max15303";
  336. reg = <0x17>;
  337. };
  338. max15301@18 { /* u63 */
  339. compatible = "max15301";
  340. reg = <0x18>;
  341. };
  342. max15303@1a { /* u49 */
  343. compatible = "max15303";
  344. reg = <0x1a>;
  345. };
  346. max15303@1d { /* u18 */
  347. compatible = "max15303";
  348. reg = <0x1d>;
  349. };
  350. max15303@20 { /* u8 */
  351. compatible = "max15303";
  352. status = "disabled"; /* unreachable */
  353. reg = <0x20>;
  354. };
  355. /* drivers/hwmon/pmbus/Kconfig:86: be called max20751.
  356. drivers/hwmon/pmbus/Makefile:11:obj-$(CONFIG_SENSORS_MAX20751) += max20751.o
  357. */
  358. max20751@72 { /* u95 FIXME - not detected */
  359. compatible = "max20751";
  360. reg = <0x72>;
  361. };
  362. max20751@73 { /* u96 FIXME - not detected */
  363. compatible = "max20751";
  364. reg = <0x73>;
  365. };
  366. };
  367. /* Bus 3 is not connected */
  368. };
  369. /* FIXME PMOD - j160 */
  370. /* FIXME MSP430F - u41 - not detected */
  371. };
  372. &i2c1 {
  373. status = "okay";
  374. clock-frequency = <400000>;
  375. /* FIXME PL i2c via PCA9306 - u45 */
  376. /* FIXME MSP430 - u41 - not detected */
  377. i2cswitch@74 { /* u34 */
  378. compatible = "nxp,pca9548";
  379. #address-cells = <1>;
  380. #size-cells = <0>;
  381. reg = <0x74>;
  382. i2c@0 { /* i2c mw 74 0 1 */
  383. #address-cells = <1>;
  384. #size-cells = <0>;
  385. reg = <0>;
  386. /*
  387. * IIC_EEPROM 1kB memory which uses 256B blocks
  388. * where every block has different address.
  389. * 0 - 256B address 0x54
  390. * 256B - 512B address 0x55
  391. * 512B - 768B address 0x56
  392. * 768B - 1024B address 0x57
  393. */
  394. eeprom@54 { /* u23 */
  395. compatible = "at,24c08";
  396. reg = <0x54>;
  397. };
  398. };
  399. i2c@1 { /* i2c mw 74 0 2 */
  400. #address-cells = <1>;
  401. #size-cells = <0>;
  402. reg = <1>;
  403. si5341: clock-generator1@36 { /* SI5341 - u69 */
  404. compatible = "si5341";
  405. reg = <0x36>;
  406. };
  407. };
  408. i2c@2 { /* i2c mw 74 0 4 */
  409. #address-cells = <1>;
  410. #size-cells = <0>;
  411. reg = <2>;
  412. si570_1: clock-generator2@5d { /* USER SI570 - u42 */
  413. #clock-cells = <0>;
  414. compatible = "silabs,si570";
  415. reg = <0x5d>;
  416. temperature-stability = <50>;
  417. factory-fout = <300000000>;
  418. clock-frequency = <300000000>;
  419. };
  420. };
  421. i2c@3 { /* i2c mw 74 0 8 */
  422. #address-cells = <1>;
  423. #size-cells = <0>;
  424. reg = <3>;
  425. si570_2: clock-generator3@5d { /* USER MGT SI570 - u56 */
  426. #clock-cells = <0>;
  427. compatible = "silabs,si570";
  428. reg = <0x5d>;
  429. temperature-stability = <50>; /* copy from zc702 */
  430. factory-fout = <156250000>;
  431. clock-frequency = <148500000>;
  432. };
  433. };
  434. i2c@4 { /* i2c mw 74 0 10 */
  435. #address-cells = <1>;
  436. #size-cells = <0>;
  437. reg = <4>;
  438. si5328: clock-generator4@69 {/* SI5328 - u20 */
  439. compatible = "silabs,si5328";
  440. reg = <0x69>;
  441. };
  442. };
  443. /* 5 - 7 unconnected */
  444. };
  445. i2cswitch@75 {
  446. compatible = "nxp,pca9548"; /* u135 */
  447. #address-cells = <1>;
  448. #size-cells = <0>;
  449. reg = <0x75>;
  450. i2c@0 {
  451. #address-cells = <1>;
  452. #size-cells = <0>;
  453. reg = <0>;
  454. /* HPC0_IIC */
  455. };
  456. i2c@1 {
  457. #address-cells = <1>;
  458. #size-cells = <0>;
  459. reg = <1>;
  460. /* HPC1_IIC */
  461. };
  462. i2c@2 {
  463. #address-cells = <1>;
  464. #size-cells = <0>;
  465. reg = <2>;
  466. /* SYSMON */
  467. };
  468. i2c@3 { /* i2c mw 75 0 8 */
  469. #address-cells = <1>;
  470. #size-cells = <0>;
  471. reg = <3>;
  472. /* DDR4 SODIMM */
  473. dev@19 { /* u-boot detection */
  474. compatible = "xxx";
  475. reg = <0x19>;
  476. };
  477. dev@30 { /* u-boot detection */
  478. compatible = "xxx";
  479. reg = <0x30>;
  480. };
  481. dev@35 { /* u-boot detection */
  482. compatible = "xxx";
  483. reg = <0x35>;
  484. };
  485. dev@36 { /* u-boot detection */
  486. compatible = "xxx";
  487. reg = <0x36>;
  488. };
  489. dev@51 { /* u-boot detection - maybe SPD */
  490. compatible = "xxx";
  491. reg = <0x51>;
  492. };
  493. };
  494. i2c@4 {
  495. #address-cells = <1>;
  496. #size-cells = <0>;
  497. reg = <4>;
  498. /* SEP 3 */
  499. };
  500. i2c@5 {
  501. #address-cells = <1>;
  502. #size-cells = <0>;
  503. reg = <5>;
  504. /* SEP 2 */
  505. };
  506. i2c@6 {
  507. #address-cells = <1>;
  508. #size-cells = <0>;
  509. reg = <6>;
  510. /* SEP 1 */
  511. };
  512. i2c@7 {
  513. #address-cells = <1>;
  514. #size-cells = <0>;
  515. reg = <7>;
  516. /* SEP 0 */
  517. };
  518. };
  519. };
  520. &pcie {
  521. /* status = "okay"; */
  522. };
  523. &qspi {
  524. status = "okay";
  525. is-dual = <1>;
  526. flash@0 {
  527. compatible = "m25p80"; /* 32MB */
  528. #address-cells = <1>;
  529. #size-cells = <1>;
  530. reg = <0x0>;
  531. spi-tx-bus-width = <1>;
  532. spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
  533. spi-max-frequency = <108000000>; /* Based on DC1 spec */
  534. partition@qspi-fsbl-uboot { /* for testing purpose */
  535. label = "qspi-fsbl-uboot";
  536. reg = <0x0 0x100000>;
  537. };
  538. partition@qspi-linux { /* for testing purpose */
  539. label = "qspi-linux";
  540. reg = <0x100000 0x500000>;
  541. };
  542. partition@qspi-device-tree { /* for testing purpose */
  543. label = "qspi-device-tree";
  544. reg = <0x600000 0x20000>;
  545. };
  546. partition@qspi-rootfs { /* for testing purpose */
  547. label = "qspi-rootfs";
  548. reg = <0x620000 0x5E0000>;
  549. };
  550. };
  551. };
  552. &rtc {
  553. status = "okay";
  554. };
  555. &sata {
  556. status = "okay";
  557. /* SATA OOB timing settings */
  558. ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
  559. ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
  560. ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
  561. ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
  562. ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
  563. ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
  564. ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
  565. ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
  566. };
  567. /* SD1 with level shifter */
  568. &sdhci1 {
  569. status = "okay";
  570. no-1-8-v; /* for 1.0 silicon */
  571. xlnx,mio_bank = <1>;
  572. };
  573. &uart0 {
  574. status = "okay";
  575. };
  576. &uart1 {
  577. status = "okay";
  578. };
  579. /* ULPI SMSC USB3320 */
  580. &usb0 {
  581. status = "okay";
  582. };
  583. &dwc3_0 {
  584. status = "okay";
  585. dr_mode = "host";
  586. };
  587. &xilinx_drm {
  588. status = "okay";
  589. clocks = <&si570_1>;
  590. };
  591. &xlnx_dp {
  592. status = "okay";
  593. };
  594. &xlnx_dp_sub {
  595. status = "okay";
  596. xlnx,vid-clk-pl;
  597. };
  598. &xlnx_dp_snd_pcm0 {
  599. status = "okay";
  600. };
  601. &xlnx_dp_snd_pcm1 {
  602. status = "okay";
  603. };
  604. &xlnx_dp_snd_card {
  605. status = "okay";
  606. };
  607. &xlnx_dp_snd_codec0 {
  608. status = "okay";
  609. };
  610. &xlnx_dpdma {
  611. status = "okay";
  612. };