blob: 8056f6b176edbd3f1f7506ac8e69206e9bc6c63e [file] [log] [blame]
Michal Simek4bc77342021-05-10 16:02:15 +02001// SPDX-License-Identifier: GPL-2.0
2/*
Michal Simek75718312023-08-25 10:10:07 +02003 * dts file for Xilinx ZynqMP SM-K26 rev2/1/B/A
Michal Simek4bc77342021-05-10 16:02:15 +02004 *
Michal Simek40d83492021-06-14 15:07:07 +02005 * (C) Copyright 2020 - 2021, Xilinx, Inc.
Michal Simek75718312023-08-25 10:10:07 +02006 * (C) Copyright 2023, Advanced Micro Devices, Inc.
Michal Simek4bc77342021-05-10 16:02:15 +02007 *
Michal Simeka8c94362023-07-10 14:35:49 +02008 * Michal Simek <michal.simek@amd.com>
Michal Simek4bc77342021-05-10 16:02:15 +02009 */
10
11/dts-v1/;
12
13#include "zynqmp.dtsi"
14#include "zynqmp-clk-ccf.dtsi"
15#include <dt-bindings/input/input.h>
16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/phy/phy.h>
Michal Simekb084fb92022-03-14 15:26:11 +010018#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simek4bc77342021-05-10 16:02:15 +020019
20/ {
Michal Simek75718312023-08-25 10:10:07 +020021 model = "ZynqMP SM-K26 Rev2/1/B/A";
22 compatible = "xlnx,zynqmp-sm-k26-rev2",
23 "xlnx,zynqmp-sm-k26-rev1", "xlnx,zynqmp-sm-k26-revB",
Michal Simek4bc77342021-05-10 16:02:15 +020024 "xlnx,zynqmp-sm-k26-revA", "xlnx,zynqmp-sm-k26",
25 "xlnx,zynqmp";
26
27 aliases {
Michal Simek4bc77342021-05-10 16:02:15 +020028 i2c0 = &i2c0;
29 i2c1 = &i2c1;
30 mmc0 = &sdhci0;
31 mmc1 = &sdhci1;
Michal Simek53b145d2021-06-03 11:46:50 +020032 nvmem0 = &eeprom;
33 nvmem1 = &eeprom_cc;
Michal Simek4bc77342021-05-10 16:02:15 +020034 rtc0 = &rtc;
35 serial0 = &uart0;
36 serial1 = &uart1;
37 serial2 = &dcc;
38 spi0 = &qspi;
39 spi1 = &spi0;
40 spi2 = &spi1;
41 usb0 = &usb0;
42 usb1 = &usb1;
Michal Simek4bc77342021-05-10 16:02:15 +020043 };
44
45 chosen {
46 bootargs = "earlycon";
47 stdout-path = "serial1:115200n8";
48 };
49
50 memory@0 {
51 device_type = "memory"; /* 4GB */
52 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
53 };
54
Sharath Kumar Dasaribe6d9d92023-06-05 13:59:51 +020055 reserved-memory {
56 #address-cells = <2>;
57 #size-cells = <2>;
58 ranges;
59
60 pmu_region: pmu@7ff00000 {
61 reg = <0x0 0x7ff00000 0x0 0x100000>;
62 no-map;
63 };
64 };
65
Michal Simek4bc77342021-05-10 16:02:15 +020066 gpio-keys {
67 compatible = "gpio-keys";
68 autorepeat;
Michal Simek192d4ae2022-12-09 13:56:40 +010069 key-fwuen {
Michal Simek4bc77342021-05-10 16:02:15 +020070 label = "fwuen";
71 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
Michal Simek2bad29d2022-05-11 11:52:53 +020072 linux,code = <BTN_MISC>;
73 wakeup-source;
74 autorepeat;
Michal Simek4bc77342021-05-10 16:02:15 +020075 };
76 };
77
78 leds {
79 compatible = "gpio-leds";
Michal Simek87808fb2021-08-06 11:12:56 +020080 ds35-led {
Michal Simek4bc77342021-05-10 16:02:15 +020081 label = "heartbeat";
82 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
83 linux,default-trigger = "heartbeat";
84 };
85
Michal Simek87808fb2021-08-06 11:12:56 +020086 ds36-led {
Michal Simek4bc77342021-05-10 16:02:15 +020087 label = "vbus_det";
88 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
89 default-state = "on";
90 };
91 };
92
93 ams {
94 compatible = "iio-hwmon";
95 io-channels = <&xilinx_ams 0>, <&xilinx_ams 1>, <&xilinx_ams 2>,
96 <&xilinx_ams 3>, <&xilinx_ams 4>, <&xilinx_ams 5>,
97 <&xilinx_ams 6>, <&xilinx_ams 7>, <&xilinx_ams 8>,
98 <&xilinx_ams 9>, <&xilinx_ams 10>, <&xilinx_ams 11>,
99 <&xilinx_ams 12>, <&xilinx_ams 13>, <&xilinx_ams 14>,
100 <&xilinx_ams 15>, <&xilinx_ams 16>, <&xilinx_ams 17>,
101 <&xilinx_ams 18>, <&xilinx_ams 19>, <&xilinx_ams 20>,
102 <&xilinx_ams 21>, <&xilinx_ams 22>, <&xilinx_ams 23>,
103 <&xilinx_ams 24>, <&xilinx_ams 25>, <&xilinx_ams 26>,
104 <&xilinx_ams 27>, <&xilinx_ams 28>, <&xilinx_ams 29>;
105 };
Vishal Pateld5110092022-05-11 11:52:49 +0200106
107 pwm-fan {
108 compatible = "pwm-fan";
109 status = "okay";
Vishal Patel5f2c1582024-07-29 10:18:18 +0200110 pwms = <&ttc0 2 40000 1>;
Vishal Pateld5110092022-05-11 11:52:49 +0200111 };
Michal Simek4bc77342021-05-10 16:02:15 +0200112};
113
Michal Simek233eb2a2022-05-11 11:52:46 +0200114&modepin_gpio {
115 label = "modepin";
116};
117
Vishal Pateld5110092022-05-11 11:52:49 +0200118&ttc0 {
119 status = "okay";
120 #pwm-cells = <3>;
121};
122
Michal Simek4bc77342021-05-10 16:02:15 +0200123&uart1 { /* MIO36/MIO37 */
124 status = "okay";
125};
126
Michal Simekb084fb92022-03-14 15:26:11 +0100127&pinctrl0 {
128 status = "okay";
129 pinctrl_sdhci0_default: sdhci0-default {
130 conf {
131 groups = "sdio0_0_grp";
132 slew-rate = <SLEW_RATE_SLOW>;
133 power-source = <IO_STANDARD_LVCMOS18>;
134 bias-disable;
135 };
136
137 mux {
138 groups = "sdio0_0_grp";
139 function = "sdio0";
140 };
141 };
142};
143
Michal Simek4bc77342021-05-10 16:02:15 +0200144&qspi { /* MIO 0-5 - U143 */
145 status = "okay";
Michal Simek3f5228a2022-06-29 11:13:14 +0200146 spi_flash: flash@0 { /* MT25QU512A */
Michal Simek3d9c0522023-12-19 17:16:49 +0100147 compatible = "jedec,spi-nor"; /* 64MB */
Michal Simek4bc77342021-05-10 16:02:15 +0200148 reg = <0>;
Amit Kumar Mahapatraa02408b2022-05-10 16:33:01 +0200149 spi-tx-bus-width = <4>;
Michal Simek4bc77342021-05-10 16:02:15 +0200150 spi-rx-bus-width = <4>;
151 spi-max-frequency = <40000000>; /* 40MHz */
Michal Simek3f5228a2022-06-29 11:13:14 +0200152
153 partitions {
154 compatible = "fixed-partitions";
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 partition@0 {
159 label = "Image Selector";
160 reg = <0x0 0x80000>; /* 512KB */
161 read-only;
162 lock;
163 };
164 partition@80000 {
165 label = "Image Selector Golden";
166 reg = <0x80000 0x80000>; /* 512KB */
167 read-only;
168 lock;
169 };
170 partition@100000 {
171 label = "Persistent Register";
172 reg = <0x100000 0x20000>; /* 128KB */
173 };
174 partition@120000 {
175 label = "Persistent Register Backup";
176 reg = <0x120000 0x20000>; /* 128KB */
177 };
178 partition@140000 {
179 label = "Open_1";
180 reg = <0x140000 0xC0000>; /* 768KB */
181 };
182 partition@200000 {
183 label = "Image A (FSBL, PMU, ATF, U-Boot)";
184 reg = <0x200000 0xD00000>; /* 13MB */
185 };
186 partition@f00000 {
187 label = "ImgSel Image A Catch";
188 reg = <0xF00000 0x80000>; /* 512KB */
189 read-only;
190 lock;
191 };
192 partition@f80000 {
193 label = "Image B (FSBL, PMU, ATF, U-Boot)";
194 reg = <0xF80000 0xD00000>; /* 13MB */
195 };
196 partition@1c80000 {
197 label = "ImgSel Image B Catch";
198 reg = <0x1C80000 0x80000>; /* 512KB */
199 read-only;
200 lock;
201 };
202 partition@1d00000 {
203 label = "Open_2";
204 reg = <0x1D00000 0x100000>; /* 1MB */
205 };
206 partition@1e00000 {
207 label = "Recovery Image";
208 reg = <0x1E00000 0x200000>; /* 2MB */
209 read-only;
210 lock;
211 };
212 partition@2000000 {
213 label = "Recovery Image Backup";
214 reg = <0x2000000 0x200000>; /* 2MB */
215 read-only;
216 lock;
217 };
218 partition@2200000 {
219 label = "U-Boot storage variables";
220 reg = <0x2200000 0x20000>; /* 128KB */
221 };
222 partition@2220000 {
223 label = "U-Boot storage variables backup";
224 reg = <0x2220000 0x20000>; /* 128KB */
225 };
226 partition@2240000 {
227 label = "SHA256";
Amit Kumar Mahapatra8ddb7fa2022-08-23 10:18:03 +0200228 reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
Michal Simek3f5228a2022-06-29 11:13:14 +0200229 read-only;
230 lock;
231 };
Amit Kumar Mahapatra8ddb7fa2022-08-23 10:18:03 +0200232 partition@2280000 {
233 label = "Secure OS Storage";
234 reg = <0x2280000 0x20000>; /* 128KB */
235 };
Michal Simekc04852e2023-09-22 12:35:33 +0200236 partition@22a0000 {
Michal Simek3f5228a2022-06-29 11:13:14 +0200237 label = "User";
Michal Simekc04852e2023-09-22 12:35:33 +0200238 reg = <0x22a0000 0x1d60000>; /* 29.375 MB */
Michal Simek3f5228a2022-06-29 11:13:14 +0200239 };
Michal Simek4bc77342021-05-10 16:02:15 +0200240 };
241 };
242};
243
Michal Simekf508d382021-08-05 08:28:46 +0200244&sdhci0 { /* MIO13-23 - 16GB emmc MTFC16GAPALBH-IT - U133A */
Michal Simek4bc77342021-05-10 16:02:15 +0200245 status = "okay";
Michal Simekb084fb92022-03-14 15:26:11 +0100246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_sdhci0_default>;
Michal Simek4bc77342021-05-10 16:02:15 +0200248 non-removable;
249 disable-wp;
Paul Alvina1398f02024-09-25 09:03:13 +0200250 no-sd;
251 no-sdio;
252 cap-mmc-hw-reset;
Michal Simek4bc77342021-05-10 16:02:15 +0200253 bus-width = <8>;
254 xlnx,mio-bank = <0>;
Michal Simekbd8ca912022-02-23 16:17:39 +0100255 assigned-clock-rates = <187498123>;
Michal Simek4bc77342021-05-10 16:02:15 +0200256};
257
258&spi1 { /* MIO6, 9-11 */
259 status = "okay";
260 label = "TPM";
261 num-cs = <1>;
262 tpm@0 { /* slm9670 - U144 */
263 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
264 reg = <0>;
265 spi-max-frequency = <18500000>;
266 };
267};
268
269&i2c1 {
270 status = "okay";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700271 bootph-all;
Michal Simek4bc77342021-05-10 16:02:15 +0200272 clock-frequency = <400000>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +0200273 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
274 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simek4bc77342021-05-10 16:02:15 +0200275
276 eeprom: eeprom@50 { /* u46 - also at address 0x58 */
Simon Glassd3a98cb2023-02-13 08:56:33 -0700277 bootph-all;
Michal Simek4bc77342021-05-10 16:02:15 +0200278 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
279 reg = <0x50>;
280 /* WP pin EE_WP_EN connected to slg7x644092@68 */
281 };
282
283 eeprom_cc: eeprom@51 { /* required by spec - also at address 0x59 */
Simon Glassd3a98cb2023-02-13 08:56:33 -0700284 bootph-all;
Michal Simek4bc77342021-05-10 16:02:15 +0200285 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
286 reg = <0x51>;
287 };
288
289 /* da9062@30 - u170 - also at address 0x31 */
290 /* da9131@33 - u167 */
291 da9131: pmic@33 {
292 compatible = "dlg,da9131";
293 reg = <0x33>;
294 regulators {
295 da9131_buck1: buck1 {
296 regulator-name = "da9131_buck1";
297 regulator-boot-on;
298 regulator-always-on;
299 };
300 da9131_buck2: buck2 {
301 regulator-name = "da9131_buck2";
302 regulator-boot-on;
303 regulator-always-on;
304 };
305 };
306 };
307
308 /* da9130@32 - u166 */
309 da9130: pmic@32 {
310 compatible = "dlg,da9130";
311 reg = <0x32>;
312 regulators {
313 da9130_buck1: buck1 {
314 regulator-name = "da9130_buck1";
315 regulator-boot-on;
316 regulator-always-on;
317 };
318 };
319 };
320
321 /* slg7x644091@70 - u168 NOT accessible due to address conflict with stdp4320 */
322 /*
323 * stdp4320 - u27 FW has below two issues to be fixed in next board revision.
324 * Device acknowledging to addresses 0x5C, 0x5D, 0x70, 0x72, 0x76.
325 * Address conflict with slg7x644091@70 making both the devices NOT accessible.
326 * With the FW fix, stdp4320 should respond to address 0x73 only.
327 */
328 /* slg7x644092@68 - u169 */
329 /* Also connected via JA1C as C23/C24 */
330};
331
332&gpio {
333 status = "okay";
334 gpio-line-names = "QSPI_CLK", "QSPI_DQ1", "QSPI_DQ2", "QSPI_DQ3", "QSPI_DQ0", /* 0 - 4 */
335 "QSPI_CS_B", "SPI_CLK", "LED1", "LED2", "SPI_CS_B", /* 5 - 9 */
336 "SPI_MISO", "SPI_MOSI", "FWUEN", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
337 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
338 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST", "I2C1_SCL", /* 20 - 24 */
339 "I2C1_SDA", "", "", "", "", /* 25 - 29 */
340 "", "", "", "", "", /* 30 - 34 */
341 "", "", "", "", "", /* 35 - 39 */
342 "", "", "", "", "", /* 40 - 44 */
343 "", "", "", "", "", /* 45 - 49 */
344 "", "", "", "", "", /* 50 - 54 */
345 "", "", "", "", "", /* 55 - 59 */
346 "", "", "", "", "", /* 60 - 64 */
347 "", "", "", "", "", /* 65 - 69 */
348 "", "", "", "", "", /* 70 - 74 */
349 "", "", "", /* 75 - 77, MIO end and EMIO start */
350 "", "", /* 78 - 79 */
351 "", "", "", "", "", /* 80 - 84 */
352 "", "", "", "", "", /* 85 - 89 */
353 "", "", "", "", "", /* 90 - 94 */
354 "", "", "", "", "", /* 95 - 99 */
355 "", "", "", "", "", /* 100 - 104 */
356 "", "", "", "", "", /* 105 - 109 */
357 "", "", "", "", "", /* 110 - 114 */
358 "", "", "", "", "", /* 115 - 119 */
359 "", "", "", "", "", /* 120 - 124 */
360 "", "", "", "", "", /* 125 - 129 */
361 "", "", "", "", "", /* 130 - 134 */
362 "", "", "", "", "", /* 135 - 139 */
363 "", "", "", "", "", /* 140 - 144 */
364 "", "", "", "", "", /* 145 - 149 */
365 "", "", "", "", "", /* 150 - 154 */
366 "", "", "", "", "", /* 155 - 159 */
367 "", "", "", "", "", /* 160 - 164 */
368 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200369 "", "", "", ""; /* 170 - 173 */
Michal Simek4bc77342021-05-10 16:02:15 +0200370};
371
372&xilinx_ams {
373 status = "okay";
374};
375
376&ams_ps {
377 status = "okay";
378};
379
380&ams_pl {
381 status = "okay";
382};
Michal Simekf499a812022-02-23 16:17:41 +0100383
384&zynqmp_dpsub {
385 status = "okay";
386};
Michal Simek62b6e232022-05-11 11:52:50 +0200387
388&rtc {
389 status = "okay";
390};
391
392&lpd_dma_chan1 {
393 status = "okay";
394};
395
396&lpd_dma_chan2 {
397 status = "okay";
398};
399
400&lpd_dma_chan3 {
401 status = "okay";
402};
403
404&lpd_dma_chan4 {
405 status = "okay";
406};
407
408&lpd_dma_chan5 {
409 status = "okay";
410};
411
412&lpd_dma_chan6 {
413 status = "okay";
414};
415
416&lpd_dma_chan7 {
417 status = "okay";
418};
419
420&lpd_dma_chan8 {
421 status = "okay";
422};
423
424&fpd_dma_chan1 {
425 status = "okay";
426};
427
428&fpd_dma_chan2 {
429 status = "okay";
430};
431
432&fpd_dma_chan3 {
433 status = "okay";
434};
435
436&fpd_dma_chan4 {
437 status = "okay";
438};
439
440&fpd_dma_chan5 {
441 status = "okay";
442};
443
444&fpd_dma_chan6 {
445 status = "okay";
446};
447
448&fpd_dma_chan7 {
449 status = "okay";
450};
451
452&fpd_dma_chan8 {
453 status = "okay";
454};
455
456&gpu {
457 status = "okay";
458};
459
460&lpd_watchdog {
461 status = "okay";
462};
463
464&watchdog0 {
465 status = "okay";
466};
467
468&cpu_opp_table {
469 opp00 {
470 opp-hz = /bits/ 64 <1333333333>;
471 };
472 opp01 {
473 opp-hz = /bits/ 64 <666666666>;
474 };
475 opp02 {
476 opp-hz = /bits/ 64 <444444444>;
477 };
478 opp03 {
479 opp-hz = /bits/ 64 <333333333>;
480 };
481};