blob: 1257ff1ed278e68a33793eb9cf0c40be08e0b169 [file] [log] [blame]
Thomas Petazzonif3b42b72012-09-13 17:41:48 +02001/*
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 Cooperf72b7202013-08-07 20:04:21 +000016#include "armada-xp.dtsi"
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020017
18/ {
19 model = "Marvell Armada XP MV78230 SoC";
20 compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
21
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020022 aliases {
23 gpio0 = &gpio0;
24 gpio1 = &gpio1;
25 };
26
Gregory CLEMENT9d202782012-11-17 15:22:24 +010027 cpus {
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020028 #address-cells = <1>;
29 #size-cells = <0>;
Thomas Petazzoni23157852014-04-14 15:54:00 +020030 enable-method = "marvell,armada-xp-smp";
Gregory CLEMENT9d202782012-11-17 15:22:24 +010031
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020032 cpu@0 {
33 device_type = "cpu";
34 compatible = "marvell,sheeva-v7";
35 reg = <0>;
36 clocks = <&cpuclk 0>;
37 };
Thomas Petazzoni44cfae92013-01-06 11:10:40 +010038
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020039 cpu@1 {
40 device_type = "cpu";
41 compatible = "marvell,sheeva-v7";
42 reg = <1>;
43 clocks = <&cpuclk 1>;
44 };
Andrew Lunn41be8dc2013-01-06 11:10:42 +010045 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010046
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020047 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030048 /*
49 * MV78230 has 2 PCIe units Gen2.0: One unit can be
50 * configured as x4 or quad x1 lanes. One unit is
Arnaud Ebalard12b69a52013-11-05 21:45:48 +010051 * x1 only.
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030052 */
53 pcie-controller {
54 compatible = "marvell,armada-xp-pcie";
55 status = "disabled";
56 device_type = "pci";
57
58 #address-cells = <3>;
59 #size-cells = <2>;
60
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020061 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030062 bus-range = <0x00 0xff>;
63
64 ranges =
65 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030066 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
67 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
68 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
Arnaud Ebalard12b69a52013-11-05 21:45:48 +010069 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030070 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
71 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
72 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
73 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
74 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
75 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
76 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
77 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
Arnaud Ebalard12b69a52013-11-05 21:45:48 +010078 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
79 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030080
81 pcie@1,0 {
82 device_type = "pci";
83 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
84 reg = <0x0800 0 0 0 0>;
85 #address-cells = <3>;
86 #size-cells = <2>;
87 #interrupt-cells = <1>;
88 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
89 0x81000000 0 0 0x81000000 0x1 0 1 0>;
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>;
95 status = "disabled";
96 };
97
98 pcie@2,0 {
99 device_type = "pci";
100 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
101 reg = <0x1000 0 0 0 0>;
102 #address-cells = <3>;
103 #size-cells = <2>;
104 #interrupt-cells = <1>;
105 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
106 0x81000000 0 0 0x81000000 0x2 0 1 0>;
107 interrupt-map-mask = <0 0 0 0>;
108 interrupt-map = <0 0 0 0 &mpic 59>;
109 marvell,pcie-port = <0>;
110 marvell,pcie-lane = <1>;
111 clocks = <&gateclk 6>;
112 status = "disabled";
113 };
114
115 pcie@3,0 {
116 device_type = "pci";
117 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
118 reg = <0x1800 0 0 0 0>;
119 #address-cells = <3>;
120 #size-cells = <2>;
121 #interrupt-cells = <1>;
122 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
123 0x81000000 0 0 0x81000000 0x3 0 1 0>;
124 interrupt-map-mask = <0 0 0 0>;
125 interrupt-map = <0 0 0 0 &mpic 60>;
126 marvell,pcie-port = <0>;
127 marvell,pcie-lane = <2>;
128 clocks = <&gateclk 7>;
129 status = "disabled";
130 };
131
132 pcie@4,0 {
133 device_type = "pci";
134 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
135 reg = <0x2000 0 0 0 0>;
136 #address-cells = <3>;
137 #size-cells = <2>;
138 #interrupt-cells = <1>;
139 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
140 0x81000000 0 0 0x81000000 0x4 0 1 0>;
141 interrupt-map-mask = <0 0 0 0>;
142 interrupt-map = <0 0 0 0 &mpic 61>;
143 marvell,pcie-port = <0>;
144 marvell,pcie-lane = <3>;
145 clocks = <&gateclk 8>;
146 status = "disabled";
147 };
148
Arnaud Ebalard12b69a52013-11-05 21:45:48 +0100149 pcie@5,0 {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300150 device_type = "pci";
Arnaud Ebalard12b69a52013-11-05 21:45:48 +0100151 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
152 reg = <0x2800 0 0 0 0>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300153 #address-cells = <3>;
154 #size-cells = <2>;
155 #interrupt-cells = <1>;
Arnaud Ebalard12b69a52013-11-05 21:45:48 +0100156 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
157 0x81000000 0 0 0x81000000 0x5 0 1 0>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300158 interrupt-map-mask = <0 0 0 0>;
Arnaud Ebalard12b69a52013-11-05 21:45:48 +0100159 interrupt-map = <0 0 0 0 &mpic 62>;
160 marvell,pcie-port = <1>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300161 marvell,pcie-lane = <0>;
Arnaud Ebalard12b69a52013-11-05 21:45:48 +0100162 clocks = <&gateclk 9>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300163 status = "disabled";
164 };
165 };
166
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200167 internal-regs {
168 pinctrl {
169 compatible = "marvell,mv78230-pinctrl";
170 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100171
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200172 sdio_pins: sdio-pins {
173 marvell,pins = "mpp30", "mpp31", "mpp32",
174 "mpp33", "mpp34", "mpp35";
175 marvell,function = "sd0";
176 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200177 };
178
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200179 gpio0: gpio@18100 {
180 compatible = "marvell,orion-gpio";
181 reg = <0x18100 0x40>;
182 ngpios = <32>;
183 gpio-controller;
184 #gpio-cells = <2>;
185 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200186 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200187 interrupts = <82>, <83>, <84>, <85>;
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200188 };
189
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200190 gpio1: gpio@18140 {
191 compatible = "marvell,orion-gpio";
192 reg = <0x18140 0x40>;
193 ngpios = <17>;
194 gpio-controller;
195 #gpio-cells = <2>;
196 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200197 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200198 interrupts = <87>, <88>, <89>;
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200199 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200200 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200201 };
202};