blob: b626d1aacf58bd849de3199b162fee72f9fa9c45 [file] [log] [blame]
Michal Simek34f3f2f2023-09-27 11:53:35 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx ZynqMP vp-x-a2785-00 RevA System Controller
4 *
5 * (C) Copyright 2021 - 2022, Xilinx, Inc.
6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
7 *
8 * Michal Simek <michal.simek@amd.com>
9 */
10/dts-v1/;
11
12#include "zynqmp.dtsi"
13#include "zynqmp-clk-ccf.dtsi"
14#include <dt-bindings/input/input.h>
15#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
17#include <dt-bindings/phy/phy.h>
18
19/ {
20 model = "ZynqMP System Controller on vp-x-a2785-00 board RevA";
21 compatible = "xlnx,zynqmp-vp-x-a2785-00-revA",
22 "xlnx,zynqmp-vp-x-a2785-00", "xlnx,zynqmp";
23
24 aliases {
25 ethernet0 = &gem0;
26 i2c0 = &i2c0;
27 i2c1 = &i2c1;
28 mmc0 = &sdhci0;
29 serial0 = &uart0;
30 serial1 = &dcc;
31 spi0 = &qspi;
32 usb0 = &usb0;
33 usb1 = &usb1;
34 nvmem0 = &eeprom;
35 };
36
37 chosen {
38 bootargs = "earlycon";
39 stdout-path = "serial0:115200n8";
40 };
41
42 memory@0 {
43 device_type = "memory";
44 reg = <0 0 0 0x80000000>;
45 };
46
47 gpio-keys {
48 compatible = "gpio-keys";
49 autorepeat;
Michal Simek518d1662024-03-08 09:40:52 +010050 key-j383 {
Michal Simek34f3f2f2023-09-27 11:53:35 +020051 label = "j383";
52 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
53 linux,code = <BTN_MISC>;
54 wakeup-source;
55 autorepeat;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61 heartbeat-led { /* ds52 */
62 label = "heartbeat";
63 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
64 linux,default-trigger = "heartbeat";
65 };
66 };
67
Michal Simeke3157622024-01-08 10:24:45 +010068 si5332_0: si5332-0 { /* ps_ref_clk - u142 */
Michal Simek34f3f2f2023-09-27 11:53:35 +020069 compatible = "fixed-clock";
70 #clock-cells = <0>;
71 clock-frequency = <33333333>;
72 };
73
Michal Simeke3157622024-01-08 10:24:45 +010074 si5332_1: si5332-1 { /* clk0_sgmii - u142 */
Michal Simek34f3f2f2023-09-27 11:53:35 +020075 compatible = "fixed-clock";
76 #clock-cells = <0>;
77 clock-frequency = <33333333>; /* FIXME */
78 };
79
Michal Simeke3157622024-01-08 10:24:45 +010080 si5332_2: si5332-2 { /* clk1_usb - u142 */
Michal Simek34f3f2f2023-09-27 11:53:35 +020081 compatible = "fixed-clock";
82 #clock-cells = <0>;
83 clock-frequency = <27000000>;
84 };
85};
86
87&qspi { /* MIO 0-5 */
88 status = "okay";
89 flash@0 {
90 compatible = "m25p80", "jedec,spi-nor"; /* u285 - mt25qu512abb8e12 512Mib */
91 #address-cells = <1>;
92 #size-cells = <1>;
93 reg = <0>;
94 spi-tx-bus-width = <4>; /* maybe 4 here */
95 spi-rx-bus-width = <4>;
96 spi-max-frequency = <108000000>;
97 partition@0 { /* for testing purpose */
98 label = "qspi";
99 reg = <0 0x4000000>;
100 };
101 };
102};
103
104&sdhci1 { /* sd MIO 45-51 */
105 status = "okay";
106 no-1-8-v;
107 disable-wp;
108 xlnx,mio-bank = <1>;
109};
110
111&uart0 { /* uart0 MIO38-39 */
112 status = "okay";
113 bootph-all;
114};
115
116&gem0 {
117 status = "okay";
118 phy-handle = <&phy0>;
119 phy-mode = "sgmii"; /* DTG generates this properly 1512 */
120 is-internal-pcspma;
121 /* phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>; */
Michal Simek3181a872023-10-12 14:58:47 +0200122 mdio: mdio {
123 #address-cells = <1>;
124 #size-cells = <0>;
125 /* reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>; */
126 phy0: ethernet-phy@0 { /* u131 - M88e1512 */
127 reg = <0>;
128 };
Michal Simek34f3f2f2023-09-27 11:53:35 +0200129 };
130};
131
132&gpio {
133 status = "okay";
134 gpio-line-names = "QSPI_CLK", "QSPI_DQ1", "QSPI_DQ2", "QSPI_DQ3", "QSPI_DQ0", /* 0 - 4 */
135 "QSPI_CS_B", "", "", "SYSCTLR_GPIO", "SYSCTLR_LED", /* 5 - 9 */
136 "SYSCTLR_PB", "PMC_ZU4_TRIGGER", "", "", "", /* 10 - 14 */
137 "", "", "", "", "", /* 15 - 19 */
138 "", "", "", "", "", /* 20 - 24 */
139 "", "", "", "", "", /* 25 - 29 */
140 "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
141 "LP_I2C0_PMC_SDA", "LP_I2C1_SCL", "LP_I2C1_SDA", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
142 "", "", "ETH_RESET_B", "", "", /* 40 - 44 */
143 "SD1_CD", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
144 "SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
145 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
146 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "", /* 60 - 64 */
147 "", "", "", "", "", /* 65 - 69 */
148 "", "", "", "", "", /* 70 - 74 */
149 "", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
150 "", "", /* 78 - 79 */
151 "", "", "", "", "", /* 80 - 84 */
152 "", "", "", "", "", /* 85 - 89 */
153 "", "", "", "", "", /* 90 - 94 */
154 "", "", "", "", "", /* 95 - 99 */
155 "", "", "", "", "", /* 100 - 104 */
156 "", "", "", "", "", /* 105 - 109 */
157 "", "", "", "", "", /* 110 - 114 */
158 "", "", "", "", "", /* 115 - 119 */
159 "", "", "", "", "", /* 120 - 124 */
160 "", "", "", "", "", /* 125 - 129 */
161 "", "", "", "", "", /* 130 - 134 */
162 "", "", "", "", "", /* 135 - 139 */
163 "", "", "", "", "", /* 140 - 144 */
164 "", "", "", "", "", /* 145 - 149 */
165 "", "", "", "", "", /* 150 - 154 */
166 "", "", "", "", "", /* 155 - 159 */
167 "", "", "", "", "", /* 160 - 164 */
168 "", "", "", "", "", /* 165 - 169 */
169 "", "", "", ""; /* 170 - 173 */
170};
171
172&i2c0 { /* MIO 34-35 - can't stay here */
173 status = "okay";
174 clock-frequency = <400000>;
175 pinctrl-names = "default", "gpio";
176 pinctrl-0 = <&pinctrl_i2c0_default>;
177 pinctrl-1 = <&pinctrl_i2c0_gpio>;
178 scl-gpios = <&gpio 34 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
179 sda-gpios = <&gpio 35 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
180
181 tca6416_u233: gpio@20 { /* u233 */ /* FIXME - address maybe wrong */
182 compatible = "ti,tca6416";
183 reg = <0x20>;
184 gpio-controller; /* interrupt not connected */
185 #gpio-cells = <2>;
186 gpio-line-names = "MAX6643_OT_B", "MAX6643_FANFAIL_B", "", "", /* 0 - 3 */
187 "", "", "", "MAX6643_FULL_SPEED", /* 4 - 7 */
188 "", "", "", "VCCINT_FAULT_B", /* 10 - 13 */
189 "VCCINT_VRHOT_B", "", "PMBUS_ALERT", "PMBUS1_INA226_ALERT"; /* 14 - 17 */
190 };
191
192 i2c-mux@74 { /* u33 */
193 compatible = "nxp,pca9548";
194 #address-cells = <1>;
195 #size-cells = <0>;
196 reg = <0x74>;
197 /* reset-gpios = <&gpio SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
198 pmbus_i2c: i2c@0 {
199 #address-cells = <1>;
200 #size-cells = <0>;
201 reg = <0>;
202 /* On connector J325 */
203 reg_vccint: tps53681@60 { /* u266 - 0xc0 */
204 compatible = "ti,tps53681", "ti,tps53679";
205 reg = <0x60>;
206 };
207 reg_vcc1v1_lp4: tps544@d { /* u85 */
208 compatible = "ti,tps544b25";
209 reg = <0xd>;
210 };
211 reg_mgtyavcc: tps544@10 { /* u274 */
212 compatible = "ti,tps544b25";
213 reg = <0x10>;
214 };
215 reg_mgtyavtt: tps544@11 { /* u275 */
216 compatible = "ti,tps544b25";
217 reg = <0x11>;
218 };
219 reg_vccaux: tps544@12 { /* u276 */
220 compatible = "ti,tps544b25";
221 reg = <0x12>;
222 };
223 reg_vcc_cpm: tps544@14 { /* u272 */
224 compatible = "ti,tps544b25";
225 reg = <0x14>;
226 };
227 reg_util_3v3: tps544@1d { /* u278 */
228 compatible = "ti,tps544b25";
229 reg = <0x1d>;
230 };
231 };
232 pmbus1_ina226_i2c: i2c@1 {
233 #address-cells = <1>;
234 #size-cells = <0>;
235 reg = <1>;
236 /* FIXME check alerts coming to SC */
237 vcc_cpm: ina226@44 { /* u273 */
238 compatible = "ti,ina226";
239 reg = <0x44>;
240 shunt-resistor = <1000>;
241 };
242 };
243 i2c@2 { /* NC */ /* FIXME maybe remove */
244 #address-cells = <1>;
245 #size-cells = <0>;
246 reg = <2>;
247 };
248 pcie_smbus: i2c@3 {
249 #address-cells = <1>;
250 #size-cells = <0>;
251 reg = <3>;
252 };
253 pcie2_smbus: i2c@4 {
254 #address-cells = <1>;
255 #size-cells = <0>;
256 reg = <4>;
257 };
258 i2c@5 { /* NC */
259 #address-cells = <1>;
260 #size-cells = <0>;
261 reg = <5>;
262 };
263 user_si570: i2c@6 {
264 #address-cells = <1>;
265 #size-cells = <0>;
266 reg = <6>;
267 };
268 /* 7 unused */
269 };
270};
271
272&i2c1 { /* i2c1 MIO 36-37 */
273 status = "okay";
274 clock-frequency = <400000>;
275 pinctrl-names = "default", "gpio";
276 pinctrl-0 = <&pinctrl_i2c1_default>;
277 pinctrl-1 = <&pinctrl_i2c1_gpio>;
278 scl-gpios = <&gpio 36 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
279 sda-gpios = <&gpio 37 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
280
281 i2c-mux@74 { /* u35 */
282 compatible = "nxp,pca9548";
283 #address-cells = <1>;
284 #size-cells = <0>;
285 reg = <0x74>;
286 /* reset-gpios = <&gpio SYSCTLR_IIC_MUX1_RESET_B GPIO_ACTIVE_HIGH>; */
287 dc_i2c: i2c@0 {
288 #address-cells = <1>;
289 #size-cells = <0>;
290 reg = <0>;
291 /* Use for storing information about SC board */
292 eeprom: eeprom@54 { /* u34 - m24128 16kB */
293 compatible = "st,24c128", "atmel,24c128";
294 reg = <0x54>; /* & 0x5c */
295 };
296 si570_ref_clk: clock-generator@5d { /* u32 */
297 #clock-cells = <0>;
298 compatible = "silabs,si570";
299 reg = <0x5d>;
300 temperature-stability = <50>;
301 factory-fout = <33333333>;
302 clock-frequency = <33333333>;
303 clock-output-names = "ref_clk";
304 silabs,skip-recall;
305 };
306 };
307 i2c@1 { /* NC - FIXME */
308 #address-cells = <1>;
309 #size-cells = <0>;
310 reg = <1>;
311 };
312 i2c@2 { /* NC - FIXME */
313 #address-cells = <1>;
314 #size-cells = <0>;
315 reg = <2>;
316 };
317 i2c@3 { /* NC - FIXME */
318 #address-cells = <1>;
319 #size-cells = <0>;
320 reg = <3>;
321 };
322 lpddr4_si570_clk2_i2c: i2c@4 {
323 #address-cells = <1>;
324 #size-cells = <0>;
325 reg = <4>;
326 lpddr4_clk2: clock-generator@60 { /* u3 */
327 #clock-cells = <0>;
328 compatible = "silabs,si570";
329 reg = <0x60>;
330 temperature-stability = <50>;
331 factory-fout = <200000000>;
332 clock-frequency = <200000000>;
333 clock-output-names = "lpddr4_clk2";
334 };
335 };
336 lpddr4_si570_clk1_i2c: i2c@5 {
337 #address-cells = <1>;
338 #size-cells = <0>;
339 reg = <5>;
340 lpddr4_clk1: clock-generator@60 { /* u248 */
341 #clock-cells = <0>;
342 compatible = "silabs,si570";
343 reg = <0x60>;
344 temperature-stability = <50>;
345 factory-fout = <200000000>;
346 clock-frequency = <200000000>;
347 clock-output-names = "lpddr4_clk1";
348 };
349 };
350 /* 6-7 unused */
351 };
352};
353
354&usb0 { /* MIO52 - MIO63 */
355 status = "okay";
356 phy-names = "usb3-phy";
357 phys = <&psgtr 1 PHY_TYPE_USB3 0 1>;
358};
359
360&psgtr {
361 status = "okay";
362 /* sgmii, usb3 */
363 clocks = <&si5332_1>, <&si5332_2>;
364 clock-names = "ref0", "ref1";
365};
366
367&dwc3_0 {
368 status = "okay";
369 dr_mode = "peripheral";
370 snps,dis_u2_susphy_quirk;
371 snps,dis_u3_susphy_quirk;
372 maximum-speed = "super-speed";
373};
374
375&xilinx_ams {
376 status = "okay";
377};
378
379&ams_ps {
380 status = "okay";
381};
382
383&ams_pl {
384 status = "okay";
385};
386
387&pinctrl0 {
388 status = "okay";
389 pinctrl_i2c0_default: i2c0-default {
390 mux {
391 groups = "i2c0_8_grp";
392 function = "i2c0";
393 };
394
395 conf {
396 groups = "i2c0_8_grp";
397 bias-pull-up;
398 slew-rate = <SLEW_RATE_SLOW>;
399 power-source = <IO_STANDARD_LVCMOS18>;
400 };
401 };
402
Michal Simekcf3cd802023-12-19 17:16:50 +0100403 pinctrl_i2c0_gpio: i2c0-gpio-grp {
Michal Simek34f3f2f2023-09-27 11:53:35 +0200404 mux {
405 groups = "gpio0_34_grp", "gpio0_35_grp";
406 function = "gpio0";
407 };
408
409 conf {
410 groups = "gpio0_34_grp", "gpio0_35_grp";
411 slew-rate = <SLEW_RATE_SLOW>;
412 power-source = <IO_STANDARD_LVCMOS18>;
413 };
414 };
415
416 pinctrl_i2c1_default: i2c1-default {
417 mux {
418 groups = "i2c1_9_grp";
419 function = "i2c1";
420 };
421
422 conf {
423 groups = "i2c1_9_grp";
424 bias-pull-up;
425 slew-rate = <SLEW_RATE_SLOW>;
426 power-source = <IO_STANDARD_LVCMOS18>;
427 };
428 };
429
Michal Simekcf3cd802023-12-19 17:16:50 +0100430 pinctrl_i2c1_gpio: i2c1-gpio-grp {
Michal Simek34f3f2f2023-09-27 11:53:35 +0200431 mux {
432 groups = "gpio0_36_grp", "gpio0_37_grp";
433 function = "gpio0";
434 };
435
436 conf {
437 groups = "gpio0_36_grp", "gpio0_37_grp";
438 slew-rate = <SLEW_RATE_SLOW>;
439 power-source = <IO_STANDARD_LVCMOS18>;
440 };
441 };
442};