blob: e9baf4cb4148ef4e29cd2fcc69b9b9dbf46d40c9 [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 *
7 * Michal Simek <michal.simek@xilinx.com>
8 */
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>
17
18/ {
19 model = "ZynqMP SM-K26 Rev1/B/A";
20 compatible = "xlnx,zynqmp-sm-k26-rev1", "xlnx,zynqmp-sm-k26-revB",
21 "xlnx,zynqmp-sm-k26-revA", "xlnx,zynqmp-sm-k26",
22 "xlnx,zynqmp";
23
24 aliases {
Michal Simeka502a872021-05-10 16:02:15 +020025 i2c0 = &i2c0;
26 i2c1 = &i2c1;
27 mmc0 = &sdhci0;
28 mmc1 = &sdhci1;
Michal Simek531abcb2021-06-03 11:46:50 +020029 nvmem0 = &eeprom;
30 nvmem1 = &eeprom_cc;
Michal Simeka502a872021-05-10 16:02:15 +020031 rtc0 = &rtc;
32 serial0 = &uart0;
33 serial1 = &uart1;
34 serial2 = &dcc;
35 spi0 = &qspi;
36 spi1 = &spi0;
37 spi2 = &spi1;
38 usb0 = &usb0;
39 usb1 = &usb1;
Michal Simeka502a872021-05-10 16:02:15 +020040 };
41
42 chosen {
43 bootargs = "earlycon";
44 stdout-path = "serial1:115200n8";
45 };
46
47 memory@0 {
48 device_type = "memory"; /* 4GB */
49 reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
50 };
51
52 gpio-keys {
53 compatible = "gpio-keys";
54 autorepeat;
55 fwuen {
56 label = "fwuen";
57 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
58 };
59 };
60
61 leds {
62 compatible = "gpio-leds";
Michal Simek4cec0572021-08-06 11:12:56 +020063 ds35-led {
Michal Simeka502a872021-05-10 16:02:15 +020064 label = "heartbeat";
65 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
66 linux,default-trigger = "heartbeat";
67 };
68
Michal Simek4cec0572021-08-06 11:12:56 +020069 ds36-led {
Michal Simeka502a872021-05-10 16:02:15 +020070 label = "vbus_det";
71 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
72 default-state = "on";
73 };
74 };
75
76 ams {
77 compatible = "iio-hwmon";
78 io-channels = <&xilinx_ams 0>, <&xilinx_ams 1>, <&xilinx_ams 2>,
79 <&xilinx_ams 3>, <&xilinx_ams 4>, <&xilinx_ams 5>,
80 <&xilinx_ams 6>, <&xilinx_ams 7>, <&xilinx_ams 8>,
81 <&xilinx_ams 9>, <&xilinx_ams 10>, <&xilinx_ams 11>,
82 <&xilinx_ams 12>, <&xilinx_ams 13>, <&xilinx_ams 14>,
83 <&xilinx_ams 15>, <&xilinx_ams 16>, <&xilinx_ams 17>,
84 <&xilinx_ams 18>, <&xilinx_ams 19>, <&xilinx_ams 20>,
85 <&xilinx_ams 21>, <&xilinx_ams 22>, <&xilinx_ams 23>,
86 <&xilinx_ams 24>, <&xilinx_ams 25>, <&xilinx_ams 26>,
87 <&xilinx_ams 27>, <&xilinx_ams 28>, <&xilinx_ams 29>;
88 };
89};
90
91&uart1 { /* MIO36/MIO37 */
92 status = "okay";
93};
94
95&qspi { /* MIO 0-5 - U143 */
96 status = "okay";
97 flash@0 { /* MT25QU512A */
98 compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */
99 #address-cells = <1>;
100 #size-cells = <1>;
101 reg = <0>;
102 spi-tx-bus-width = <1>;
103 spi-rx-bus-width = <4>;
104 spi-max-frequency = <40000000>; /* 40MHz */
105 partition@0 {
106 label = "Image Selector";
107 reg = <0x0 0x80000>; /* 512KB */
108 read-only;
109 lock;
110 };
111 partition@80000 {
112 label = "Image Selector Golden";
113 reg = <0x80000 0x80000>; /* 512KB */
114 read-only;
115 lock;
116 };
117 partition@100000 {
118 label = "Persistent Register";
119 reg = <0x100000 0x20000>; /* 128KB */
120 };
121 partition@120000 {
122 label = "Persistent Register Backup";
123 reg = <0x120000 0x20000>; /* 128KB */
124 };
125 partition@140000 {
126 label = "Open_1";
127 reg = <0x140000 0xC0000>; /* 768KB */
128 };
129 partition@200000 {
130 label = "Image A (FSBL, PMU, ATF, U-Boot)";
131 reg = <0x200000 0xD00000>; /* 13MB */
132 };
133 partition@f00000 {
134 label = "ImgSel Image A Catch";
135 reg = <0xF00000 0x80000>; /* 512KB */
136 read-only;
137 lock;
138 };
139 partition@f80000 {
140 label = "Image B (FSBL, PMU, ATF, U-Boot)";
141 reg = <0xF80000 0xD00000>; /* 13MB */
142 };
143 partition@1c80000 {
144 label = "ImgSel Image B Catch";
145 reg = <0x1C80000 0x80000>; /* 512KB */
146 read-only;
147 lock;
148 };
149 partition@1d00000 {
150 label = "Open_2";
151 reg = <0x1D00000 0x100000>; /* 1MB */
152 };
153 partition@1e00000 {
154 label = "Recovery Image";
155 reg = <0x1E00000 0x200000>; /* 2MB */
156 read-only;
157 lock;
158 };
159 partition@2000000 {
160 label = "Recovery Image Backup";
161 reg = <0x2000000 0x200000>; /* 2MB */
162 read-only;
163 lock;
164 };
165 partition@2200000 {
166 label = "U-Boot storage variables";
167 reg = <0x2200000 0x20000>; /* 128KB */
168 };
169 partition@2220000 {
170 label = "U-Boot storage variables backup";
171 reg = <0x2220000 0x20000>; /* 128KB */
172 };
173 partition@2240000 {
174 label = "SHA256";
175 reg = <0x2240000 0x10000>; /* 256B but 64KB sector */
176 read-only;
177 lock;
178 };
179 partition@2250000 {
180 label = "User";
181 reg = <0x2250000 0x1db0000>; /* 29.5 MB */
182 };
183 };
184};
185
Michal Simek1759a312021-08-05 08:28:46 +0200186&sdhci0 { /* MIO13-23 - 16GB emmc MTFC16GAPALBH-IT - U133A */
Michal Simeka502a872021-05-10 16:02:15 +0200187 status = "okay";
188 non-removable;
189 disable-wp;
190 bus-width = <8>;
191 xlnx,mio-bank = <0>;
Michal Simeka3efa532022-02-23 16:17:39 +0100192 assigned-clock-rates = <187498123>;
Michal Simeka502a872021-05-10 16:02:15 +0200193};
194
195&spi1 { /* MIO6, 9-11 */
196 status = "okay";
197 label = "TPM";
198 num-cs = <1>;
199 tpm@0 { /* slm9670 - U144 */
200 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
201 reg = <0>;
202 spi-max-frequency = <18500000>;
203 };
204};
205
206&i2c1 {
207 status = "okay";
Michal Simek52ff1622021-08-11 14:23:54 +0200208 u-boot,dm-pre-reloc;
Michal Simeka502a872021-05-10 16:02:15 +0200209 clock-frequency = <400000>;
210 scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
211 sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
212
213 eeprom: eeprom@50 { /* u46 - also at address 0x58 */
Michal Simek52ff1622021-08-11 14:23:54 +0200214 u-boot,dm-pre-reloc;
Michal Simeka502a872021-05-10 16:02:15 +0200215 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
216 reg = <0x50>;
217 /* WP pin EE_WP_EN connected to slg7x644092@68 */
218 };
219
220 eeprom_cc: eeprom@51 { /* required by spec - also at address 0x59 */
Michal Simek52ff1622021-08-11 14:23:54 +0200221 u-boot,dm-pre-reloc;
Michal Simeka502a872021-05-10 16:02:15 +0200222 compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */
223 reg = <0x51>;
224 };
225
226 /* da9062@30 - u170 - also at address 0x31 */
227 /* da9131@33 - u167 */
228 da9131: pmic@33 {
229 compatible = "dlg,da9131";
230 reg = <0x33>;
231 regulators {
232 da9131_buck1: buck1 {
233 regulator-name = "da9131_buck1";
234 regulator-boot-on;
235 regulator-always-on;
236 };
237 da9131_buck2: buck2 {
238 regulator-name = "da9131_buck2";
239 regulator-boot-on;
240 regulator-always-on;
241 };
242 };
243 };
244
245 /* da9130@32 - u166 */
246 da9130: pmic@32 {
247 compatible = "dlg,da9130";
248 reg = <0x32>;
249 regulators {
250 da9130_buck1: buck1 {
251 regulator-name = "da9130_buck1";
252 regulator-boot-on;
253 regulator-always-on;
254 };
255 };
256 };
257
258 /* slg7x644091@70 - u168 NOT accessible due to address conflict with stdp4320 */
259 /*
260 * stdp4320 - u27 FW has below two issues to be fixed in next board revision.
261 * Device acknowledging to addresses 0x5C, 0x5D, 0x70, 0x72, 0x76.
262 * Address conflict with slg7x644091@70 making both the devices NOT accessible.
263 * With the FW fix, stdp4320 should respond to address 0x73 only.
264 */
265 /* slg7x644092@68 - u169 */
266 /* Also connected via JA1C as C23/C24 */
267};
268
269&gpio {
270 status = "okay";
271 gpio-line-names = "QSPI_CLK", "QSPI_DQ1", "QSPI_DQ2", "QSPI_DQ3", "QSPI_DQ0", /* 0 - 4 */
272 "QSPI_CS_B", "SPI_CLK", "LED1", "LED2", "SPI_CS_B", /* 5 - 9 */
273 "SPI_MISO", "SPI_MOSI", "FWUEN", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
274 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
275 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST", "I2C1_SCL", /* 20 - 24 */
276 "I2C1_SDA", "", "", "", "", /* 25 - 29 */
277 "", "", "", "", "", /* 30 - 34 */
278 "", "", "", "", "", /* 35 - 39 */
279 "", "", "", "", "", /* 40 - 44 */
280 "", "", "", "", "", /* 45 - 49 */
281 "", "", "", "", "", /* 50 - 54 */
282 "", "", "", "", "", /* 55 - 59 */
283 "", "", "", "", "", /* 60 - 64 */
284 "", "", "", "", "", /* 65 - 69 */
285 "", "", "", "", "", /* 70 - 74 */
286 "", "", "", /* 75 - 77, MIO end and EMIO start */
287 "", "", /* 78 - 79 */
288 "", "", "", "", "", /* 80 - 84 */
289 "", "", "", "", "", /* 85 - 89 */
290 "", "", "", "", "", /* 90 - 94 */
291 "", "", "", "", "", /* 95 - 99 */
292 "", "", "", "", "", /* 100 - 104 */
293 "", "", "", "", "", /* 105 - 109 */
294 "", "", "", "", "", /* 110 - 114 */
295 "", "", "", "", "", /* 115 - 119 */
296 "", "", "", "", "", /* 120 - 124 */
297 "", "", "", "", "", /* 125 - 129 */
298 "", "", "", "", "", /* 130 - 134 */
299 "", "", "", "", "", /* 135 - 139 */
300 "", "", "", "", "", /* 140 - 144 */
301 "", "", "", "", "", /* 145 - 149 */
302 "", "", "", "", "", /* 150 - 154 */
303 "", "", "", "", "", /* 155 - 159 */
304 "", "", "", "", "", /* 160 - 164 */
305 "", "", "", "", "", /* 165 - 169 */
306 "", "", "", ""; /* 170 - 174 */
307};
308
309&xilinx_ams {
310 status = "okay";
311};
312
313&ams_ps {
314 status = "okay";
315};
316
317&ams_pl {
318 status = "okay";
319};