1 // SPDX-License-Identifier: GPL-2.0
2 /include/ "skeleton.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
6 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
9 compatible = "marvell,kirkwood";
10 interrupt-parent = <&intc>;
18 compatible = "marvell,feroceon";
20 clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
21 clock-names = "cpu_clk", "ddrclk", "powersave";
32 compatible = "marvell,kirkwood-mbus", "simple-bus";
35 /* If a board file needs to change this ranges it must replace it completely */
36 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
37 MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
38 MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
40 controller = <&mbusc>;
41 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
42 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
50 compatible = "marvell,orion-nand";
51 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
53 /* set partition map and/or chip-delay in board dts */
54 clocks = <&gate_clk 7>;
55 pinctrl-0 = <&pmx_nand>;
56 pinctrl-names = "default";
60 crypto_sram: sa-sram@301 {
61 compatible = "mmio-sram";
62 reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>;
63 clocks = <&gate_clk 17>;
70 compatible = "simple-bus";
71 ranges = <0x00000000 0xf1000000 0x0100000>;
75 pinctrl: pin-controller@10000 {
76 /* set compatible property in SoC file */
80 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23",
81 "mpp24", "mpp25", "mpp26", "mpp27",
82 "mpp30", "mpp31", "mpp32", "mpp33";
83 marvell,function = "ge1";
87 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
88 "mpp4", "mpp5", "mpp18", "mpp19";
89 marvell,function = "nand";
93 * Default SPI0 pinctrl setting with CSn on mpp0,
94 * overwrite marvell,pins on board level if required.
97 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
98 marvell,function = "spi";
101 pmx_twsi0: pmx-twsi0 {
102 marvell,pins = "mpp8", "mpp9";
103 marvell,function = "twsi0";
107 * Default UART pinctrl setting without RTS/CTS,
108 * overwrite marvell,pins on board level if required.
110 pmx_uart0: pmx-uart0 {
111 marvell,pins = "mpp10", "mpp11";
112 marvell,function = "uart0";
115 pmx_uart1: pmx-uart1 {
116 marvell,pins = "mpp13", "mpp14";
117 marvell,function = "uart1";
121 core_clk: core-clocks@10030 {
122 compatible = "marvell,kirkwood-core-clock";
128 compatible = "marvell,orion-spi";
129 #address-cells = <1>;
133 reg = <0x10600 0x28>;
134 clocks = <&gate_clk 7>;
135 pinctrl-0 = <&pmx_spi>;
136 pinctrl-names = "default";
141 compatible = "marvell,orion-gpio";
144 reg = <0x10100 0x40>;
146 interrupt-controller;
147 #interrupt-cells = <2>;
148 interrupts = <35>, <36>, <37>, <38>;
149 clocks = <&gate_clk 7>;
153 compatible = "marvell,orion-gpio";
156 reg = <0x10140 0x40>;
158 interrupt-controller;
159 #interrupt-cells = <2>;
160 interrupts = <39>, <40>, <41>;
161 clocks = <&gate_clk 7>;
165 compatible = "marvell,mv64xxx-i2c";
166 reg = <0x11000 0x20>;
167 #address-cells = <1>;
170 clock-frequency = <100000>;
171 clocks = <&gate_clk 7>;
172 pinctrl-0 = <&pmx_twsi0>;
173 pinctrl-names = "default";
177 uart0: serial@12000 {
178 compatible = "ns16550a";
179 reg = <0x12000 0x100>;
182 clocks = <&gate_clk 7>;
183 pinctrl-0 = <&pmx_uart0>;
184 pinctrl-names = "default";
188 uart1: serial@12100 {
189 compatible = "ns16550a";
190 reg = <0x12100 0x100>;
193 clocks = <&gate_clk 7>;
194 pinctrl-0 = <&pmx_uart1>;
195 pinctrl-names = "default";
199 mbusc: mbus-controller@20000 {
200 compatible = "marvell,mbus-controller";
201 reg = <0x20000 0x80>, <0x1500 0x20>;
204 sysc: system-controller@20000 {
205 compatible = "marvell,orion-system-controller";
206 reg = <0x20000 0x120>;
209 bridge_intc: bridge-interrupt-ctrl@20110 {
210 compatible = "marvell,orion-bridge-intc";
211 interrupt-controller;
212 #interrupt-cells = <1>;
215 marvell,#interrupts = <6>;
218 gate_clk: clock-gating-control@2011c {
219 compatible = "marvell,kirkwood-gating-clock";
221 clocks = <&core_clk 0>;
226 compatible = "marvell,kirkwood-cache";
230 intc: main-interrupt-ctrl@20200 {
231 compatible = "marvell,orion-intc";
232 interrupt-controller;
233 #interrupt-cells = <1>;
234 reg = <0x20200 0x10>, <0x20210 0x10>;
238 compatible = "marvell,orion-timer";
239 reg = <0x20300 0x20>;
240 interrupt-parent = <&bridge_intc>;
241 interrupts = <1>, <2>;
242 clocks = <&core_clk 0>;
245 wdt: watchdog-timer@20300 {
246 compatible = "marvell,orion-wdt";
247 reg = <0x20300 0x28>, <0x20108 0x4>;
248 interrupt-parent = <&bridge_intc>;
250 clocks = <&gate_clk 7>;
255 compatible = "marvell,kirkwood-crypto";
256 reg = <0x30000 0x10000>;
259 clocks = <&gate_clk 17>;
260 marvell,crypto-srams = <&crypto_sram>;
261 marvell,crypto-sram-size = <0x800>;
266 compatible = "marvell,orion-ehci";
267 reg = <0x50000 0x1000>;
269 clocks = <&gate_clk 3>;
274 compatible = "marvell,orion-xor";
278 clocks = <&gate_clk 8>;
294 compatible = "marvell,orion-xor";
298 clocks = <&gate_clk 16>;
313 eth0: ethernet-controller@72000 {
314 compatible = "marvell,kirkwood-eth";
315 #address-cells = <1>;
317 reg = <0x72000 0x4000>;
318 clocks = <&gate_clk 0>;
319 marvell,tx-checksum-limit = <1600>;
322 eth0port: ethernet0-port@0 {
323 compatible = "marvell,kirkwood-eth-port";
326 /* overwrite MAC address in bootloader */
327 local-mac-address = [00 00 00 00 00 00];
328 /* set phy-handle property in board file */
332 mdio: mdio-bus@72004 {
333 compatible = "marvell,orion-mdio";
334 #address-cells = <1>;
336 reg = <0x72004 0x84>;
338 clocks = <&gate_clk 0>;
341 /* add phy nodes in board file */
344 eth1: ethernet-controller@76000 {
345 compatible = "marvell,kirkwood-eth";
346 #address-cells = <1>;
348 reg = <0x76000 0x4000>;
349 clocks = <&gate_clk 19>;
350 marvell,tx-checksum-limit = <1600>;
351 pinctrl-0 = <&pmx_ge1>;
352 pinctrl-names = "default";
355 eth1port: ethernet1-port@0 {
356 compatible = "marvell,kirkwood-eth-port";
359 /* overwrite MAC address in bootloader */
360 local-mac-address = [00 00 00 00 00 00];
361 /* set phy-handle property in board file */
365 sata_phy0: sata-phy@82000 {
366 compatible = "marvell,mvebu-sata-phy";
367 reg = <0x82000 0x0334>;
368 clocks = <&gate_clk 14>;
369 clock-names = "sata";
374 sata_phy1: sata-phy@84000 {
375 compatible = "marvell,mvebu-sata-phy";
376 reg = <0x84000 0x0334>;
377 clocks = <&gate_clk 15>;
378 clock-names = "sata";
383 audio0: audio-controller@a0000 {
384 compatible = "marvell,kirkwood-audio";
385 #sound-dai-cells = <0>;
386 reg = <0xa0000 0x2210>;
388 clocks = <&gate_clk 9>;
389 clock-names = "internal";