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 MV78230 SoC that are not |
| 13 | * common to all Armada XP SoCs. |
| 14 | */ |
| 15 | |
Jason Cooper | f72b720 | 2013-08-07 20:04:21 +0000 | [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 MV78230 SoC"; |
| 20 | compatible = "marvell,armadaxp-mv78230", "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 | }; |
| 26 | |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 27 | cpus { |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
Thomas Petazzoni | 2315785 | 2014-04-14 15:54:00 +0200 | [diff] [blame] | 30 | enable-method = "marvell,armada-xp-smp"; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 31 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 32 | cpu@0 { |
| 33 | device_type = "cpu"; |
| 34 | compatible = "marvell,sheeva-v7"; |
| 35 | reg = <0>; |
| 36 | clocks = <&cpuclk 0>; |
Thomas Petazzoni | 3843607 | 2014-07-09 17:45:12 +0200 | [diff] [blame] | 37 | clock-latency = <1000000>; |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 38 | }; |
Thomas Petazzoni | 44cfae9 | 2013-01-06 11:10:40 +0100 | [diff] [blame] | 39 | |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 40 | cpu@1 { |
| 41 | device_type = "cpu"; |
| 42 | compatible = "marvell,sheeva-v7"; |
| 43 | reg = <1>; |
| 44 | clocks = <&cpuclk 1>; |
Thomas Petazzoni | 3843607 | 2014-07-09 17:45:12 +0200 | [diff] [blame] | 45 | clock-latency = <1000000>; |
Thomas Petazzoni | 1b2529d | 2013-04-12 16:29:06 +0200 | [diff] [blame] | 46 | }; |
Andrew Lunn | 41be8dc | 2013-01-06 11:10:42 +0100 | [diff] [blame] | 47 | }; |
Gregory CLEMENT | 9d20278 | 2012-11-17 15:22:24 +0100 | [diff] [blame] | 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 | * MV78230 has 2 PCIe units Gen2.0: One unit can be |
| 52 | * configured as x4 or quad x1 lanes. One unit is |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 53 | * x1 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 */ |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 68 | 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */ |
| 69 | 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */ |
| 70 | 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] | 71 | 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] | 72 | 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ |
| 73 | 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ |
| 74 | 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */ |
| 75 | 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */ |
| 76 | 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */ |
| 77 | 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */ |
| 78 | 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */ |
| 79 | 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] | 80 | 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ |
| 81 | 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] | 82 | |
| 83 | pcie@1,0 { |
| 84 | device_type = "pci"; |
| 85 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 86 | reg = <0x0800 0 0 0 0>; |
| 87 | #address-cells = <3>; |
| 88 | #size-cells = <2>; |
| 89 | #interrupt-cells = <1>; |
| 90 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 91 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
| 92 | interrupt-map-mask = <0 0 0 0>; |
| 93 | interrupt-map = <0 0 0 0 &mpic 58>; |
| 94 | marvell,pcie-port = <0>; |
| 95 | marvell,pcie-lane = <0>; |
| 96 | clocks = <&gateclk 5>; |
| 97 | status = "disabled"; |
| 98 | }; |
| 99 | |
| 100 | pcie@2,0 { |
| 101 | device_type = "pci"; |
| 102 | assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; |
| 103 | reg = <0x1000 0 0 0 0>; |
| 104 | #address-cells = <3>; |
| 105 | #size-cells = <2>; |
| 106 | #interrupt-cells = <1>; |
| 107 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 108 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
| 109 | interrupt-map-mask = <0 0 0 0>; |
| 110 | interrupt-map = <0 0 0 0 &mpic 59>; |
| 111 | marvell,pcie-port = <0>; |
| 112 | marvell,pcie-lane = <1>; |
| 113 | clocks = <&gateclk 6>; |
| 114 | status = "disabled"; |
| 115 | }; |
| 116 | |
| 117 | pcie@3,0 { |
| 118 | device_type = "pci"; |
| 119 | assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; |
| 120 | reg = <0x1800 0 0 0 0>; |
| 121 | #address-cells = <3>; |
| 122 | #size-cells = <2>; |
| 123 | #interrupt-cells = <1>; |
| 124 | ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 |
| 125 | 0x81000000 0 0 0x81000000 0x3 0 1 0>; |
| 126 | interrupt-map-mask = <0 0 0 0>; |
| 127 | interrupt-map = <0 0 0 0 &mpic 60>; |
| 128 | marvell,pcie-port = <0>; |
| 129 | marvell,pcie-lane = <2>; |
| 130 | clocks = <&gateclk 7>; |
| 131 | status = "disabled"; |
| 132 | }; |
| 133 | |
| 134 | pcie@4,0 { |
| 135 | device_type = "pci"; |
| 136 | assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>; |
| 137 | reg = <0x2000 0 0 0 0>; |
| 138 | #address-cells = <3>; |
| 139 | #size-cells = <2>; |
| 140 | #interrupt-cells = <1>; |
| 141 | ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 |
| 142 | 0x81000000 0 0 0x81000000 0x4 0 1 0>; |
| 143 | interrupt-map-mask = <0 0 0 0>; |
| 144 | interrupt-map = <0 0 0 0 &mpic 61>; |
| 145 | marvell,pcie-port = <0>; |
| 146 | marvell,pcie-lane = <3>; |
| 147 | clocks = <&gateclk 8>; |
| 148 | status = "disabled"; |
| 149 | }; |
| 150 | |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 151 | pcie@5,0 { |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 152 | device_type = "pci"; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 153 | assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; |
| 154 | reg = <0x2800 0 0 0 0>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 155 | #address-cells = <3>; |
| 156 | #size-cells = <2>; |
| 157 | #interrupt-cells = <1>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 158 | ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0 |
| 159 | 0x81000000 0 0 0x81000000 0x5 0 1 0>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 160 | interrupt-map-mask = <0 0 0 0>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 161 | interrupt-map = <0 0 0 0 &mpic 62>; |
| 162 | marvell,pcie-port = <1>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 163 | marvell,pcie-lane = <0>; |
Arnaud Ebalard | 12b69a5 | 2013-11-05 21:45:48 +0100 | [diff] [blame] | 164 | clocks = <&gateclk 9>; |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 165 | status = "disabled"; |
| 166 | }; |
| 167 | }; |
| 168 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 169 | internal-regs { |
| 170 | pinctrl { |
| 171 | compatible = "marvell,mv78230-pinctrl"; |
| 172 | reg = <0x18000 0x38>; |
Thomas Petazzoni | 6d36e8e | 2012-12-21 15:49:06 +0100 | [diff] [blame] | 173 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 174 | sdio_pins: sdio-pins { |
| 175 | marvell,pins = "mpp30", "mpp31", "mpp32", |
| 176 | "mpp33", "mpp34", "mpp35"; |
| 177 | marvell,function = "sd0"; |
| 178 | }; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 179 | }; |
| 180 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 181 | gpio0: gpio@18100 { |
| 182 | compatible = "marvell,orion-gpio"; |
| 183 | reg = <0x18100 0x40>; |
| 184 | ngpios = <32>; |
| 185 | gpio-controller; |
| 186 | #gpio-cells = <2>; |
| 187 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 188 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 189 | interrupts = <82>, <83>, <84>, <85>; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 190 | }; |
| 191 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 192 | gpio1: gpio@18140 { |
| 193 | compatible = "marvell,orion-gpio"; |
| 194 | reg = <0x18140 0x40>; |
| 195 | ngpios = <17>; |
| 196 | gpio-controller; |
| 197 | #gpio-cells = <2>; |
| 198 | interrupt-controller; |
Thomas Petazzoni | ca60985 | 2013-07-30 16:59:02 +0200 | [diff] [blame] | 199 | #interrupt-cells = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 200 | interrupts = <87>, <88>, <89>; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 201 | }; |
Thomas Petazzoni | 9d8f44f | 2013-04-09 23:06:34 +0200 | [diff] [blame] | 202 | }; |
Thomas Petazzoni | f3b42b7 | 2012-09-13 17:41:48 +0200 | [diff] [blame] | 203 | }; |
| 204 | }; |