blob: dd58a25a4166e4fd774cdc6276dbafcee81c7d64 [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;
27 };
Jason Cooper3d468b62012-02-27 16:07:13 +000028
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030029 mbus {
30 compatible = "marvell,kirkwood-mbus", "simple-bus";
Ezequiel Garcia54397d82013-07-26 10:18:05 -030031 #address-cells = <2>;
32 #size-cells = <1>;
Jason Gunthorpe7f69f8a2013-09-17 12:41:46 -060033 /* If a board file needs to change this ranges it must replace it completely */
34 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
35 MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
36 MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
37 >;
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030038 controller = <&mbusc>;
Ezequiel Garcia54397d82013-07-26 10:18:05 -030039 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
40 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
Jason Gunthorpe34a30092013-09-17 12:43:09 -060041
42 crypto@0301 {
43 compatible = "marvell,orion-crypto";
44 reg = <MBUS_ID(0xf0, 0x01) 0x30000 0x10000>,
45 <MBUS_ID(0x03, 0x01) 0 0x800>;
46 reg-names = "regs", "sram";
47 interrupts = <22>;
48 clocks = <&gate_clk 17>;
49 status = "okay";
50 };
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060051
52 nand: nand@012f {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 cle = <0>;
56 ale = <1>;
57 bank-width = <1>;
58 compatible = "marvell,orion-nand";
59 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
60 chip-delay = <25>;
61 /* set partition map and/or chip-delay in board dts */
62 clocks = <&gate_clk 7>;
63 status = "disabled";
64 };
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030065 };
66
Jason Cooper163f2ce2012-03-15 01:00:27 +000067 ocp@f1000000 {
68 compatible = "simple-bus";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -060069 ranges = <0x00000000 0xf1000000 0x0100000>;
Jason Cooper163f2ce2012-03-15 01:00:27 +000070 #address-cells = <1>;
71 #size-cells = <1>;
72
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030073 mbusc: mbus-controller@20000 {
74 compatible = "marvell,mbus-controller";
75 reg = <0x20000 0x80>, <0x1500 0x20>;
76 };
77
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +020078 timer: timer@20300 {
79 compatible = "marvell,orion-timer";
80 reg = <0x20300 0x20>;
81 interrupt-parent = <&bridge_intc>;
82 interrupts = <1>, <2>;
83 clocks = <&core_clk 0>;
84 };
85
86 intc: main-interrupt-ctrl@20200 {
87 compatible = "marvell,orion-intc";
88 interrupt-controller;
89 #interrupt-cells = <1>;
90 reg = <0x20200 0x10>, <0x20210 0x10>;
91 };
92
93 bridge_intc: bridge-interrupt-ctrl@20110 {
94 compatible = "marvell,orion-bridge-intc";
95 interrupt-controller;
96 #interrupt-cells = <1>;
97 reg = <0x20110 0x8>;
98 interrupts = <1>;
99 marvell,#interrupts = <6>;
100 };
101
Andrew Lunn1611f872012-11-17 15:22:28 +0100102 core_clk: core-clocks@10030 {
103 compatible = "marvell,kirkwood-core-clock";
104 reg = <0x10030 0x4>;
105 #clock-cells = <1>;
106 };
107
Andrew Lunn278b45b2012-06-27 13:40:04 +0200108 gpio0: gpio@10100 {
109 compatible = "marvell,orion-gpio";
110 #gpio-cells = <2>;
111 gpio-controller;
112 reg = <0x10100 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +0100113 ngpios = <32>;
114 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +0100115 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200116 interrupts = <35>, <36>, <37>, <38>;
Andrew Lunnde887472013-02-03 11:34:26 +0100117 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200118 };
119
120 gpio1: gpio@10140 {
121 compatible = "marvell,orion-gpio";
122 #gpio-cells = <2>;
123 gpio-controller;
124 reg = <0x10140 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +0100125 ngpios = <18>;
126 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +0100127 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200128 interrupts = <39>, <40>, <41>;
Andrew Lunnde887472013-02-03 11:34:26 +0100129 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200130 };
131
Jason Cooper163f2ce2012-03-15 01:00:27 +0000132 serial@12000 {
133 compatible = "ns16550a";
134 reg = <0x12000 0x100>;
135 reg-shift = <2>;
136 interrupts = <33>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100137 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000138 status = "disabled";
139 };
140
141 serial@12100 {
142 compatible = "ns16550a";
143 reg = <0x12100 0x100>;
144 reg-shift = <2>;
145 interrupts = <34>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100146 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000147 status = "disabled";
148 };
Jason Coopere871b872012-03-06 23:55:04 +0000149
Michael Walle76372122012-06-06 20:30:57 +0200150 spi@10600 {
151 compatible = "marvell,orion-spi";
152 #address-cells = <1>;
153 #size-cells = <0>;
154 cell-index = <0>;
155 interrupts = <23>;
156 reg = <0x10600 0x28>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100157 clocks = <&gate_clk 7>;
Michael Walle76372122012-06-06 20:30:57 +0200158 status = "disabled";
159 };
160
Andrew Lunn1611f872012-11-17 15:22:28 +0100161 gate_clk: clock-gating-control@2011c {
162 compatible = "marvell,kirkwood-gating-clock";
163 reg = <0x2011c 0x4>;
164 clocks = <&core_clk 0>;
165 #clock-cells = <1>;
166 };
167
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200168 wdt: watchdog-timer@20300 {
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200169 compatible = "marvell,orion-wdt";
170 reg = <0x20300 0x28>;
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200171 interrupt-parent = <&bridge_intc>;
172 interrupts = <3>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100173 clocks = <&gate_clk 7>;
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200174 status = "okay";
175 };
176
Andrew Lunnc896ed02012-11-18 11:44:57 +0100177 xor@60800 {
178 compatible = "marvell,orion-xor";
179 reg = <0x60800 0x100
180 0x60A00 0x100>;
181 status = "okay";
182 clocks = <&gate_clk 8>;
183
184 xor00 {
185 interrupts = <5>;
186 dmacap,memcpy;
187 dmacap,xor;
188 };
189 xor01 {
190 interrupts = <6>;
191 dmacap,memcpy;
192 dmacap,xor;
193 dmacap,memset;
194 };
195 };
196
197 xor@60900 {
198 compatible = "marvell,orion-xor";
199 reg = <0x60900 0x100
Quentin Armitageddf7e392013-09-19 12:00:29 +0100200 0x60B00 0x100>;
Andrew Lunnc896ed02012-11-18 11:44:57 +0100201 status = "okay";
202 clocks = <&gate_clk 16>;
203
204 xor00 {
205 interrupts = <7>;
206 dmacap,memcpy;
207 dmacap,xor;
208 };
209 xor01 {
210 interrupts = <8>;
211 dmacap,memcpy;
212 dmacap,xor;
213 dmacap,memset;
214 };
215 };
216
Andrew Lunnb6cf8072012-10-20 13:10:01 +0200217 ehci@50000 {
218 compatible = "marvell,orion-ehci";
219 reg = <0x50000 0x1000>;
220 interrupts = <19>;
Andrew Lunn53dfa8e2013-01-06 11:10:34 +0100221 clocks = <&gate_clk 3>;
Andrew Lunnb6cf8072012-10-20 13:10:01 +0200222 status = "okay";
223 };
224
Andrew Lunne91cac02012-07-20 13:51:55 +0200225 i2c@11000 {
226 compatible = "marvell,mv64xxx-i2c";
227 reg = <0x11000 0x20>;
228 #address-cells = <1>;
229 #size-cells = <0>;
230 interrupts = <29>;
231 clock-frequency = <100000>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100232 clocks = <&gate_clk 7>;
Andrew Lunne91cac02012-07-20 13:51:55 +0200233 status = "disabled";
234 };
Andrew Lunnf37fbd32012-09-03 20:29:34 +0200235
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200236 mdio: mdio-bus@72004 {
237 compatible = "marvell,orion-mdio";
238 #address-cells = <1>;
239 #size-cells = <0>;
240 reg = <0x72004 0x84>;
241 interrupts = <46>;
242 clocks = <&gate_clk 0>;
243 status = "disabled";
244
245 /* add phy nodes in board file */
246 };
247
248 eth0: ethernet-controller@72000 {
249 compatible = "marvell,kirkwood-eth";
250 #address-cells = <1>;
251 #size-cells = <0>;
252 reg = <0x72000 0x4000>;
253 clocks = <&gate_clk 0>;
254 marvell,tx-checksum-limit = <1600>;
255 status = "disabled";
256
257 ethernet0-port@0 {
258 device_type = "network";
259 compatible = "marvell,kirkwood-eth-port";
260 reg = <0>;
261 interrupts = <11>;
262 /* overwrite MAC address in bootloader */
263 local-mac-address = [00 00 00 00 00 00];
264 /* set phy-handle property in board file */
265 };
266 };
267
268 eth1: ethernet-controller@76000 {
269 compatible = "marvell,kirkwood-eth";
270 #address-cells = <1>;
271 #size-cells = <0>;
272 reg = <0x76000 0x4000>;
273 clocks = <&gate_clk 19>;
274 marvell,tx-checksum-limit = <1600>;
275 status = "disabled";
276
277 ethernet1-port@0 {
278 device_type = "network";
279 compatible = "marvell,kirkwood-eth-port";
280 reg = <0>;
281 interrupts = <15>;
282 /* overwrite MAC address in bootloader */
283 local-mac-address = [00 00 00 00 00 00];
284 /* set phy-handle property in board file */
285 };
286 };
Jason Cooper163f2ce2012-03-15 01:00:27 +0000287 };
288};