Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * dts file for Xilinx ZynqMP ZCU104 |
| 4 | * |
Michal Simek | 4f1b7f6 | 2020-02-18 08:38:06 +0100 | [diff] [blame] | 5 | * (C) Copyright 2017 - 2020, Xilinx, Inc. |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +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/gpio/gpio.h> |
| 15 | #include <dt-bindings/phy/phy.h> |
| 16 | |
| 17 | / { |
| 18 | model = "ZynqMP ZCU104 RevC"; |
| 19 | compatible = "xlnx,zynqmp-zcu104-revC", "xlnx,zynqmp-zcu104", "xlnx,zynqmp"; |
| 20 | |
| 21 | aliases { |
| 22 | ethernet0 = &gem3; |
| 23 | gpio0 = &gpio; |
| 24 | i2c0 = &i2c1; |
| 25 | mmc0 = &sdhci1; |
| 26 | rtc0 = &rtc; |
| 27 | serial0 = &uart0; |
| 28 | serial1 = &uart1; |
| 29 | serial2 = &dcc; |
| 30 | spi0 = &qspi; |
| 31 | usb0 = &usb0; |
| 32 | }; |
| 33 | |
| 34 | chosen { |
| 35 | bootargs = "earlycon"; |
| 36 | stdout-path = "serial0:115200n8"; |
Michal Simek | 53b97e6 | 2019-01-18 09:10:39 +0100 | [diff] [blame] | 37 | xlnx,eeprom = &eeprom; |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | memory@0 { |
| 41 | device_type = "memory"; |
| 42 | reg = <0x0 0x0 0x0 0x80000000>; |
| 43 | }; |
Michal Simek | 9d66a4c | 2019-08-26 09:40:23 +0200 | [diff] [blame] | 44 | |
| 45 | ina226 { |
| 46 | compatible = "iio-hwmon"; |
| 47 | io-channels = <&u183 0>, <&u183 1>, <&u183 2>, <&u183 3>; |
| 48 | }; |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | &can1 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | &dcc { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
Michal Simek | f390a21 | 2019-03-07 08:15:52 +0100 | [diff] [blame] | 59 | &fpd_dma_chan1 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | &fpd_dma_chan2 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | &fpd_dma_chan3 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &fpd_dma_chan4 { |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &fpd_dma_chan5 { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &fpd_dma_chan6 { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | &fpd_dma_chan7 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &fpd_dma_chan8 { |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 91 | &gem3 { |
| 92 | status = "okay"; |
| 93 | phy-handle = <&phy0>; |
| 94 | phy-mode = "rgmii-id"; |
Michal Simek | 393decf | 2019-08-08 12:44:22 +0200 | [diff] [blame] | 95 | phy0: ethernet-phy@c { |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 96 | reg = <0xc>; |
| 97 | ti,rx-internal-delay = <0x8>; |
| 98 | ti,tx-internal-delay = <0xa>; |
| 99 | ti,fifo-depth = <0x1>; |
Harini Katakam | 991a161 | 2019-02-13 17:02:21 +0530 | [diff] [blame] | 100 | ti,dp83867-rxctrl-strap-quirk; |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 101 | }; |
| 102 | }; |
| 103 | |
| 104 | &gpio { |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | |
| 108 | &gpu { |
| 109 | status = "okay"; |
| 110 | }; |
| 111 | |
| 112 | &i2c1 { |
| 113 | status = "okay"; |
| 114 | clock-frequency = <400000>; |
| 115 | |
Michal Simek | bea5713 | 2018-05-29 15:28:43 +0200 | [diff] [blame] | 116 | tca6416_u97: gpio@20 { |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 117 | compatible = "ti,tca6416"; |
Michal Simek | bea5713 | 2018-05-29 15:28:43 +0200 | [diff] [blame] | 118 | reg = <0x20>; |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 119 | gpio-controller; |
| 120 | #gpio-cells = <2>; |
| 121 | /* |
| 122 | * IRQ not connected |
| 123 | * Lines: |
| 124 | * 0 - IRPS5401_ALERT_B |
| 125 | * 1 - HDMI_8T49N241_INT_ALM |
| 126 | * 2 - MAX6643_OT_B |
| 127 | * 3 - MAX6643_FANFAIL_B |
| 128 | * 5 - IIC_MUX_RESET_B |
| 129 | * 6 - GEM3_EXP_RESET_B |
| 130 | * 7 - FMC_LPC_PRSNT_M2C_B |
| 131 | * 4, 10 - 17 - not connected |
| 132 | */ |
| 133 | }; |
| 134 | |
| 135 | /* Another connection to this bus via PL i2c via PCA9306 - u45 */ |
| 136 | i2c-mux@74 { /* u34 */ |
| 137 | compatible = "nxp,pca9548"; |
| 138 | #address-cells = <1>; |
| 139 | #size-cells = <0>; |
| 140 | reg = <0x74>; |
| 141 | i2c@0 { |
| 142 | #address-cells = <1>; |
| 143 | #size-cells = <0>; |
| 144 | reg = <0>; |
| 145 | /* |
| 146 | * IIC_EEPROM 1kB memory which uses 256B blocks |
| 147 | * where every block has different address. |
| 148 | * 0 - 256B address 0x54 |
| 149 | * 256B - 512B address 0x55 |
| 150 | * 512B - 768B address 0x56 |
| 151 | * 768B - 1024B address 0x57 |
| 152 | */ |
| 153 | eeprom: eeprom@54 { /* u23 */ |
| 154 | compatible = "atmel,24c08"; |
| 155 | reg = <0x54>; |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <1>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | i2c@1 { |
| 162 | #address-cells = <1>; |
| 163 | #size-cells = <0>; |
| 164 | reg = <1>; |
| 165 | clock_8t49n287: clock-generator@6c { /* 8T49N287 - u182 */ |
| 166 | compatible = "idt,8t49n287"; |
| 167 | reg = <0x6c>; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | i2c@2 { |
| 172 | #address-cells = <1>; |
| 173 | #size-cells = <0>; |
| 174 | reg = <2>; |
Michal Simek | 3514e4e | 2020-03-30 11:35:38 +0200 | [diff] [blame] | 175 | irps5401_43: irps5401@43 { /* IRPS5401 - u175 */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 176 | compatible = "infineon,irps5401"; |
Michal Simek | 3514e4e | 2020-03-30 11:35:38 +0200 | [diff] [blame] | 177 | reg = <0x43>; /* pmbus / i2c 0x13 */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 178 | }; |
Michal Simek | 3514e4e | 2020-03-30 11:35:38 +0200 | [diff] [blame] | 179 | irps5401_44: irps5401@44 { /* IRPS5401 - u180 */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 180 | compatible = "infineon,irps5401"; |
Michal Simek | 3514e4e | 2020-03-30 11:35:38 +0200 | [diff] [blame] | 181 | reg = <0x44>; /* pmbus / i2c 0x14 */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 182 | }; |
| 183 | }; |
| 184 | |
Michal Simek | ee29db1 | 2018-05-29 14:45:13 +0200 | [diff] [blame] | 185 | i2c@3 { |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 186 | #address-cells = <1>; |
| 187 | #size-cells = <0>; |
Michal Simek | ee29db1 | 2018-05-29 14:45:13 +0200 | [diff] [blame] | 188 | reg = <3>; |
Michal Simek | 9d66a4c | 2019-08-26 09:40:23 +0200 | [diff] [blame] | 189 | u183: ina226@40 { /* u183 */ |
Michal Simek | ee29db1 | 2018-05-29 14:45:13 +0200 | [diff] [blame] | 190 | compatible = "ti,ina226"; |
Michal Simek | 9d66a4c | 2019-08-26 09:40:23 +0200 | [diff] [blame] | 191 | #io-channel-cells = <1>; |
Michal Simek | ee29db1 | 2018-05-29 14:45:13 +0200 | [diff] [blame] | 192 | reg = <0x40>; |
| 193 | shunt-resistor = <5000>; |
| 194 | }; |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 195 | }; |
| 196 | |
| 197 | i2c@5 { |
| 198 | #address-cells = <1>; |
| 199 | #size-cells = <0>; |
| 200 | reg = <5>; |
| 201 | }; |
| 202 | |
| 203 | i2c@7 { |
| 204 | #address-cells = <1>; |
| 205 | #size-cells = <0>; |
| 206 | reg = <7>; |
| 207 | }; |
| 208 | |
Michal Simek | ee29db1 | 2018-05-29 14:45:13 +0200 | [diff] [blame] | 209 | /* 4, 6 not connected */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 210 | }; |
| 211 | }; |
| 212 | |
| 213 | &qspi { |
| 214 | status = "okay"; |
| 215 | flash@0 { |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 216 | compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 217 | #address-cells = <1>; |
| 218 | #size-cells = <1>; |
| 219 | reg = <0x0>; |
| 220 | spi-tx-bus-width = <1>; |
| 221 | spi-rx-bus-width = <4>; |
| 222 | spi-max-frequency = <108000000>; /* Based on DC1 spec */ |
Michal Simek | 70fafdf | 2020-02-14 14:19:56 +0100 | [diff] [blame] | 223 | partition@0 { /* for testing purpose */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 224 | label = "qspi-fsbl-uboot"; |
| 225 | reg = <0x0 0x100000>; |
| 226 | }; |
Michal Simek | 70fafdf | 2020-02-14 14:19:56 +0100 | [diff] [blame] | 227 | partition@100000 { /* for testing purpose */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 228 | label = "qspi-linux"; |
| 229 | reg = <0x100000 0x500000>; |
| 230 | }; |
Michal Simek | 70fafdf | 2020-02-14 14:19:56 +0100 | [diff] [blame] | 231 | partition@600000 { /* for testing purpose */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 232 | label = "qspi-device-tree"; |
| 233 | reg = <0x600000 0x20000>; |
| 234 | }; |
Michal Simek | 70fafdf | 2020-02-14 14:19:56 +0100 | [diff] [blame] | 235 | partition@620000 { /* for testing purpose */ |
Michal Simek | e116c54 | 2018-03-28 15:36:36 +0200 | [diff] [blame] | 236 | label = "qspi-rootfs"; |
| 237 | reg = <0x620000 0x5E0000>; |
| 238 | }; |
| 239 | }; |
| 240 | }; |
| 241 | |
| 242 | &rtc { |
| 243 | status = "okay"; |
| 244 | }; |
| 245 | |
| 246 | &sata { |
| 247 | status = "okay"; |
| 248 | /* SATA OOB timing settings */ |
| 249 | ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>; |
| 250 | ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>; |
| 251 | ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; |
| 252 | ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>; |
| 253 | ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>; |
| 254 | ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>; |
| 255 | ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; |
| 256 | ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>; |
| 257 | phy-names = "sata-phy"; |
| 258 | phys = <&lane3 PHY_TYPE_SATA 1 1 125000000>; |
| 259 | }; |
| 260 | |
| 261 | /* SD1 with level shifter */ |
| 262 | &sdhci1 { |
| 263 | status = "okay"; |
| 264 | no-1-8-v; |
| 265 | xlnx,mio_bank = <1>; |
| 266 | disable-wp; |
| 267 | }; |
| 268 | |
| 269 | &serdes { |
| 270 | status = "okay"; |
| 271 | }; |
| 272 | |
| 273 | &uart0 { |
| 274 | status = "okay"; |
| 275 | }; |
| 276 | |
| 277 | &uart1 { |
| 278 | status = "okay"; |
| 279 | }; |
| 280 | |
| 281 | /* ULPI SMSC USB3320 */ |
| 282 | &usb0 { |
| 283 | status = "okay"; |
| 284 | }; |
| 285 | |
| 286 | &dwc3_0 { |
| 287 | status = "okay"; |
| 288 | dr_mode = "host"; |
| 289 | snps,usb3_lpm_capable; |
| 290 | phy-names = "usb3-phy"; |
| 291 | phys = <&lane2 PHY_TYPE_USB3 0 2 26000000>; |
| 292 | maximum-speed = "super-speed"; |
| 293 | }; |
| 294 | |
| 295 | &watchdog0 { |
| 296 | status = "okay"; |
| 297 | }; |
| 298 | |
| 299 | &xilinx_ams { |
| 300 | status = "okay"; |
| 301 | }; |
| 302 | |
| 303 | &ams_ps { |
| 304 | status = "okay"; |
| 305 | }; |
| 306 | |
| 307 | &ams_pl { |
| 308 | status = "okay"; |
| 309 | }; |