blob: d718fec76065933440dd90e722bccec32ee58f81 [file] [log] [blame]
Michal Simeka502a872021-05-10 16:02:15 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx ZynqMP SM-K26 rev1/B/A
4 *
Michal Simek3972ae62021-06-14 15:07:07 +02005 * (C) Copyright 2020 - 2021, Xilinx, Inc.
Michal Simeka502a872021-05-10 16:02:15 +02006 *
Michal Simek174d72842023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simeka502a872021-05-10 16:02:15 +02008 */
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/phy/phy.h>
Michal Simek0ac03fb2022-03-14 15:26:11 +010017#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
Michal Simeka502a872021-05-10 16:02:15 +020018
19/ {
20 model = "ZynqMP SM-K26 Rev1/B/A";
21 compatible = "xlnx,zynqmp-sm-k26-rev1", "xlnx,zynqmp-sm-k26-revB",
22 "xlnx,zynqmp-sm-k26-revA", "xlnx,zynqmp-sm-k26",
23 "xlnx,zynqmp";
24
25 aliases {
Michal Simeka502a872021-05-10 16:02:15 +020026 i2c0 = &i2c0;
27 i2c1 = &i2c1;
28 mmc0 = &sdhci0;
29 mmc1 = &sdhci1;
Michal Simek531abcb2021-06-03 11:46:50 +020030 nvmem0 = &eeprom;
31 nvmem1 = &eeprom_cc;
Michal Simeka502a872021-05-10 16:02:15 +020032 rtc0 = &rtc;
33 serial0 = &uart0;
34 serial1 = &uart1;
35 serial2 = &dcc;
36 spi0 = &qspi;
37 spi1 = &spi0;
38 spi2 = &spi1;
39 usb0 = &usb0;
40 usb1 = &usb1;
Michal Simeka502a872021-05-10 16:02:15 +020041 };
42
43 chosen {
44 bootargs = "earlycon";
45 stdout-path = "serial1:115200n8";
46 };
47
48 memory@0 {
49 device_type = "memory"; /* 4GB */
50 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
51 };
52
Sharath Kumar Dasari85a2d122023-06-05 13:59:51 +020053 reserved-memory {
54 #address-cells = <2>;
55 #size-cells = <2>;
56 ranges;
57
58 pmu_region: pmu@7ff00000 {
59 reg = <0x0 0x7ff00000 0x0 0x100000>;
60 no-map;
61 };
62 };
63
Michal Simeka502a872021-05-10 16:02:15 +020064 gpio-keys {
65 compatible = "gpio-keys";
66 autorepeat;
Michal Simekb1d3e7f2022-12-09 13:56:40 +010067 key-fwuen {
Michal Simeka502a872021-05-10 16:02:15 +020068 label = "fwuen";
69 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
Michal Simekd5b9b222022-05-11 11:52:53 +020070 linux,code = <BTN_MISC>;
71 wakeup-source;
72 autorepeat;
Michal Simeka502a872021-05-10 16:02:15 +020073 };
74 };
75
76 leds {
77 compatible = "gpio-leds";
Michal Simek4cec0572021-08-06 11:12:56 +020078 ds35-led {
Michal Simeka502a872021-05-10 16:02:15 +020079 label = "heartbeat";
80 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
81 linux,default-trigger = "heartbeat";
82 };
83
Michal Simek4cec0572021-08-06 11:12:56 +020084 ds36-led {
Michal Simeka502a872021-05-10 16:02:15 +020085 label = "vbus_det";
86 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
87 default-state = "on";
88 };
89 };
90
91 ams {
92 compatible = "iio-hwmon";
93 io-channels = <&xilinx_ams 0>, <&xilinx_ams 1>, <&xilinx_ams 2>,
94 <&xilinx_ams 3>, <&xilinx_ams 4>, <&xilinx_ams 5>,
95 <&xilinx_ams 6>, <&xilinx_ams 7>, <&xilinx_ams 8>,
96 <&xilinx_ams 9>, <&xilinx_ams 10>, <&xilinx_ams 11>,
97 <&xilinx_ams 12>, <&xilinx_ams 13>, <&xilinx_ams 14>,
98 <&xilinx_ams 15>, <&xilinx_ams 16>, <&xilinx_ams 17>,
99 <&xilinx_ams 18>, <&xilinx_ams 19>, <&xilinx_ams 20>,
100 <&xilinx_ams 21>, <&xilinx_ams 22>, <&xilinx_ams 23>,
101 <&xilinx_ams 24>, <&xilinx_ams 25>, <&xilinx_ams 26>,
102 <&xilinx_ams 27>, <&xilinx_ams 28>, <&xilinx_ams 29>;
103 };
Vishal Patel07f8e782022-05-11 11:52:49 +0200104
105 pwm-fan {
106 compatible = "pwm-fan";
107 status = "okay";
108 pwms = <&ttc0 2 40000 0>;
109 };
Michal Simeka502a872021-05-10 16:02:15 +0200110};
111
Michal Simeke7b39002022-05-11 11:52:46 +0200112&modepin_gpio {
113 label = "modepin";
114};
115
Vishal Patel07f8e782022-05-11 11:52:49 +0200116&ttc0 {
117 status = "okay";
118 #pwm-cells = <3>;
119};
120
Michal Simeka502a872021-05-10 16:02:15 +0200121&uart1 { /* MIO36/MIO37 */
122 status = "okay";
123};
124
Michal Simek0ac03fb2022-03-14 15:26:11 +0100125&pinctrl0 {
126 status = "okay";
127 pinctrl_sdhci0_default: sdhci0-default {
128 conf {
129 groups = "sdio0_0_grp";
130 slew-rate = <SLEW_RATE_SLOW>;
131 power-source = <IO_STANDARD_LVCMOS18>;
132 bias-disable;
133 };
134
135 mux {
136 groups = "sdio0_0_grp";
137 function = "sdio0";
138 };
139 };
140};
141
Michal Simeka502a872021-05-10 16:02:15 +0200142&qspi { /* MIO 0-5 - U143 */
143 status = "okay";
Michal Simek156cb2a2022-06-29 11:13:14 +0200144 spi_flash: flash@0 { /* MT25QU512A */
Michal Simeka502a872021-05-10 16:02:15 +0200145 compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */
146 #address-cells = <1>;
147 #size-cells = <1>;
148 reg = <0>;
Amit Kumar Mahapatra6e38e2e2022-05-10 16:33:01 +0200149 spi-tx-bus-width = <4>;
Michal Simeka502a872021-05-10 16:02:15 +0200150 spi-rx-bus-width = <4>;
151 spi-max-frequency = <40000000>; /* 40MHz */
Michal Simek156cb2a2022-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 Mahapatrac8630162022-08-23 10:18:03 +0200228 reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
Michal Simek156cb2a2022-06-29 11:13:14 +0200229 read-only;
230 lock;
231 };
Amit Kumar Mahapatrac8630162022-08-23 10:18:03 +0200232 partition@2280000 {
233 label = "Secure OS Storage";
234 reg = <0x2280000 0x20000>; /* 128KB */
235 };
236 partition@22A0000 {
Michal Simek156cb2a2022-06-29 11:13:14 +0200237 label = "User";
Michal Simekb250bd62023-04-12 16:30:27 +0200238 reg = <0x22A0000 0x1d60000>; /* 29.375 MB */
Michal Simek156cb2a2022-06-29 11:13:14 +0200239 };
Michal Simeka502a872021-05-10 16:02:15 +0200240 };
241 };
242};
243
Michal Simek1759a312021-08-05 08:28:46 +0200244&sdhci0 { /* MIO13-23 - 16GB emmc MTFC16GAPALBH-IT - U133A */
Michal Simeka502a872021-05-10 16:02:15 +0200245 status = "okay";
Michal Simek0ac03fb2022-03-14 15:26:11 +0100246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_sdhci0_default>;
Michal Simeka502a872021-05-10 16:02:15 +0200248 non-removable;
249 disable-wp;
250 bus-width = <8>;
251 xlnx,mio-bank = <0>;
Michal Simeka3efa532022-02-23 16:17:39 +0100252 assigned-clock-rates = <187498123>;
Michal Simeka502a872021-05-10 16:02:15 +0200253};
254
255&spi1 { /* MIO6, 9-11 */
256 status = "okay";
257 label = "TPM";
258 num-cs = <1>;
259 tpm@0 { /* slm9670 - U144 */
260 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
261 reg = <0>;
262 spi-max-frequency = <18500000>;
263 };
264};
265
266&i2c1 {
267 status = "okay";
Simon Glass8c103c32023-02-13 08:56:33 -0700268 bootph-all;
Michal Simeka502a872021-05-10 16:02:15 +0200269 clock-frequency = <400000>;
Manikanta Guntupalli28dc3562023-07-10 14:37:28 +0200270 scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
271 sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simeka502a872021-05-10 16:02:15 +0200272
273 eeprom: eeprom@50 { /* u46 - also at address 0x58 */
Simon Glass8c103c32023-02-13 08:56:33 -0700274 bootph-all;
Michal Simeka502a872021-05-10 16:02:15 +0200275 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
276 reg = <0x50>;
277 /* WP pin EE_WP_EN connected to slg7x644092@68 */
278 };
279
280 eeprom_cc: eeprom@51 { /* required by spec - also at address 0x59 */
Simon Glass8c103c32023-02-13 08:56:33 -0700281 bootph-all;
Michal Simeka502a872021-05-10 16:02:15 +0200282 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
283 reg = <0x51>;
284 };
285
286 /* da9062@30 - u170 - also at address 0x31 */
287 /* da9131@33 - u167 */
288 da9131: pmic@33 {
289 compatible = "dlg,da9131";
290 reg = <0x33>;
291 regulators {
292 da9131_buck1: buck1 {
293 regulator-name = "da9131_buck1";
294 regulator-boot-on;
295 regulator-always-on;
296 };
297 da9131_buck2: buck2 {
298 regulator-name = "da9131_buck2";
299 regulator-boot-on;
300 regulator-always-on;
301 };
302 };
303 };
304
305 /* da9130@32 - u166 */
306 da9130: pmic@32 {
307 compatible = "dlg,da9130";
308 reg = <0x32>;
309 regulators {
310 da9130_buck1: buck1 {
311 regulator-name = "da9130_buck1";
312 regulator-boot-on;
313 regulator-always-on;
314 };
315 };
316 };
317
318 /* slg7x644091@70 - u168 NOT accessible due to address conflict with stdp4320 */
319 /*
320 * stdp4320 - u27 FW has below two issues to be fixed in next board revision.
321 * Device acknowledging to addresses 0x5C, 0x5D, 0x70, 0x72, 0x76.
322 * Address conflict with slg7x644091@70 making both the devices NOT accessible.
323 * With the FW fix, stdp4320 should respond to address 0x73 only.
324 */
325 /* slg7x644092@68 - u169 */
326 /* Also connected via JA1C as C23/C24 */
327};
328
329&gpio {
330 status = "okay";
331 gpio-line-names = "QSPI_CLK", "QSPI_DQ1", "QSPI_DQ2", "QSPI_DQ3", "QSPI_DQ0", /* 0 - 4 */
332 "QSPI_CS_B", "SPI_CLK", "LED1", "LED2", "SPI_CS_B", /* 5 - 9 */
333 "SPI_MISO", "SPI_MOSI", "FWUEN", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
334 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
335 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST", "I2C1_SCL", /* 20 - 24 */
336 "I2C1_SDA", "", "", "", "", /* 25 - 29 */
337 "", "", "", "", "", /* 30 - 34 */
338 "", "", "", "", "", /* 35 - 39 */
339 "", "", "", "", "", /* 40 - 44 */
340 "", "", "", "", "", /* 45 - 49 */
341 "", "", "", "", "", /* 50 - 54 */
342 "", "", "", "", "", /* 55 - 59 */
343 "", "", "", "", "", /* 60 - 64 */
344 "", "", "", "", "", /* 65 - 69 */
345 "", "", "", "", "", /* 70 - 74 */
346 "", "", "", /* 75 - 77, MIO end and EMIO start */
347 "", "", /* 78 - 79 */
348 "", "", "", "", "", /* 80 - 84 */
349 "", "", "", "", "", /* 85 - 89 */
350 "", "", "", "", "", /* 90 - 94 */
351 "", "", "", "", "", /* 95 - 99 */
352 "", "", "", "", "", /* 100 - 104 */
353 "", "", "", "", "", /* 105 - 109 */
354 "", "", "", "", "", /* 110 - 114 */
355 "", "", "", "", "", /* 115 - 119 */
356 "", "", "", "", "", /* 120 - 124 */
357 "", "", "", "", "", /* 125 - 129 */
358 "", "", "", "", "", /* 130 - 134 */
359 "", "", "", "", "", /* 135 - 139 */
360 "", "", "", "", "", /* 140 - 144 */
361 "", "", "", "", "", /* 145 - 149 */
362 "", "", "", "", "", /* 150 - 154 */
363 "", "", "", "", "", /* 155 - 159 */
364 "", "", "", "", "", /* 160 - 164 */
365 "", "", "", "", "", /* 165 - 169 */
Michal Simek369d04d2023-07-10 14:37:31 +0200366 "", "", "", ""; /* 170 - 173 */
Michal Simeka502a872021-05-10 16:02:15 +0200367};
368
369&xilinx_ams {
370 status = "okay";
371};
372
373&ams_ps {
374 status = "okay";
375};
376
377&ams_pl {
378 status = "okay";
379};
Michal Simek8b82a3a2022-02-23 16:17:41 +0100380
381&zynqmp_dpsub {
382 status = "okay";
383};
Michal Simekdda356d2022-05-11 11:52:50 +0200384
385&rtc {
386 status = "okay";
387};
388
389&lpd_dma_chan1 {
390 status = "okay";
391};
392
393&lpd_dma_chan2 {
394 status = "okay";
395};
396
397&lpd_dma_chan3 {
398 status = "okay";
399};
400
401&lpd_dma_chan4 {
402 status = "okay";
403};
404
405&lpd_dma_chan5 {
406 status = "okay";
407};
408
409&lpd_dma_chan6 {
410 status = "okay";
411};
412
413&lpd_dma_chan7 {
414 status = "okay";
415};
416
417&lpd_dma_chan8 {
418 status = "okay";
419};
420
421&fpd_dma_chan1 {
422 status = "okay";
423};
424
425&fpd_dma_chan2 {
426 status = "okay";
427};
428
429&fpd_dma_chan3 {
430 status = "okay";
431};
432
433&fpd_dma_chan4 {
434 status = "okay";
435};
436
437&fpd_dma_chan5 {
438 status = "okay";
439};
440
441&fpd_dma_chan6 {
442 status = "okay";
443};
444
445&fpd_dma_chan7 {
446 status = "okay";
447};
448
449&fpd_dma_chan8 {
450 status = "okay";
451};
452
453&gpu {
454 status = "okay";
455};
456
457&lpd_watchdog {
458 status = "okay";
459};
460
461&watchdog0 {
462 status = "okay";
463};
464
465&cpu_opp_table {
466 opp00 {
467 opp-hz = /bits/ 64 <1333333333>;
468 };
469 opp01 {
470 opp-hz = /bits/ 64 <666666666>;
471 };
472 opp02 {
473 opp-hz = /bits/ 64 <444444444>;
474 };
475 opp03 {
476 opp-hz = /bits/ 64 <333333333>;
477 };
478};