blob: 3f5e6121c730a21ae2079acff268da2be20518ef [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>;
Gregory CLEMENT9d202782012-11-17 15:22:24 +010030
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020031 cpu@0 {
32 device_type = "cpu";
33 compatible = "marvell,sheeva-v7";
34 reg = <0>;
35 clocks = <&cpuclk 0>;
36 };
Thomas Petazzoni44cfae92013-01-06 11:10:40 +010037
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020038 cpu@1 {
39 device_type = "cpu";
40 compatible = "marvell,sheeva-v7";
41 reg = <1>;
42 clocks = <&cpuclk 1>;
43 };
Andrew Lunn41be8dc2013-01-06 11:10:42 +010044 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010045
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020046 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030047 /*
48 * MV78230 has 2 PCIe units Gen2.0: One unit can be
49 * configured as x4 or quad x1 lanes. One unit is
50 * x4/x1.
51 */
52 pcie-controller {
53 compatible = "marvell,armada-xp-pcie";
54 status = "disabled";
55 device_type = "pci";
56
57 #address-cells = <3>;
58 #size-cells = <2>;
59
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020060 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030061 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 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
66 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 */
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 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
78 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
79
80 pcie@1,0 {
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>;
89 interrupt-map-mask = <0 0 0 0>;
90 interrupt-map = <0 0 0 0 &mpic 58>;
91 marvell,pcie-port = <0>;
92 marvell,pcie-lane = <0>;
93 clocks = <&gateclk 5>;
94 status = "disabled";
95 };
96
97 pcie@2,0 {
98 device_type = "pci";
99 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
100 reg = <0x1000 0 0 0 0>;
101 #address-cells = <3>;
102 #size-cells = <2>;
103 #interrupt-cells = <1>;
104 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
105 0x81000000 0 0 0x81000000 0x2 0 1 0>;
106 interrupt-map-mask = <0 0 0 0>;
107 interrupt-map = <0 0 0 0 &mpic 59>;
108 marvell,pcie-port = <0>;
109 marvell,pcie-lane = <1>;
110 clocks = <&gateclk 6>;
111 status = "disabled";
112 };
113
114 pcie@3,0 {
115 device_type = "pci";
116 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
117 reg = <0x1800 0 0 0 0>;
118 #address-cells = <3>;
119 #size-cells = <2>;
120 #interrupt-cells = <1>;
121 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
122 0x81000000 0 0 0x81000000 0x3 0 1 0>;
123 interrupt-map-mask = <0 0 0 0>;
124 interrupt-map = <0 0 0 0 &mpic 60>;
125 marvell,pcie-port = <0>;
126 marvell,pcie-lane = <2>;
127 clocks = <&gateclk 7>;
128 status = "disabled";
129 };
130
131 pcie@4,0 {
132 device_type = "pci";
133 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
134 reg = <0x2000 0 0 0 0>;
135 #address-cells = <3>;
136 #size-cells = <2>;
137 #interrupt-cells = <1>;
138 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
139 0x81000000 0 0 0x81000000 0x4 0 1 0>;
140 interrupt-map-mask = <0 0 0 0>;
141 interrupt-map = <0 0 0 0 &mpic 61>;
142 marvell,pcie-port = <0>;
143 marvell,pcie-lane = <3>;
144 clocks = <&gateclk 8>;
145 status = "disabled";
146 };
147
148 pcie@9,0 {
149 device_type = "pci";
150 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
151 reg = <0x4800 0 0 0 0>;
152 #address-cells = <3>;
153 #size-cells = <2>;
154 #interrupt-cells = <1>;
155 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
156 0x81000000 0 0 0x81000000 0x9 0 1 0>;
157 interrupt-map-mask = <0 0 0 0>;
158 interrupt-map = <0 0 0 0 &mpic 99>;
159 marvell,pcie-port = <2>;
160 marvell,pcie-lane = <0>;
161 clocks = <&gateclk 26>;
162 status = "disabled";
163 };
164 };
165
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200166 internal-regs {
167 pinctrl {
168 compatible = "marvell,mv78230-pinctrl";
169 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100170
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200171 sdio_pins: sdio-pins {
172 marvell,pins = "mpp30", "mpp31", "mpp32",
173 "mpp33", "mpp34", "mpp35";
174 marvell,function = "sd0";
175 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200176 };
177
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200178 gpio0: gpio@18100 {
179 compatible = "marvell,orion-gpio";
180 reg = <0x18100 0x40>;
181 ngpios = <32>;
182 gpio-controller;
183 #gpio-cells = <2>;
184 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200185 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200186 interrupts = <82>, <83>, <84>, <85>;
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200187 };
188
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200189 gpio1: gpio@18140 {
190 compatible = "marvell,orion-gpio";
191 reg = <0x18140 0x40>;
192 ngpios = <17>;
193 gpio-controller;
194 #gpio-cells = <2>;
195 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200196 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200197 interrupts = <87>, <88>, <89>;
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200198 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200199 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200200 };
201};