1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/gpio/gpio.h>
5 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
10 compatible = "marvell,kirkwood";
11 interrupt-parent = <&intc>;
19 compatible = "marvell,feroceon";
21 clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
22 clock-names = "cpu_clk", "ddrclk", "powersave";
33 compatible = "marvell,kirkwood-mbus", "simple-bus";
36 /* If a board file needs to change this ranges it must replace it completely */
37 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
38 MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
39 MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
41 controller = <&mbusc>;
42 pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
43 pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
51 compatible = "marvell,orion-nand";
52 reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
54 /* set partition map and/or chip-delay in board dts */
55 clocks = <&gate_clk 7>;
56 pinctrl-0 = <&pmx_nand>;
57 pinctrl-names = "default";
61 crypto_sram: sa-sram@301 {
62 compatible = "mmio-sram";
63 reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>;
64 clocks = <&gate_clk 17>;
71 compatible = "simple-bus";
72 ranges = <0x00000000 0xf1000000 0x0100000>;
76 pinctrl: pin-controller@10000 {
77 /* set compatible property in SoC file */
81 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23",
82 "mpp24", "mpp25", "mpp26", "mpp27",
83 "mpp30", "mpp31", "mpp32", "mpp33";
84 marvell,function = "ge1";
88 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
89 "mpp4", "mpp5", "mpp18", "mpp19";
90 marvell,function = "nand";
94 * Default SPI0 pinctrl setting with CSn on mpp0,
95 * overwrite marvell,pins on board level if required.
98 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
99 marvell,function = "spi";
102 pmx_twsi0: pmx-twsi0 {
103 marvell,pins = "mpp8", "mpp9";
104 marvell,function = "twsi0";
108 * Default UART pinctrl setting without RTS/CTS,
109 * overwrite marvell,pins on board level if required.
111 pmx_uart0: pmx-uart0 {
112 marvell,pins = "mpp10", "mpp11";
113 marvell,function = "uart0";
116 pmx_uart1: pmx-uart1 {
117 marvell,pins = "mpp13", "mpp14";
118 marvell,function = "uart1";
122 core_clk: core-clocks@10030 {
123 compatible = "marvell,kirkwood-core-clock";
129 compatible = "marvell,orion-spi";
130 #address-cells = <1>;
134 reg = <0x10600 0x28>;
135 clocks = <&gate_clk 7>;
136 pinctrl-0 = <&pmx_spi>;
137 pinctrl-names = "default";
142 compatible = "marvell,orion-gpio";
145 reg = <0x10100 0x40>;
147 interrupt-controller;
148 #interrupt-cells = <2>;
149 interrupts = <35>, <36>, <37>, <38>;
150 clocks = <&gate_clk 7>;
154 compatible = "marvell,orion-gpio";
157 reg = <0x10140 0x40>;
159 interrupt-controller;
160 #interrupt-cells = <2>;
161 interrupts = <39>, <40>, <41>;
162 clocks = <&gate_clk 7>;
166 compatible = "marvell,mv64xxx-i2c";
167 reg = <0x11000 0x20>;
168 #address-cells = <1>;
171 clock-frequency = <100000>;
172 clocks = <&gate_clk 7>;
173 pinctrl-0 = <&pmx_twsi0>;
174 pinctrl-names = "default";
178 uart0: serial@12000 {
179 compatible = "ns16550a";
180 reg = <0x12000 0x100>;
183 clocks = <&gate_clk 7>;
184 pinctrl-0 = <&pmx_uart0>;
185 pinctrl-names = "default";
189 uart1: serial@12100 {
190 compatible = "ns16550a";
191 reg = <0x12100 0x100>;
194 clocks = <&gate_clk 7>;
195 pinctrl-0 = <&pmx_uart1>;
196 pinctrl-names = "default";
200 mbusc: mbus-controller@20000 {
201 compatible = "marvell,mbus-controller";
202 reg = <0x20000 0x80>, <0x1500 0x20>;
205 sysc: system-controller@20000 {
206 compatible = "marvell,orion-system-controller";
207 reg = <0x20000 0x120>;
210 bridge_intc: bridge-interrupt-ctrl@20110 {
211 compatible = "marvell,orion-bridge-intc";
212 interrupt-controller;
213 #interrupt-cells = <1>;
216 marvell,#interrupts = <6>;
219 gate_clk: clock-gating-control@2011c {
220 compatible = "marvell,kirkwood-gating-clock";
222 clocks = <&core_clk 0>;
227 compatible = "marvell,kirkwood-cache";
231 intc: interrupt-controller@20200 {
232 compatible = "marvell,orion-intc";
233 interrupt-controller;
234 #interrupt-cells = <1>;
235 reg = <0x20200 0x10>, <0x20210 0x10>;
239 compatible = "marvell,orion-timer";
240 reg = <0x20300 0x20>;
241 interrupt-parent = <&bridge_intc>;
242 interrupts = <1>, <2>;
243 clocks = <&core_clk 0>;
246 wdt: watchdog-timer@20300 {
247 compatible = "marvell,orion-wdt";
248 reg = <0x20300 0x28>, <0x20108 0x4>;
249 interrupt-parent = <&bridge_intc>;
251 clocks = <&gate_clk 7>;
256 compatible = "marvell,kirkwood-crypto";
257 reg = <0x30000 0x10000>;
260 clocks = <&gate_clk 17>;
261 marvell,crypto-srams = <&crypto_sram>;
262 marvell,crypto-sram-size = <0x800>;
267 compatible = "marvell,orion-ehci";
268 reg = <0x50000 0x1000>;
270 clocks = <&gate_clk 3>;
275 compatible = "marvell,orion-xor";
279 clocks = <&gate_clk 8>;
295 compatible = "marvell,orion-xor";
299 clocks = <&gate_clk 16>;
314 eth0: ethernet-controller@72000 {
315 compatible = "marvell,kirkwood-eth";
316 #address-cells = <1>;
318 reg = <0x72000 0x4000>;
319 clocks = <&gate_clk 0>;
320 marvell,tx-checksum-limit = <1600>;
323 eth0port: ethernet0-port@0 {
324 compatible = "marvell,kirkwood-eth-port";
327 /* overwrite MAC address in bootloader */
328 local-mac-address = [00 00 00 00 00 00];
329 /* set phy-handle property in board file */
333 mdio: mdio-bus@72004 {
334 compatible = "marvell,orion-mdio";
335 #address-cells = <1>;
337 reg = <0x72004 0x84>;
339 clocks = <&gate_clk 0>;
342 /* add phy nodes in board file */
345 eth1: ethernet-controller@76000 {
346 compatible = "marvell,kirkwood-eth";
347 #address-cells = <1>;
349 reg = <0x76000 0x4000>;
350 clocks = <&gate_clk 19>;
351 marvell,tx-checksum-limit = <1600>;
352 pinctrl-0 = <&pmx_ge1>;
353 pinctrl-names = "default";
356 eth1port: ethernet1-port@0 {
357 compatible = "marvell,kirkwood-eth-port";
360 /* overwrite MAC address in bootloader */
361 local-mac-address = [00 00 00 00 00 00];
362 /* set phy-handle property in board file */
366 sata_phy0: sata-phy@82000 {
367 compatible = "marvell,mvebu-sata-phy";
368 reg = <0x82000 0x0334>;
369 clocks = <&gate_clk 14>;
370 clock-names = "sata";
375 sata_phy1: sata-phy@84000 {
376 compatible = "marvell,mvebu-sata-phy";
377 reg = <0x84000 0x0334>;
378 clocks = <&gate_clk 15>;
379 clock-names = "sata";
384 audio0: audio-controller@a0000 {
385 compatible = "marvell,kirkwood-audio";
386 #sound-dai-cells = <0>;
387 reg = <0xa0000 0x2210>;
389 clocks = <&gate_clk 9>;
390 clock-names = "internal";