Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +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 385 SoC. |
| 4 | * |
| 5 | * Copyright (C) 2014 Marvell |
| 6 | * |
| 7 | * Lior Amsalem <alior@marvell.com> |
| 8 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 9 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include "armada-38x.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "Marvell Armada 385 family SoC"; |
| 16 | compatible = "marvell,armada385", "marvell,armada380"; |
| 17 | |
| 18 | cpus { |
| 19 | #address-cells = <1>; |
| 20 | #size-cells = <0>; |
| 21 | enable-method = "marvell,armada-380-smp"; |
| 22 | |
| 23 | cpu@0 { |
| 24 | device_type = "cpu"; |
| 25 | compatible = "arm,cortex-a9"; |
| 26 | reg = <0>; |
| 27 | }; |
| 28 | cpu@1 { |
| 29 | device_type = "cpu"; |
| 30 | compatible = "arm,cortex-a9"; |
| 31 | reg = <1>; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | soc { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 36 | pciec: pcie { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 37 | compatible = "marvell,armada-370-pcie"; |
| 38 | status = "disabled"; |
| 39 | device_type = "pci"; |
| 40 | |
| 41 | #address-cells = <3>; |
| 42 | #size-cells = <2>; |
| 43 | |
| 44 | msi-parent = <&mpic>; |
| 45 | bus-range = <0x00 0xff>; |
| 46 | |
| 47 | ranges = |
| 48 | <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 |
| 49 | 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 |
| 50 | 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 |
| 51 | 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 |
| 52 | 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */ |
| 53 | 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */ |
| 54 | 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */ |
| 55 | 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */ |
| 56 | 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */ |
| 57 | 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */ |
| 58 | 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */ |
| 59 | 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>; |
| 60 | |
| 61 | /* |
| 62 | * This port can be either x4 or x1. When |
| 63 | * configured in x4 by the bootloader, then |
| 64 | * pcie@4,0 is not available. |
| 65 | */ |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 66 | pcie1: pcie@1,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 67 | device_type = "pci"; |
| 68 | assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; |
| 69 | reg = <0x0800 0 0 0 0>; |
| 70 | #address-cells = <3>; |
| 71 | #size-cells = <2>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 72 | interrupt-names = "intx"; |
| 73 | interrupts-extended = <&gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 74 | #interrupt-cells = <1>; |
| 75 | ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 |
| 76 | 0x81000000 0 0 0x81000000 0x1 0 1 0>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 77 | bus-range = <0x00 0xff>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 78 | interrupt-map-mask = <0 0 0 7>; |
| 79 | interrupt-map = <0 0 0 1 &pcie1_intc 0>, |
| 80 | <0 0 0 2 &pcie1_intc 1>, |
| 81 | <0 0 0 3 &pcie1_intc 2>, |
| 82 | <0 0 0 4 &pcie1_intc 3>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 83 | marvell,pcie-port = <0>; |
| 84 | marvell,pcie-lane = <0>; |
| 85 | clocks = <&gateclk 8>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 86 | resets = <&systemc 0 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 87 | status = "disabled"; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 88 | pcie1_intc: interrupt-controller { |
| 89 | interrupt-controller; |
| 90 | #interrupt-cells = <1>; |
| 91 | }; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | /* x1 port */ |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 95 | pcie2: pcie@2,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 96 | device_type = "pci"; |
| 97 | assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; |
| 98 | reg = <0x1000 0 0 0 0>; |
| 99 | #address-cells = <3>; |
| 100 | #size-cells = <2>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 101 | interrupt-names = "intx"; |
| 102 | interrupts-extended = <&gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 103 | #interrupt-cells = <1>; |
| 104 | ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 |
| 105 | 0x81000000 0 0 0x81000000 0x2 0 1 0>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 106 | bus-range = <0x00 0xff>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 107 | interrupt-map-mask = <0 0 0 7>; |
| 108 | interrupt-map = <0 0 0 1 &pcie2_intc 0>, |
| 109 | <0 0 0 2 &pcie2_intc 1>, |
| 110 | <0 0 0 3 &pcie2_intc 2>, |
| 111 | <0 0 0 4 &pcie2_intc 3>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 112 | marvell,pcie-port = <1>; |
| 113 | marvell,pcie-lane = <0>; |
| 114 | clocks = <&gateclk 5>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 115 | resets = <&systemc 0 1>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 116 | status = "disabled"; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 117 | pcie2_intc: interrupt-controller { |
| 118 | interrupt-controller; |
| 119 | #interrupt-cells = <1>; |
| 120 | }; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | /* x1 port */ |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 124 | pcie3: pcie@3,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 125 | device_type = "pci"; |
| 126 | assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; |
| 127 | reg = <0x1800 0 0 0 0>; |
| 128 | #address-cells = <3>; |
| 129 | #size-cells = <2>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 130 | interrupt-names = "intx"; |
| 131 | interrupts-extended = <&gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 132 | #interrupt-cells = <1>; |
| 133 | ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 |
| 134 | 0x81000000 0 0 0x81000000 0x3 0 1 0>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 135 | bus-range = <0x00 0xff>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 136 | interrupt-map-mask = <0 0 0 7>; |
| 137 | interrupt-map = <0 0 0 1 &pcie3_intc 0>, |
| 138 | <0 0 0 2 &pcie3_intc 1>, |
| 139 | <0 0 0 3 &pcie3_intc 2>, |
| 140 | <0 0 0 4 &pcie3_intc 3>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 141 | marvell,pcie-port = <2>; |
| 142 | marvell,pcie-lane = <0>; |
| 143 | clocks = <&gateclk 6>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 144 | resets = <&systemc 0 2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 145 | status = "disabled"; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 146 | pcie3_intc: interrupt-controller { |
| 147 | interrupt-controller; |
| 148 | #interrupt-cells = <1>; |
| 149 | }; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 150 | }; |
| 151 | |
| 152 | /* |
| 153 | * x1 port only available when pcie@1,0 is |
| 154 | * configured as a x1 port |
| 155 | */ |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 156 | pcie4: pcie@4,0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 157 | device_type = "pci"; |
| 158 | assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; |
| 159 | reg = <0x2000 0 0 0 0>; |
| 160 | #address-cells = <3>; |
| 161 | #size-cells = <2>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 162 | interrupt-names = "intx"; |
| 163 | interrupts-extended = <&gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 164 | #interrupt-cells = <1>; |
| 165 | ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 |
| 166 | 0x81000000 0 0 0x81000000 0x4 0 1 0>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 167 | bus-range = <0x00 0xff>; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 168 | interrupt-map-mask = <0 0 0 7>; |
| 169 | interrupt-map = <0 0 0 1 &pcie4_intc 0>, |
| 170 | <0 0 0 2 &pcie4_intc 1>, |
| 171 | <0 0 0 3 &pcie4_intc 2>, |
| 172 | <0 0 0 4 &pcie4_intc 3>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 173 | marvell,pcie-port = <3>; |
| 174 | marvell,pcie-lane = <0>; |
| 175 | clocks = <&gateclk 7>; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 176 | resets = <&systemc 0 3>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 177 | status = "disabled"; |
Pali Rohár | fc1224a | 2022-07-27 14:47:37 +0200 | [diff] [blame] | 178 | pcie4_intc: interrupt-controller { |
| 179 | interrupt-controller; |
| 180 | #interrupt-cells = <1>; |
| 181 | }; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 182 | }; |
| 183 | }; |
| 184 | }; |
| 185 | }; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 186 | |
| 187 | &pinctrl { |
| 188 | compatible = "marvell,mv88f6820-pinctrl"; |
| 189 | }; |