Loading...
1/*
2 * Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9#include "skeleton.dtsi"
10
11#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
12
13/ {
14 model = "Marvell Orion5x SoC";
15 compatible = "marvell,orion5x";
16 interrupt-parent = <&intc>;
17
18 aliases {
19 gpio0 = &gpio0;
20 };
21
22 soc {
23 #address-cells = <2>;
24 #size-cells = <1>;
25 controller = <&mbusc>;
26
27 devbus_bootcs: devbus-bootcs {
28 compatible = "marvell,orion-devbus";
29 reg = <MBUS_ID(0xf0, 0x01) 0x1046C 0x4>;
30 ranges = <0 MBUS_ID(0x01, 0x0f) 0 0xffffffff>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33 clocks = <&core_clk 0>;
34 status = "disabled";
35 };
36
37 devbus_cs0: devbus-cs0 {
38 compatible = "marvell,orion-devbus";
39 reg = <MBUS_ID(0xf0, 0x01) 0x1045C 0x4>;
40 ranges = <0 MBUS_ID(0x01, 0x1e) 0 0xffffffff>;
41 #address-cells = <1>;
42 #size-cells = <1>;
43 clocks = <&core_clk 0>;
44 status = "disabled";
45 };
46
47 devbus_cs1: devbus-cs1 {
48 compatible = "marvell,orion-devbus";
49 reg = <MBUS_ID(0xf0, 0x01) 0x10460 0x4>;
50 ranges = <0 MBUS_ID(0x01, 0x1d) 0 0xffffffff>;
51 #address-cells = <1>;
52 #size-cells = <1>;
53 clocks = <&core_clk 0>;
54 status = "disabled";
55 };
56
57 devbus_cs2: devbus-cs2 {
58 compatible = "marvell,orion-devbus";
59 reg = <MBUS_ID(0xf0, 0x01) 0x10464 0x4>;
60 ranges = <0 MBUS_ID(0x01, 0x1b) 0 0xffffffff>;
61 #address-cells = <1>;
62 #size-cells = <1>;
63 clocks = <&core_clk 0>;
64 status = "disabled";
65 };
66
67 internal-regs {
68 compatible = "simple-bus";
69 #address-cells = <1>;
70 #size-cells = <1>;
71 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
72
73 gpio0: gpio@10100 {
74 compatible = "marvell,orion-gpio";
75 #gpio-cells = <2>;
76 gpio-controller;
77 reg = <0x10100 0x40>;
78 ngpios = <32>;
79 interrupt-controller;
80 #interrupt-cells = <2>;
81 interrupts = <6>, <7>, <8>, <9>;
82 };
83
84 spi: spi@10600 {
85 compatible = "marvell,orion-spi";
86 #address-cells = <1>;
87 #size-cells = <0>;
88 cell-index = <0>;
89 reg = <0x10600 0x28>;
90 status = "disabled";
91 };
92
93 i2c: i2c@11000 {
94 compatible = "marvell,mv64xxx-i2c";
95 reg = <0x11000 0x20>;
96 #address-cells = <1>;
97 #size-cells = <0>;
98 interrupts = <5>;
99 clocks = <&core_clk 0>;
100 status = "disabled";
101 };
102
103 uart0: serial@12000 {
104 compatible = "ns16550a";
105 reg = <0x12000 0x100>;
106 reg-shift = <2>;
107 interrupts = <3>;
108 clocks = <&core_clk 0>;
109 status = "disabled";
110 };
111
112 uart1: serial@12100 {
113 compatible = "ns16550a";
114 reg = <0x12100 0x100>;
115 reg-shift = <2>;
116 interrupts = <4>;
117 clocks = <&core_clk 0>;
118 status = "disabled";
119 };
120
121 bridge_intc: bridge-interrupt-ctrl@20110 {
122 compatible = "marvell,orion-bridge-intc";
123 interrupt-controller;
124 #interrupt-cells = <1>;
125 reg = <0x20110 0x8>;
126 interrupts = <0>;
127 marvell,#interrupts = <4>;
128 };
129
130 intc: interrupt-controller@20200 {
131 compatible = "marvell,orion-intc";
132 interrupt-controller;
133 #interrupt-cells = <1>;
134 reg = <0x20200 0x08>;
135 };
136
137 timer: timer@20300 {
138 compatible = "marvell,orion-timer";
139 reg = <0x20300 0x20>;
140 interrupt-parent = <&bridge_intc>;
141 interrupts = <1>, <2>;
142 clocks = <&core_clk 0>;
143 };
144
145 wdt: wdt@20300 {
146 compatible = "marvell,orion-wdt";
147 reg = <0x20300 0x28>, <0x20108 0x4>;
148 interrupt-parent = <&bridge_intc>;
149 interrupts = <3>;
150 clocks = <&core_clk 0>;
151 status = "okay";
152 };
153
154 ehci0: ehci@50000 {
155 compatible = "marvell,orion-ehci";
156 reg = <0x50000 0x1000>;
157 interrupts = <17>;
158 status = "disabled";
159 };
160
161 xor: dma-controller@60900 {
162 compatible = "marvell,orion-xor";
163 reg = <0x60900 0x100
164 0x60b00 0x100>;
165 status = "okay";
166
167 xor00 {
168 interrupts = <30>;
169 dmacap,memcpy;
170 dmacap,xor;
171 };
172 xor01 {
173 interrupts = <31>;
174 dmacap,memcpy;
175 dmacap,xor;
176 dmacap,memset;
177 };
178 };
179
180 eth: ethernet-controller@72000 {
181 compatible = "marvell,orion-eth";
182 #address-cells = <1>;
183 #size-cells = <0>;
184 reg = <0x72000 0x4000>;
185 marvell,tx-checksum-limit = <1600>;
186 status = "disabled";
187
188 ethport: ethernet-port@0 {
189 compatible = "marvell,orion-eth-port";
190 reg = <0>;
191 interrupts = <21>;
192 /* overwrite MAC address in bootloader */
193 local-mac-address = [00 00 00 00 00 00];
194 /* set phy-handle property in board file */
195 };
196 };
197
198 mdio: mdio-bus@72004 {
199 compatible = "marvell,orion-mdio";
200 #address-cells = <1>;
201 #size-cells = <0>;
202 reg = <0x72004 0x84>;
203 interrupts = <22>;
204 status = "disabled";
205
206 /* add phy nodes in board file */
207 };
208
209 sata: sata@80000 {
210 compatible = "marvell,orion-sata";
211 reg = <0x80000 0x5000>;
212 interrupts = <29>;
213 status = "disabled";
214 };
215
216 cesa: crypto@90000 {
217 compatible = "marvell,orion-crypto";
218 reg = <0x90000 0x10000>;
219 reg-names = "regs";
220 interrupts = <28>;
221 marvell,crypto-srams = <&crypto_sram>;
222 marvell,crypto-sram-size = <0x800>;
223 status = "okay";
224 };
225
226 ehci1: ehci@a0000 {
227 compatible = "marvell,orion-ehci";
228 reg = <0xa0000 0x1000>;
229 interrupts = <12>;
230 status = "disabled";
231 };
232 };
233
234 crypto_sram: sa-sram {
235 compatible = "mmio-sram";
236 reg = <MBUS_ID(0x09, 0x00) 0x0 0x800>;
237 #address-cells = <1>;
238 #size-cells = <1>;
239 };
240 };
241};
1/*
2 * Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9/include/ "skeleton.dtsi"
10
11/ {
12 model = "Marvell Orion5x SoC";
13 compatible = "marvell,orion5x";
14 interrupt-parent = <&intc>;
15
16 aliases {
17 gpio0 = &gpio0;
18 };
19
20 intc: interrupt-controller {
21 compatible = "marvell,orion-intc";
22 interrupt-controller;
23 #interrupt-cells = <1>;
24 reg = <0xf1020200 0x08>;
25 };
26
27 ocp@f1000000 {
28 compatible = "simple-bus";
29 ranges = <0x00000000 0xf1000000 0x4000000
30 0xf2200000 0xf2200000 0x0000800>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 gpio0: gpio@10100 {
35 compatible = "marvell,orion-gpio";
36 #gpio-cells = <2>;
37 gpio-controller;
38 reg = <0x10100 0x40>;
39 ngpios = <32>;
40 interrupt-controller;
41 #interrupt-cells = <2>;
42 interrupts = <6>, <7>, <8>, <9>;
43 };
44
45 spi@10600 {
46 compatible = "marvell,orion-spi";
47 #address-cells = <1>;
48 #size-cells = <0>;
49 cell-index = <0>;
50 reg = <0x10600 0x28>;
51 status = "disabled";
52 };
53
54 i2c@11000 {
55 compatible = "marvell,mv64xxx-i2c";
56 reg = <0x11000 0x20>;
57 #address-cells = <1>;
58 #size-cells = <0>;
59 interrupts = <5>;
60 clock-frequency = <100000>;
61 status = "disabled";
62 };
63
64 serial@12000 {
65 compatible = "ns16550a";
66 reg = <0x12000 0x100>;
67 reg-shift = <2>;
68 interrupts = <3>;
69 /* set clock-frequency in board dts */
70 status = "disabled";
71 };
72
73 serial@12100 {
74 compatible = "ns16550a";
75 reg = <0x12100 0x100>;
76 reg-shift = <2>;
77 interrupts = <4>;
78 /* set clock-frequency in board dts */
79 status = "disabled";
80 };
81
82 wdt@20300 {
83 compatible = "marvell,orion-wdt";
84 reg = <0x20300 0x28>;
85 status = "okay";
86 };
87
88 ehci@50000 {
89 compatible = "marvell,orion-ehci";
90 reg = <0x50000 0x1000>;
91 interrupts = <17>;
92 status = "disabled";
93 };
94
95 xor@60900 {
96 compatible = "marvell,orion-xor";
97 reg = <0x60900 0x100
98 0x60b00 0x100>;
99 status = "okay";
100
101 xor00 {
102 interrupts = <30>;
103 dmacap,memcpy;
104 dmacap,xor;
105 };
106 xor01 {
107 interrupts = <31>;
108 dmacap,memcpy;
109 dmacap,xor;
110 dmacap,memset;
111 };
112 };
113
114 eth: ethernet-controller@72000 {
115 compatible = "marvell,orion-eth";
116 #address-cells = <1>;
117 #size-cells = <0>;
118 reg = <0x72000 0x4000>;
119 marvell,tx-checksum-limit = <1600>;
120 status = "disabled";
121
122 ethernet-port@0 {
123 compatible = "marvell,orion-eth-port";
124 reg = <0>;
125 /* overwrite MAC address in bootloader */
126 local-mac-address = [00 00 00 00 00 00];
127 /* set phy-handle property in board file */
128 };
129 };
130
131 mdio: mdio-bus@72004 {
132 compatible = "marvell,orion-mdio";
133 #address-cells = <1>;
134 #size-cells = <0>;
135 reg = <0x72004 0x84>;
136 interrupts = <22>;
137 status = "disabled";
138
139 /* add phy nodes in board file */
140 };
141
142 sata@80000 {
143 compatible = "marvell,orion-sata";
144 reg = <0x80000 0x5000>;
145 interrupts = <29>;
146 status = "disabled";
147 };
148
149 crypto@90000 {
150 compatible = "marvell,orion-crypto";
151 reg = <0x90000 0x10000>,
152 <0xf2200000 0x800>;
153 reg-names = "regs", "sram";
154 interrupts = <28>;
155 status = "okay";
156 };
157
158 ehci@a0000 {
159 compatible = "marvell,orion-ehci";
160 reg = <0xa0000 0x1000>;
161 interrupts = <12>;
162 status = "disabled";
163 };
164 };
165};