blob: 90384587c27843c563d2c4328ce9411f4c26458b [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
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030030 mbus {
31 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
43 crypto@0301 {
44 compatible = "marvell,orion-crypto";
45 reg = <MBUS_ID(0xf0, 0x01) 0x30000 0x10000>,
46 <MBUS_ID(0x03, 0x01) 0 0x800>;
47 reg-names = "regs", "sram";
48 interrupts = <22>;
49 clocks = <&gate_clk 17>;
50 status = "okay";
51 };
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060052
53 nand: nand@012f {
54 #address-cells = <1>;
55 #size-cells = <1>;
56 cle = <0>;
57 ale = <1>;
58 bank-width = <1>;
59 compatible = "marvell,orion-nand";
60 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
61 chip-delay = <25>;
62 /* set partition map and/or chip-delay in board dts */
63 clocks = <&gate_clk 7>;
64 status = "disabled";
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
Andrew Lunn1611f872012-11-17 15:22:28 +010074 core_clk: core-clocks@10030 {
75 compatible = "marvell,kirkwood-core-clock";
76 reg = <0x10030 0x4>;
Jason Cooper20bba582013-12-11 20:19:58 +000077 #clock-cells = <1>;
78 };
79
80 spi@10600 {
81 compatible = "marvell,orion-spi";
82 #address-cells = <1>;
83 #size-cells = <0>;
84 cell-index = <0>;
85 interrupts = <23>;
86 reg = <0x10600 0x28>;
87 clocks = <&gate_clk 7>;
88 status = "disabled";
Andrew Lunn1611f872012-11-17 15:22:28 +010089 };
90
Andrew Lunn278b45b2012-06-27 13:40:04 +020091 gpio0: gpio@10100 {
92 compatible = "marvell,orion-gpio";
93 #gpio-cells = <2>;
94 gpio-controller;
95 reg = <0x10100 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +010096 ngpios = <32>;
97 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +010098 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +020099 interrupts = <35>, <36>, <37>, <38>;
Andrew Lunnde887472013-02-03 11:34:26 +0100100 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200101 };
102
103 gpio1: gpio@10140 {
104 compatible = "marvell,orion-gpio";
105 #gpio-cells = <2>;
106 gpio-controller;
107 reg = <0x10140 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +0100108 ngpios = <18>;
109 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +0100110 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200111 interrupts = <39>, <40>, <41>;
Andrew Lunnde887472013-02-03 11:34:26 +0100112 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200113 };
114
Andrew Lunncb932e12014-02-25 18:34:00 +0100115 i2c0: i2c@11000 {
Jason Cooper20bba582013-12-11 20:19:58 +0000116 compatible = "marvell,mv64xxx-i2c";
117 reg = <0x11000 0x20>;
118 #address-cells = <1>;
119 #size-cells = <0>;
120 interrupts = <29>;
121 clock-frequency = <100000>;
122 clocks = <&gate_clk 7>;
123 status = "disabled";
124 };
125
Jason Cooper163f2ce2012-03-15 01:00:27 +0000126 serial@12000 {
127 compatible = "ns16550a";
128 reg = <0x12000 0x100>;
129 reg-shift = <2>;
130 interrupts = <33>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100131 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000132 status = "disabled";
133 };
134
135 serial@12100 {
136 compatible = "ns16550a";
137 reg = <0x12100 0x100>;
138 reg-shift = <2>;
139 interrupts = <34>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100140 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000141 status = "disabled";
142 };
Jason Coopere871b872012-03-06 23:55:04 +0000143
Jason Cooper20bba582013-12-11 20:19:58 +0000144 mbusc: mbus-controller@20000 {
145 compatible = "marvell,mbus-controller";
146 reg = <0x20000 0x80>, <0x1500 0x20>;
147 };
148
Andrew Lunn77026932014-02-22 20:14:59 +0100149 system-controller@20000 {
150 compatible = "marvell,orion-system-controller";
151 reg = <0x20000 0x120>;
152 };
153
Jason Cooper20bba582013-12-11 20:19:58 +0000154 bridge_intc: bridge-interrupt-ctrl@20110 {
155 compatible = "marvell,orion-bridge-intc";
156 interrupt-controller;
157 #interrupt-cells = <1>;
158 reg = <0x20110 0x8>;
159 interrupts = <1>;
160 marvell,#interrupts = <6>;
Michael Walle76372122012-06-06 20:30:57 +0200161 };
162
Andrew Lunn1611f872012-11-17 15:22:28 +0100163 gate_clk: clock-gating-control@2011c {
164 compatible = "marvell,kirkwood-gating-clock";
165 reg = <0x2011c 0x4>;
166 clocks = <&core_clk 0>;
167 #clock-cells = <1>;
168 };
169
Andrew Lunne65d9c62014-02-22 20:14:53 +0100170 l2: l2-cache@20128 {
171 compatible = "marvell,kirkwood-cache";
172 reg = <0x20128 0x4>;
173 };
174
Jason Cooper20bba582013-12-11 20:19:58 +0000175 intc: main-interrupt-ctrl@20200 {
176 compatible = "marvell,orion-intc";
177 interrupt-controller;
178 #interrupt-cells = <1>;
179 reg = <0x20200 0x10>, <0x20210 0x10>;
180 };
181
182 timer: timer@20300 {
183 compatible = "marvell,orion-timer";
184 reg = <0x20300 0x20>;
185 interrupt-parent = <&bridge_intc>;
186 interrupts = <1>, <2>;
187 clocks = <&core_clk 0>;
188 };
189
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200190 wdt: watchdog-timer@20300 {
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200191 compatible = "marvell,orion-wdt";
Ezequiel Garcia7224cbc2014-02-10 20:00:33 -0300192 reg = <0x20300 0x28>, <0x20108 0x4>;
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200193 interrupt-parent = <&bridge_intc>;
194 interrupts = <3>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100195 clocks = <&gate_clk 7>;
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200196 status = "okay";
197 };
198
Jason Cooper20bba582013-12-11 20:19:58 +0000199 ehci@50000 {
200 compatible = "marvell,orion-ehci";
201 reg = <0x50000 0x1000>;
202 interrupts = <19>;
203 clocks = <&gate_clk 3>;
204 status = "okay";
205 };
206
Andrew Lunnc896ed02012-11-18 11:44:57 +0100207 xor@60800 {
208 compatible = "marvell,orion-xor";
209 reg = <0x60800 0x100
210 0x60A00 0x100>;
211 status = "okay";
212 clocks = <&gate_clk 8>;
213
214 xor00 {
215 interrupts = <5>;
216 dmacap,memcpy;
217 dmacap,xor;
218 };
219 xor01 {
220 interrupts = <6>;
221 dmacap,memcpy;
222 dmacap,xor;
223 dmacap,memset;
224 };
225 };
226
227 xor@60900 {
228 compatible = "marvell,orion-xor";
229 reg = <0x60900 0x100
Quentin Armitageddf7e392013-09-19 12:00:29 +0100230 0x60B00 0x100>;
Andrew Lunnc896ed02012-11-18 11:44:57 +0100231 status = "okay";
232 clocks = <&gate_clk 16>;
233
234 xor00 {
235 interrupts = <7>;
236 dmacap,memcpy;
237 dmacap,xor;
238 };
239 xor01 {
240 interrupts = <8>;
241 dmacap,memcpy;
242 dmacap,xor;
243 dmacap,memset;
244 };
245 };
246
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200247 eth0: ethernet-controller@72000 {
248 compatible = "marvell,kirkwood-eth";
249 #address-cells = <1>;
250 #size-cells = <0>;
251 reg = <0x72000 0x4000>;
252 clocks = <&gate_clk 0>;
253 marvell,tx-checksum-limit = <1600>;
254 status = "disabled";
255
256 ethernet0-port@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200257 compatible = "marvell,kirkwood-eth-port";
258 reg = <0>;
259 interrupts = <11>;
260 /* overwrite MAC address in bootloader */
261 local-mac-address = [00 00 00 00 00 00];
262 /* set phy-handle property in board file */
263 };
264 };
265
Jason Cooper20bba582013-12-11 20:19:58 +0000266 mdio: mdio-bus@72004 {
267 compatible = "marvell,orion-mdio";
268 #address-cells = <1>;
269 #size-cells = <0>;
270 reg = <0x72004 0x84>;
271 interrupts = <46>;
272 clocks = <&gate_clk 0>;
273 status = "disabled";
274
275 /* add phy nodes in board file */
276 };
277
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200278 eth1: ethernet-controller@76000 {
279 compatible = "marvell,kirkwood-eth";
280 #address-cells = <1>;
281 #size-cells = <0>;
282 reg = <0x76000 0x4000>;
283 clocks = <&gate_clk 19>;
284 marvell,tx-checksum-limit = <1600>;
285 status = "disabled";
286
287 ethernet1-port@0 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200288 compatible = "marvell,kirkwood-eth-port";
289 reg = <0>;
290 interrupts = <15>;
291 /* overwrite MAC address in bootloader */
292 local-mac-address = [00 00 00 00 00 00];
293 /* set phy-handle property in board file */
294 };
295 };
Andrew Lunn0ad82cd2013-12-17 21:21:52 +0100296
297 sata_phy0: sata-phy@82000 {
298 compatible = "marvell,mvebu-sata-phy";
299 reg = <0x82000 0x0334>;
300 clocks = <&gate_clk 14>;
301 clock-names = "sata";
302 #phy-cells = <0>;
303 status = "ok";
304 };
305
306 sata_phy1: sata-phy@84000 {
307 compatible = "marvell,mvebu-sata-phy";
308 reg = <0x84000 0x0334>;
309 clocks = <&gate_clk 15>;
310 clock-names = "sata";
311 #phy-cells = <0>;
312 status = "ok";
313 };
Andrew Lunnb3f742c2014-02-25 18:33:59 +0100314
315 audio0: audio-controller@a0000 {
316 compatible = "marvell,kirkwood-audio";
317 reg = <0xa0000 0x2210>;
318 interrupts = <24>;
319 clocks = <&gate_clk 9>;
320 clock-names = "internal";
321 status = "disabled";
322 };
Jason Cooper163f2ce2012-03-15 01:00:27 +0000323 };
324};