Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Include file for Marvell Armada XP family SoC |
| 4 | * |
| 5 | * Copyright (C) 2012 Marvell |
| 6 | * |
| 7 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 8 | * |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 9 | * Contains definitions specific to the Armada XP MV78230 SoC that are not |
| 10 | * common to all Armada XP SoCs. |
| 11 | */ |
| 12 | |
| 13 | #include "armada-xp.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "Marvell Armada XP MV78230 SoC"; |
| 17 | compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 18 | |
| 19 | aliases { |
| 20 | gpio0 = &gpio0; |
| 21 | gpio1 = &gpio1; |
| 22 | }; |
| 23 | |
| 24 | cpus { |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <0>; |
| 27 | enable-method = "marvell,armada-xp-smp"; |
| 28 | |
| 29 | cpu@0 { |
| 30 | device_type = "cpu"; |
| 31 | compatible = "marvell,sheeva-v7"; |
| 32 | reg = <0>; |
| 33 | clocks = <&cpuclk 0>; |
| 34 | clock-latency = <1000000>; |
| 35 | }; |
| 36 | |
| 37 | cpu@1 { |
| 38 | device_type = "cpu"; |
| 39 | compatible = "marvell,sheeva-v7"; |
| 40 | reg = <1>; |
| 41 | clocks = <&cpuclk 1>; |
| 42 | clock-latency = <1000000>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | soc { |
| 47 | /* |
| 48 | * MV78230 has 2 PCIe units Gen2.0: One unit can be |
| 49 | * configured as x4 or quad x1 lanes. One unit is |
| 50 | * x1 only. |
| 51 | */ |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 52 | pciec: pcie@82000000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 53 | compatible = "marvell,armada-xp-pcie"; |
| 54 | status = "disabled"; |
| 55 | device_type = "pci"; |
| 56 | |
| 57 | #address-cells = <3>; |
| 58 | #size-cells = <2>; |
| 59 | |
| 60 | msi-parent = <&mpic>; |
| 61 | bus-range = <0x00 0xff>; |
| 62 | |
| 63 | ranges = |
| 64 | <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */ |
| 65 | 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */ |
| 66 | 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */ |
| 67 | 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */ |
| 68 | 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */ |
| 69 | 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ |
| 70 | 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ |
| 71 | 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */ |
| 72 | 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */ |
| 73 | 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */ |
| 74 | 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */ |
| 75 | 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */ |
| 76 | 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */ |
| 77 | 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ |
| 78 | 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>; |
| 79 | |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 80 | pcie1: pcie@1,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 81 | device_type = "pci"; |
| 82 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 83 | reg = <0x0800 0 0 0 0>; |
| 84 | #address-cells = <3>; |
| 85 | #size-cells = <2>; |
| 86 | #interrupt-cells = <1>; |
| 87 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 88 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 89 | bus-range = <0x00 0xff>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 90 | interrupt-map-mask = <0 0 0 0>; |
| 91 | interrupt-map = <0 0 0 0 &mpic 58>; |
| 92 | marvell,pcie-port = <0>; |
| 93 | marvell,pcie-lane = <0>; |
| 94 | clocks = <&gateclk 5>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 95 | resets = <&systemc 0 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 96 | status = "disabled"; |
| 97 | }; |
| 98 | |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 99 | pcie2: pcie@2,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 100 | device_type = "pci"; |
| 101 | assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; |
| 102 | reg = <0x1000 0 0 0 0>; |
| 103 | #address-cells = <3>; |
| 104 | #size-cells = <2>; |
| 105 | #interrupt-cells = <1>; |
| 106 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 107 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 108 | bus-range = <0x00 0xff>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 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>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 114 | resets = <&systemc 0 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 115 | status = "disabled"; |
| 116 | }; |
| 117 | |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 118 | pcie3: pcie@3,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 119 | device_type = "pci"; |
| 120 | assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; |
| 121 | reg = <0x1800 0 0 0 0>; |
| 122 | #address-cells = <3>; |
| 123 | #size-cells = <2>; |
| 124 | #interrupt-cells = <1>; |
| 125 | ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 |
| 126 | 0x81000000 0 0 0x81000000 0x3 0 1 0>; |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 127 | bus-range = <0x00 0xff>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 128 | interrupt-map-mask = <0 0 0 0>; |
| 129 | interrupt-map = <0 0 0 0 &mpic 60>; |
| 130 | marvell,pcie-port = <0>; |
| 131 | marvell,pcie-lane = <2>; |
| 132 | clocks = <&gateclk 7>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 133 | resets = <&systemc 0 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 134 | status = "disabled"; |
| 135 | }; |
| 136 | |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 137 | pcie4: pcie@4,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 138 | device_type = "pci"; |
| 139 | assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>; |
| 140 | reg = <0x2000 0 0 0 0>; |
| 141 | #address-cells = <3>; |
| 142 | #size-cells = <2>; |
| 143 | #interrupt-cells = <1>; |
| 144 | ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 |
| 145 | 0x81000000 0 0 0x81000000 0x4 0 1 0>; |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 146 | bus-range = <0x00 0xff>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 147 | interrupt-map-mask = <0 0 0 0>; |
| 148 | interrupt-map = <0 0 0 0 &mpic 61>; |
| 149 | marvell,pcie-port = <0>; |
| 150 | marvell,pcie-lane = <3>; |
| 151 | clocks = <&gateclk 8>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 152 | resets = <&systemc 0 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 153 | status = "disabled"; |
| 154 | }; |
| 155 | |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 156 | pcie5: pcie@5,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 157 | device_type = "pci"; |
| 158 | assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; |
| 159 | reg = <0x2800 0 0 0 0>; |
| 160 | #address-cells = <3>; |
| 161 | #size-cells = <2>; |
| 162 | #interrupt-cells = <1>; |
| 163 | ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0 |
| 164 | 0x81000000 0 0 0x81000000 0x5 0 1 0>; |
Stefan Roese | a16c34f | 2019-01-25 11:52:44 +0100 | [diff] [blame] | 165 | bus-range = <0x00 0xff>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 166 | interrupt-map-mask = <0 0 0 0>; |
| 167 | interrupt-map = <0 0 0 0 &mpic 62>; |
| 168 | marvell,pcie-port = <1>; |
| 169 | marvell,pcie-lane = <0>; |
| 170 | clocks = <&gateclk 9>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 171 | resets = <&systemc 0 1>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 172 | status = "disabled"; |
| 173 | }; |
| 174 | }; |
| 175 | |
| 176 | internal-regs { |
| 177 | gpio0: gpio@18100 { |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 178 | compatible = "marvell,armada-370-gpio", |
| 179 | "marvell,orion-gpio"; |
| 180 | reg = <0x18100 0x40>, <0x181c0 0x08>; |
| 181 | reg-names = "gpio", "pwm"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 182 | ngpios = <32>; |
| 183 | gpio-controller; |
| 184 | #gpio-cells = <2>; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 185 | #pwm-cells = <2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 186 | interrupt-controller; |
| 187 | #interrupt-cells = <2>; |
| 188 | interrupts = <82>, <83>, <84>, <85>; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 189 | clocks = <&coreclk 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | gpio1: gpio@18140 { |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 193 | compatible = "marvell,armada-370-gpio", |
| 194 | "marvell,orion-gpio"; |
| 195 | reg = <0x18140 0x40>, <0x181c8 0x08>; |
| 196 | reg-names = "gpio", "pwm"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 197 | ngpios = <17>; |
| 198 | gpio-controller; |
| 199 | #gpio-cells = <2>; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 200 | #pwm-cells = <2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 201 | interrupt-controller; |
| 202 | #interrupt-cells = <2>; |
| 203 | interrupts = <87>, <88>, <89>; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 204 | clocks = <&coreclk 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 205 | }; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | &pinctrl { |
| 211 | compatible = "marvell,mv78230-pinctrl"; |
| 212 | }; |