Michal Simek | 71d84b4 | 2018-03-27 13:43:05 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jagannadha Sutradharudu Teki | fc0d22b | 2014-01-09 01:48:29 +0530 | [diff] [blame] | 2 | /* |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 3 | * Copyright (C) 2011 - 2015 Xilinx |
| 4 | * Copyright (C) 2012 National Instruments Corp. |
Jagannadha Sutradharudu Teki | fc0d22b | 2014-01-09 01:48:29 +0530 | [diff] [blame] | 5 | */ |
| 6 | /dts-v1/; |
| 7 | #include "zynq-7000.dtsi" |
| 8 | |
| 9 | / { |
Luis Araneda | ac89116 | 2018-07-12 00:10:20 -0400 | [diff] [blame] | 10 | model = "Xilinx ZC702 board"; |
Jagannadha Sutradharudu Teki | fc0d22b | 2014-01-09 01:48:29 +0530 | [diff] [blame] | 11 | compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000"; |
Masahiro Yamada | d6367a2 | 2014-05-15 20:37:54 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 87f645e | 2014-05-15 20:37:55 +0900 | [diff] [blame] | 13 | aliases { |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 14 | ethernet0 = &gem0; |
| 15 | i2c0 = &i2c0; |
Masahiro Yamada | 87f645e | 2014-05-15 20:37:55 +0900 | [diff] [blame] | 16 | serial0 = &uart1; |
Jagan Teki | 0ac0ffb | 2015-08-15 23:15:21 +0530 | [diff] [blame] | 17 | spi0 = &qspi; |
Michal Simek | 9ecd268 | 2015-11-30 16:13:03 +0100 | [diff] [blame] | 18 | mmc0 = &sdhci0; |
Masahiro Yamada | 87f645e | 2014-05-15 20:37:55 +0900 | [diff] [blame] | 19 | }; |
| 20 | |
Michal Simek | b3585f4 | 2016-11-11 13:11:37 +0100 | [diff] [blame] | 21 | memory@0 { |
Masahiro Yamada | d6367a2 | 2014-05-15 20:37:54 +0900 | [diff] [blame] | 22 | device_type = "memory"; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 23 | reg = <0x0 0x40000000>; |
Masahiro Yamada | d6367a2 | 2014-05-15 20:37:54 +0900 | [diff] [blame] | 24 | }; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 25 | |
| 26 | chosen { |
Michal Simek | 8073b86 | 2016-04-07 11:15:00 +0200 | [diff] [blame] | 27 | bootargs = ""; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 28 | stdout-path = "serial0:115200n8"; |
| 29 | }; |
| 30 | |
Michal Simek | 064be10 | 2015-07-22 11:41:11 +0200 | [diff] [blame] | 31 | gpio-keys { |
| 32 | compatible = "gpio-keys"; |
Michal Simek | 064be10 | 2015-07-22 11:41:11 +0200 | [diff] [blame] | 33 | autorepeat; |
| 34 | sw14 { |
| 35 | label = "sw14"; |
| 36 | gpios = <&gpio0 12 0>; |
| 37 | linux,code = <108>; /* down */ |
Sudeep Holla | 4652157 | 2015-10-21 11:10:16 +0100 | [diff] [blame] | 38 | wakeup-source; |
Michal Simek | 064be10 | 2015-07-22 11:41:11 +0200 | [diff] [blame] | 39 | autorepeat; |
| 40 | }; |
| 41 | sw13 { |
| 42 | label = "sw13"; |
| 43 | gpios = <&gpio0 14 0>; |
| 44 | linux,code = <103>; /* up */ |
Sudeep Holla | 4652157 | 2015-10-21 11:10:16 +0100 | [diff] [blame] | 45 | wakeup-source; |
Michal Simek | 064be10 | 2015-07-22 11:41:11 +0200 | [diff] [blame] | 46 | autorepeat; |
| 47 | }; |
| 48 | }; |
| 49 | |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 50 | leds { |
| 51 | compatible = "gpio-leds"; |
| 52 | |
| 53 | ds23 { |
| 54 | label = "ds23"; |
| 55 | gpios = <&gpio0 10 0>; |
| 56 | linux,default-trigger = "heartbeat"; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | usb_phy0: phy0 { |
| 61 | compatible = "usb-nop-xceiv"; |
| 62 | #phy-cells = <0>; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | &amba { |
| 67 | ocm: sram@fffc0000 { |
| 68 | compatible = "mmio-sram"; |
| 69 | reg = <0xfffc0000 0x10000>; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &can0 { |
| 74 | status = "okay"; |
| 75 | pinctrl-names = "default"; |
| 76 | pinctrl-0 = <&pinctrl_can0_default>; |
| 77 | }; |
| 78 | |
| 79 | &clkc { |
| 80 | ps-clk-frequency = <33333333>; |
| 81 | }; |
| 82 | |
| 83 | &gem0 { |
| 84 | status = "okay"; |
| 85 | phy-mode = "rgmii-id"; |
| 86 | phy-handle = <ðernet_phy>; |
| 87 | pinctrl-names = "default"; |
| 88 | pinctrl-0 = <&pinctrl_gem0_default>; |
Punnaiah Choudary Kalluri | b3d1531 | 2016-02-03 15:27:18 +0530 | [diff] [blame] | 89 | phy-reset-gpio = <&gpio0 11 0>; |
| 90 | phy-reset-active-low; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 91 | |
| 92 | ethernet_phy: ethernet-phy@7 { |
| 93 | reg = <7>; |
Sai Pavan Boddu | b2ed84b | 2017-03-06 18:17:19 +0530 | [diff] [blame] | 94 | device_type = "ethernet-phy"; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 95 | }; |
| 96 | }; |
| 97 | |
| 98 | &gpio0 { |
| 99 | pinctrl-names = "default"; |
| 100 | pinctrl-0 = <&pinctrl_gpio0_default>; |
| 101 | }; |
| 102 | |
| 103 | &i2c0 { |
| 104 | status = "okay"; |
| 105 | clock-frequency = <400000>; |
Chirag Parekh | 0d7fcb1 | 2016-12-27 22:07:58 +0530 | [diff] [blame] | 106 | pinctrl-names = "default", "gpio"; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 107 | pinctrl-0 = <&pinctrl_i2c0_default>; |
Chirag Parekh | 0d7fcb1 | 2016-12-27 22:07:58 +0530 | [diff] [blame] | 108 | pinctrl-1 = <&pinctrl_i2c0_gpio>; |
| 109 | scl-gpios = <&gpio0 50 0>; |
| 110 | sda-gpios = <&gpio0 51 0>; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 111 | |
Michal Simek | f6fd3f2 | 2018-02-06 14:00:30 +0100 | [diff] [blame] | 112 | i2c-mux@74 { |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 113 | compatible = "nxp,pca9548"; |
| 114 | #address-cells = <1>; |
| 115 | #size-cells = <0>; |
| 116 | reg = <0x74>; |
| 117 | |
| 118 | i2c@0 { |
| 119 | #address-cells = <1>; |
| 120 | #size-cells = <0>; |
| 121 | reg = <0>; |
| 122 | si570: clock-generator@5d { |
| 123 | #clock-cells = <0>; |
| 124 | compatible = "silabs,si570"; |
| 125 | temperature-stability = <50>; |
| 126 | reg = <0x5d>; |
| 127 | factory-fout = <156250000>; |
| 128 | clock-frequency = <148500000>; |
| 129 | }; |
| 130 | }; |
| 131 | |
Christian Kohn | 9d979ac | 2015-11-12 15:53:35 -0800 | [diff] [blame] | 132 | i2c@1 { |
| 133 | #address-cells = <1>; |
| 134 | #size-cells = <0>; |
| 135 | reg = <1>; |
| 136 | adv7511: hdmi-tx@39 { |
| 137 | compatible = "adi,adv7511"; |
| 138 | reg = <0x39>; |
| 139 | adi,input-depth = <8>; |
| 140 | adi,input-colorspace = "yuv422"; |
| 141 | adi,input-clock = "1x"; |
| 142 | adi,input-style = <3>; |
| 143 | adi,input-justification = "right"; |
| 144 | }; |
| 145 | }; |
| 146 | |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 147 | i2c@2 { |
| 148 | #address-cells = <1>; |
| 149 | #size-cells = <0>; |
| 150 | reg = <2>; |
| 151 | eeprom@54 { |
Javier Martinez Canillas | a2ce272 | 2017-06-15 20:54:12 +0200 | [diff] [blame] | 152 | compatible = "atmel,24c08"; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 153 | reg = <0x54>; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | i2c@3 { |
| 158 | #address-cells = <1>; |
| 159 | #size-cells = <0>; |
| 160 | reg = <3>; |
| 161 | gpio@21 { |
| 162 | compatible = "ti,tca6416"; |
| 163 | reg = <0x21>; |
| 164 | gpio-controller; |
| 165 | #gpio-cells = <2>; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | i2c@4 { |
| 170 | #address-cells = <1>; |
| 171 | #size-cells = <0>; |
| 172 | reg = <4>; |
| 173 | rtc@51 { |
| 174 | compatible = "nxp,pcf8563"; |
| 175 | reg = <0x51>; |
| 176 | }; |
| 177 | }; |
| 178 | |
| 179 | i2c@7 { |
| 180 | #address-cells = <1>; |
| 181 | #size-cells = <0>; |
| 182 | reg = <7>; |
| 183 | hwmon@52 { |
| 184 | compatible = "ti,ucd9248"; |
| 185 | reg = <52>; |
| 186 | }; |
| 187 | hwmon@53 { |
| 188 | compatible = "ti,ucd9248"; |
| 189 | reg = <53>; |
| 190 | }; |
| 191 | hwmon@54 { |
| 192 | compatible = "ti,ucd9248"; |
| 193 | reg = <54>; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | }; |
| 198 | |
| 199 | &pinctrl0 { |
| 200 | pinctrl_can0_default: can0-default { |
| 201 | mux { |
| 202 | function = "can0"; |
| 203 | groups = "can0_9_grp"; |
| 204 | }; |
| 205 | |
| 206 | conf { |
| 207 | groups = "can0_9_grp"; |
| 208 | slew-rate = <0>; |
| 209 | io-standard = <1>; |
| 210 | }; |
| 211 | |
| 212 | conf-rx { |
| 213 | pins = "MIO46"; |
| 214 | bias-high-impedance; |
| 215 | }; |
| 216 | |
| 217 | conf-tx { |
| 218 | pins = "MIO47"; |
| 219 | bias-disable; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | pinctrl_gem0_default: gem0-default { |
| 224 | mux { |
| 225 | function = "ethernet0"; |
| 226 | groups = "ethernet0_0_grp"; |
| 227 | }; |
| 228 | |
| 229 | conf { |
| 230 | groups = "ethernet0_0_grp"; |
| 231 | slew-rate = <0>; |
| 232 | io-standard = <4>; |
| 233 | }; |
| 234 | |
| 235 | conf-rx { |
| 236 | pins = "MIO22", "MIO23", "MIO24", "MIO25", "MIO26", "MIO27"; |
| 237 | bias-high-impedance; |
| 238 | low-power-disable; |
| 239 | }; |
| 240 | |
| 241 | conf-tx { |
| 242 | pins = "MIO16", "MIO17", "MIO18", "MIO19", "MIO20", "MIO21"; |
| 243 | bias-disable; |
| 244 | low-power-enable; |
| 245 | }; |
| 246 | |
| 247 | mux-mdio { |
| 248 | function = "mdio0"; |
| 249 | groups = "mdio0_0_grp"; |
| 250 | }; |
| 251 | |
| 252 | conf-mdio { |
| 253 | groups = "mdio0_0_grp"; |
| 254 | slew-rate = <0>; |
| 255 | io-standard = <1>; |
| 256 | bias-disable; |
| 257 | }; |
| 258 | }; |
| 259 | |
| 260 | pinctrl_gpio0_default: gpio0-default { |
| 261 | mux { |
| 262 | function = "gpio0"; |
| 263 | groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp", |
| 264 | "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp", |
| 265 | "gpio0_13_grp", "gpio0_14_grp"; |
| 266 | }; |
| 267 | |
| 268 | conf { |
| 269 | groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp", |
| 270 | "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp", |
| 271 | "gpio0_13_grp", "gpio0_14_grp"; |
| 272 | slew-rate = <0>; |
| 273 | io-standard = <1>; |
| 274 | }; |
| 275 | |
| 276 | conf-pull-up { |
| 277 | pins = "MIO9", "MIO10", "MIO11", "MIO12", "MIO13", "MIO14"; |
| 278 | bias-pull-up; |
| 279 | }; |
| 280 | |
| 281 | conf-pull-none { |
| 282 | pins = "MIO7", "MIO8"; |
| 283 | bias-disable; |
| 284 | }; |
| 285 | }; |
| 286 | |
| 287 | pinctrl_i2c0_default: i2c0-default { |
| 288 | mux { |
| 289 | groups = "i2c0_10_grp"; |
| 290 | function = "i2c0"; |
| 291 | }; |
| 292 | |
| 293 | conf { |
| 294 | groups = "i2c0_10_grp"; |
| 295 | bias-pull-up; |
| 296 | slew-rate = <0>; |
| 297 | io-standard = <1>; |
| 298 | }; |
| 299 | }; |
| 300 | |
Chirag Parekh | 0d7fcb1 | 2016-12-27 22:07:58 +0530 | [diff] [blame] | 301 | pinctrl_i2c0_gpio: i2c0-gpio { |
| 302 | mux { |
| 303 | groups = "gpio0_50_grp", "gpio0_51_grp"; |
| 304 | function = "gpio0"; |
| 305 | }; |
| 306 | |
| 307 | conf { |
| 308 | groups = "gpio0_50_grp", "gpio0_51_grp"; |
| 309 | slew-rate = <0>; |
| 310 | io-standard = <1>; |
| 311 | }; |
| 312 | }; |
| 313 | |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 314 | pinctrl_sdhci0_default: sdhci0-default { |
| 315 | mux { |
| 316 | groups = "sdio0_2_grp"; |
| 317 | function = "sdio0"; |
| 318 | }; |
| 319 | |
| 320 | conf { |
| 321 | groups = "sdio0_2_grp"; |
| 322 | slew-rate = <0>; |
| 323 | io-standard = <1>; |
| 324 | bias-disable; |
| 325 | }; |
| 326 | |
| 327 | mux-cd { |
| 328 | groups = "gpio0_0_grp"; |
| 329 | function = "sdio0_cd"; |
| 330 | }; |
| 331 | |
| 332 | conf-cd { |
| 333 | groups = "gpio0_0_grp"; |
| 334 | bias-high-impedance; |
| 335 | bias-pull-up; |
| 336 | slew-rate = <0>; |
| 337 | io-standard = <1>; |
| 338 | }; |
| 339 | |
| 340 | mux-wp { |
| 341 | groups = "gpio0_15_grp"; |
| 342 | function = "sdio0_wp"; |
| 343 | }; |
| 344 | |
| 345 | conf-wp { |
| 346 | groups = "gpio0_15_grp"; |
| 347 | bias-high-impedance; |
| 348 | bias-pull-up; |
| 349 | slew-rate = <0>; |
| 350 | io-standard = <1>; |
| 351 | }; |
| 352 | }; |
| 353 | |
| 354 | pinctrl_uart1_default: uart1-default { |
| 355 | mux { |
| 356 | groups = "uart1_10_grp"; |
| 357 | function = "uart1"; |
| 358 | }; |
| 359 | |
| 360 | conf { |
| 361 | groups = "uart1_10_grp"; |
| 362 | slew-rate = <0>; |
| 363 | io-standard = <1>; |
| 364 | }; |
| 365 | |
| 366 | conf-rx { |
| 367 | pins = "MIO49"; |
| 368 | bias-high-impedance; |
| 369 | }; |
| 370 | |
| 371 | conf-tx { |
| 372 | pins = "MIO48"; |
| 373 | bias-disable; |
| 374 | }; |
| 375 | }; |
| 376 | |
| 377 | pinctrl_usb0_default: usb0-default { |
| 378 | mux { |
| 379 | groups = "usb0_0_grp"; |
| 380 | function = "usb0"; |
| 381 | }; |
| 382 | |
| 383 | conf { |
| 384 | groups = "usb0_0_grp"; |
| 385 | slew-rate = <0>; |
| 386 | io-standard = <1>; |
| 387 | }; |
| 388 | |
| 389 | conf-rx { |
| 390 | pins = "MIO29", "MIO31", "MIO36"; |
| 391 | bias-high-impedance; |
| 392 | }; |
| 393 | |
| 394 | conf-tx { |
| 395 | pins = "MIO28", "MIO30", "MIO32", "MIO33", "MIO34", |
| 396 | "MIO35", "MIO37", "MIO38", "MIO39"; |
| 397 | bias-disable; |
| 398 | }; |
| 399 | }; |
| 400 | }; |
| 401 | |
Michal Simek | 6603e1c | 2016-04-07 13:04:15 +0200 | [diff] [blame] | 402 | &qspi { |
| 403 | u-boot,dm-pre-reloc; |
| 404 | status = "okay"; |
| 405 | }; |
| 406 | |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 407 | &sdhci0 { |
Michal Simek | 9ecd268 | 2015-11-30 16:13:03 +0100 | [diff] [blame] | 408 | u-boot,dm-pre-reloc; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 409 | status = "okay"; |
| 410 | pinctrl-names = "default"; |
| 411 | pinctrl-0 = <&pinctrl_sdhci0_default>; |
| 412 | }; |
| 413 | |
| 414 | &uart1 { |
Simon Glass | 8c7323a | 2015-10-17 19:41:24 -0600 | [diff] [blame] | 415 | u-boot,dm-pre-reloc; |
Michal Simek | e2612e1 | 2015-07-22 11:12:10 +0200 | [diff] [blame] | 416 | status = "okay"; |
| 417 | pinctrl-names = "default"; |
| 418 | pinctrl-0 = <&pinctrl_uart1_default>; |
| 419 | }; |
| 420 | |
| 421 | &usb0 { |
| 422 | status = "okay"; |
| 423 | dr_mode = "host"; |
| 424 | usb-phy = <&usb_phy0>; |
| 425 | pinctrl-names = "default"; |
| 426 | pinctrl-0 = <&pinctrl_usb0_default>; |
Jagannadha Sutradharudu Teki | fc0d22b | 2014-01-09 01:48:29 +0530 | [diff] [blame] | 427 | }; |