1 /include/ "skeleton.dtsi"
2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/gpio/gpio.h>
5 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
8 compatible = "marvell,kirkwood";
9 interrupt-parent = <&intc>;
17 compatible = "marvell,feroceon";
19 clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
20 clock-names = "cpu_clk", "ddrclk", "powersave";
31 compatible = "marvell,kirkwood-mbus", "simple-bus";
34 /* 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 */
39 controller = <&mbusc>;
40 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
41 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
49 compatible = "marvell,orion-nand";
50 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
52 /* set partition map and/or chip-delay in board dts */
53 clocks = <&gate_clk 7>;
54 pinctrl-0 = <&pmx_nand>;
55 pinctrl-names = "default";
59 crypto_sram: sa-sram@0301 {
60 compatible = "mmio-sram";
61 reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>;
62 clocks = <&gate_clk 17>;
69 compatible = "simple-bus";
70 ranges = <0x00000000 0xf1000000 0x0100000>;
74 pinctrl: pin-controller@10000 {
75 /* set compatible property in SoC file */
79 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23",
80 "mpp24", "mpp25", "mpp26", "mpp27",
81 "mpp30", "mpp31", "mpp32", "mpp33";
82 marvell,function = "ge1";
86 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
87 "mpp4", "mpp5", "mpp18", "mpp19";
88 marvell,function = "nand";
92 * Default SPI0 pinctrl setting with CSn on mpp0,
93 * overwrite marvell,pins on board level if required.
96 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
97 marvell,function = "spi";
100 pmx_twsi0: pmx-twsi0 {
101 marvell,pins = "mpp8", "mpp9";
102 marvell,function = "twsi0";
106 * Default UART pinctrl setting without RTS/CTS,
107 * overwrite marvell,pins on board level if required.
109 pmx_uart0: pmx-uart0 {
110 marvell,pins = "mpp10", "mpp11";
111 marvell,function = "uart0";
114 pmx_uart1: pmx-uart1 {
115 marvell,pins = "mpp13", "mpp14";
116 marvell,function = "uart1";
120 core_clk: core-clocks@10030 {
121 compatible = "marvell,kirkwood-core-clock";
127 compatible = "marvell,orion-spi";
128 #address-cells = <1>;
132 reg = <0x10600 0x28>;
133 clocks = <&gate_clk 7>;
134 pinctrl-0 = <&pmx_spi>;
135 pinctrl-names = "default";
140 compatible = "marvell,orion-gpio";
143 reg = <0x10100 0x40>;
145 interrupt-controller;
146 #interrupt-cells = <2>;
147 interrupts = <35>, <36>, <37>, <38>;
148 clocks = <&gate_clk 7>;
152 compatible = "marvell,orion-gpio";
155 reg = <0x10140 0x40>;
157 interrupt-controller;
158 #interrupt-cells = <2>;
159 interrupts = <39>, <40>, <41>;
160 clocks = <&gate_clk 7>;
164 compatible = "marvell,mv64xxx-i2c";
165 reg = <0x11000 0x20>;
166 #address-cells = <1>;
169 clock-frequency = <100000>;
170 clocks = <&gate_clk 7>;
171 pinctrl-0 = <&pmx_twsi0>;
172 pinctrl-names = "default";
176 uart0: serial@12000 {
177 compatible = "ns16550a";
178 reg = <0x12000 0x100>;
181 clocks = <&gate_clk 7>;
182 pinctrl-0 = <&pmx_uart0>;
183 pinctrl-names = "default";
187 uart1: serial@12100 {
188 compatible = "ns16550a";
189 reg = <0x12100 0x100>;
192 clocks = <&gate_clk 7>;
193 pinctrl-0 = <&pmx_uart1>;
194 pinctrl-names = "default";
198 mbusc: mbus-controller@20000 {
199 compatible = "marvell,mbus-controller";
200 reg = <0x20000 0x80>, <0x1500 0x20>;
203 sysc: system-controller@20000 {
204 compatible = "marvell,orion-system-controller";
205 reg = <0x20000 0x120>;
208 bridge_intc: bridge-interrupt-ctrl@20110 {
209 compatible = "marvell,orion-bridge-intc";
210 interrupt-controller;
211 #interrupt-cells = <1>;
214 marvell,#interrupts = <6>;
217 gate_clk: clock-gating-control@2011c {
218 compatible = "marvell,kirkwood-gating-clock";
220 clocks = <&core_clk 0>;
225 compatible = "marvell,kirkwood-cache";
229 intc: main-interrupt-ctrl@20200 {
230 compatible = "marvell,orion-intc";
231 interrupt-controller;
232 #interrupt-cells = <1>;
233 reg = <0x20200 0x10>, <0x20210 0x10>;
237 compatible = "marvell,orion-timer";
238 reg = <0x20300 0x20>;
239 interrupt-parent = <&bridge_intc>;
240 interrupts = <1>, <2>;
241 clocks = <&core_clk 0>;
244 wdt: watchdog-timer@20300 {
245 compatible = "marvell,orion-wdt";
246 reg = <0x20300 0x28>, <0x20108 0x4>;
247 interrupt-parent = <&bridge_intc>;
249 clocks = <&gate_clk 7>;
254 compatible = "marvell,kirkwood-crypto";
255 reg = <0x30000 0x10000>;
258 clocks = <&gate_clk 17>;
259 marvell,crypto-srams = <&crypto_sram>;
260 marvell,crypto-sram-size = <0x800>;
265 compatible = "marvell,orion-ehci";
266 reg = <0x50000 0x1000>;
268 clocks = <&gate_clk 3>;
273 compatible = "marvell,orion-xor";
277 clocks = <&gate_clk 8>;
293 compatible = "marvell,orion-xor";
297 clocks = <&gate_clk 16>;
312 eth0: ethernet-controller@72000 {
313 compatible = "marvell,kirkwood-eth";
314 #address-cells = <1>;
316 reg = <0x72000 0x4000>;
317 clocks = <&gate_clk 0>;
318 marvell,tx-checksum-limit = <1600>;
321 eth0port: ethernet0-port@0 {
322 compatible = "marvell,kirkwood-eth-port";
325 /* overwrite MAC address in bootloader */
326 local-mac-address = [00 00 00 00 00 00];
327 /* set phy-handle property in board file */
331 mdio: mdio-bus@72004 {
332 compatible = "marvell,orion-mdio";
333 #address-cells = <1>;
335 reg = <0x72004 0x84>;
337 clocks = <&gate_clk 0>;
340 /* add phy nodes in board file */
343 eth1: ethernet-controller@76000 {
344 compatible = "marvell,kirkwood-eth";
345 #address-cells = <1>;
347 reg = <0x76000 0x4000>;
348 clocks = <&gate_clk 19>;
349 marvell,tx-checksum-limit = <1600>;
350 pinctrl-0 = <&pmx_ge1>;
351 pinctrl-names = "default";
354 eth1port: ethernet1-port@0 {
355 compatible = "marvell,kirkwood-eth-port";
358 /* overwrite MAC address in bootloader */
359 local-mac-address = [00 00 00 00 00 00];
360 /* set phy-handle property in board file */
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";
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";
382 audio0: audio-controller@a0000 {
383 compatible = "marvell,kirkwood-audio";
384 #sound-dai-cells = <0>;
385 reg = <0xa0000 0x2210>;
387 clocks = <&gate_clk 9>;
388 clock-names = "internal";