blob: 2c3e30ba8916797799dc8cf3c22b67047722f23c [file] [log] [blame]
Michal Simekfadc4ce2019-04-12 12:19:22 +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 Simekfadc4ce2019-04-12 12:19:22 +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";
Michal Simek36aeb172019-06-28 13:16:10 +020017 compatible = "xlnx,zynqmp-m-a2197-01-revA", "xlnx,zynqmp-a2197-revA",
Michal Simekfadc4ce2019-04-12 12:19:22 +020018 "xlnx,zynqmp-a2197", "xlnx,zynqmp";
19
20 aliases {
21 ethernet0 = &gem0;
Michal Simekfadc4ce2019-04-12 12:19:22 +020022 i2c0 = &i2c0;
23 i2c1 = &i2c1;
24 mmc0 = &sdhci0;
25 mmc1 = &sdhci1;
Michal Simek53b145d2021-06-03 11:46:50 +020026 nvmem0 = &eeprom;
Michal Simekfadc4ce2019-04-12 12:19:22 +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 Simekfadc4ce2019-04-12 12:19:22 +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 };
Michal Simek82c12482019-08-26 11:09:54 +020045
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 ina226-vcc0v6-lp4 {
67 compatible = "iio-hwmon";
68 io-channels = <&vcc0v6_lp4 0>, <&vcc0v6_lp4 1>, <&vcc0v6_lp4 2>, <&vcc0v6_lp4 3>;
69 };
Michal Simekfadc4ce2019-04-12 12:19:22 +020070};
71
72&qspi {
73 status = "okay";
74 is-dual = <1>;
75 flash@0 {
Michal Simek39cd29c2019-08-07 09:58:29 +020076 compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
Michal Simekfadc4ce2019-04-12 12:19:22 +020077 #address-cells = <1>;
78 #size-cells = <1>;
79 reg = <0x0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +020080 spi-tx-bus-width = <4>;
Michal Simekfadc4ce2019-04-12 12:19:22 +020081 spi-rx-bus-width = <4>;
82 spi-max-frequency = <108000000>;
83 };
84};
85
86&sdhci0 { /* emmc MIO 13-23 - with some settings 16GB */
87 status = "okay";
88 non-removable;
89 disable-wp;
90 bus-width = <8>;
Michal Simek3b662642020-07-22 17:42:43 +020091 xlnx,mio-bank = <0>; /* FIXME tap delay */
Michal Simekfadc4ce2019-04-12 12:19:22 +020092};
93
94&uart0 { /* uart0 MIO38-39 */
95 status = "okay";
Michal Simekfadc4ce2019-04-12 12:19:22 +020096};
97
98&uart1 { /* uart1 MIO40-41 */
99 status = "okay";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200100};
101
102&sdhci1 { /* sd1 MIO45-51 cd in place */
103 status = "disable";
104 no-1-8-v;
105 disable-wp;
Michal Simek3b662642020-07-22 17:42:43 +0200106 xlnx,mio-bank = <1>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200107};
108
109&gem0 {
110 status = "okay";
111 phy-handle = <&phy0>;
112 phy-mode = "sgmii"; /* DTG generates this properly 1512 */
Michal Simek0641df72023-09-22 12:35:36 +0200113 mdio: mdio {
114 #address-cells = <1>;
115 #size-cells = <0>;
116 reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>;
117 phy0: ethernet-phy@0 { /* marwell m88e1512 - SGMII */
118 reg = <0>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200119/* xlnx,phy-type = <PHY_TYPE_SGMII>; */
Michal Simek0641df72023-09-22 12:35:36 +0200120 };
Michal Simekfadc4ce2019-04-12 12:19:22 +0200121 };
Michal Simekfadc4ce2019-04-12 12:19:22 +0200122};
123
124&gpio {
125 status = "okay";
126 gpio-line-names = "SCLK_OUT", "MISO_MO1", "MO2", "MO3", "MOSI_MIO0", /* 0 - 4 */
127 "N_SS_OUT", "", "SYS_CTRL0", "SYS_CTRL1", "SYS_CTRL2", /* 5 - 9 */
128 "SYS_CTRL3", "SYS_CTRL4", "SYS_CTRL5", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
129 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
130 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
131 "", "RXD0_IN", "TXD0_OUT", "TXD1_OUT", "RXD1_IN", /* 25 - 29 */
132 "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
133 "LP_I2C0_PMC_SDA", "LP_I2C1_SCL", "LP_I2C1_SDA", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
134 "UART1_TXD_OUT", "UART1_RXD_IN", "ETH_RESET_B", "", "", /* 40 - 44 */
135 "SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
136 "SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
137 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
138 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
139 "USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
140 "USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
141 "USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
142 "", "", "", "", "", /* 78 - 79 */
143 "", "", "", "", "", /* 80 - 84 */
144 "", "", "", "", "", /* 85 -89 */
145 "", "", "", "", "", /* 90 - 94 */
146 "", "", "", "", "", /* 95 - 99 */
147 "", "", "", "", "", /* 100 - 104 */
148 "", "", "", "", "", /* 105 - 109 */
149 "", "", "", "", "", /* 110 - 114 */
150 "", "", "", "", "", /* 115 - 119 */
151 "", "", "", "", "", /* 120 - 124 */
152 "", "", "", "", "", /* 125 - 129 */
153 "", "", "", "", "", /* 130 - 134 */
154 "", "", "", "", "", /* 135 - 139 */
155 "", "", "", "", "", /* 140 - 144 */
156 "", "", "", "", "", /* 145 - 149 */
157 "", "", "", "", "", /* 150 - 154 */
158 "", "", "", "", "", /* 155 - 159 */
159 "", "", "", "", "", /* 160 - 164 */
160 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200161 "", "", "", ""; /* 170 - 173 */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200162};
163
164&i2c0 { /* MIO 34-35 - can't stay here */
165 status = "okay";
166 clock-frequency = <400000>;
167 i2c-mux@74 { /* u46 */
168 compatible = "nxp,pca9548";
169 #address-cells = <1>;
170 #size-cells = <0>;
171 reg = <0x74>;
172 /* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
173 i2c@0 { /* PMBUS must be enabled via SW21 */
174 #address-cells = <1>;
175 #size-cells = <0>;
176 reg = <0>;
177 reg_vcc1v2_lp4: tps544@15 { /* u97 */
178 compatible = "ti,tps544b25";
179 reg = <0x15>;
180 };
181 reg_vcc1v1_lp4: tps544@16 { /* u95 */
182 compatible = "ti,tps544b25";
183 reg = <0x16>;
184 };
185 reg_vdd1_1v8_lp4: tps544@17 { /* u99 */
186 compatible = "ti,tps544b25";
187 reg = <0x17>;
188 };
189 /* UTIL_PMBUS connection */
190 reg_vcc1v8: tps544@13 { /* u92 */
191 compatible = "ti,tps544b25";
192 reg = <0x13>;
193 };
194 reg_vcc3v3: tps544@14 { /* u93 */
195 compatible = "ti,tps544b25";
196 reg = <0x14>;
197 };
198 reg_vcc5v0: tps544@1e { /* u94 */
199 compatible = "ti,tps544b25";
200 reg = <0x1e>;
201 };
202 };
203 i2c@1 { /* PMBUS_INA226 */
204 #address-cells = <1>;
205 #size-cells = <0>;
206 reg = <1>;
207 vcc_aux: ina226@42 { /* u86 */
208 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200209 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200210 label = "ina226-vcc-aux";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200211 reg = <0x42>;
212 shunt-resistor = <5000>;
213 };
214 vcc_ram: ina226@43 { /* u81 */
215 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200216 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200217 label = "ina226-vcc-ram";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200218 reg = <0x43>;
219 shunt-resistor = <5000>;
220 };
221 vcc1v1_lp4: ina226@46 { /* u96 */
222 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200223 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200224 label = "ina226-vcc1v1-lp4";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200225 reg = <0x46>;
226 shunt-resistor = <5000>;
227 };
228 vcc1v2_lp4: ina226@47 { /* u98 */
229 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200230 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200231 label = "ina226-vcc1v2-lp4";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200232 reg = <0x47>;
233 shunt-resistor = <5000>;
234 };
235 vdd1_1v8_lp4: ina226@48 { /* u100 */
236 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200237 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200238 label = "ina226-vdd1-1v8-lp4";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200239 reg = <0x48>;
240 shunt-resistor = <5000>;
241 };
242 vcc0v6_lp4: ina226@49 { /* u101 */
243 compatible = "ti,ina226";
Michal Simek82c12482019-08-26 11:09:54 +0200244 #io-channel-cells = <1>;
Michal Simek68def1952019-08-26 11:10:48 +0200245 label = "ina226-vcc0v6-lp4";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200246 reg = <0x49>;
247 shunt-resistor = <5000>;
248 };
249 };
250 i2c@2 { /* PMBUS1 */
251 #address-cells = <1>;
252 #size-cells = <0>;
253 reg = <2>;
Michal Simekb6964242022-06-15 11:56:55 +0200254 reg_vccint: tps53681@60 { /* u69 - 0xc0 */
Nishant Mittalce2c40d2019-07-24 14:58:52 +0530255 compatible = "ti,tps53681", "ti,tps53679";
Michal Simekb6964242022-06-15 11:56:55 +0200256 reg = <0x60>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200257 };
258 reg_vcc_pmc: tps544@7 { /* u80 */
259 compatible = "ti,tps544b25";
260 reg = <0x7>;
261 };
262 reg_vcc_ram: tps544@8 { /* u82 */
263 compatible = "ti,tps544b25";
264 reg = <0x8>;
265 };
266 reg_vcc_pslp: tps544@9 { /* u83 */
267 compatible = "ti,tps544b25";
268 reg = <0x9>;
269 };
270 reg_vcc_psfp: tps544@a { /* u84 */
271 compatible = "ti,tps544b25";
272 reg = <0xa>;
273 };
274 reg_vccaux: tps544@d { /* u85 */
275 compatible = "ti,tps544b25";
276 reg = <0xd>;
277 };
278 reg_vccaux_pmc: tps544@e { /* u87 */
279 compatible = "ti,tps544b25";
280 reg = <0xe>;
281 };
282 reg_vcco_500: tps544@f { /* u88 */
283 compatible = "ti,tps544b25";
284 reg = <0xf>;
285 };
286 reg_vcco_501: tps544@10 { /* u89 */
287 compatible = "ti,tps544b25";
288 reg = <0x10>;
289 };
290 reg_vcco_502: tps544@11 { /* u90 */
291 compatible = "ti,tps544b25";
292 reg = <0x11>;
293 };
294 reg_vcco_503: tps544@12 { /* u91 */
295 compatible = "ti,tps544b25";
296 reg = <0x12>;
297 };
298 };
299 i2c@3 { /* MEM PMBUS - FIXME bug in schematics */
300 #address-cells = <1>;
301 #size-cells = <0>;
302 /* reg = <3>; */
303 };
304 i2c@4 { /* LP_I2C_SM */
305 #address-cells = <1>;
306 #size-cells = <0>;
307 reg = <4>;
308 /* connected to U20G */
309 };
310 /* 5-7 unused */
311 };
312};
313
314/* TODO sysctrl via J239 */
315/* TODO samtec J212G/H via J242 */
316/* TODO teensy via U30 PCA9543A bus 1 */
317&i2c1 { /* i2c1 MIO 36-37 */
318 status = "okay";
319 clock-frequency = <400000>;
320
321 /* Must be enabled via J242 */
322 eeprom_versal: eeprom@51 { /* x-prc-01-revA u116, x-prc-02-revA u12 */
323 compatible = "atmel,24c02";
324 reg = <0x51>;
325 };
326
Michal Simek6c547652019-06-28 13:52:09 +0200327 i2c-mux@74 { /* u47 */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200328 compatible = "nxp,pca9548";
329 #address-cells = <1>;
330 #size-cells = <0>;
331 reg = <0x74>;
332 /* FIXME reset connected to SYSCTRL_IIC_MUX1_RESET */
333 dc_i2c: i2c@0 { /* DC_I2C */
334 #address-cells = <1>;
335 #size-cells = <0>;
336 reg = <0>;
337 /* Use for storing information about SC board */
338 eeprom: eeprom@54 { /* u51 - m24128 16kB FIXME addr */
339 compatible = "atmel,24c08";
340 reg = <0x54>;
341 };
342 si570_ref_clk: clock-generator@5d { /* u26 */
343 #clock-cells = <0>;
344 compatible = "silabs,si570";
345 reg = <0x5d>; /* FIXME addr */
346 temperature-stability = <50>;
Michal Simekf86d2b52021-03-09 12:43:42 +0100347 factory-fout = <33333333>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200348 clock-frequency = <33333333>;
349 clock-output-names = "REF_CLK"; /* FIXME */
Michal Simekf86d2b52021-03-09 12:43:42 +0100350 silabs,skip-recall;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200351 };
352 /* Connection via Samtec U20D */
353 /* Use for storing information about X-PRC card */
354 x_prc_eeprom: eeprom@52 { /* x-prc-01-revA u120, x-prc-02-revA u16 */
355 compatible = "atmel,24c02";
356 reg = <0x52>;
357 };
358
359 /* Use for setting up certain features on X-PRC card */
360 x_prc_tca9534: gpio@22 { /* x-prc-01-revA u121, x-prc-02-revA u17 */
361 compatible = "nxp,pca9534";
362 reg = <0x22>;
363 gpio-controller; /* IRQ not connected */
364 #gpio-cells = <2>;
365 gpio-line-names = "sw4_1", "sw4_2", "sw4_3", "sw4_4",
366 "", "", "", "";
367 gtr_sel0 {
368 gpio-hog;
369 gpios = <0 0>;
370 input; /* FIXME add meaning */
371 line-name = "sw4_1";
372 };
373 gtr_sel1 {
374 gpio-hog;
375 gpios = <1 0>;
376 input; /* FIXME add meaning */
377 line-name = "sw4_2";
378 };
379 gtr_sel2 {
380 gpio-hog;
381 gpios = <2 0>;
382 input; /* FIXME add meaning */
383 line-name = "sw4_3";
384 };
385 gtr_sel3 {
386 gpio-hog;
387 gpios = <3 0>;
388 input; /* FIXME add meaning */
389 line-name = "sw4_4";
390 };
391 };
392 };
Michal Simekfadc4ce2019-04-12 12:19:22 +0200393 i2c@2 { /* C0_LP4 */
394 #address-cells = <1>;
395 #size-cells = <0>;
396 reg = <2>;
Michal Simek6c547652019-06-28 13:52:09 +0200397 si570_c0_lp4: clock-generator@55 { /* u10 */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200398 #clock-cells = <0>;
399 compatible = "silabs,si570";
Michal Simek6c547652019-06-28 13:52:09 +0200400 reg = <0x55>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200401 temperature-stability = <50>;
402 factory-fout = <30000000>;
403 clock-frequency = <30000000>;
404 clock-output-names = "C0_LP4_SI570_CLK";
405 };
406 };
407 i2c@3 { /* C1_LP4 */
408 #address-cells = <1>;
409 #size-cells = <0>;
410 reg = <3>;
411 si570_c1_lp4: clock-generator@5d { /* u10 */
412 #clock-cells = <0>;
413 compatible = "silabs,si570";
414 reg = <0x5d>; /* FIXME addr */
415 temperature-stability = <50>;
416 factory-fout = <30000000>;
417 clock-frequency = <30000000>;
418 clock-output-names = "C1_LP4_SI570_CLK";
419 };
420 };
421 i2c@4 { /* C2_LP4 */
422 #address-cells = <1>;
423 #size-cells = <0>;
424 reg = <4>;
Michal Simek6c547652019-06-28 13:52:09 +0200425 si570_c2_lp4: clock-generator@55 { /* u10 */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200426 #clock-cells = <0>;
427 compatible = "silabs,si570";
Michal Simek6c547652019-06-28 13:52:09 +0200428 reg = <0x55>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200429 temperature-stability = <50>;
430 factory-fout = <30000000>;
431 clock-frequency = <30000000>;
432 clock-output-names = "C2_LP4_SI570_CLK";
433 };
434 };
435 i2c@5 { /* C3_LP4 */
436 #address-cells = <1>;
437 #size-cells = <0>;
438 reg = <5>;
Michal Simek6c547652019-06-28 13:52:09 +0200439 si570_c3_lp4: clock-generator@55 { /* u15 */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200440 #clock-cells = <0>;
441 compatible = "silabs,si570";
Michal Simek6c547652019-06-28 13:52:09 +0200442 reg = <0x55>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200443 temperature-stability = <50>;
444 factory-fout = <30000000>;
445 clock-frequency = <30000000>;
446 clock-output-names = "C3_LP4_SI570_CLK";
447 };
448 };
449 i2c@6 { /* HSDP_SI570 */
450 #address-cells = <1>;
451 #size-cells = <0>;
452 reg = <6>;
453 si570_hsdp: clock-generator@5d { /* u19 */
454 #clock-cells = <0>;
455 compatible = "silabs,si570";
456 reg = <0x5d>; /* FIXME addr */
457 temperature-stability = <50>;
Michal Simek6c547652019-06-28 13:52:09 +0200458 factory-fout = <156250000>;
459 clock-frequency = <156250000>;
Michal Simekfadc4ce2019-04-12 12:19:22 +0200460 clock-output-names = "HSDP_SI570";
461 };
462 };
463 };
464};
465
466&usb0 {
467 status = "okay";
Michal Simekfadc4ce2019-04-12 12:19:22 +0200468};
469
470&dwc3_0 {
471 status = "okay";
472 dr_mode = "host";
473 /* dr_mode = "peripheral"; */
474 maximum-speed = "high-speed";
475};
476
477&usb1 {
478 status = "disabled"; /* not at mem board */
Michal Simekfadc4ce2019-04-12 12:19:22 +0200479};
480
481&dwc3_1 {
482 /delete-property/ phy-names ;
483 /delete-property/ phys ;
484 maximum-speed = "high-speed";
485 snps,dis_u2_susphy_quirk ;
486 snps,dis_u3_susphy_quirk ;
487 status = "disabled";
488};