blob: 902fdd4de6cc6e84d1094a35c2a32c33d595e42c [file] [log] [blame]
Michal Simekf97470e2019-06-28 13:18:50 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx Versal a2197 RevA System Controller
4 *
5 * (C) Copyright 2019, Xilinx, Inc.
6 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simekf97470e2019-06-28 13:18:50 +02008 */
9/dts-v1/;
10
11#include "zynqmp.dtsi"
12#include "zynqmp-clk-ccf.dtsi"
13#include <dt-bindings/gpio/gpio.h>
14
15/ {
16 model = "Versal System Controller on a2197 Memory Char board RevA";
17 compatible = "xlnx,zynqmp-m-a2197-02-revA", "xlnx,zynqmp-a2197-revA",
18 "xlnx,zynqmp-a2197", "xlnx,zynqmp";
19
20 aliases {
21 ethernet0 = &gem0;
Michal Simekf97470e2019-06-28 13:18:50 +020022 i2c0 = &i2c0;
23 i2c1 = &i2c1;
24 mmc0 = &sdhci0;
25 mmc1 = &sdhci1;
Michal Simek53b145d2021-06-03 11:46:50 +020026 nvmem0 = &eeprom;
Michal Simekf97470e2019-06-28 13:18:50 +020027 rtc0 = &rtc;
28 serial0 = &uart0;
29 serial1 = &uart1;
30 serial2 = &dcc;
31 usb0 = &usb0;
32 usb1 = &usb1;
33 spi0 = &qspi;
34 };
35
36 chosen {
37 bootargs = "earlycon";
38 stdout-path = "serial0:115200n8";
Michal Simekf97470e2019-06-28 13:18:50 +020039 };
40
41 memory@0 {
42 device_type = "memory";
43 reg = <0x0 0x0 0x0 0x80000000>; /* FIXME don't know how big memory is there */
44 };
45
46 ina226-vcc-aux {
47 compatible = "iio-hwmon";
48 io-channels = <&vcc_aux 0>, <&vcc_aux 1>, <&vcc_aux 2>, <&vcc_aux 3>;
49 };
50 ina226-vcc-ram {
51 compatible = "iio-hwmon";
52 io-channels = <&vcc_ram 0>, <&vcc_ram 1>, <&vcc_ram 2>, <&vcc_ram 3>;
53 };
54 ina226-vcc1v1-lp4 {
55 compatible = "iio-hwmon";
56 io-channels = <&vcc1v1_lp4 0>, <&vcc1v1_lp4 1>, <&vcc1v1_lp4 2>, <&vcc1v1_lp4 3>;
57 };
58 ina226-vcc1v2-lp4 {
59 compatible = "iio-hwmon";
60 io-channels = <&vcc1v2_lp4 0>, <&vcc1v2_lp4 1>, <&vcc1v2_lp4 2>, <&vcc1v2_lp4 3>;
61 };
62 ina226-vdd1-1v8-lp4 {
63 compatible = "iio-hwmon";
64 io-channels = <&vdd1_1v8_lp4 0>, <&vdd1_1v8_lp4 1>, <&vdd1_1v8_lp4 2>, <&vdd1_1v8_lp4 3>;
65 };
66};
67
68&qspi {
69 status = "okay";
Michal Simekad200322023-10-23 09:21:53 +020070 num-cs = <2>;
Michal Simekf97470e2019-06-28 13:18:50 +020071 flash@0 {
72 compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
Michal Simekad200322023-10-23 09:21:53 +020073 reg = <0>, <1>;
74 parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
Michal Simekf97470e2019-06-28 13:18:50 +020075 #address-cells = <1>;
76 #size-cells = <1>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +020077 spi-tx-bus-width = <4>;
Michal Simekf97470e2019-06-28 13:18:50 +020078 spi-rx-bus-width = <4>;
79 spi-max-frequency = <108000000>;
80 };
81};
82
83&sdhci0 { /* emmc MIO 13-23 - with some settings 16GB */
84 status = "okay";
85 non-removable;
86 disable-wp;
87 bus-width = <8>;
Michal Simek3b662642020-07-22 17:42:43 +020088 xlnx,mio-bank = <0>; /* FIXME tap delay */
Michal Simekf97470e2019-06-28 13:18:50 +020089};
90
91&uart0 { /* uart0 MIO38-39 */
92 status = "okay";
Michal Simekf97470e2019-06-28 13:18:50 +020093};
94
95&uart1 { /* uart1 MIO40-41 */
96 status = "okay";
Michal Simekf97470e2019-06-28 13:18:50 +020097};
98
99&sdhci1 { /* sd1 MIO45-51 cd in place */
Michal Simek81e3aa52024-09-13 11:28:42 +0200100 status = "disabled";
Michal Simekf97470e2019-06-28 13:18:50 +0200101 no-1-8-v;
102 disable-wp;
Michal Simek3b662642020-07-22 17:42:43 +0200103 xlnx,mio-bank = <1>;
Michal Simekf97470e2019-06-28 13:18:50 +0200104};
105
106&gem0 {
107 status = "okay";
108 phy-handle = <&phy0>;
109 phy-mode = "sgmii";
Michal Simek0641df72023-09-22 12:35:36 +0200110 mdio: mdio {
111 #address-cells = <1>;
112 #size-cells = <0>;
113 reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>;
114 phy0: ethernet-phy@0 { /* marwell m88e1512 - SGMII */
115 reg = <0>;
116 };
Michal Simekf97470e2019-06-28 13:18:50 +0200117 };
118};
119
120&gpio {
121 status = "okay";
122 gpio-line-names = "SCLK_OUT", "MISO_MO1", "MO2", "MO3", "MOSI_MIO0", /* 0 - 4 */
123 "N_SS_OUT", "", "SYS_CTRL0", "SYS_CTRL1", "SYS_CTRL2", /* 5 - 9 */
124 "SYS_CTRL3", "SYS_CTRL4", "SYS_CTRL5", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
125 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
126 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
127 "", "RXD0_IN", "TXD0_OUT", "TXD1_OUT", "RXD1_IN", /* 25 - 29 */
128 "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
129 "LP_I2C0_PMC_SDA", "LP_I2C1_SCL", "LP_I2C1_SDA", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
130 "UART1_TXD_OUT", "UART1_RXD_IN", "ETH_RESET_B", "", "", /* 40 - 44 */
131 "SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
132 "SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
133 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
134 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
135 "USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
136 "USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
137 "USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
Michal Simek45d57932024-09-13 11:28:45 +0200138 "", "", /* 78 - 79 */
Michal Simekf97470e2019-06-28 13:18:50 +0200139 "", "", "", "", "", /* 80 - 84 */
Michal Simeka8c5ce42024-09-13 11:28:46 +0200140 "", "", "", "", "", /* 85 - 89 */
Michal Simekf97470e2019-06-28 13:18:50 +0200141 "", "", "", "", "", /* 90 - 94 */
142 "", "", "", "", "", /* 95 - 99 */
143 "", "", "", "", "", /* 100 - 104 */
144 "", "", "", "", "", /* 105 - 109 */
145 "", "", "", "", "", /* 110 - 114 */
146 "", "", "", "", "", /* 115 - 119 */
147 "", "", "", "", "", /* 120 - 124 */
148 "", "", "", "", "", /* 125 - 129 */
149 "", "", "", "", "", /* 130 - 134 */
150 "", "", "", "", "", /* 135 - 139 */
151 "", "", "", "", "", /* 140 - 144 */
152 "", "", "", "", "", /* 145 - 149 */
153 "", "", "", "", "", /* 150 - 154 */
154 "", "", "", "", "", /* 155 - 159 */
155 "", "", "", "", "", /* 160 - 164 */
156 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200157 "", "", "", ""; /* 170 - 173 */
Michal Simekf97470e2019-06-28 13:18:50 +0200158};
159
160&i2c0 { /* MIO 34-35 - can't stay here */
161 status = "okay";
162 clock-frequency = <400000>;
163 i2c-mux@74 { /* u46 */
164 compatible = "nxp,pca9548";
165 #address-cells = <1>;
166 #size-cells = <0>;
167 reg = <0x74>;
168 /* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
169 i2c@0 { /* PMBUS must be enabled via SW21 */
170 #address-cells = <1>;
171 #size-cells = <0>;
172 reg = <0>;
173 reg_vcc1v2_lp4: tps544@15 { /* u97 */
174 compatible = "ti,tps544b25";
175 reg = <0x15>;
176 };
177 reg_vcc1v1_lp4: tps544@16 { /* u95 */
178 compatible = "ti,tps544b25";
179 reg = <0x16>;
180 };
181 reg_vdd1_1v8_lp4: tps544@17 { /* u99 */
182 compatible = "ti,tps544b25";
183 reg = <0x17>;
184 };
185 /* UTIL_PMBUS connection */
186 reg_vcc1v8: tps544@13 { /* u92 */
187 compatible = "ti,tps544b25";
188 reg = <0x13>;
189 };
190 reg_vcc3v3: tps544@14 { /* u93 */
191 compatible = "ti,tps544b25";
192 reg = <0x14>;
193 };
194 reg_vcc5v0: tps544@1e { /* u94 */
195 compatible = "ti,tps544b25";
196 reg = <0x1e>;
197 };
Michal Simekf97470e2019-06-28 13:18:50 +0200198 };
199 i2c@1 { /* PMBUS_INA226 */
200 #address-cells = <1>;
201 #size-cells = <0>;
202 reg = <1>;
203 vcc_aux: ina226@42 { /* u86 */
204 compatible = "ti,ina226";
205 #io-channel-cells = <1>;
206 label = "ina226-vcc-aux";
207 reg = <0x42>;
208 shunt-resistor = <5000>;
209 };
210 vcc_ram: ina226@43 { /* u81 */
211 compatible = "ti,ina226";
212 #io-channel-cells = <1>;
213 label = "ina226-vcc-ram";
214 reg = <0x43>;
215 shunt-resistor = <5000>;
216 };
217 vcc1v1_lp4: ina226@46 { /* u96 */
218 compatible = "ti,ina226";
219 #io-channel-cells = <1>;
220 label = "ina226-vcc1v1-lp4";
221 reg = <0x46>;
222 shunt-resistor = <5000>;
223 };
224 vcc1v2_lp4: ina226@47 { /* u98 */
225 compatible = "ti,ina226";
226 #io-channel-cells = <1>;
227 label = "ina226-vcc1v2-lp4";
228 reg = <0x47>;
229 shunt-resistor = <5000>;
230 };
231 vdd1_1v8_lp4: ina226@48 { /* u100 */
232 compatible = "ti,ina226";
233 #io-channel-cells = <1>;
234 label = "ina226-vdd1-1v8-lp4";
235 reg = <0x48>;
236 shunt-resistor = <5000>;
237 };
238 };
239 i2c@2 { /* PMBUS1 */
240 #address-cells = <1>;
241 #size-cells = <0>;
242 reg = <2>;
Michal Simekb6964242022-06-15 11:56:55 +0200243 reg_vccint: tps53681@60 { /* u69 - 0xc0 */
Michal Simekf97470e2019-06-28 13:18:50 +0200244 compatible = "ti,tps53681", "ti,tps53679";
Michal Simekb6964242022-06-15 11:56:55 +0200245 reg = <0x60>;
Michal Simekf97470e2019-06-28 13:18:50 +0200246 };
247 reg_vcc_pmc: tps544@7 { /* u80 */
248 compatible = "ti,tps544b25";
249 reg = <0x7>;
250 };
251 reg_vcc_ram: tps544@8 { /* u82 */
252 compatible = "ti,tps544b25";
253 reg = <0x8>;
254 };
255 reg_vcc_pslp: tps544@9 { /* u83 */
256 compatible = "ti,tps544b25";
257 reg = <0x9>;
258 };
259 reg_vcc_psfp: tps544@a { /* u84 */
260 compatible = "ti,tps544b25";
261 reg = <0xa>;
262 };
263 reg_vccaux: tps544@d { /* u85 */
264 compatible = "ti,tps544b25";
265 reg = <0xd>;
266 };
267 reg_vccaux_pmc: tps544@e { /* u87 */
268 compatible = "ti,tps544b25";
269 reg = <0xe>;
270 };
271 reg_vcco_500: tps544@f { /* u88 */
272 compatible = "ti,tps544b25";
273 reg = <0xf>;
274 };
275 reg_vcco_501: tps544@10 { /* u89 */
276 compatible = "ti,tps544b25";
277 reg = <0x10>;
278 };
279 reg_vcco_502: tps544@11 { /* u90 */
280 compatible = "ti,tps544b25";
281 reg = <0x11>;
282 };
283 reg_vcco_503: tps544@12 { /* u91 */
284 compatible = "ti,tps544b25";
285 reg = <0x12>;
286 };
287 };
288 i2c@3 { /* MEM PMBUS - FIXME bug in schematics */
289 #address-cells = <1>;
290 #size-cells = <0>;
Michal Simek57e7fce2024-09-13 11:28:47 +0200291 reg = <3>;
Michal Simekf97470e2019-06-28 13:18:50 +0200292 };
293 i2c@4 { /* LP_I2C_SM */
294 #address-cells = <1>;
295 #size-cells = <0>;
296 reg = <4>;
297 /* connected to U20G */
298 };
299 i2c@5 { /* C0_DDR4_RDIMM */
300 #address-cells = <1>;
301 #size-cells = <0>;
302 reg = <5>;
303 };
304 i2c@6 { /* C2_DDR5_RDIMM */
305 #address-cells = <1>;
306 #size-cells = <0>;
307 reg = <6>;
308 };
309 i2c@7 { /* C3_DDR4_UDIMM */
310 #address-cells = <1>;
311 #size-cells = <0>;
312 reg = <7>;
313 };
314 };
315};
316
317/* TODO sysctrl via J239 */
318/* TODO samtec J212G/H via J242 */
319/* TODO teensy via U30 PCA9543A bus 1 */
320&i2c1 { /* i2c1 MIO 36-37 */
321 status = "okay";
322 clock-frequency = <400000>;
323
324 /* Must be enabled via J242 */
325 eeprom_versal: eeprom@51 { /* x-prc-01-revA u116, x-prc-02-revA u12 */
326 compatible = "atmel,24c02";
327 reg = <0x51>;
328 };
329
330 i2c-mux@74 { /* u47 */
331 compatible = "nxp,pca9548";
332 #address-cells = <1>;
333 #size-cells = <0>;
334 reg = <0x74>;
335 /* FIXME reset connected to SYSCTRL_IIC_MUX1_RESET */
336 dc_i2c: i2c@0 { /* DC_I2C */
337 #address-cells = <1>;
338 #size-cells = <0>;
339 reg = <0>;
340 /* Use for storing information about SC board */
341 eeprom: eeprom@54 { /* u51 - m24128 16kB FIXME addr */
342 compatible = "atmel,24c08";
343 reg = <0x54>;
344 };
345 si570_ref_clk: clock-generator@5d { /* u26 */
346 #clock-cells = <0>;
347 compatible = "silabs,si570";
348 reg = <0x5d>; /* FIXME addr */
349 temperature-stability = <50>;
Michal Simekf86d2b52021-03-09 12:43:42 +0100350 factory-fout = <33333333>;
Michal Simekf97470e2019-06-28 13:18:50 +0200351 clock-frequency = <33333333>;
352 clock-output-names = "REF_CLK"; /* FIXME */
Michal Simekf86d2b52021-03-09 12:43:42 +0100353 silabs,skip-recall;
Michal Simekf97470e2019-06-28 13:18:50 +0200354 };
355 /* Connection via Samtec U20D */
356 /* Use for storing information about X-PRC card */
357 x_prc_eeprom: eeprom@52 { /* x-prc-01-revA u120, x-prc-02-revA u16 */
358 compatible = "atmel,24c02";
359 reg = <0x52>;
360 };
361
362 /* Use for setting up certain features on X-PRC card */
363 x_prc_tca9534: gpio@22 { /* x-prc-01-revA u121, x-prc-02-revA u17 */
364 compatible = "nxp,pca9534";
365 reg = <0x22>;
366 gpio-controller; /* IRQ not connected */
367 #gpio-cells = <2>;
368 gpio-line-names = "sw4_1", "sw4_2", "sw4_3", "sw4_4",
369 "", "", "", "";
Michal Simek5368d402024-09-13 11:28:43 +0200370 gtr-sel0-hog {
Michal Simekf97470e2019-06-28 13:18:50 +0200371 gpio-hog;
372 gpios = <0 0>;
373 input; /* FIXME add meaning */
374 line-name = "sw4_1";
375 };
Michal Simek5368d402024-09-13 11:28:43 +0200376 gtr-sel1-hog {
Michal Simekf97470e2019-06-28 13:18:50 +0200377 gpio-hog;
378 gpios = <1 0>;
379 input; /* FIXME add meaning */
380 line-name = "sw4_2";
381 };
Michal Simek5368d402024-09-13 11:28:43 +0200382 gtr-sel2-hog {
Michal Simekf97470e2019-06-28 13:18:50 +0200383 gpio-hog;
384 gpios = <2 0>;
385 input; /* FIXME add meaning */
386 line-name = "sw4_3";
387 };
Michal Simek5368d402024-09-13 11:28:43 +0200388 gtr-sel3-hog {
Michal Simekf97470e2019-06-28 13:18:50 +0200389 gpio-hog;
390 gpios = <3 0>;
391 input; /* FIXME add meaning */
392 line-name = "sw4_4";
393 };
394 };
395 };
396 i2c@2 { /* C0_DDR4 */
397 #address-cells = <1>;
398 #size-cells = <0>;
399 reg = <2>;
400 si570_c0_ddr4: clock-generator@55 { /* u4 */
401 #clock-cells = <0>;
402 compatible = "silabs,si570";
403 reg = <0x55>;
404 temperature-stability = <50>;
405 factory-fout = <30000000>;
406 clock-frequency = <30000000>;
407 clock-output-names = "C0_DD4_SI570_CLK";
408 };
409 };
410 i2c@3 { /* C1_RLD3 */
411 #address-cells = <1>;
412 #size-cells = <0>;
413 reg = <3>;
414 si570_c1_lp4: clock-generator@55 { /* u7 */
415 #clock-cells = <0>;
416 compatible = "silabs,si570";
417 reg = <0x55>;
418 temperature-stability = <50>;
419 factory-fout = <30000000>;
420 clock-frequency = <30000000>;
421 clock-output-names = "C1_RLD3_SI570_CLK";
422 };
423 };
424 i2c@4 { /* C2_DDR5 */
425 #address-cells = <1>;
426 #size-cells = <0>;
427 reg = <4>;
428 si570_c2_lp4: clock-generator@55 { /* u10 */
429 #clock-cells = <0>;
430 compatible = "silabs,si570";
431 reg = <0x55>;
432 temperature-stability = <50>;
433 factory-fout = <30000000>;
434 clock-frequency = <30000000>;
435 clock-output-names = "C2_DDR5_SI570_CLK";
436 };
437 };
438 i2c@5 { /* C3_DDR4 */
439 #address-cells = <1>;
440 #size-cells = <0>;
441 reg = <5>;
442 si570_c3_lp4: clock-generator@55 { /* u15 */
443 #clock-cells = <0>;
444 compatible = "silabs,si570";
445 reg = <0x55>;
446 temperature-stability = <50>;
447 factory-fout = <30000000>;
448 clock-frequency = <30000000>;
449 clock-output-names = "C3_LP4_SI570_CLK";
450 };
451 };
452 i2c@6 { /* HSDP_SI570 */
453 #address-cells = <1>;
454 #size-cells = <0>;
455 reg = <6>;
456 si570_hsdp: clock-generator@5d { /* u19 */
457 #clock-cells = <0>;
458 compatible = "silabs,si570";
459 reg = <0x5d>;
460 temperature-stability = <50>;
461 factory-fout = <156250000>;
462 clock-frequency = <156250000>;
463 clock-output-names = "HSDP_SI570";
464 };
465 };
466 };
467};
468
469&usb0 {
470 status = "okay";
Michal Simekf97470e2019-06-28 13:18:50 +0200471};
472
473&dwc3_0 {
474 status = "okay";
475 dr_mode = "host";
476 /* dr_mode = "peripheral"; */
477 maximum-speed = "high-speed";
478};
479
480&usb1 {
481 status = "disabled"; /* not at mem board */
Michal Simekf97470e2019-06-28 13:18:50 +0200482};
483
484&dwc3_1 {
485 /delete-property/ phy-names ;
486 /delete-property/ phys ;
487 maximum-speed = "high-speed";
488 snps,dis_u2_susphy_quirk ;
489 snps,dis_u3_susphy_quirk ;
490 status = "disabled";
491};