blob: 739b4b9cec8c506bdefe9d9fe7764fb6733efc3f [file] [log] [blame]
Andreas Färber54f884c2018-01-21 17:31:36 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Andreas Färberfdfe7f42017-02-15 11:15:20 +01002/*
3 * Actions Semi S500 SoC
4 *
5 * Copyright (c) 2016-2017 Andreas Färber
Andreas Färberfdfe7f42017-02-15 11:15:20 +01006 */
7
Cristian Ciocalteab4d1e232020-12-29 23:17:16 +02008#include <dt-bindings/clock/actions,s500-cmu.h>
Cristian Ciocalteab846f3f2020-12-29 23:17:22 +02009#include <dt-bindings/gpio/gpio.h>
Andreas Färberfdfe7f42017-02-15 11:15:20 +010010#include <dt-bindings/interrupt-controller/arm-gic.h>
Andreas Färber4dc8bf92017-06-05 21:20:17 +020011#include <dt-bindings/power/owl-s500-powergate.h>
Cristian Ciocaltea0c2e4ec2020-12-29 23:17:18 +020012#include <dt-bindings/reset/actions,s500-reset.h>
Andreas Färberfdfe7f42017-02-15 11:15:20 +010013
14/ {
15 compatible = "actions,s500";
16 interrupt-parent = <&gic>;
17 #address-cells = <1>;
18 #size-cells = <1>;
19
20 aliases {
21 };
22
23 chosen {
24 };
25
26 cpus {
27 #address-cells = <1>;
28 #size-cells = <0>;
29
30 cpu0: cpu@0 {
31 device_type = "cpu";
32 compatible = "arm,cortex-a9";
33 reg = <0x0>;
Andreas Färberad90c2b2017-02-26 17:24:54 +010034 enable-method = "actions,s500-smp";
Andreas Färberfdfe7f42017-02-15 11:15:20 +010035 };
36
37 cpu1: cpu@1 {
38 device_type = "cpu";
39 compatible = "arm,cortex-a9";
40 reg = <0x1>;
Andreas Färberad90c2b2017-02-26 17:24:54 +010041 enable-method = "actions,s500-smp";
Andreas Färberfdfe7f42017-02-15 11:15:20 +010042 };
43
44 cpu2: cpu@2 {
45 device_type = "cpu";
46 compatible = "arm,cortex-a9";
47 reg = <0x2>;
Andreas Färberad90c2b2017-02-26 17:24:54 +010048 enable-method = "actions,s500-smp";
Andreas Färber4dc8bf92017-06-05 21:20:17 +020049 power-domains = <&sps S500_PD_CPU2>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +010050 };
51
52 cpu3: cpu@3 {
53 device_type = "cpu";
54 compatible = "arm,cortex-a9";
55 reg = <0x3>;
Andreas Färberad90c2b2017-02-26 17:24:54 +010056 enable-method = "actions,s500-smp";
Andreas Färber4dc8bf92017-06-05 21:20:17 +020057 power-domains = <&sps S500_PD_CPU3>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +010058 };
59 };
60
61 arm-pmu {
62 compatible = "arm,cortex-a9-pmu";
63 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
64 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
65 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
66 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
67 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
68 };
69
70 hosc: hosc {
71 compatible = "fixed-clock";
72 clock-frequency = <24000000>;
73 #clock-cells = <0>;
74 };
75
Cristian Ciocalteab4d1e232020-12-29 23:17:16 +020076 losc: losc {
77 compatible = "fixed-clock";
78 clock-frequency = <32768>;
79 #clock-cells = <0>;
80 };
81
Andreas Färberfdfe7f42017-02-15 11:15:20 +010082 soc {
83 compatible = "simple-bus";
84 #address-cells = <1>;
85 #size-cells = <1>;
86 ranges;
87
88 scu: scu@b0020000 {
89 compatible = "arm,cortex-a9-scu";
90 reg = <0xb0020000 0x100>;
91 };
92
93 global_timer: timer@b0020200 {
94 compatible = "arm,cortex-a9-global-timer";
95 reg = <0xb0020200 0x100>;
Cristian Ciocaltea55f6c992020-08-28 16:53:17 +030096 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +010097 status = "disabled";
98 };
99
100 twd_timer: timer@b0020600 {
101 compatible = "arm,cortex-a9-twd-timer";
102 reg = <0xb0020600 0x20>;
Cristian Ciocaltea55f6c992020-08-28 16:53:17 +0300103 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100104 status = "disabled";
105 };
106
107 twd_wdt: wdt@b0020620 {
108 compatible = "arm,cortex-a9-twd-wdt";
109 reg = <0xb0020620 0xe0>;
Cristian Ciocaltea55f6c992020-08-28 16:53:17 +0300110 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100111 status = "disabled";
112 };
113
114 gic: interrupt-controller@b0021000 {
115 compatible = "arm,cortex-a9-gic";
116 reg = <0xb0021000 0x1000>,
117 <0xb0020100 0x0100>;
118 interrupt-controller;
119 #interrupt-cells = <3>;
120 };
121
122 l2: cache-controller@b0022000 {
123 compatible = "arm,pl310-cache";
124 reg = <0xb0022000 0x1000>;
125 cache-unified;
126 cache-level = <2>;
127 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
128 arm,tag-latency = <3 3 2>;
129 arm,data-latency = <5 3 3>;
130 };
131
132 uart0: serial@b0120000 {
133 compatible = "actions,s500-uart", "actions,owl-uart";
134 reg = <0xb0120000 0x2000>;
135 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200136 clocks = <&cmu CLK_UART0>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100137 status = "disabled";
138 };
139
140 uart1: serial@b0122000 {
141 compatible = "actions,s500-uart", "actions,owl-uart";
142 reg = <0xb0122000 0x2000>;
143 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200144 clocks = <&cmu CLK_UART1>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100145 status = "disabled";
146 };
147
148 uart2: serial@b0124000 {
149 compatible = "actions,s500-uart", "actions,owl-uart";
150 reg = <0xb0124000 0x2000>;
151 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200152 clocks = <&cmu CLK_UART2>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100153 status = "disabled";
154 };
155
156 uart3: serial@b0126000 {
157 compatible = "actions,s500-uart", "actions,owl-uart";
158 reg = <0xb0126000 0x2000>;
159 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200160 clocks = <&cmu CLK_UART3>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100161 status = "disabled";
162 };
163
164 uart4: serial@b0128000 {
165 compatible = "actions,s500-uart", "actions,owl-uart";
166 reg = <0xb0128000 0x2000>;
167 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200168 clocks = <&cmu CLK_UART4>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100169 status = "disabled";
170 };
171
172 uart5: serial@b012a000 {
173 compatible = "actions,s500-uart", "actions,owl-uart";
174 reg = <0xb012a000 0x2000>;
175 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200176 clocks = <&cmu CLK_UART5>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100177 status = "disabled";
178 };
179
180 uart6: serial@b012c000 {
181 compatible = "actions,s500-uart", "actions,owl-uart";
182 reg = <0xb012c000 0x2000>;
183 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Cristian Ciocaltea11bc96b2020-12-29 23:17:17 +0200184 clocks = <&cmu CLK_UART6>;
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100185 status = "disabled";
186 };
187
Cristian Ciocalteab4d1e232020-12-29 23:17:16 +0200188 cmu: clock-controller@b0160000 {
189 compatible = "actions,s500-cmu";
190 reg = <0xb0160000 0x8000>;
191 clocks = <&hosc>, <&losc>;
192 #clock-cells = <1>;
Cristian Ciocaltea0c2e4ec2020-12-29 23:17:18 +0200193 #reset-cells = <1>;
Cristian Ciocalteab4d1e232020-12-29 23:17:16 +0200194 };
195
Cristian Ciocaltea83ba46e2020-12-29 23:17:24 +0200196 i2c0: i2c@b0170000 {
197 compatible = "actions,s500-i2c";
198 reg = <0xb0170000 0x4000>;
199 clocks = <&cmu CLK_I2C0>;
200 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
201 #address-cells = <1>;
202 #size-cells = <0>;
203 status = "disabled";
204 };
205
206 i2c1: i2c@b0174000 {
207 compatible = "actions,s500-i2c";
208 reg = <0xb0174000 0x4000>;
209 clocks = <&cmu CLK_I2C1>;
210 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
211 #address-cells = <1>;
212 #size-cells = <0>;
213 status = "disabled";
214 };
215
216 i2c2: i2c@b0178000 {
217 compatible = "actions,s500-i2c";
218 reg = <0xb0178000 0x4000>;
219 clocks = <&cmu CLK_I2C2>;
220 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
221 #address-cells = <1>;
222 #size-cells = <0>;
223 status = "disabled";
224 };
225
226 i2c3: i2c@b017c000 {
227 compatible = "actions,s500-i2c";
228 reg = <0xb017c000 0x4000>;
229 clocks = <&cmu CLK_I2C3>;
230 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
231 #address-cells = <1>;
232 #size-cells = <0>;
233 status = "disabled";
234 };
235
Cristian Ciocaltea3f435fba2020-12-29 23:17:25 +0200236 sirq: interrupt-controller@b01b0200 {
237 compatible = "actions,s500-sirq";
238 reg = <0xb01b0200 0x4>;
239 interrupt-controller;
240 #interrupt-cells = <2>;
241 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>, /* SIRQ0 */
242 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>, /* SIRQ1 */
243 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; /* SIRQ2 */
244 };
245
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100246 timer: timer@b0168000 {
247 compatible = "actions,s500-timer";
248 reg = <0xb0168000 0x8000>;
249 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
250 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
251 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
252 <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
253 interrupt-names = "2hz0", "2hz1", "timer0", "timer1";
254 };
Andreas Färber740f6beb2017-02-26 04:08:53 +0100255
256 sps: power-controller@b01b0100 {
257 compatible = "actions,s500-sps";
258 reg = <0xb01b0100 0x100>;
259 #power-domain-cells = <1>;
260 };
Cristian Ciocaltea2cfb1b32020-12-29 23:17:21 +0200261
Cristian Ciocalteab846f3f2020-12-29 23:17:22 +0200262 pinctrl: pinctrl@b01b0000 {
263 compatible = "actions,s500-pinctrl";
264 reg = <0xb01b0000 0x40>, /* GPIO */
265 <0xb01b0040 0x10>, /* Multiplexing Control */
266 <0xb01b0060 0x18>, /* PAD Control */
267 <0xb01b0080 0xc>; /* PAD Drive Capacity */
268 clocks = <&cmu CLK_GPIO>;
269 gpio-controller;
270 gpio-ranges = <&pinctrl 0 0 132>;
271 #gpio-cells = <2>;
272 interrupt-controller;
273 #interrupt-cells = <2>;
274 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>, /* GPIOA */
275 <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, /* GPIOB */
276 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, /* GPIOC */
277 <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, /* GPIOD */
278 <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; /* GPIOE */
279 };
280
Cristian Ciocaltea2cfb1b32020-12-29 23:17:21 +0200281 dma: dma-controller@b0260000 {
282 compatible = "actions,s500-dma";
283 reg = <0xb0260000 0xd00>;
284 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
285 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
286 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
287 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
288 #dma-cells = <1>;
289 dma-channels = <12>;
290 dma-requests = <46>;
291 clocks = <&cmu CLK_DMAC>;
292 power-domains = <&sps S500_PD_DMA>;
293 };
Cristian Ciocaltea481c6402020-12-29 23:17:23 +0200294
295 mmc0: mmc@b0230000 {
296 compatible = "actions,s500-mmc", "actions,owl-mmc";
297 reg = <0xb0230000 0x38>;
298 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
299 clocks = <&cmu CLK_SD0>;
300 resets = <&cmu RESET_SD0>;
301 dmas = <&dma 2>;
302 dma-names = "mmc";
303 status = "disabled";
304 };
305
306 mmc1: mmc@b0234000 {
307 compatible = "actions,s500-mmc", "actions,owl-mmc";
308 reg = <0xb0234000 0x38>;
309 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
310 clocks = <&cmu CLK_SD1>;
311 resets = <&cmu RESET_SD1>;
312 dmas = <&dma 3>;
313 dma-names = "mmc";
314 status = "disabled";
315 };
316
317 mmc2: mmc@b0238000 {
318 compatible = "actions,s500-mmc", "actions,owl-mmc";
319 reg = <0xb0238000 0x38>;
320 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
321 clocks = <&cmu CLK_SD2>;
322 resets = <&cmu RESET_SD2>;
323 dmas = <&dma 4>;
324 dma-names = "mmc";
325 status = "disabled";
326 };
Cristian Ciocalteadf5060d2021-06-28 12:58:16 +0530327
328 ethernet: ethernet@b0310000 {
329 compatible = "actions,s500-emac", "actions,owl-emac";
330 reg = <0xb0310000 0x10000>;
331 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
332 clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>;
333 clock-names = "eth", "rmii";
334 resets = <&cmu RESET_ETHERNET>;
335 status = "disabled";
336 };
Andreas Färberfdfe7f42017-02-15 11:15:20 +0100337 };
338};