blob: 29b8bd7e0d9384157a6da10fd870434268f90276 [file] [log] [blame]
Jason Cooper3d468b62012-02-27 16:07:13 +00001/include/ "skeleton.dtsi"
Andrew Lunn23301192013-12-04 16:51:38 +01002#include <dt-bindings/input/input.h>
Andrew Lunn3a31f2d72013-12-04 16:51:39 +01003#include <dt-bindings/gpio/gpio.h>
Jason Cooper3d468b62012-02-27 16:07:13 +00004
Ezequiel Garcia3ec81e72013-07-26 10:18:04 -03005#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
6
Jason Cooper3d468b62012-02-27 16:07:13 +00007/ {
Andrew Lunn77843502012-07-18 19:22:54 +02008 compatible = "marvell,kirkwood";
Andrew Lunn278b45b2012-06-27 13:40:04 +02009 interrupt-parent = <&intc>;
10
Adam Baker33a66752013-06-02 22:59:50 +010011 cpus {
12 #address-cells = <1>;
13 #size-cells = <0>;
14
15 cpu@0 {
16 device_type = "cpu";
17 compatible = "marvell,feroceon";
Andrew Lunn22904142013-09-13 22:09:52 +020018 reg = <0>;
Adam Baker33a66752013-06-02 22:59:50 +010019 clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
20 clock-names = "cpu_clk", "ddrclk", "powersave";
21 };
22 };
23
Andrew Lunnf9e75922012-11-17 17:00:44 +010024 aliases {
25 gpio0 = &gpio0;
26 gpio1 = &gpio1;
Andrew Lunncb932e12014-02-25 18:34:00 +010027 i2c0 = &i2c0;
Andrew Lunnf9e75922012-11-17 17:00:44 +010028 };
Jason Cooper3d468b62012-02-27 16:07:13 +000029
Andrew Lunn5d7fd652016-04-03 04:03:49 +020030 mbus@f1000000 {
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030031 compatible = "marvell,kirkwood-mbus", "simple-bus";
Ezequiel Garcia54397d82013-07-26 10:18:05 -030032 #address-cells = <2>;
33 #size-cells = <1>;
Jason Gunthorpe7f69f8a2013-09-17 12:41:46 -060034 /* If a board file needs to change this ranges it must replace it completely */
35 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
36 MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
37 MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
38 >;
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030039 controller = <&mbusc>;
Ezequiel Garcia54397d82013-07-26 10:18:05 -030040 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
41 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
Jason Gunthorpe34a30092013-09-17 12:43:09 -060042
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060043 nand: nand@012f {
44 #address-cells = <1>;
45 #size-cells = <1>;
46 cle = <0>;
47 ale = <1>;
48 bank-width = <1>;
49 compatible = "marvell,orion-nand";
50 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
51 chip-delay = <25>;
52 /* set partition map and/or chip-delay in board dts */
53 clocks = <&gate_clk 7>;
Sebastian Hesselbarthcbfaea92014-04-30 14:56:38 +020054 pinctrl-0 = <&pmx_nand>;
55 pinctrl-names = "default";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060056 status = "disabled";
57 };
Boris Brezilloneb69e002015-08-18 10:09:00 +020058
59 crypto_sram: sa-sram@0301 {
60 compatible = "mmio-sram";
61 reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>;
62 clocks = <&gate_clk 17>;
63 #address-cells = <1>;
64 #size-cells = <1>;
65 };
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030066 };
67
Jason Cooper163f2ce2012-03-15 01:00:27 +000068 ocp@f1000000 {
69 compatible = "simple-bus";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060070 ranges = <0x00000000 0xf1000000 0x0100000>;
Jason Cooper163f2ce2012-03-15 01:00:27 +000071 #address-cells = <1>;
72 #size-cells = <1>;
73
Sebastian Hesselbarth2ab516a2014-04-30 14:56:33 +020074 pinctrl: pin-controller@10000 {
75 /* set compatible property in SoC file */
76 reg = <0x10000 0x20>;
Sebastian Hesselbarth327e1542014-04-30 14:56:34 +020077
78 pmx_ge1: pmx-ge1 {
79 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23",
80 "mpp24", "mpp25", "mpp26", "mpp27",
81 "mpp30", "mpp31", "mpp32", "mpp33";
82 marvell,function = "ge1";
83 };
84
85 pmx_nand: pmx-nand {
86 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
87 "mpp4", "mpp5", "mpp18", "mpp19";
88 marvell,function = "nand";
89 };
90
Sebastian Hesselbarth92901202014-04-30 14:56:37 +020091 /*
92 * Default SPI0 pinctrl setting with CSn on mpp0,
93 * overwrite marvell,pins on board level if required.
94 */
Sebastian Hesselbarth327e1542014-04-30 14:56:34 +020095 pmx_spi: pmx-spi {
96 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
97 marvell,function = "spi";
98 };
99
100 pmx_twsi0: pmx-twsi0 {
101 marvell,pins = "mpp8", "mpp9";
102 marvell,function = "twsi0";
103 };
104
Sebastian Hesselbarth9f2339a2014-04-30 14:56:36 +0200105 /*
106 * Default UART pinctrl setting without RTS/CTS,
107 * overwrite marvell,pins on board level if required.
108 */
Sebastian Hesselbarth327e1542014-04-30 14:56:34 +0200109 pmx_uart0: pmx-uart0 {
110 marvell,pins = "mpp10", "mpp11";
111 marvell,function = "uart0";
112 };
113
114 pmx_uart1: pmx-uart1 {
115 marvell,pins = "mpp13", "mpp14";
116 marvell,function = "uart1";
117 };
Sebastian Hesselbarth2ab516a2014-04-30 14:56:33 +0200118 };
119
Andrew Lunn1611f872012-11-17 15:22:28 +0100120 core_clk: core-clocks@10030 {
121 compatible = "marvell,kirkwood-core-clock";
122 reg = <0x10030 0x4>;
Jason Cooper20bba582013-12-11 20:19:58 +0000123 #clock-cells = <1>;
124 };
125
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200126 spi0: spi@10600 {
Jason Cooper20bba582013-12-11 20:19:58 +0000127 compatible = "marvell,orion-spi";
128 #address-cells = <1>;
129 #size-cells = <0>;
130 cell-index = <0>;
131 interrupts = <23>;
132 reg = <0x10600 0x28>;
133 clocks = <&gate_clk 7>;
Sebastian Hesselbarth92901202014-04-30 14:56:37 +0200134 pinctrl-0 = <&pmx_spi>;
135 pinctrl-names = "default";
Jason Cooper20bba582013-12-11 20:19:58 +0000136 status = "disabled";
Andrew Lunn1611f872012-11-17 15:22:28 +0100137 };
138
Andrew Lunn278b45b2012-06-27 13:40:04 +0200139 gpio0: gpio@10100 {
140 compatible = "marvell,orion-gpio";
141 #gpio-cells = <2>;
142 gpio-controller;
143 reg = <0x10100 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +0100144 ngpios = <32>;
145 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +0100146 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200147 interrupts = <35>, <36>, <37>, <38>;
Andrew Lunnde887472013-02-03 11:34:26 +0100148 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200149 };
150
151 gpio1: gpio@10140 {
152 compatible = "marvell,orion-gpio";
153 #gpio-cells = <2>;
154 gpio-controller;
155 reg = <0x10140 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +0100156 ngpios = <18>;
157 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +0100158 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200159 interrupts = <39>, <40>, <41>;
Andrew Lunnde887472013-02-03 11:34:26 +0100160 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200161 };
162
Andrew Lunncb932e12014-02-25 18:34:00 +0100163 i2c0: i2c@11000 {
Jason Cooper20bba582013-12-11 20:19:58 +0000164 compatible = "marvell,mv64xxx-i2c";
165 reg = <0x11000 0x20>;
166 #address-cells = <1>;
167 #size-cells = <0>;
168 interrupts = <29>;
169 clock-frequency = <100000>;
170 clocks = <&gate_clk 7>;
Sebastian Hesselbarthce55b1f2014-04-30 14:56:39 +0200171 pinctrl-0 = <&pmx_twsi0>;
172 pinctrl-names = "default";
Jason Cooper20bba582013-12-11 20:19:58 +0000173 status = "disabled";
174 };
175
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200176 uart0: serial@12000 {
Jason Cooper163f2ce2012-03-15 01:00:27 +0000177 compatible = "ns16550a";
178 reg = <0x12000 0x100>;
179 reg-shift = <2>;
180 interrupts = <33>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100181 clocks = <&gate_clk 7>;
Sebastian Hesselbarth9f2339a2014-04-30 14:56:36 +0200182 pinctrl-0 = <&pmx_uart0>;
183 pinctrl-names = "default";
Jason Cooper163f2ce2012-03-15 01:00:27 +0000184 status = "disabled";
185 };
186
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200187 uart1: serial@12100 {
Jason Cooper163f2ce2012-03-15 01:00:27 +0000188 compatible = "ns16550a";
189 reg = <0x12100 0x100>;
190 reg-shift = <2>;
191 interrupts = <34>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100192 clocks = <&gate_clk 7>;
Sebastian Hesselbarth9f2339a2014-04-30 14:56:36 +0200193 pinctrl-0 = <&pmx_uart1>;
194 pinctrl-names = "default";
Jason Cooper163f2ce2012-03-15 01:00:27 +0000195 status = "disabled";
196 };
Jason Coopere871b872012-03-06 23:55:04 +0000197
Jason Cooper20bba582013-12-11 20:19:58 +0000198 mbusc: mbus-controller@20000 {
199 compatible = "marvell,mbus-controller";
200 reg = <0x20000 0x80>, <0x1500 0x20>;
201 };
202
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200203 sysc: system-controller@20000 {
Andrew Lunn77026932014-02-22 20:14:59 +0100204 compatible = "marvell,orion-system-controller";
205 reg = <0x20000 0x120>;
206 };
207
Jason Cooper20bba582013-12-11 20:19:58 +0000208 bridge_intc: bridge-interrupt-ctrl@20110 {
209 compatible = "marvell,orion-bridge-intc";
210 interrupt-controller;
211 #interrupt-cells = <1>;
212 reg = <0x20110 0x8>;
213 interrupts = <1>;
214 marvell,#interrupts = <6>;
Michael Walle76372122012-06-06 20:30:57 +0200215 };
216
Andrew Lunn1611f872012-11-17 15:22:28 +0100217 gate_clk: clock-gating-control@2011c {
218 compatible = "marvell,kirkwood-gating-clock";
219 reg = <0x2011c 0x4>;
220 clocks = <&core_clk 0>;
221 #clock-cells = <1>;
222 };
223
Andrew Lunne65d9c62014-02-22 20:14:53 +0100224 l2: l2-cache@20128 {
225 compatible = "marvell,kirkwood-cache";
226 reg = <0x20128 0x4>;
227 };
228
Jason Cooper20bba582013-12-11 20:19:58 +0000229 intc: main-interrupt-ctrl@20200 {
230 compatible = "marvell,orion-intc";
231 interrupt-controller;
232 #interrupt-cells = <1>;
233 reg = <0x20200 0x10>, <0x20210 0x10>;
234 };
235
236 timer: timer@20300 {
237 compatible = "marvell,orion-timer";
238 reg = <0x20300 0x20>;
239 interrupt-parent = <&bridge_intc>;
240 interrupts = <1>, <2>;
241 clocks = <&core_clk 0>;
242 };
243
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200244 wdt: watchdog-timer@20300 {
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200245 compatible = "marvell,orion-wdt";
Ezequiel Garcia7224cbc2014-02-10 20:00:33 -0300246 reg = <0x20300 0x28>, <0x20108 0x4>;
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200247 interrupt-parent = <&bridge_intc>;
248 interrupts = <3>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100249 clocks = <&gate_clk 7>;
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200250 status = "okay";
251 };
252
Boris Brezilloneb69e002015-08-18 10:09:00 +0200253 cesa: crypto@30000 {
Boris Brezillon9b24a352015-08-18 10:09:01 +0200254 compatible = "marvell,kirkwood-crypto";
Boris Brezilloneb69e002015-08-18 10:09:00 +0200255 reg = <0x30000 0x10000>;
256 reg-names = "regs";
257 interrupts = <22>;
258 clocks = <&gate_clk 17>;
259 marvell,crypto-srams = <&crypto_sram>;
260 marvell,crypto-sram-size = <0x800>;
261 status = "okay";
262 };
263
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200264 usb0: ehci@50000 {
Jason Cooper20bba582013-12-11 20:19:58 +0000265 compatible = "marvell,orion-ehci";
266 reg = <0x50000 0x1000>;
267 interrupts = <19>;
268 clocks = <&gate_clk 3>;
269 status = "okay";
270 };
271
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200272 dma0: xor@60800 {
Andrew Lunnc896ed02012-11-18 11:44:57 +0100273 compatible = "marvell,orion-xor";
274 reg = <0x60800 0x100
275 0x60A00 0x100>;
276 status = "okay";
277 clocks = <&gate_clk 8>;
278
279 xor00 {
280 interrupts = <5>;
281 dmacap,memcpy;
282 dmacap,xor;
283 };
284 xor01 {
285 interrupts = <6>;
286 dmacap,memcpy;
287 dmacap,xor;
288 dmacap,memset;
289 };
290 };
291
Sebastian Hesselbarth7b36efd2014-04-30 14:56:29 +0200292 dma1: xor@60900 {
Andrew Lunnc896ed02012-11-18 11:44:57 +0100293 compatible = "marvell,orion-xor";
294 reg = <0x60900 0x100
Quentin Armitageddf7e392013-09-19 12:00:29 +0100295 0x60B00 0x100>;
Andrew Lunnc896ed02012-11-18 11:44:57 +0100296 status = "okay";
297 clocks = <&gate_clk 16>;
298
299 xor00 {
300 interrupts = <7>;
301 dmacap,memcpy;
302 dmacap,xor;
303 };
304 xor01 {
305 interrupts = <8>;
306 dmacap,memcpy;
307 dmacap,xor;
308 dmacap,memset;
309 };
310 };
311
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200312 eth0: ethernet-controller@72000 {
313 compatible = "marvell,kirkwood-eth";
314 #address-cells = <1>;
315 #size-cells = <0>;
316 reg = <0x72000 0x4000>;
317 clocks = <&gate_clk 0>;
318 marvell,tx-checksum-limit = <1600>;
319 status = "disabled";
320
Andrew Lunn4f5e01e2014-09-01 19:35:41 +0200321 eth0port: ethernet0-port@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200322 compatible = "marvell,kirkwood-eth-port";
323 reg = <0>;
324 interrupts = <11>;
325 /* overwrite MAC address in bootloader */
326 local-mac-address = [00 00 00 00 00 00];
327 /* set phy-handle property in board file */
328 };
329 };
330
Jason Cooper20bba582013-12-11 20:19:58 +0000331 mdio: mdio-bus@72004 {
332 compatible = "marvell,orion-mdio";
333 #address-cells = <1>;
334 #size-cells = <0>;
335 reg = <0x72004 0x84>;
336 interrupts = <46>;
337 clocks = <&gate_clk 0>;
338 status = "disabled";
339
340 /* add phy nodes in board file */
341 };
342
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200343 eth1: ethernet-controller@76000 {
344 compatible = "marvell,kirkwood-eth";
345 #address-cells = <1>;
346 #size-cells = <0>;
347 reg = <0x76000 0x4000>;
348 clocks = <&gate_clk 19>;
349 marvell,tx-checksum-limit = <1600>;
Sebastian Hesselbarth9dd85ad2014-04-30 14:56:35 +0200350 pinctrl-0 = <&pmx_ge1>;
351 pinctrl-names = "default";
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200352 status = "disabled";
353
Andrew Lunn4f5e01e2014-09-01 19:35:41 +0200354 eth1port: ethernet1-port@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200355 compatible = "marvell,kirkwood-eth-port";
356 reg = <0>;
357 interrupts = <15>;
358 /* overwrite MAC address in bootloader */
359 local-mac-address = [00 00 00 00 00 00];
360 /* set phy-handle property in board file */
361 };
362 };
Andrew Lunn0ad82cd2013-12-17 21:21:52 +0100363
364 sata_phy0: sata-phy@82000 {
365 compatible = "marvell,mvebu-sata-phy";
366 reg = <0x82000 0x0334>;
367 clocks = <&gate_clk 14>;
368 clock-names = "sata";
369 #phy-cells = <0>;
370 status = "ok";
371 };
372
373 sata_phy1: sata-phy@84000 {
374 compatible = "marvell,mvebu-sata-phy";
375 reg = <0x84000 0x0334>;
376 clocks = <&gate_clk 15>;
377 clock-names = "sata";
378 #phy-cells = <0>;
379 status = "ok";
380 };
Andrew Lunnb3f742c2014-02-25 18:33:59 +0100381
382 audio0: audio-controller@a0000 {
383 compatible = "marvell,kirkwood-audio";
Aaro Koskinen34cabc22016-01-24 00:36:39 +0200384 #sound-dai-cells = <1>;
Andrew Lunnb3f742c2014-02-25 18:33:59 +0100385 reg = <0xa0000 0x2210>;
386 interrupts = <24>;
387 clocks = <&gate_clk 9>;
388 clock-names = "internal";
389 status = "disabled";
390 };
Jason Cooper163f2ce2012-03-15 01:00:27 +0000391 };
392};