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 | * |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 8 | * This file is dual-licensed: you can use it either under the terms |
| 9 | * of the GPL or the X11 license, at your option. Note that this dual |
| 10 | * licensing only applies to this file, and not this project as a |
| 11 | * whole. |
| 12 | * |
| 13 | * a) This file is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License as |
| 15 | * published by the Free Software Foundation; either version 2 of the |
| 16 | * License, or (at your option) any later version. |
| 17 | * |
Alexandre Belloni | 24f0b6f | 2016-12-27 22:36:42 +0100 | [diff] [blame] | 18 | * This file is distributed in the hope that it will be useful, |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
Alexandre Belloni | 24f0b6f | 2016-12-27 22:36:42 +0100 | [diff] [blame] | 23 | * Or, alternatively, |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 24 | * |
| 25 | * b) Permission is hereby granted, free of charge, to any person |
| 26 | * obtaining a copy of this software and associated documentation |
| 27 | * files (the "Software"), to deal in the Software without |
Alexandre Belloni | 24f0b6f | 2016-12-27 22:36:42 +0100 | [diff] [blame] | 28 | * restriction, including without limitation the rights to use, |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 29 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 30 | * sell copies of the Software, and to permit persons to whom the |
| 31 | * Software is furnished to do so, subject to the following |
| 32 | * conditions: |
| 33 | * |
| 34 | * The above copyright notice and this permission notice shall be |
| 35 | * included in all copies or substantial portions of the Software. |
| 36 | * |
Alexandre Belloni | 24f0b6f | 2016-12-27 22:36:42 +0100 | [diff] [blame] | 37 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 38 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 39 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 40 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
Alexandre Belloni | 24f0b6f | 2016-12-27 22:36:42 +0100 | [diff] [blame] | 41 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
Gregory CLEMENT | 6cb51fa | 2015-01-26 15:16:06 +0100 | [diff] [blame] | 42 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 43 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 44 | * OTHER DEALINGS IN THE SOFTWARE. |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 45 | * |
| 46 | * Contains definitions specific to the Armada XP MV78230 SoC that are not |
| 47 | * common to all Armada XP SoCs. |
| 48 | */ |
| 49 | |
Jason Cooper | f72b720 | 2013-08-07 20:04:21 +0000 | [diff] [blame] | 50 | #include "armada-xp.dtsi" |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 51 | |
| 52 | / { |
| 53 | model = "Marvell Armada XP MV78230 SoC"; |
| 54 | compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 55 | |
Thomas Petazzoni | 397d59f | 2012-09-19 22:53:01 +0200 | [diff] [blame] | 56 | aliases { |
| 57 | gpio0 = &gpio0; |
| 58 | gpio1 = &gpio1; |
| 59 | }; |
| 60 | |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 61 | cpus { |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 62 | #address-cells = <1>; |
| 63 | #size-cells = <0>; |
Thomas Petazzoni | 2315785 | 2014-04-14 15:54:00 +0200 | [diff] [blame] | 64 | enable-method = "marvell,armada-xp-smp"; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 65 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 66 | cpu@0 { |
| 67 | device_type = "cpu"; |
| 68 | compatible = "marvell,sheeva-v7"; |
| 69 | reg = <0>; |
| 70 | clocks = <&cpuclk 0>; |
Thomas Petazzoni | 3843607 | 2014-07-09 17:45:12 +0200 | [diff] [blame] | 71 | clock-latency = <1000000>; |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 72 | }; |
Thomas Petazzoni | 44cfae9 | 2013-01-06 11:10:40 +0100 | [diff] [blame] | 73 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 74 | cpu@1 { |
| 75 | device_type = "cpu"; |
| 76 | compatible = "marvell,sheeva-v7"; |
| 77 | reg = <1>; |
| 78 | clocks = <&cpuclk 1>; |
Thomas Petazzoni | 3843607 | 2014-07-09 17:45:12 +0200 | [diff] [blame] | 79 | clock-latency = <1000000>; |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 80 | }; |
Andrew Lunn | 41be8dc | 2013-01-06 11:10:42 +0100 | [diff] [blame] | 81 | }; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 82 | |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 83 | soc { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 84 | /* |
| 85 | * MV78230 has 2 PCIe units Gen2.0: One unit can be |
| 86 | * configured as x4 or quad x1 lanes. One unit is |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 87 | * x1 only. |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 88 | */ |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 89 | pciec: pcie@82000000 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 90 | compatible = "marvell,armada-xp-pcie"; |
| 91 | status = "disabled"; |
| 92 | device_type = "pci"; |
| 93 | |
| 94 | #address-cells = <3>; |
| 95 | #size-cells = <2>; |
| 96 | |
Thomas Petazzoni | d4fa994 | 2013-08-09 22:27:15 +0200 | [diff] [blame] | 97 | msi-parent = <&mpic>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 98 | bus-range = <0x00 0xff>; |
| 99 | |
| 100 | ranges = |
| 101 | <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */ |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 102 | 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */ |
| 103 | 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */ |
| 104 | 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */ |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 105 | 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */ |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 106 | 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ |
| 107 | 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ |
| 108 | 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */ |
| 109 | 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */ |
| 110 | 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */ |
| 111 | 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */ |
| 112 | 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */ |
| 113 | 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */ |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 114 | 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ |
| 115 | 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 116 | |
Gregory CLEMENT | 11f7135 | 2016-11-04 16:27:03 +0100 | [diff] [blame] | 117 | pcie1: pcie@1,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 118 | device_type = "pci"; |
| 119 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 120 | reg = <0x0800 0 0 0 0>; |
| 121 | #address-cells = <3>; |
| 122 | #size-cells = <2>; |
| 123 | #interrupt-cells = <1>; |
| 124 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 125 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 126 | bus-range = <0x00 0xff>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 127 | interrupt-map-mask = <0 0 0 0>; |
| 128 | interrupt-map = <0 0 0 0 &mpic 58>; |
| 129 | marvell,pcie-port = <0>; |
| 130 | marvell,pcie-lane = <0>; |
| 131 | clocks = <&gateclk 5>; |
| 132 | status = "disabled"; |
| 133 | }; |
| 134 | |
Gregory CLEMENT | 11f7135 | 2016-11-04 16:27:03 +0100 | [diff] [blame] | 135 | pcie2: pcie@2,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 136 | device_type = "pci"; |
| 137 | assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; |
| 138 | reg = <0x1000 0 0 0 0>; |
| 139 | #address-cells = <3>; |
| 140 | #size-cells = <2>; |
| 141 | #interrupt-cells = <1>; |
| 142 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 143 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 144 | bus-range = <0x00 0xff>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 145 | interrupt-map-mask = <0 0 0 0>; |
| 146 | interrupt-map = <0 0 0 0 &mpic 59>; |
| 147 | marvell,pcie-port = <0>; |
| 148 | marvell,pcie-lane = <1>; |
| 149 | clocks = <&gateclk 6>; |
| 150 | status = "disabled"; |
| 151 | }; |
| 152 | |
Gregory CLEMENT | 11f7135 | 2016-11-04 16:27:03 +0100 | [diff] [blame] | 153 | pcie3: pcie@3,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 154 | device_type = "pci"; |
| 155 | assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; |
| 156 | reg = <0x1800 0 0 0 0>; |
| 157 | #address-cells = <3>; |
| 158 | #size-cells = <2>; |
| 159 | #interrupt-cells = <1>; |
| 160 | ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 |
| 161 | 0x81000000 0 0 0x81000000 0x3 0 1 0>; |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 162 | bus-range = <0x00 0xff>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 163 | interrupt-map-mask = <0 0 0 0>; |
| 164 | interrupt-map = <0 0 0 0 &mpic 60>; |
| 165 | marvell,pcie-port = <0>; |
| 166 | marvell,pcie-lane = <2>; |
| 167 | clocks = <&gateclk 7>; |
| 168 | status = "disabled"; |
| 169 | }; |
| 170 | |
Gregory CLEMENT | 11f7135 | 2016-11-04 16:27:03 +0100 | [diff] [blame] | 171 | pcie4: pcie@4,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 172 | device_type = "pci"; |
| 173 | assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>; |
| 174 | reg = <0x2000 0 0 0 0>; |
| 175 | #address-cells = <3>; |
| 176 | #size-cells = <2>; |
| 177 | #interrupt-cells = <1>; |
| 178 | ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 |
| 179 | 0x81000000 0 0 0x81000000 0x4 0 1 0>; |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 180 | bus-range = <0x00 0xff>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 181 | interrupt-map-mask = <0 0 0 0>; |
| 182 | interrupt-map = <0 0 0 0 &mpic 61>; |
| 183 | marvell,pcie-port = <0>; |
| 184 | marvell,pcie-lane = <3>; |
| 185 | clocks = <&gateclk 8>; |
| 186 | status = "disabled"; |
| 187 | }; |
| 188 | |
Gregory CLEMENT | 11f7135 | 2016-11-04 16:27:03 +0100 | [diff] [blame] | 189 | pcie5: pcie@5,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 190 | device_type = "pci"; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 191 | assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; |
| 192 | reg = <0x2800 0 0 0 0>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 193 | #address-cells = <3>; |
| 194 | #size-cells = <2>; |
| 195 | #interrupt-cells = <1>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 196 | ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0 |
| 197 | 0x81000000 0 0 0x81000000 0x5 0 1 0>; |
Rob Herring | 28fbb9c | 2017-07-26 16:09:37 -0500 | [diff] [blame] | 198 | bus-range = <0x00 0xff>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 199 | interrupt-map-mask = <0 0 0 0>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 200 | interrupt-map = <0 0 0 0 &mpic 62>; |
| 201 | marvell,pcie-port = <1>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 202 | marvell,pcie-lane = <0>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 203 | clocks = <&gateclk 9>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 204 | status = "disabled"; |
| 205 | }; |
| 206 | }; |
| 207 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 208 | internal-regs { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 209 | gpio0: gpio@18100 { |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 210 | compatible = "marvell,armada-370-gpio", |
| 211 | "marvell,orion-gpio"; |
| 212 | reg = <0x18100 0x40>, <0x181c0 0x08>; |
| 213 | reg-names = "gpio", "pwm"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 214 | ngpios = <32>; |
| 215 | gpio-controller; |
| 216 | #gpio-cells = <2>; |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 217 | #pwm-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 218 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 219 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 220 | interrupts = <82>, <83>, <84>, <85>; |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 221 | clocks = <&coreclk 0>; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 222 | }; |
| 223 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 224 | gpio1: gpio@18140 { |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 225 | compatible = "marvell,armada-370-gpio", |
| 226 | "marvell,orion-gpio"; |
| 227 | reg = <0x18140 0x40>, <0x181c8 0x08>; |
| 228 | reg-names = "gpio", "pwm"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 229 | ngpios = <17>; |
| 230 | gpio-controller; |
| 231 | #gpio-cells = <2>; |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 232 | #pwm-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 233 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 234 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 235 | interrupts = <87>, <88>, <89>; |
Andrew Lunn | 0c8c9ff | 2017-06-01 22:09:26 +0200 | [diff] [blame] | 236 | clocks = <&coreclk 0>; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 237 | }; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 238 | }; |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 239 | }; |
| 240 | }; |
Sebastian Hesselbarth | 01c4342 | 2014-09-19 21:20:09 +0200 | [diff] [blame] | 241 | |
| 242 | &pinctrl { |
| 243 | compatible = "marvell,mv78230-pinctrl"; |
| 244 | }; |