Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for Xilinx ZynqMP SM-K26 rev1/B/A |
| 4 | * |
Michal Simek | 40d8349 | 2021-06-14 15:07:07 +0200 | [diff] [blame] | 5 | * (C) Copyright 2020 - 2021, Xilinx, Inc. |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 6 | * |
| 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> |
Michal Simek | b084fb9 | 2022-03-14 15:26:11 +0100 | [diff] [blame] | 17 | #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 18 | |
| 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 Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 26 | i2c0 = &i2c0; |
| 27 | i2c1 = &i2c1; |
| 28 | mmc0 = &sdhci0; |
| 29 | mmc1 = &sdhci1; |
Michal Simek | 53b145d | 2021-06-03 11:46:50 +0200 | [diff] [blame] | 30 | nvmem0 = &eeprom; |
| 31 | nvmem1 = &eeprom_cc; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 32 | 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 Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 41 | }; |
| 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 | |
| 53 | gpio-keys { |
| 54 | compatible = "gpio-keys"; |
| 55 | autorepeat; |
| 56 | fwuen { |
| 57 | label = "fwuen"; |
| 58 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
Michal Simek | 2bad29d | 2022-05-11 11:52:53 +0200 | [diff] [blame] | 59 | linux,code = <BTN_MISC>; |
| 60 | wakeup-source; |
| 61 | autorepeat; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 62 | }; |
| 63 | }; |
| 64 | |
| 65 | leds { |
| 66 | compatible = "gpio-leds"; |
Michal Simek | 87808fb | 2021-08-06 11:12:56 +0200 | [diff] [blame] | 67 | ds35-led { |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 68 | label = "heartbeat"; |
| 69 | gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; |
| 70 | linux,default-trigger = "heartbeat"; |
| 71 | }; |
| 72 | |
Michal Simek | 87808fb | 2021-08-06 11:12:56 +0200 | [diff] [blame] | 73 | ds36-led { |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 74 | label = "vbus_det"; |
| 75 | gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; |
| 76 | default-state = "on"; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | ams { |
| 81 | compatible = "iio-hwmon"; |
| 82 | io-channels = <&xilinx_ams 0>, <&xilinx_ams 1>, <&xilinx_ams 2>, |
| 83 | <&xilinx_ams 3>, <&xilinx_ams 4>, <&xilinx_ams 5>, |
| 84 | <&xilinx_ams 6>, <&xilinx_ams 7>, <&xilinx_ams 8>, |
| 85 | <&xilinx_ams 9>, <&xilinx_ams 10>, <&xilinx_ams 11>, |
| 86 | <&xilinx_ams 12>, <&xilinx_ams 13>, <&xilinx_ams 14>, |
| 87 | <&xilinx_ams 15>, <&xilinx_ams 16>, <&xilinx_ams 17>, |
| 88 | <&xilinx_ams 18>, <&xilinx_ams 19>, <&xilinx_ams 20>, |
| 89 | <&xilinx_ams 21>, <&xilinx_ams 22>, <&xilinx_ams 23>, |
| 90 | <&xilinx_ams 24>, <&xilinx_ams 25>, <&xilinx_ams 26>, |
| 91 | <&xilinx_ams 27>, <&xilinx_ams 28>, <&xilinx_ams 29>; |
| 92 | }; |
Vishal Patel | d511009 | 2022-05-11 11:52:49 +0200 | [diff] [blame] | 93 | |
| 94 | pwm-fan { |
| 95 | compatible = "pwm-fan"; |
| 96 | status = "okay"; |
| 97 | pwms = <&ttc0 2 40000 0>; |
| 98 | }; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 99 | }; |
| 100 | |
Michal Simek | 233eb2a | 2022-05-11 11:52:46 +0200 | [diff] [blame] | 101 | &modepin_gpio { |
| 102 | label = "modepin"; |
| 103 | }; |
| 104 | |
Vishal Patel | d511009 | 2022-05-11 11:52:49 +0200 | [diff] [blame] | 105 | &ttc0 { |
| 106 | status = "okay"; |
| 107 | #pwm-cells = <3>; |
| 108 | }; |
| 109 | |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 110 | &uart1 { /* MIO36/MIO37 */ |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
Michal Simek | b084fb9 | 2022-03-14 15:26:11 +0100 | [diff] [blame] | 114 | &pinctrl0 { |
| 115 | status = "okay"; |
| 116 | pinctrl_sdhci0_default: sdhci0-default { |
| 117 | conf { |
| 118 | groups = "sdio0_0_grp"; |
| 119 | slew-rate = <SLEW_RATE_SLOW>; |
| 120 | power-source = <IO_STANDARD_LVCMOS18>; |
| 121 | bias-disable; |
| 122 | }; |
| 123 | |
| 124 | mux { |
| 125 | groups = "sdio0_0_grp"; |
| 126 | function = "sdio0"; |
| 127 | }; |
| 128 | }; |
| 129 | }; |
| 130 | |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 131 | &qspi { /* MIO 0-5 - U143 */ |
| 132 | status = "okay"; |
Michal Simek | 3f5228a | 2022-06-29 11:13:14 +0200 | [diff] [blame] | 133 | spi_flash: flash@0 { /* MT25QU512A */ |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 134 | compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */ |
| 135 | #address-cells = <1>; |
| 136 | #size-cells = <1>; |
| 137 | reg = <0>; |
Amit Kumar Mahapatra | a02408b | 2022-05-10 16:33:01 +0200 | [diff] [blame] | 138 | spi-tx-bus-width = <4>; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 139 | spi-rx-bus-width = <4>; |
| 140 | spi-max-frequency = <40000000>; /* 40MHz */ |
Michal Simek | 3f5228a | 2022-06-29 11:13:14 +0200 | [diff] [blame] | 141 | |
| 142 | partitions { |
| 143 | compatible = "fixed-partitions"; |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <1>; |
| 146 | |
| 147 | partition@0 { |
| 148 | label = "Image Selector"; |
| 149 | reg = <0x0 0x80000>; /* 512KB */ |
| 150 | read-only; |
| 151 | lock; |
| 152 | }; |
| 153 | partition@80000 { |
| 154 | label = "Image Selector Golden"; |
| 155 | reg = <0x80000 0x80000>; /* 512KB */ |
| 156 | read-only; |
| 157 | lock; |
| 158 | }; |
| 159 | partition@100000 { |
| 160 | label = "Persistent Register"; |
| 161 | reg = <0x100000 0x20000>; /* 128KB */ |
| 162 | }; |
| 163 | partition@120000 { |
| 164 | label = "Persistent Register Backup"; |
| 165 | reg = <0x120000 0x20000>; /* 128KB */ |
| 166 | }; |
| 167 | partition@140000 { |
| 168 | label = "Open_1"; |
| 169 | reg = <0x140000 0xC0000>; /* 768KB */ |
| 170 | }; |
| 171 | partition@200000 { |
| 172 | label = "Image A (FSBL, PMU, ATF, U-Boot)"; |
| 173 | reg = <0x200000 0xD00000>; /* 13MB */ |
| 174 | }; |
| 175 | partition@f00000 { |
| 176 | label = "ImgSel Image A Catch"; |
| 177 | reg = <0xF00000 0x80000>; /* 512KB */ |
| 178 | read-only; |
| 179 | lock; |
| 180 | }; |
| 181 | partition@f80000 { |
| 182 | label = "Image B (FSBL, PMU, ATF, U-Boot)"; |
| 183 | reg = <0xF80000 0xD00000>; /* 13MB */ |
| 184 | }; |
| 185 | partition@1c80000 { |
| 186 | label = "ImgSel Image B Catch"; |
| 187 | reg = <0x1C80000 0x80000>; /* 512KB */ |
| 188 | read-only; |
| 189 | lock; |
| 190 | }; |
| 191 | partition@1d00000 { |
| 192 | label = "Open_2"; |
| 193 | reg = <0x1D00000 0x100000>; /* 1MB */ |
| 194 | }; |
| 195 | partition@1e00000 { |
| 196 | label = "Recovery Image"; |
| 197 | reg = <0x1E00000 0x200000>; /* 2MB */ |
| 198 | read-only; |
| 199 | lock; |
| 200 | }; |
| 201 | partition@2000000 { |
| 202 | label = "Recovery Image Backup"; |
| 203 | reg = <0x2000000 0x200000>; /* 2MB */ |
| 204 | read-only; |
| 205 | lock; |
| 206 | }; |
| 207 | partition@2200000 { |
| 208 | label = "U-Boot storage variables"; |
| 209 | reg = <0x2200000 0x20000>; /* 128KB */ |
| 210 | }; |
| 211 | partition@2220000 { |
| 212 | label = "U-Boot storage variables backup"; |
| 213 | reg = <0x2220000 0x20000>; /* 128KB */ |
| 214 | }; |
| 215 | partition@2240000 { |
| 216 | label = "SHA256"; |
| 217 | reg = <0x2240000 0x10000>; /* 256B but 64KB sector */ |
| 218 | read-only; |
| 219 | lock; |
| 220 | }; |
| 221 | partition@2250000 { |
| 222 | label = "User"; |
| 223 | reg = <0x2250000 0x1db0000>; /* 29.5 MB */ |
| 224 | }; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 225 | }; |
| 226 | }; |
| 227 | }; |
| 228 | |
Michal Simek | f508d38 | 2021-08-05 08:28:46 +0200 | [diff] [blame] | 229 | &sdhci0 { /* MIO13-23 - 16GB emmc MTFC16GAPALBH-IT - U133A */ |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 230 | status = "okay"; |
Michal Simek | b084fb9 | 2022-03-14 15:26:11 +0100 | [diff] [blame] | 231 | pinctrl-names = "default"; |
| 232 | pinctrl-0 = <&pinctrl_sdhci0_default>; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 233 | non-removable; |
| 234 | disable-wp; |
| 235 | bus-width = <8>; |
| 236 | xlnx,mio-bank = <0>; |
Michal Simek | bd8ca91 | 2022-02-23 16:17:39 +0100 | [diff] [blame] | 237 | assigned-clock-rates = <187498123>; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 238 | }; |
| 239 | |
| 240 | &spi1 { /* MIO6, 9-11 */ |
| 241 | status = "okay"; |
| 242 | label = "TPM"; |
| 243 | num-cs = <1>; |
| 244 | tpm@0 { /* slm9670 - U144 */ |
| 245 | compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; |
| 246 | reg = <0>; |
| 247 | spi-max-frequency = <18500000>; |
| 248 | }; |
| 249 | }; |
| 250 | |
| 251 | &i2c1 { |
| 252 | status = "okay"; |
Michal Simek | e045351 | 2021-08-11 14:23:54 +0200 | [diff] [blame] | 253 | u-boot,dm-pre-reloc; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 254 | clock-frequency = <400000>; |
| 255 | scl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>; |
| 256 | sda-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>; |
| 257 | |
| 258 | eeprom: eeprom@50 { /* u46 - also at address 0x58 */ |
Michal Simek | e045351 | 2021-08-11 14:23:54 +0200 | [diff] [blame] | 259 | u-boot,dm-pre-reloc; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 260 | compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */ |
| 261 | reg = <0x50>; |
| 262 | /* WP pin EE_WP_EN connected to slg7x644092@68 */ |
| 263 | }; |
| 264 | |
| 265 | eeprom_cc: eeprom@51 { /* required by spec - also at address 0x59 */ |
Michal Simek | e045351 | 2021-08-11 14:23:54 +0200 | [diff] [blame] | 266 | u-boot,dm-pre-reloc; |
Michal Simek | 4bc7734 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 267 | compatible = "st,24c64", "atmel,24c64"; /* st m24c64 */ |
| 268 | reg = <0x51>; |
| 269 | }; |
| 270 | |
| 271 | /* da9062@30 - u170 - also at address 0x31 */ |
| 272 | /* da9131@33 - u167 */ |
| 273 | da9131: pmic@33 { |
| 274 | compatible = "dlg,da9131"; |
| 275 | reg = <0x33>; |
| 276 | regulators { |
| 277 | da9131_buck1: buck1 { |
| 278 | regulator-name = "da9131_buck1"; |
| 279 | regulator-boot-on; |
| 280 | regulator-always-on; |
| 281 | }; |
| 282 | da9131_buck2: buck2 { |
| 283 | regulator-name = "da9131_buck2"; |
| 284 | regulator-boot-on; |
| 285 | regulator-always-on; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
| 289 | |
| 290 | /* da9130@32 - u166 */ |
| 291 | da9130: pmic@32 { |
| 292 | compatible = "dlg,da9130"; |
| 293 | reg = <0x32>; |
| 294 | regulators { |
| 295 | da9130_buck1: buck1 { |
| 296 | regulator-name = "da9130_buck1"; |
| 297 | regulator-boot-on; |
| 298 | regulator-always-on; |
| 299 | }; |
| 300 | }; |
| 301 | }; |
| 302 | |
| 303 | /* slg7x644091@70 - u168 NOT accessible due to address conflict with stdp4320 */ |
| 304 | /* |
| 305 | * stdp4320 - u27 FW has below two issues to be fixed in next board revision. |
| 306 | * Device acknowledging to addresses 0x5C, 0x5D, 0x70, 0x72, 0x76. |
| 307 | * Address conflict with slg7x644091@70 making both the devices NOT accessible. |
| 308 | * With the FW fix, stdp4320 should respond to address 0x73 only. |
| 309 | */ |
| 310 | /* slg7x644092@68 - u169 */ |
| 311 | /* Also connected via JA1C as C23/C24 */ |
| 312 | }; |
| 313 | |
| 314 | &gpio { |
| 315 | status = "okay"; |
| 316 | gpio-line-names = "QSPI_CLK", "QSPI_DQ1", "QSPI_DQ2", "QSPI_DQ3", "QSPI_DQ0", /* 0 - 4 */ |
| 317 | "QSPI_CS_B", "SPI_CLK", "LED1", "LED2", "SPI_CS_B", /* 5 - 9 */ |
| 318 | "SPI_MISO", "SPI_MOSI", "FWUEN", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */ |
| 319 | "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */ |
| 320 | "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST", "I2C1_SCL", /* 20 - 24 */ |
| 321 | "I2C1_SDA", "", "", "", "", /* 25 - 29 */ |
| 322 | "", "", "", "", "", /* 30 - 34 */ |
| 323 | "", "", "", "", "", /* 35 - 39 */ |
| 324 | "", "", "", "", "", /* 40 - 44 */ |
| 325 | "", "", "", "", "", /* 45 - 49 */ |
| 326 | "", "", "", "", "", /* 50 - 54 */ |
| 327 | "", "", "", "", "", /* 55 - 59 */ |
| 328 | "", "", "", "", "", /* 60 - 64 */ |
| 329 | "", "", "", "", "", /* 65 - 69 */ |
| 330 | "", "", "", "", "", /* 70 - 74 */ |
| 331 | "", "", "", /* 75 - 77, MIO end and EMIO start */ |
| 332 | "", "", /* 78 - 79 */ |
| 333 | "", "", "", "", "", /* 80 - 84 */ |
| 334 | "", "", "", "", "", /* 85 - 89 */ |
| 335 | "", "", "", "", "", /* 90 - 94 */ |
| 336 | "", "", "", "", "", /* 95 - 99 */ |
| 337 | "", "", "", "", "", /* 100 - 104 */ |
| 338 | "", "", "", "", "", /* 105 - 109 */ |
| 339 | "", "", "", "", "", /* 110 - 114 */ |
| 340 | "", "", "", "", "", /* 115 - 119 */ |
| 341 | "", "", "", "", "", /* 120 - 124 */ |
| 342 | "", "", "", "", "", /* 125 - 129 */ |
| 343 | "", "", "", "", "", /* 130 - 134 */ |
| 344 | "", "", "", "", "", /* 135 - 139 */ |
| 345 | "", "", "", "", "", /* 140 - 144 */ |
| 346 | "", "", "", "", "", /* 145 - 149 */ |
| 347 | "", "", "", "", "", /* 150 - 154 */ |
| 348 | "", "", "", "", "", /* 155 - 159 */ |
| 349 | "", "", "", "", "", /* 160 - 164 */ |
| 350 | "", "", "", "", "", /* 165 - 169 */ |
| 351 | "", "", "", ""; /* 170 - 174 */ |
| 352 | }; |
| 353 | |
| 354 | &xilinx_ams { |
| 355 | status = "okay"; |
| 356 | }; |
| 357 | |
| 358 | &ams_ps { |
| 359 | status = "okay"; |
| 360 | }; |
| 361 | |
| 362 | &ams_pl { |
| 363 | status = "okay"; |
| 364 | }; |
Michal Simek | f499a81 | 2022-02-23 16:17:41 +0100 | [diff] [blame] | 365 | |
| 366 | &zynqmp_dpsub { |
| 367 | status = "okay"; |
| 368 | }; |
Michal Simek | 62b6e23 | 2022-05-11 11:52:50 +0200 | [diff] [blame] | 369 | |
| 370 | &rtc { |
| 371 | status = "okay"; |
| 372 | }; |
| 373 | |
| 374 | &lpd_dma_chan1 { |
| 375 | status = "okay"; |
| 376 | }; |
| 377 | |
| 378 | &lpd_dma_chan2 { |
| 379 | status = "okay"; |
| 380 | }; |
| 381 | |
| 382 | &lpd_dma_chan3 { |
| 383 | status = "okay"; |
| 384 | }; |
| 385 | |
| 386 | &lpd_dma_chan4 { |
| 387 | status = "okay"; |
| 388 | }; |
| 389 | |
| 390 | &lpd_dma_chan5 { |
| 391 | status = "okay"; |
| 392 | }; |
| 393 | |
| 394 | &lpd_dma_chan6 { |
| 395 | status = "okay"; |
| 396 | }; |
| 397 | |
| 398 | &lpd_dma_chan7 { |
| 399 | status = "okay"; |
| 400 | }; |
| 401 | |
| 402 | &lpd_dma_chan8 { |
| 403 | status = "okay"; |
| 404 | }; |
| 405 | |
| 406 | &fpd_dma_chan1 { |
| 407 | status = "okay"; |
| 408 | }; |
| 409 | |
| 410 | &fpd_dma_chan2 { |
| 411 | status = "okay"; |
| 412 | }; |
| 413 | |
| 414 | &fpd_dma_chan3 { |
| 415 | status = "okay"; |
| 416 | }; |
| 417 | |
| 418 | &fpd_dma_chan4 { |
| 419 | status = "okay"; |
| 420 | }; |
| 421 | |
| 422 | &fpd_dma_chan5 { |
| 423 | status = "okay"; |
| 424 | }; |
| 425 | |
| 426 | &fpd_dma_chan6 { |
| 427 | status = "okay"; |
| 428 | }; |
| 429 | |
| 430 | &fpd_dma_chan7 { |
| 431 | status = "okay"; |
| 432 | }; |
| 433 | |
| 434 | &fpd_dma_chan8 { |
| 435 | status = "okay"; |
| 436 | }; |
| 437 | |
| 438 | &gpu { |
| 439 | status = "okay"; |
| 440 | }; |
| 441 | |
| 442 | &lpd_watchdog { |
| 443 | status = "okay"; |
| 444 | }; |
| 445 | |
| 446 | &watchdog0 { |
| 447 | status = "okay"; |
| 448 | }; |
| 449 | |
| 450 | &cpu_opp_table { |
| 451 | opp00 { |
| 452 | opp-hz = /bits/ 64 <1333333333>; |
| 453 | }; |
| 454 | opp01 { |
| 455 | opp-hz = /bits/ 64 <666666666>; |
| 456 | }; |
| 457 | opp02 { |
| 458 | opp-hz = /bits/ 64 <444444444>; |
| 459 | }; |
| 460 | opp03 { |
| 461 | opp-hz = /bits/ 64 <333333333>; |
| 462 | }; |
| 463 | }; |