blob: cf7aeaf89e9c1a6b8795113e0726c48b58f16803 [file] [log] [blame]
Jason Cooper3d468b62012-02-27 16:07:13 +00001/include/ "skeleton.dtsi"
2
Ezequiel Garcia3ec81e72013-07-26 10:18:04 -03003#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
4
Jason Cooper3d468b62012-02-27 16:07:13 +00005/ {
Andrew Lunn77843502012-07-18 19:22:54 +02006 compatible = "marvell,kirkwood";
Andrew Lunn278b45b2012-06-27 13:40:04 +02007 interrupt-parent = <&intc>;
8
Adam Baker33a66752013-06-02 22:59:50 +01009 cpus {
10 #address-cells = <1>;
11 #size-cells = <0>;
12
13 cpu@0 {
14 device_type = "cpu";
15 compatible = "marvell,feroceon";
16 clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
17 clock-names = "cpu_clk", "ddrclk", "powersave";
18 };
19 };
20
Andrew Lunnf9e75922012-11-17 17:00:44 +010021 aliases {
22 gpio0 = &gpio0;
23 gpio1 = &gpio1;
24 };
Jason Cooper3d468b62012-02-27 16:07:13 +000025
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030026 mbus {
27 compatible = "marvell,kirkwood-mbus", "simple-bus";
Ezequiel Garcia54397d82013-07-26 10:18:05 -030028 #address-cells = <2>;
29 #size-cells = <1>;
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030030 controller = <&mbusc>;
Ezequiel Garcia54397d82013-07-26 10:18:05 -030031 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
32 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030033 };
34
Jason Cooper163f2ce2012-03-15 01:00:27 +000035 ocp@f1000000 {
36 compatible = "simple-bus";
Ezequiel Garcia01db5272013-06-18 12:31:19 -030037 ranges = <0x00000000 0xf1000000 0x0100000
38 0xf4000000 0xf4000000 0x0000400
Andrew Lunnf37fbd32012-09-03 20:29:34 +020039 0xf5000000 0xf5000000 0x0000400>;
Jason Cooper163f2ce2012-03-15 01:00:27 +000040 #address-cells = <1>;
41 #size-cells = <1>;
42
Ezequiel Garcia455f81a2013-07-26 10:18:03 -030043 mbusc: mbus-controller@20000 {
44 compatible = "marvell,mbus-controller";
45 reg = <0x20000 0x80>, <0x1500 0x20>;
46 };
47
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +020048 timer: timer@20300 {
49 compatible = "marvell,orion-timer";
50 reg = <0x20300 0x20>;
51 interrupt-parent = <&bridge_intc>;
52 interrupts = <1>, <2>;
53 clocks = <&core_clk 0>;
54 };
55
56 intc: main-interrupt-ctrl@20200 {
57 compatible = "marvell,orion-intc";
58 interrupt-controller;
59 #interrupt-cells = <1>;
60 reg = <0x20200 0x10>, <0x20210 0x10>;
61 };
62
63 bridge_intc: bridge-interrupt-ctrl@20110 {
64 compatible = "marvell,orion-bridge-intc";
65 interrupt-controller;
66 #interrupt-cells = <1>;
67 reg = <0x20110 0x8>;
68 interrupts = <1>;
69 marvell,#interrupts = <6>;
70 };
71
Andrew Lunn1611f872012-11-17 15:22:28 +010072 core_clk: core-clocks@10030 {
73 compatible = "marvell,kirkwood-core-clock";
74 reg = <0x10030 0x4>;
75 #clock-cells = <1>;
76 };
77
Andrew Lunn278b45b2012-06-27 13:40:04 +020078 gpio0: gpio@10100 {
79 compatible = "marvell,orion-gpio";
80 #gpio-cells = <2>;
81 gpio-controller;
82 reg = <0x10100 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +010083 ngpios = <32>;
84 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +010085 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +020086 interrupts = <35>, <36>, <37>, <38>;
Andrew Lunnde887472013-02-03 11:34:26 +010087 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +020088 };
89
90 gpio1: gpio@10140 {
91 compatible = "marvell,orion-gpio";
92 #gpio-cells = <2>;
93 gpio-controller;
94 reg = <0x10140 0x40>;
Andrew Lunnf9e75922012-11-17 17:00:44 +010095 ngpios = <18>;
96 interrupt-controller;
Sebastian Hesselbarth09d75bc2013-01-22 20:46:33 +010097 #interrupt-cells = <2>;
Andrew Lunn278b45b2012-06-27 13:40:04 +020098 interrupts = <39>, <40>, <41>;
Andrew Lunnde887472013-02-03 11:34:26 +010099 clocks = <&gate_clk 7>;
Andrew Lunn278b45b2012-06-27 13:40:04 +0200100 };
101
Jason Cooper163f2ce2012-03-15 01:00:27 +0000102 serial@12000 {
103 compatible = "ns16550a";
104 reg = <0x12000 0x100>;
105 reg-shift = <2>;
106 interrupts = <33>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100107 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000108 status = "disabled";
109 };
110
111 serial@12100 {
112 compatible = "ns16550a";
113 reg = <0x12100 0x100>;
114 reg-shift = <2>;
115 interrupts = <34>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100116 clocks = <&gate_clk 7>;
Jason Cooper163f2ce2012-03-15 01:00:27 +0000117 status = "disabled";
118 };
Jason Coopere871b872012-03-06 23:55:04 +0000119
Michael Walle76372122012-06-06 20:30:57 +0200120 spi@10600 {
121 compatible = "marvell,orion-spi";
122 #address-cells = <1>;
123 #size-cells = <0>;
124 cell-index = <0>;
125 interrupts = <23>;
126 reg = <0x10600 0x28>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100127 clocks = <&gate_clk 7>;
Michael Walle76372122012-06-06 20:30:57 +0200128 status = "disabled";
129 };
130
Andrew Lunn1611f872012-11-17 15:22:28 +0100131 gate_clk: clock-gating-control@2011c {
132 compatible = "marvell,kirkwood-gating-clock";
133 reg = <0x2011c 0x4>;
134 clocks = <&core_clk 0>;
135 #clock-cells = <1>;
136 };
137
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200138 wdt: watchdog-timer@20300 {
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200139 compatible = "marvell,orion-wdt";
140 reg = <0x20300 0x28>;
Sebastian Hesselbarth15f18592013-07-02 13:03:38 +0200141 interrupt-parent = <&bridge_intc>;
142 interrupts = <3>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100143 clocks = <&gate_clk 7>;
Andrew Lunn1e7bad02012-06-10 15:20:06 +0200144 status = "okay";
145 };
146
Andrew Lunnc896ed02012-11-18 11:44:57 +0100147 xor@60800 {
148 compatible = "marvell,orion-xor";
149 reg = <0x60800 0x100
150 0x60A00 0x100>;
151 status = "okay";
152 clocks = <&gate_clk 8>;
153
154 xor00 {
155 interrupts = <5>;
156 dmacap,memcpy;
157 dmacap,xor;
158 };
159 xor01 {
160 interrupts = <6>;
161 dmacap,memcpy;
162 dmacap,xor;
163 dmacap,memset;
164 };
165 };
166
167 xor@60900 {
168 compatible = "marvell,orion-xor";
169 reg = <0x60900 0x100
170 0xd0B00 0x100>;
171 status = "okay";
172 clocks = <&gate_clk 16>;
173
174 xor00 {
175 interrupts = <7>;
176 dmacap,memcpy;
177 dmacap,xor;
178 };
179 xor01 {
180 interrupts = <8>;
181 dmacap,memcpy;
182 dmacap,xor;
183 dmacap,memset;
184 };
185 };
186
Andrew Lunnb6cf8072012-10-20 13:10:01 +0200187 ehci@50000 {
188 compatible = "marvell,orion-ehci";
189 reg = <0x50000 0x1000>;
190 interrupts = <19>;
Andrew Lunn53dfa8e2013-01-06 11:10:34 +0100191 clocks = <&gate_clk 3>;
Andrew Lunnb6cf8072012-10-20 13:10:01 +0200192 status = "okay";
193 };
194
Jamie Lentin858156b2012-04-18 11:06:42 +0100195 nand@3000000 {
196 #address-cells = <1>;
197 #size-cells = <1>;
198 cle = <0>;
199 ale = <1>;
200 bank-width = <1>;
Andrew Lunn77843502012-07-18 19:22:54 +0200201 compatible = "marvell,orion-nand";
Ezequiel Garcia01db5272013-06-18 12:31:19 -0300202 reg = <0xf4000000 0x400>;
Jamie Lentin858156b2012-04-18 11:06:42 +0100203 chip-delay = <25>;
204 /* set partition map and/or chip-delay in board dts */
Andrew Lunn1611f872012-11-17 15:22:28 +0100205 clocks = <&gate_clk 7>;
Jamie Lentin858156b2012-04-18 11:06:42 +0100206 status = "disabled";
207 };
Andrew Lunne91cac02012-07-20 13:51:55 +0200208
209 i2c@11000 {
210 compatible = "marvell,mv64xxx-i2c";
211 reg = <0x11000 0x20>;
212 #address-cells = <1>;
213 #size-cells = <0>;
214 interrupts = <29>;
215 clock-frequency = <100000>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100216 clocks = <&gate_clk 7>;
Andrew Lunne91cac02012-07-20 13:51:55 +0200217 status = "disabled";
218 };
Andrew Lunnf37fbd32012-09-03 20:29:34 +0200219
220 crypto@30000 {
221 compatible = "marvell,orion-crypto";
222 reg = <0x30000 0x10000>,
223 <0xf5000000 0x800>;
224 reg-names = "regs", "sram";
225 interrupts = <22>;
Andrew Lunn1611f872012-11-17 15:22:28 +0100226 clocks = <&gate_clk 17>;
Andrew Lunnf37fbd32012-09-03 20:29:34 +0200227 status = "okay";
228 };
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200229
230 mdio: mdio-bus@72004 {
231 compatible = "marvell,orion-mdio";
232 #address-cells = <1>;
233 #size-cells = <0>;
234 reg = <0x72004 0x84>;
235 interrupts = <46>;
236 clocks = <&gate_clk 0>;
237 status = "disabled";
238
239 /* add phy nodes in board file */
240 };
241
242 eth0: ethernet-controller@72000 {
243 compatible = "marvell,kirkwood-eth";
244 #address-cells = <1>;
245 #size-cells = <0>;
246 reg = <0x72000 0x4000>;
247 clocks = <&gate_clk 0>;
248 marvell,tx-checksum-limit = <1600>;
249 status = "disabled";
250
251 ethernet0-port@0 {
252 device_type = "network";
253 compatible = "marvell,kirkwood-eth-port";
254 reg = <0>;
255 interrupts = <11>;
256 /* overwrite MAC address in bootloader */
257 local-mac-address = [00 00 00 00 00 00];
258 /* set phy-handle property in board file */
259 };
260 };
261
262 eth1: ethernet-controller@76000 {
263 compatible = "marvell,kirkwood-eth";
264 #address-cells = <1>;
265 #size-cells = <0>;
266 reg = <0x76000 0x4000>;
267 clocks = <&gate_clk 19>;
268 marvell,tx-checksum-limit = <1600>;
269 status = "disabled";
270
271 ethernet1-port@0 {
272 device_type = "network";
273 compatible = "marvell,kirkwood-eth-port";
274 reg = <0>;
275 interrupts = <15>;
276 /* overwrite MAC address in bootloader */
277 local-mac-address = [00 00 00 00 00 00];
278 /* set phy-handle property in board file */
279 };
280 };
Jason Cooper163f2ce2012-03-15 01:00:27 +0000281 };
282};