Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com> |
| 3 | * |
| 4 | * This file is licensed under the terms of the GNU General Public |
| 5 | * License version 2. This program is licensed "as is" without any |
| 6 | * warranty of any kind, whether express or implied. |
| 7 | */ |
| 8 | |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 9 | #include <dt-bindings/clock/berlin2q.h> |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 10 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 11 | |
| 12 | #include "skeleton.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "Marvell Armada 1500 pro (BG2-Q) SoC"; |
| 16 | compatible = "marvell,berlin2q", "marvell,berlin"; |
| 17 | |
| 18 | cpus { |
| 19 | #address-cells = <1>; |
| 20 | #size-cells = <0>; |
Antoine Ténart | d19c936 | 2014-06-04 18:03:46 +0200 | [diff] [blame] | 21 | enable-method = "marvell,berlin-smp"; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 22 | |
| 23 | cpu@0 { |
| 24 | compatible = "arm,cortex-a9"; |
| 25 | device_type = "cpu"; |
| 26 | next-level-cache = <&l2>; |
| 27 | reg = <0>; |
| 28 | }; |
| 29 | |
| 30 | cpu@1 { |
| 31 | compatible = "arm,cortex-a9"; |
| 32 | device_type = "cpu"; |
| 33 | next-level-cache = <&l2>; |
| 34 | reg = <1>; |
| 35 | }; |
| 36 | |
| 37 | cpu@2 { |
| 38 | compatible = "arm,cortex-a9"; |
| 39 | device_type = "cpu"; |
| 40 | next-level-cache = <&l2>; |
| 41 | reg = <2>; |
| 42 | }; |
| 43 | |
| 44 | cpu@3 { |
| 45 | compatible = "arm,cortex-a9"; |
| 46 | device_type = "cpu"; |
| 47 | next-level-cache = <&l2>; |
| 48 | reg = <3>; |
| 49 | }; |
| 50 | }; |
| 51 | |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 52 | refclk: oscillator { |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 53 | compatible = "fixed-clock"; |
| 54 | #clock-cells = <0>; |
| 55 | clock-frequency = <25000000>; |
| 56 | }; |
| 57 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 58 | soc { |
| 59 | compatible = "simple-bus"; |
| 60 | #address-cells = <1>; |
| 61 | #size-cells = <1>; |
| 62 | |
| 63 | ranges = <0 0xf7000000 0x1000000>; |
| 64 | interrupt-parent = <&gic>; |
| 65 | |
Antoine Tenart | 0d859a6 | 2014-05-19 22:03:00 +0200 | [diff] [blame] | 66 | sdhci0: sdhci@ab0000 { |
| 67 | compatible = "mrvl,pxav3-mmc"; |
| 68 | reg = <0xab0000 0x200>; |
| 69 | clocks = <&chip CLKID_SDIO1XIN>; |
| 70 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 71 | status = "disabled"; |
| 72 | }; |
| 73 | |
| 74 | sdhci1: sdhci@ab0800 { |
| 75 | compatible = "mrvl,pxav3-mmc"; |
| 76 | reg = <0xab0800 0x200>; |
| 77 | clocks = <&chip CLKID_SDIO1XIN>; |
| 78 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
| 79 | status = "disabled"; |
| 80 | }; |
| 81 | |
| 82 | sdhci2: sdhci@ab1000 { |
| 83 | compatible = "mrvl,pxav3-mmc"; |
| 84 | reg = <0xab1000 0x200>; |
| 85 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 86 | clocks = <&chip CLKID_SDIO1XIN>; |
| 87 | status = "disabled"; |
| 88 | }; |
| 89 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 90 | l2: l2-cache-controller@ac0000 { |
| 91 | compatible = "arm,pl310-cache"; |
| 92 | reg = <0xac0000 0x1000>; |
| 93 | cache-level = <2>; |
Jisheng Zhang | 44991eb | 2014-06-12 17:38:40 +0800 | [diff] [blame] | 94 | arm,data-latency = <2 2 2>; |
| 95 | arm,tag-latency = <2 2 2>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 96 | }; |
| 97 | |
Sebastian Hesselbarth | 0bd4b34 | 2014-03-13 13:32:34 +0100 | [diff] [blame] | 98 | scu: snoop-control-unit@ad0000 { |
| 99 | compatible = "arm,cortex-a9-scu"; |
| 100 | reg = <0xad0000 0x58>; |
| 101 | }; |
| 102 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 103 | local-timer@ad0600 { |
| 104 | compatible = "arm,cortex-a9-twd-timer"; |
| 105 | reg = <0xad0600 0x20>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 106 | clocks = <&chip CLKID_TWD>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 107 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 108 | }; |
| 109 | |
| 110 | gic: interrupt-controller@ad1000 { |
| 111 | compatible = "arm,cortex-a9-gic"; |
| 112 | reg = <0xad1000 0x1000>, <0xad0100 0x100>; |
| 113 | interrupt-controller; |
| 114 | #interrupt-cells = <3>; |
| 115 | }; |
| 116 | |
Antoine Ténart | d19c936 | 2014-06-04 18:03:46 +0200 | [diff] [blame] | 117 | cpu-ctrl@dd0000 { |
| 118 | compatible = "marvell,berlin-cpu-ctrl"; |
| 119 | reg = <0xdd0000 0x10000>; |
| 120 | }; |
| 121 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 122 | apb@e80000 { |
| 123 | compatible = "simple-bus"; |
| 124 | #address-cells = <1>; |
| 125 | #size-cells = <1>; |
| 126 | |
| 127 | ranges = <0 0xe80000 0x10000>; |
| 128 | interrupt-parent = <&aic>; |
| 129 | |
Antoine Tenart | cedf57f | 2014-04-16 21:18:41 +0200 | [diff] [blame] | 130 | gpio0: gpio@0400 { |
| 131 | compatible = "snps,dw-apb-gpio"; |
| 132 | reg = <0x0400 0x400>; |
| 133 | #address-cells = <1>; |
| 134 | #size-cells = <0>; |
| 135 | |
| 136 | porta: gpio-port@0 { |
| 137 | compatible = "snps,dw-apb-gpio-port"; |
| 138 | gpio-controller; |
| 139 | #gpio-cells = <2>; |
| 140 | snps,nr-gpios = <32>; |
| 141 | reg = <0>; |
| 142 | interrupt-controller; |
| 143 | #interrupt-cells = <2>; |
| 144 | interrupts = <0>; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | gpio1: gpio@0800 { |
| 149 | compatible = "snps,dw-apb-gpio"; |
| 150 | reg = <0x0800 0x400>; |
| 151 | #address-cells = <1>; |
| 152 | #size-cells = <0>; |
| 153 | |
| 154 | portb: gpio-port@1 { |
| 155 | compatible = "snps,dw-apb-gpio-port"; |
| 156 | gpio-controller; |
| 157 | #gpio-cells = <2>; |
| 158 | snps,nr-gpios = <32>; |
| 159 | reg = <0>; |
| 160 | interrupt-controller; |
| 161 | #interrupt-cells = <2>; |
| 162 | interrupts = <1>; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | gpio2: gpio@0c00 { |
| 167 | compatible = "snps,dw-apb-gpio"; |
| 168 | reg = <0x0c00 0x400>; |
| 169 | #address-cells = <1>; |
| 170 | #size-cells = <0>; |
| 171 | |
| 172 | portc: gpio-port@2 { |
| 173 | compatible = "snps,dw-apb-gpio-port"; |
| 174 | gpio-controller; |
| 175 | #gpio-cells = <2>; |
| 176 | snps,nr-gpios = <32>; |
| 177 | reg = <0>; |
| 178 | interrupt-controller; |
| 179 | #interrupt-cells = <2>; |
| 180 | interrupts = <2>; |
| 181 | }; |
| 182 | }; |
| 183 | |
| 184 | gpio3: gpio@1000 { |
| 185 | compatible = "snps,dw-apb-gpio"; |
| 186 | reg = <0x1000 0x400>; |
| 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
| 189 | |
| 190 | portd: gpio-port@3 { |
| 191 | compatible = "snps,dw-apb-gpio-port"; |
| 192 | gpio-controller; |
| 193 | #gpio-cells = <2>; |
| 194 | snps,nr-gpios = <32>; |
| 195 | reg = <0>; |
| 196 | interrupt-controller; |
| 197 | #interrupt-cells = <2>; |
| 198 | interrupts = <3>; |
| 199 | }; |
| 200 | }; |
| 201 | |
Antoine Ténart | 99f3deb | 2014-06-03 09:33:09 +0200 | [diff] [blame] | 202 | i2c0: i2c@1400 { |
| 203 | compatible = "snps,designware-i2c"; |
| 204 | #address-cells = <1>; |
| 205 | #size-cells = <0>; |
| 206 | reg = <0x1400 0x100>; |
| 207 | interrupt-parent = <&aic>; |
| 208 | interrupts = <4>; |
| 209 | clocks = <&chip CLKID_CFG>; |
| 210 | pinctrl-0 = <&twsi0_pmux>; |
| 211 | pinctrl-names = "default"; |
| 212 | status = "disabled"; |
| 213 | }; |
| 214 | |
| 215 | i2c1: i2c@1800 { |
| 216 | compatible = "snps,designware-i2c"; |
| 217 | #address-cells = <1>; |
| 218 | #size-cells = <0>; |
| 219 | reg = <0x1800 0x100>; |
| 220 | interrupt-parent = <&aic>; |
| 221 | interrupts = <5>; |
| 222 | clocks = <&chip CLKID_CFG>; |
| 223 | pinctrl-0 = <&twsi1_pmux>; |
| 224 | pinctrl-names = "default"; |
| 225 | status = "disabled"; |
| 226 | }; |
| 227 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 228 | timer0: timer@2c00 { |
| 229 | compatible = "snps,dw-apb-timer"; |
| 230 | reg = <0x2c00 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 231 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 232 | clock-names = "timer"; |
| 233 | interrupts = <8>; |
| 234 | }; |
| 235 | |
| 236 | timer1: timer@2c14 { |
| 237 | compatible = "snps,dw-apb-timer"; |
| 238 | reg = <0x2c14 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 239 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 240 | clock-names = "timer"; |
| 241 | status = "disabled"; |
| 242 | }; |
| 243 | |
| 244 | timer2: timer@2c28 { |
| 245 | compatible = "snps,dw-apb-timer"; |
| 246 | reg = <0x2c28 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 247 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 248 | clock-names = "timer"; |
| 249 | status = "disabled"; |
| 250 | }; |
| 251 | |
| 252 | timer3: timer@2c3c { |
| 253 | compatible = "snps,dw-apb-timer"; |
| 254 | reg = <0x2c3c 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 255 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 256 | clock-names = "timer"; |
| 257 | status = "disabled"; |
| 258 | }; |
| 259 | |
| 260 | timer4: timer@2c50 { |
| 261 | compatible = "snps,dw-apb-timer"; |
| 262 | reg = <0x2c50 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 263 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 264 | clock-names = "timer"; |
| 265 | status = "disabled"; |
| 266 | }; |
| 267 | |
| 268 | timer5: timer@2c64 { |
| 269 | compatible = "snps,dw-apb-timer"; |
| 270 | reg = <0x2c64 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 271 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 272 | clock-names = "timer"; |
| 273 | status = "disabled"; |
| 274 | }; |
| 275 | |
| 276 | timer6: timer@2c78 { |
| 277 | compatible = "snps,dw-apb-timer"; |
| 278 | reg = <0x2c78 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 279 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 280 | clock-names = "timer"; |
| 281 | status = "disabled"; |
| 282 | }; |
| 283 | |
| 284 | timer7: timer@2c8c { |
| 285 | compatible = "snps,dw-apb-timer"; |
| 286 | reg = <0x2c8c 0x14>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 287 | clocks = <&chip CLKID_CFG>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 288 | clock-names = "timer"; |
| 289 | status = "disabled"; |
| 290 | }; |
| 291 | |
| 292 | aic: interrupt-controller@3800 { |
| 293 | compatible = "snps,dw-apb-ictl"; |
| 294 | reg = <0x3800 0x30>; |
| 295 | interrupt-controller; |
| 296 | #interrupt-cells = <1>; |
| 297 | interrupt-parent = <&gic>; |
| 298 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 299 | }; |
Antoine Tenart | cedf57f | 2014-04-16 21:18:41 +0200 | [diff] [blame] | 300 | |
| 301 | gpio4: gpio@5000 { |
| 302 | compatible = "snps,dw-apb-gpio"; |
| 303 | reg = <0x5000 0x400>; |
| 304 | #address-cells = <1>; |
| 305 | #size-cells = <0>; |
| 306 | |
| 307 | porte: gpio-port@4 { |
| 308 | compatible = "snps,dw-apb-gpio-port"; |
| 309 | gpio-controller; |
| 310 | #gpio-cells = <2>; |
| 311 | snps,nr-gpios = <32>; |
| 312 | reg = <0>; |
| 313 | }; |
| 314 | }; |
| 315 | |
| 316 | gpio5: gpio@c000 { |
| 317 | compatible = "snps,dw-apb-gpio"; |
| 318 | reg = <0xc000 0x400>; |
| 319 | #address-cells = <1>; |
| 320 | #size-cells = <0>; |
| 321 | |
| 322 | portf: gpio-port@5 { |
| 323 | compatible = "snps,dw-apb-gpio-port"; |
| 324 | gpio-controller; |
| 325 | #gpio-cells = <2>; |
| 326 | snps,nr-gpios = <32>; |
| 327 | reg = <0>; |
| 328 | }; |
| 329 | }; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 330 | }; |
| 331 | |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 332 | chip: chip-control@ea0000 { |
| 333 | compatible = "marvell,berlin2q-chip-ctrl"; |
| 334 | #clock-cells = <1>; |
| 335 | reg = <0xea0000 0x400>, <0xdd0170 0x10>; |
| 336 | clocks = <&refclk>; |
| 337 | clock-names = "refclk"; |
Antoine Ténart | 99f3deb | 2014-06-03 09:33:09 +0200 | [diff] [blame] | 338 | |
| 339 | twsi0_pmux: twsi0-pmux { |
| 340 | groups = "G6"; |
| 341 | function = "twsi0"; |
| 342 | }; |
| 343 | |
| 344 | twsi1_pmux: twsi1-pmux { |
| 345 | groups = "G7"; |
| 346 | function = "twsi1"; |
| 347 | }; |
Sebastian Hesselbarth | 0bd4b34 | 2014-03-13 13:32:34 +0100 | [diff] [blame] | 348 | }; |
| 349 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 350 | apb@fc0000 { |
| 351 | compatible = "simple-bus"; |
| 352 | #address-cells = <1>; |
| 353 | #size-cells = <1>; |
| 354 | |
| 355 | ranges = <0 0xfc0000 0x10000>; |
| 356 | interrupt-parent = <&sic>; |
| 357 | |
Antoine Ténart | 99f3deb | 2014-06-03 09:33:09 +0200 | [diff] [blame] | 358 | i2c2: i2c@7000 { |
| 359 | compatible = "snps,designware-i2c"; |
| 360 | #address-cells = <1>; |
| 361 | #size-cells = <0>; |
| 362 | reg = <0x7000 0x100>; |
| 363 | interrupt-parent = <&sic>; |
| 364 | interrupts = <6>; |
| 365 | clocks = <&refclk>; |
| 366 | pinctrl-0 = <&twsi2_pmux>; |
| 367 | pinctrl-names = "default"; |
| 368 | status = "disabled"; |
| 369 | }; |
| 370 | |
| 371 | i2c3: i2c@8000 { |
| 372 | compatible = "snps,designware-i2c"; |
| 373 | #address-cells = <1>; |
| 374 | #size-cells = <0>; |
| 375 | reg = <0x8000 0x100>; |
| 376 | interrupt-parent = <&sic>; |
| 377 | interrupts = <7>; |
| 378 | clocks = <&refclk>; |
| 379 | pinctrl-0 = <&twsi3_pmux>; |
| 380 | pinctrl-names = "default"; |
| 381 | status = "disabled"; |
| 382 | }; |
| 383 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 384 | uart0: uart@9000 { |
| 385 | compatible = "snps,dw-apb-uart"; |
| 386 | reg = <0x9000 0x100>; |
| 387 | interrupt-parent = <&sic>; |
| 388 | interrupts = <8>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 389 | clocks = <&refclk>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 390 | reg-shift = <2>; |
Antoine Tenart | 50cc24f | 2014-05-18 20:15:57 +0200 | [diff] [blame] | 391 | pinctrl-0 = <&uart0_pmux>; |
| 392 | pinctrl-names = "default"; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 393 | status = "disabled"; |
| 394 | }; |
| 395 | |
| 396 | uart1: uart@a000 { |
| 397 | compatible = "snps,dw-apb-uart"; |
| 398 | reg = <0xa000 0x100>; |
| 399 | interrupt-parent = <&sic>; |
| 400 | interrupts = <9>; |
Alexandre Belloni | 414dcf8 | 2014-05-12 22:07:35 +0200 | [diff] [blame] | 401 | clocks = <&refclk>; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 402 | reg-shift = <2>; |
Antoine Tenart | 50cc24f | 2014-05-18 20:15:57 +0200 | [diff] [blame] | 403 | pinctrl-0 = <&uart1_pmux>; |
| 404 | pinctrl-names = "default"; |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 405 | status = "disabled"; |
| 406 | }; |
| 407 | |
Antoine Tenart | 50cc24f | 2014-05-18 20:15:57 +0200 | [diff] [blame] | 408 | sysctrl: pin-controller@d000 { |
| 409 | compatible = "marvell,berlin2q-system-ctrl"; |
| 410 | reg = <0xd000 0x100>; |
| 411 | |
| 412 | uart0_pmux: uart0-pmux { |
| 413 | groups = "GSM12"; |
| 414 | function = "uart0"; |
| 415 | }; |
| 416 | |
| 417 | uart1_pmux: uart1-pmux { |
| 418 | groups = "GSM14"; |
| 419 | function = "uart1"; |
| 420 | }; |
Antoine Ténart | 99f3deb | 2014-06-03 09:33:09 +0200 | [diff] [blame] | 421 | |
| 422 | twsi2_pmux: twsi2-pmux { |
| 423 | groups = "GSM13"; |
| 424 | function = "twsi2"; |
| 425 | }; |
| 426 | |
| 427 | twsi3_pmux: twsi3-pmux { |
| 428 | groups = "GSM14"; |
| 429 | function = "twsi3"; |
| 430 | }; |
Antoine Tenart | 50cc24f | 2014-05-18 20:15:57 +0200 | [diff] [blame] | 431 | }; |
| 432 | |
Antoine Tenart | 374ddcb | 2014-03-18 15:32:45 +0100 | [diff] [blame] | 433 | sic: interrupt-controller@e000 { |
| 434 | compatible = "snps,dw-apb-ictl"; |
| 435 | reg = <0xe000 0x30>; |
| 436 | interrupt-controller; |
| 437 | #interrupt-cells = <1>; |
| 438 | interrupt-parent = <&gic>; |
| 439 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
| 440 | }; |
| 441 | }; |
| 442 | }; |
| 443 | }; |