Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Include file for Marvell Armada XP family SoC |
| 3 | * |
| 4 | * Copyright (C) 2012 Marvell |
| 5 | * |
| 6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 7 | * |
| 8 | * This file is licensed under the terms of the GNU General Public |
| 9 | * License version 2. This program is licensed "as is" without any |
| 10 | * warranty of any kind, whether express or implied. |
| 11 | * |
| 12 | * Contains definitions specific to the Armada XP MV78260 SoC that are not |
| 13 | * common to all Armada XP SoCs. |
| 14 | */ |
| 15 | |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 16 | #include "armada-xp.dtsi" |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Marvell Armada XP MV78260 SoC"; |
| 20 | compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 21 | |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 22 | aliases { |
| 23 | gpio0 = &gpio0; |
| 24 | gpio1 = &gpio1; |
| 25 | gpio2 = &gpio2; |
Willy Tarreau | 14cfa4b | 2014-01-12 13:09:24 +0100 | [diff] [blame] | 26 | eth3 = ð3; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 27 | }; |
| 28 | |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 29 | cpus { |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 30 | #address-cells = <1>; |
| 31 | #size-cells = <0>; |
Thomas Petazzoni | 2315785 | 2014-04-14 15:54:00 +0200 | [diff] [blame] | 32 | enable-method = "marvell,armada-xp-smp"; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 33 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 34 | cpu@0 { |
| 35 | device_type = "cpu"; |
| 36 | compatible = "marvell,sheeva-v7"; |
| 37 | reg = <0>; |
| 38 | clocks = <&cpuclk 0>; |
| 39 | }; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 40 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 41 | cpu@1 { |
| 42 | device_type = "cpu"; |
| 43 | compatible = "marvell,sheeva-v7"; |
| 44 | reg = <1>; |
| 45 | clocks = <&cpuclk 1>; |
| 46 | }; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 47 | }; |
| 48 | |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 49 | soc { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 50 | /* |
| 51 | * MV78260 has 3 PCIe units Gen2.0: Two units can be |
| 52 | * configured as x4 or quad x1 lanes. One unit is |
Arnaud Ebalard | 2163e61 | 2013-11-05 21:46:02 +0100 | [diff] [blame] | 53 | * x4 only. |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 54 | */ |
| 55 | pcie-controller { |
| 56 | compatible = "marvell,armada-xp-pcie"; |
| 57 | status = "disabled"; |
| 58 | device_type = "pci"; |
| 59 | |
| 60 | #address-cells = <3>; |
| 61 | #size-cells = <2>; |
| 62 | |
Thomas Petazzoni | d4fa994 | 2013-08-09 22:27:15 +0200 | [diff] [blame] | 63 | msi-parent = <&mpic>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 64 | bus-range = <0x00 0xff>; |
| 65 | |
| 66 | ranges = |
| 67 | <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */ |
| 68 | 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */ |
| 69 | 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */ |
| 70 | 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */ |
| 71 | 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */ |
| 72 | 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */ |
Arnaud Ebalard | 2163e61 | 2013-11-05 21:46:02 +0100 | [diff] [blame] | 73 | 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */ |
| 74 | 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */ |
| 75 | 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */ |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 76 | 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ |
| 77 | 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ |
| 78 | 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */ |
| 79 | 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */ |
| 80 | 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */ |
| 81 | 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */ |
| 82 | 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */ |
| 83 | 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */ |
Arnaud Ebalard | 2163e61 | 2013-11-05 21:46:02 +0100 | [diff] [blame] | 84 | |
| 85 | 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ |
| 86 | 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */ |
| 87 | 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */ |
| 88 | 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */ |
| 89 | 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */ |
| 90 | 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */ |
| 91 | 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */ |
| 92 | 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */ |
| 93 | |
| 94 | 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */ |
| 95 | 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 96 | |
| 97 | pcie@1,0 { |
| 98 | device_type = "pci"; |
| 99 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 100 | reg = <0x0800 0 0 0 0>; |
| 101 | #address-cells = <3>; |
| 102 | #size-cells = <2>; |
| 103 | #interrupt-cells = <1>; |
| 104 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 105 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
| 106 | interrupt-map-mask = <0 0 0 0>; |
| 107 | interrupt-map = <0 0 0 0 &mpic 58>; |
| 108 | marvell,pcie-port = <0>; |
| 109 | marvell,pcie-lane = <0>; |
| 110 | clocks = <&gateclk 5>; |
| 111 | status = "disabled"; |
| 112 | }; |
| 113 | |
| 114 | pcie@2,0 { |
| 115 | device_type = "pci"; |
| 116 | assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; |
| 117 | reg = <0x1000 0 0 0 0>; |
| 118 | #address-cells = <3>; |
| 119 | #size-cells = <2>; |
| 120 | #interrupt-cells = <1>; |
Arnaud Ebalard | 2163e61 | 2013-11-05 21:46:02 +0100 | [diff] [blame] | 121 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 122 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 123 | interrupt-map-mask = <0 0 0 0>; |
| 124 | interrupt-map = <0 0 0 0 &mpic 59>; |
| 125 | marvell,pcie-port = <0>; |
| 126 | marvell,pcie-lane = <1>; |
| 127 | clocks = <&gateclk 6>; |
| 128 | status = "disabled"; |
| 129 | }; |
| 130 | |
| 131 | pcie@3,0 { |
| 132 | device_type = "pci"; |
| 133 | assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; |
| 134 | reg = <0x1800 0 0 0 0>; |
| 135 | #address-cells = <3>; |
| 136 | #size-cells = <2>; |
| 137 | #interrupt-cells = <1>; |
| 138 | ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 |
| 139 | 0x81000000 0 0 0x81000000 0x3 0 1 0>; |
| 140 | interrupt-map-mask = <0 0 0 0>; |
| 141 | interrupt-map = <0 0 0 0 &mpic 60>; |
| 142 | marvell,pcie-port = <0>; |
| 143 | marvell,pcie-lane = <2>; |
| 144 | clocks = <&gateclk 7>; |
| 145 | status = "disabled"; |
| 146 | }; |
| 147 | |
| 148 | pcie@4,0 { |
| 149 | device_type = "pci"; |
| 150 | assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>; |
| 151 | reg = <0x2000 0 0 0 0>; |
| 152 | #address-cells = <3>; |
| 153 | #size-cells = <2>; |
| 154 | #interrupt-cells = <1>; |
| 155 | ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 |
| 156 | 0x81000000 0 0 0x81000000 0x4 0 1 0>; |
| 157 | interrupt-map-mask = <0 0 0 0>; |
| 158 | interrupt-map = <0 0 0 0 &mpic 61>; |
| 159 | marvell,pcie-port = <0>; |
| 160 | marvell,pcie-lane = <3>; |
| 161 | clocks = <&gateclk 8>; |
| 162 | status = "disabled"; |
| 163 | }; |
| 164 | |
Arnaud Ebalard | 2163e61 | 2013-11-05 21:46:02 +0100 | [diff] [blame] | 165 | pcie@5,0 { |
| 166 | device_type = "pci"; |
| 167 | assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; |
| 168 | reg = <0x2800 0 0 0 0>; |
| 169 | #address-cells = <3>; |
| 170 | #size-cells = <2>; |
| 171 | #interrupt-cells = <1>; |
| 172 | ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0 |
| 173 | 0x81000000 0 0 0x81000000 0x5 0 1 0>; |
| 174 | interrupt-map-mask = <0 0 0 0>; |
| 175 | interrupt-map = <0 0 0 0 &mpic 62>; |
| 176 | marvell,pcie-port = <1>; |
| 177 | marvell,pcie-lane = <0>; |
| 178 | clocks = <&gateclk 9>; |
| 179 | status = "disabled"; |
| 180 | }; |
| 181 | |
| 182 | pcie@6,0 { |
| 183 | device_type = "pci"; |
| 184 | assigned-addresses = <0x82000800 0 0x84000 0 0x2000>; |
| 185 | reg = <0x3000 0 0 0 0>; |
| 186 | #address-cells = <3>; |
| 187 | #size-cells = <2>; |
| 188 | #interrupt-cells = <1>; |
| 189 | ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0 |
| 190 | 0x81000000 0 0 0x81000000 0x6 0 1 0>; |
| 191 | interrupt-map-mask = <0 0 0 0>; |
| 192 | interrupt-map = <0 0 0 0 &mpic 63>; |
| 193 | marvell,pcie-port = <1>; |
| 194 | marvell,pcie-lane = <1>; |
| 195 | clocks = <&gateclk 10>; |
| 196 | status = "disabled"; |
| 197 | }; |
| 198 | |
| 199 | pcie@7,0 { |
| 200 | device_type = "pci"; |
| 201 | assigned-addresses = <0x82000800 0 0x88000 0 0x2000>; |
| 202 | reg = <0x3800 0 0 0 0>; |
| 203 | #address-cells = <3>; |
| 204 | #size-cells = <2>; |
| 205 | #interrupt-cells = <1>; |
| 206 | ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0 |
| 207 | 0x81000000 0 0 0x81000000 0x7 0 1 0>; |
| 208 | interrupt-map-mask = <0 0 0 0>; |
| 209 | interrupt-map = <0 0 0 0 &mpic 64>; |
| 210 | marvell,pcie-port = <1>; |
| 211 | marvell,pcie-lane = <2>; |
| 212 | clocks = <&gateclk 11>; |
| 213 | status = "disabled"; |
| 214 | }; |
| 215 | |
| 216 | pcie@8,0 { |
| 217 | device_type = "pci"; |
| 218 | assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>; |
| 219 | reg = <0x4000 0 0 0 0>; |
| 220 | #address-cells = <3>; |
| 221 | #size-cells = <2>; |
| 222 | #interrupt-cells = <1>; |
| 223 | ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0 |
| 224 | 0x81000000 0 0 0x81000000 0x8 0 1 0>; |
| 225 | interrupt-map-mask = <0 0 0 0>; |
| 226 | interrupt-map = <0 0 0 0 &mpic 65>; |
| 227 | marvell,pcie-port = <1>; |
| 228 | marvell,pcie-lane = <3>; |
| 229 | clocks = <&gateclk 12>; |
| 230 | status = "disabled"; |
| 231 | }; |
| 232 | |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 233 | pcie@9,0 { |
| 234 | device_type = "pci"; |
| 235 | assigned-addresses = <0x82000800 0 0x42000 0 0x2000>; |
| 236 | reg = <0x4800 0 0 0 0>; |
| 237 | #address-cells = <3>; |
| 238 | #size-cells = <2>; |
| 239 | #interrupt-cells = <1>; |
| 240 | ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0 |
| 241 | 0x81000000 0 0 0x81000000 0x9 0 1 0>; |
| 242 | interrupt-map-mask = <0 0 0 0>; |
| 243 | interrupt-map = <0 0 0 0 &mpic 99>; |
| 244 | marvell,pcie-port = <2>; |
| 245 | marvell,pcie-lane = <0>; |
| 246 | clocks = <&gateclk 26>; |
| 247 | status = "disabled"; |
| 248 | }; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 249 | }; |
| 250 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 251 | internal-regs { |
| 252 | pinctrl { |
| 253 | compatible = "marvell,mv78260-pinctrl"; |
| 254 | reg = <0x18000 0x38>; |
Thomas Petazzoni | 6d36e8e | 2012-12-21 15:49:06 +0100 | [diff] [blame] | 255 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 256 | sdio_pins: sdio-pins { |
| 257 | marvell,pins = "mpp30", "mpp31", "mpp32", |
| 258 | "mpp33", "mpp34", "mpp35"; |
| 259 | marvell,function = "sd0"; |
| 260 | }; |
Thomas Petazzoni | 6d36e8e | 2012-12-21 15:49:06 +0100 | [diff] [blame] | 261 | }; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 262 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 263 | gpio0: gpio@18100 { |
| 264 | compatible = "marvell,orion-gpio"; |
| 265 | reg = <0x18100 0x40>; |
| 266 | ngpios = <32>; |
| 267 | gpio-controller; |
| 268 | #gpio-cells = <2>; |
| 269 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 270 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 271 | interrupts = <82>, <83>, <84>, <85>; |
| 272 | }; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 273 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 274 | gpio1: gpio@18140 { |
| 275 | compatible = "marvell,orion-gpio"; |
| 276 | reg = <0x18140 0x40>; |
| 277 | ngpios = <32>; |
| 278 | gpio-controller; |
| 279 | #gpio-cells = <2>; |
| 280 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 281 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 282 | interrupts = <87>, <88>, <89>, <90>; |
| 283 | }; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 284 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 285 | gpio2: gpio@18180 { |
| 286 | compatible = "marvell,orion-gpio"; |
| 287 | reg = <0x18180 0x40>; |
| 288 | ngpios = <3>; |
| 289 | gpio-controller; |
| 290 | #gpio-cells = <2>; |
| 291 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 292 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 293 | interrupts = <91>; |
| 294 | }; |
Thomas Petazzoni | 7791651 | 2013-01-06 11:10:41 +0100 | [diff] [blame] | 295 | |
Willy Tarreau | 14cfa4b | 2014-01-12 13:09:24 +0100 | [diff] [blame] | 296 | eth3: ethernet@34000 { |
Thomas Petazzoni | 7791651 | 2013-01-06 11:10:41 +0100 | [diff] [blame] | 297 | compatible = "marvell,armada-370-neta"; |
Ezequiel Garcia | cdd8e49 | 2013-06-22 13:52:27 -0300 | [diff] [blame] | 298 | reg = <0x34000 0x4000>; |
Thomas Petazzoni | 7791651 | 2013-01-06 11:10:41 +0100 | [diff] [blame] | 299 | interrupts = <14>; |
| 300 | clocks = <&gateclk 1>; |
| 301 | status = "disabled"; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 302 | }; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 303 | }; |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 304 | }; |
| 305 | }; |