blob: 7cefb9b6d27c97a4c1089e362ea1a20dd81b584b [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada XP family SoC
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Lior Amsalem <alior@marvell.com>
7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 * Ben Dooks <ben.dooks@codethink.co.uk>
10 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14 *
Thomas Petazzoni10b683c2012-08-02 17:13:47 +020015 * Contains definitions specific to the Armada XP SoC that are not
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020016 * common to all Armada SoCs.
17 */
18
Ezequiel Garcia38149882013-07-26 10:17:56 -030019#include "armada-370-xp.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020020
21/ {
22 model = "Marvell Armada XP family SoC";
23 compatible = "marvell,armadaxp", "marvell,armada-370-xp";
24
Willy Tarreaube5a9382013-06-03 18:47:36 +020025 aliases {
26 eth2 = &eth2;
27 };
28
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020029 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030030 compatible = "marvell,armadaxp-mbus", "simple-bus";
31
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030032 bootrom {
33 compatible = "marvell,bootrom";
34 reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
35 };
36
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020037 internal-regs {
38 L2: l2-cache {
39 compatible = "marvell,aurora-system-cache";
40 reg = <0x08000 0x1000>;
41 cache-id-part = <0x100>;
Gregory CLEMENTa9ce1af2014-10-06 11:37:56 +020042 cache-unified;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020043 wt-override;
44 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020045
Jason Coopera095b1c2013-12-12 13:59:17 +000046 i2c0: i2c@11000 {
47 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
48 reg = <0x11000 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020049 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020050
Jason Coopera095b1c2013-12-12 13:59:17 +000051 i2c1: i2c@11100 {
52 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
53 reg = <0x11100 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020054 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020055
Arnaud Ebalard181d9b22014-11-22 00:45:35 +010056 uart2: serial@12200 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +010057 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +010058 pinctrl-0 = <&uart2_pins>;
59 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +020060 reg = <0x12200 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020061 reg-shift = <2>;
62 interrupts = <43>;
Heikki Krogeruse3661542013-03-06 11:23:33 +010063 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +020064 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020065 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020066 };
Arnaud Ebalard181d9b22014-11-22 00:45:35 +010067
68 uart3: serial@12300 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +010069 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +010070 pinctrl-0 = <&uart3_pins>;
71 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +020072 reg = <0x12300 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020073 reg-shift = <2>;
74 interrupts = <44>;
Heikki Krogeruse3661542013-03-06 11:23:33 +010075 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +020076 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020077 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020078 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020079
Jason Coopera095b1c2013-12-12 13:59:17 +000080 system-controller@18200 {
81 compatible = "marvell,armada-370-xp-system-controller";
82 reg = <0x18200 0x500>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020083 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010084
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020085 gateclk: clock-gating-control@18220 {
86 compatible = "marvell,armada-xp-gating-clock";
87 reg = <0x18220 0x4>;
88 clocks = <&coreclk 0>;
89 #clock-cells = <1>;
90 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010091
Jason Coopera095b1c2013-12-12 13:59:17 +000092 coreclk: mvebu-sar@18230 {
93 compatible = "marvell,armada-xp-core-clock";
94 reg = <0x18230 0x08>;
95 #clock-cells = <1>;
96 };
97
98 thermal@182b0 {
99 compatible = "marvell,armadaxp-thermal";
100 reg = <0x182b0 0x4
101 0x184d0 0x4>;
102 status = "okay";
103 };
104
105 cpuclk: clock-complex@18700 {
106 #clock-cells = <1>;
107 compatible = "marvell,armada-xp-cpu-clock";
Thomas Petazzoni38436072014-07-09 17:45:12 +0200108 reg = <0x18700 0xA0>, <0x1c054 0x10>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000109 clocks = <&coreclk 1>;
110 };
111
112 interrupt-controller@20000 {
113 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
114 };
115
116 timer@20300 {
117 compatible = "marvell,armada-xp-timer";
118 clocks = <&coreclk 2>, <&refclk>;
119 clock-names = "nbclk", "fixed";
120 };
121
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300122 watchdog@20300 {
123 compatible = "marvell,armada-xp-wdt";
124 clocks = <&coreclk 2>, <&refclk>;
125 clock-names = "nbclk", "fixed";
126 };
127
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200128 cpurst@20800 {
129 compatible = "marvell,armada-370-cpu-reset";
130 reg = <0x20800 0x20>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200131 };
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200132
Willy Tarreaube5a9382013-06-03 18:47:36 +0200133 eth2: ethernet@30000 {
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200134 compatible = "marvell,armada-370-neta";
Thomas Petazzonicf8088c2013-05-21 12:33:27 +0200135 reg = <0x30000 0x4000>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200136 interrupts = <12>;
Thomas Petazzoni4aa935a2012-11-19 14:18:09 +0100137 clocks = <&gateclk 2>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200138 status = "disabled";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100139 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200140
Jason Coopera095b1c2013-12-12 13:59:17 +0000141 usb@50000 {
142 clocks = <&gateclk 18>;
143 };
144
145 usb@51000 {
146 clocks = <&gateclk 19>;
147 };
148
149 usb@52000 {
150 compatible = "marvell,orion-ehci";
151 reg = <0x52000 0x500>;
152 interrupts = <47>;
153 clocks = <&gateclk 20>;
154 status = "disabled";
155 };
156
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200157 xor@60900 {
158 compatible = "marvell,orion-xor";
159 reg = <0x60900 0x100
160 0x60b00 0x100>;
161 clocks = <&gateclk 22>;
162 status = "okay";
163
164 xor10 {
165 interrupts = <51>;
166 dmacap,memcpy;
167 dmacap,xor;
168 };
169 xor11 {
170 interrupts = <52>;
171 dmacap,memcpy;
172 dmacap,xor;
173 dmacap,memset;
174 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100175 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100176
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200177 xor@f0900 {
178 compatible = "marvell,orion-xor";
179 reg = <0xF0900 0x100
180 0xF0B00 0x100>;
181 clocks = <&gateclk 28>;
182 status = "okay";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100183
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200184 xor00 {
185 interrupts = <94>;
186 dmacap,memcpy;
187 dmacap,xor;
188 };
189 xor01 {
190 interrupts = <95>;
191 dmacap,memcpy;
192 dmacap,xor;
193 dmacap,memset;
194 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100195 };
Ezequiel Garcia693a56e2013-03-26 07:16:26 -0300196 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200197 };
Ezequiel Garciac1bbd432013-08-20 12:45:50 -0300198
199 clocks {
200 /* 25 MHz reference crystal */
201 refclk: oscillator {
202 compatible = "fixed-clock";
203 #clock-cells = <0>;
204 clock-frequency = <25000000>;
205 };
206 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200207};
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100208
209&pinctrl {
210 pmx_ge0_gmii: pmx-ge0-gmii {
211 marvell,pins =
212 "mpp0", "mpp1", "mpp2", "mpp3",
213 "mpp4", "mpp5", "mpp6", "mpp7",
214 "mpp8", "mpp9", "mpp10", "mpp11",
215 "mpp12", "mpp13", "mpp14", "mpp15",
216 "mpp16", "mpp17", "mpp18", "mpp19",
217 "mpp20", "mpp21", "mpp22", "mpp23";
218 marvell,function = "ge0";
219 };
220
221 pmx_ge0_rgmii: pmx-ge0-rgmii {
222 marvell,pins =
223 "mpp0", "mpp1", "mpp2", "mpp3",
224 "mpp4", "mpp5", "mpp6", "mpp7",
225 "mpp8", "mpp9", "mpp10", "mpp11";
226 marvell,function = "ge0";
227 };
228
229 pmx_ge1_rgmii: pmx-ge1-rgmii {
230 marvell,pins =
231 "mpp12", "mpp13", "mpp14", "mpp15",
232 "mpp16", "mpp17", "mpp18", "mpp19",
233 "mpp20", "mpp21", "mpp22", "mpp23";
234 marvell,function = "ge1";
235 };
236
237 sdio_pins: sdio-pins {
238 marvell,pins = "mpp30", "mpp31", "mpp32",
239 "mpp33", "mpp34", "mpp35";
240 marvell,function = "sd0";
241 };
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100242
243 uart2_pins: uart2-pins {
244 marvell,pins = "mpp42", "mpp43";
245 marvell,function = "uart2";
246 };
247
248 uart3_pins: uart3-pins {
249 marvell,pins = "mpp44", "mpp45";
250 marvell,function = "uart3";
251 };
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100252};