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