Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Include file for Marvell Armada 370 family SoC |
| 3 | * |
| 4 | * Copyright (C) 2012 Marvell |
| 5 | * |
| 6 | * Lior Amsalem <alior@marvell.com> |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 9 | * |
| 10 | * This file is licensed under the terms of the GNU General Public |
| 11 | * License version 2. This program is licensed "as is" without any |
| 12 | * warranty of any kind, whether express or implied. |
| 13 | * |
| 14 | * Contains definitions specific to the Armada 370 SoC that are not |
| 15 | * common to all Armada SoCs. |
| 16 | */ |
| 17 | |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 18 | #include "armada-370-xp.dtsi" |
Gregory CLEMENT | 7489836 | 2013-04-12 16:29:10 +0200 | [diff] [blame] | 19 | /include/ "skeleton.dtsi" |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 20 | |
| 21 | / { |
| 22 | model = "Marvell Armada 370 family SoC"; |
| 23 | compatible = "marvell,armada370", "marvell,armada-370-xp"; |
| 24 | |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 25 | aliases { |
| 26 | gpio0 = &gpio0; |
| 27 | gpio1 = &gpio1; |
| 28 | gpio2 = &gpio2; |
| 29 | }; |
| 30 | |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 31 | soc { |
Ezequiel Garcia | 5e12a61 | 2013-07-26 10:17:57 -0300 | [diff] [blame] | 32 | compatible = "marvell,armada370-mbus", "simple-bus"; |
| 33 | |
Ezequiel Garcia | 0cd3754 | 2013-07-26 10:17:58 -0300 | [diff] [blame] | 34 | bootrom { |
| 35 | compatible = "marvell,bootrom"; |
| 36 | reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>; |
| 37 | }; |
| 38 | |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 39 | pcie-controller { |
| 40 | compatible = "marvell,armada-370-pcie"; |
| 41 | status = "disabled"; |
| 42 | device_type = "pci"; |
| 43 | |
| 44 | #address-cells = <3>; |
| 45 | #size-cells = <2>; |
| 46 | |
Thomas Petazzoni | d4fa994 | 2013-08-09 22:27:15 +0200 | [diff] [blame] | 47 | msi-parent = <&mpic>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 48 | bus-range = <0x00 0xff>; |
| 49 | |
| 50 | ranges = |
| 51 | <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 |
| 52 | 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 |
| 53 | 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ |
| 54 | 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ |
| 55 | 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ |
| 56 | 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>; |
| 57 | |
| 58 | pcie@1,0 { |
| 59 | device_type = "pci"; |
| 60 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 61 | reg = <0x0800 0 0 0 0>; |
| 62 | #address-cells = <3>; |
| 63 | #size-cells = <2>; |
| 64 | #interrupt-cells = <1>; |
| 65 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 66 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
| 67 | interrupt-map-mask = <0 0 0 0>; |
| 68 | interrupt-map = <0 0 0 0 &mpic 58>; |
| 69 | marvell,pcie-port = <0>; |
| 70 | marvell,pcie-lane = <0>; |
| 71 | clocks = <&gateclk 5>; |
| 72 | status = "disabled"; |
| 73 | }; |
| 74 | |
| 75 | pcie@2,0 { |
| 76 | device_type = "pci"; |
| 77 | assigned-addresses = <0x82002800 0 0x80000 0 0x2000>; |
| 78 | reg = <0x1000 0 0 0 0>; |
| 79 | #address-cells = <3>; |
| 80 | #size-cells = <2>; |
| 81 | #interrupt-cells = <1>; |
| 82 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 83 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
| 84 | interrupt-map-mask = <0 0 0 0>; |
| 85 | interrupt-map = <0 0 0 0 &mpic 62>; |
| 86 | marvell,pcie-port = <1>; |
| 87 | marvell,pcie-lane = <0>; |
| 88 | clocks = <&gateclk 9>; |
| 89 | status = "disabled"; |
| 90 | }; |
| 91 | }; |
| 92 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 93 | internal-regs { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 94 | L2: l2-cache { |
| 95 | compatible = "marvell,aurora-outer-cache"; |
Gregory CLEMENT | 489e138 | 2013-05-20 16:13:27 +0200 | [diff] [blame] | 96 | reg = <0x08000 0x1000>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 97 | cache-id-part = <0x100>; |
Gregory CLEMENT | a9ce1af | 2014-10-06 11:37:56 +0200 | [diff] [blame^] | 98 | cache-unified; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 99 | wt-override; |
Thomas Petazzoni | fa1b21d | 2012-12-21 15:49:05 +0100 | [diff] [blame] | 100 | }; |
Ryan Press | 879d68a | 2013-03-26 16:32:31 -0700 | [diff] [blame] | 101 | |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 102 | i2c0: i2c@11000 { |
| 103 | reg = <0x11000 0x20>; |
| 104 | }; |
| 105 | |
| 106 | i2c1: i2c@11100 { |
| 107 | reg = <0x11100 0x20>; |
| 108 | }; |
| 109 | |
| 110 | system-controller@18200 { |
| 111 | compatible = "marvell,armada-370-xp-system-controller"; |
| 112 | reg = <0x18200 0x100>; |
Ryan Press | 879d68a | 2013-03-26 16:32:31 -0700 | [diff] [blame] | 113 | }; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 114 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 115 | pinctrl { |
| 116 | compatible = "marvell,mv88f6710-pinctrl"; |
| 117 | reg = <0x18000 0x38>; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 118 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 119 | sdio_pins1: sdio-pins1 { |
| 120 | marvell,pins = "mpp9", "mpp11", "mpp12", |
| 121 | "mpp13", "mpp14", "mpp15"; |
| 122 | marvell,function = "sd0"; |
| 123 | }; |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 124 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 125 | sdio_pins2: sdio-pins2 { |
| 126 | marvell,pins = "mpp47", "mpp48", "mpp49", |
| 127 | "mpp50", "mpp51", "mpp52"; |
| 128 | marvell,function = "sd0"; |
| 129 | }; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 130 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 131 | sdio_pins3: sdio-pins3 { |
| 132 | marvell,pins = "mpp48", "mpp49", "mpp50", |
| 133 | "mpp51", "mpp52", "mpp53"; |
| 134 | marvell,function = "sd0"; |
| 135 | }; |
Thomas Petazzoni | 7483983 | 2014-02-12 18:20:58 +0100 | [diff] [blame] | 136 | |
Thomas Petazzoni | 8d001f0 | 2014-02-12 18:20:59 +0100 | [diff] [blame] | 137 | i2c0_pins: i2c0-pins { |
| 138 | marvell,pins = "mpp2", "mpp3"; |
| 139 | marvell,function = "i2c0"; |
| 140 | }; |
| 141 | |
Thomas Petazzoni | 7483983 | 2014-02-12 18:20:58 +0100 | [diff] [blame] | 142 | i2s_pins1: i2s-pins1 { |
| 143 | marvell,pins = "mpp5", "mpp6", "mpp7", |
| 144 | "mpp8", "mpp9", "mpp10", |
| 145 | "mpp12", "mpp13"; |
| 146 | marvell,function = "audio"; |
| 147 | }; |
| 148 | |
| 149 | i2s_pins2: i2s-pins2 { |
| 150 | marvell,pins = "mpp49", "mpp47", "mpp50", |
| 151 | "mpp59", "mpp57", "mpp61", |
| 152 | "mpp62", "mpp60", "mpp58"; |
| 153 | marvell,function = "audio"; |
| 154 | }; |
Ezequiel Garcia | a43f99d | 2014-08-11 09:14:36 -0300 | [diff] [blame] | 155 | |
| 156 | mdio_pins: mdio-pins { |
| 157 | marvell,pins = "mpp17", "mpp18"; |
| 158 | marvell,function = "ge"; |
| 159 | }; |
| 160 | |
| 161 | ge0_rgmii_pins: ge0-rgmii-pins { |
| 162 | marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8", |
| 163 | "mpp9", "mpp10", "mpp11", "mpp12", |
| 164 | "mpp13", "mpp14", "mpp15", "mpp16"; |
| 165 | marvell,function = "ge0"; |
| 166 | }; |
| 167 | |
| 168 | ge1_rgmii_pins: ge1-rgmii-pins { |
| 169 | marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22", |
| 170 | "mpp23", "mpp24", "mpp25", "mpp26", |
| 171 | "mpp27", "mpp28", "mpp29", "mpp30"; |
| 172 | marvell,function = "ge1"; |
| 173 | }; |
Thomas Petazzoni | 0122eee | 2012-11-20 16:03:12 +0100 | [diff] [blame] | 174 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 175 | |
| 176 | gpio0: gpio@18100 { |
| 177 | compatible = "marvell,orion-gpio"; |
| 178 | reg = <0x18100 0x40>; |
| 179 | ngpios = <32>; |
| 180 | gpio-controller; |
| 181 | #gpio-cells = <2>; |
| 182 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 183 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 184 | interrupts = <82>, <83>, <84>, <85>; |
Thomas Petazzoni | 0122eee | 2012-11-20 16:03:12 +0100 | [diff] [blame] | 185 | }; |
Thomas Petazzoni | 0122eee | 2012-11-20 16:03:12 +0100 | [diff] [blame] | 186 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 187 | gpio1: gpio@18140 { |
| 188 | compatible = "marvell,orion-gpio"; |
| 189 | reg = <0x18140 0x40>; |
| 190 | ngpios = <32>; |
| 191 | gpio-controller; |
| 192 | #gpio-cells = <2>; |
| 193 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 194 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 195 | interrupts = <87>, <88>, <89>, <90>; |
Thomas Petazzoni | 0122eee | 2012-11-20 16:03:12 +0100 | [diff] [blame] | 196 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 197 | |
| 198 | gpio2: gpio@18180 { |
| 199 | compatible = "marvell,orion-gpio"; |
| 200 | reg = <0x18180 0x40>; |
| 201 | ngpios = <2>; |
| 202 | gpio-controller; |
| 203 | #gpio-cells = <2>; |
| 204 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 205 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 206 | interrupts = <91>; |
Thomas Petazzoni | 0122eee | 2012-11-20 16:03:12 +0100 | [diff] [blame] | 207 | }; |
Ezequiel Garcia | b2bb806 | 2013-01-23 12:26:30 -0300 | [diff] [blame] | 208 | |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 209 | gateclk: clock-gating-control@18220 { |
| 210 | compatible = "marvell,armada-370-gating-clock"; |
| 211 | reg = <0x18220 0x4>; |
| 212 | clocks = <&coreclk 0>; |
| 213 | #clock-cells = <1>; |
Ezequiel Garcia | 5d3b883 | 2013-08-13 11:43:15 -0300 | [diff] [blame] | 214 | }; |
| 215 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 216 | coreclk: mvebu-sar@18230 { |
| 217 | compatible = "marvell,armada-370-core-clock"; |
| 218 | reg = <0x18230 0x08>; |
| 219 | #clock-cells = <1>; |
| 220 | }; |
Ezequiel Garcia | b2bb806 | 2013-01-23 12:26:30 -0300 | [diff] [blame] | 221 | |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 222 | thermal@18300 { |
| 223 | compatible = "marvell,armada370-thermal"; |
| 224 | reg = <0x18300 0x4 |
| 225 | 0x18304 0x4>; |
| 226 | status = "okay"; |
| 227 | }; |
| 228 | |
Gregory CLEMENT | e86ed56 | 2014-09-02 10:15:18 +0200 | [diff] [blame] | 229 | sscg@18330 { |
| 230 | reg = <0x18330 0x4>; |
| 231 | }; |
| 232 | |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 233 | interrupt-controller@20000 { |
| 234 | reg = <0x20a00 0x1d0>, <0x21870 0x58>; |
| 235 | }; |
| 236 | |
| 237 | timer@20300 { |
| 238 | compatible = "marvell,armada-370-timer"; |
| 239 | clocks = <&coreclk 2>; |
| 240 | }; |
| 241 | |
Ezequiel Garcia | 05afeeb | 2014-02-10 20:00:32 -0300 | [diff] [blame] | 242 | watchdog@20300 { |
| 243 | compatible = "marvell,armada-370-wdt"; |
| 244 | clocks = <&coreclk 2>; |
| 245 | }; |
| 246 | |
Gregory CLEMENT | b6249d4 | 2014-04-14 15:50:32 +0200 | [diff] [blame] | 247 | cpurst@20800 { |
| 248 | compatible = "marvell,armada-370-cpu-reset"; |
| 249 | reg = <0x20800 0x8>; |
| 250 | }; |
| 251 | |
Thomas Petazzoni | 7483983 | 2014-02-12 18:20:58 +0100 | [diff] [blame] | 252 | audio_controller: audio-controller@30000 { |
| 253 | compatible = "marvell,armada370-audio"; |
| 254 | reg = <0x30000 0x4000>; |
| 255 | interrupts = <93>; |
| 256 | clocks = <&gateclk 0>; |
| 257 | clock-names = "internal"; |
| 258 | status = "disabled"; |
| 259 | }; |
| 260 | |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 261 | usb@50000 { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 262 | clocks = <&coreclk 0>; |
Jason Cooper | a095b1c | 2013-12-12 13:59:17 +0000 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | usb@51000 { |
| 266 | clocks = <&coreclk 0>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 267 | }; |
Ezequiel Garcia | b2bb806 | 2013-01-23 12:26:30 -0300 | [diff] [blame] | 268 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 269 | xor@60800 { |
| 270 | compatible = "marvell,orion-xor"; |
| 271 | reg = <0x60800 0x100 |
| 272 | 0x60A00 0x100>; |
| 273 | status = "okay"; |
Thomas Petazzoni | a09a0b7 | 2013-04-09 23:06:33 +0200 | [diff] [blame] | 274 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 275 | xor00 { |
| 276 | interrupts = <51>; |
| 277 | dmacap,memcpy; |
| 278 | dmacap,xor; |
| 279 | }; |
| 280 | xor01 { |
| 281 | interrupts = <52>; |
| 282 | dmacap,memcpy; |
| 283 | dmacap,xor; |
| 284 | dmacap,memset; |
| 285 | }; |
| 286 | }; |
Thomas Petazzoni | a09a0b7 | 2013-04-09 23:06:33 +0200 | [diff] [blame] | 287 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 288 | xor@60900 { |
| 289 | compatible = "marvell,orion-xor"; |
| 290 | reg = <0x60900 0x100 |
| 291 | 0x60b00 0x100>; |
| 292 | status = "okay"; |
Thomas Petazzoni | a09a0b7 | 2013-04-09 23:06:33 +0200 | [diff] [blame] | 293 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 294 | xor10 { |
| 295 | interrupts = <94>; |
| 296 | dmacap,memcpy; |
| 297 | dmacap,xor; |
| 298 | }; |
| 299 | xor11 { |
| 300 | interrupts = <95>; |
| 301 | dmacap,memcpy; |
| 302 | dmacap,xor; |
| 303 | dmacap,memset; |
| 304 | }; |
| 305 | }; |
Thomas Petazzoni | a09a0b7 | 2013-04-09 23:06:33 +0200 | [diff] [blame] | 306 | }; |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 307 | }; |
| 308 | }; |