blob: 7649dd1e0b9ee5cd6aa67d0a8ef48a3f80e08a84 [file] [log] [blame]
Neil Armstrong19bda0c2019-05-27 15:38:48 +02001// SPDX-License-Identifier: GPL-2.0 OR MIT
Carlo Caione6b112e22014-09-09 22:12:56 +02002/*
3 * Copyright 2014 Carlo Caione <carlo@caione.org>
Carlo Caione6b112e22014-09-09 22:12:56 +02004 */
5
Martin Blumenstingl5239e052017-06-15 23:33:44 +02006#include <dt-bindings/interrupt-controller/irq.h>
7#include <dt-bindings/interrupt-controller/arm-gic.h>
Carlo Caione6b112e22014-09-09 22:12:56 +02008
9/ {
Rob Herringabe60a32019-01-09 10:26:14 -060010 #address-cells = <1>;
11 #size-cells = <1>;
Carlo Caione6b112e22014-09-09 22:12:56 +020012 interrupt-parent = <&gic>;
13
Carlo Caione6b112e22014-09-09 22:12:56 +020014 soc {
15 compatible = "simple-bus";
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19
Martin Blumenstingl200a5752017-04-17 23:39:37 +020020 cbus: cbus@c1100000 {
21 compatible = "simple-bus";
22 reg = <0xc1100000 0x200000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +010023 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020024 #size-cells = <1>;
25 ranges = <0x0 0xc1100000 0x200000>;
26
Martin Blumenstinglb6db3932019-01-18 23:52:21 +010027 hhi: system-controller@4000 {
28 compatible = "amlogic,meson-hhi-sysctrl",
29 "simple-mfd",
30 "syscon";
31 reg = <0x4000 0x400>;
32 };
33
Martin Blumenstinglbd835d52017-09-23 16:14:03 +020034 assist: assist@7c00 {
35 compatible = "amlogic,meson-mx-assist", "syscon";
36 reg = <0x7c00 0x200>;
37 };
38
Martin Blumenstingla35910d2017-06-15 23:33:49 +020039 hwrng: rng@8100 {
40 compatible = "amlogic,meson-rng";
41 reg = <0x8100 0x8>;
42 };
43
Martin Blumenstingl200a5752017-04-17 23:39:37 +020044 uart_A: serial@84c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020045 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020046 reg = <0x84c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020047 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020048 status = "disabled";
49 };
50
51 uart_B: serial@84dc {
Neil Armstrongec9b5912017-06-21 16:42:12 +020052 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020053 reg = <0x84dc 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020054 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020055 status = "disabled";
56 };
57
58 i2c_A: i2c@8500 {
59 compatible = "amlogic,meson6-i2c";
60 reg = <0x8500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020061 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020062 #address-cells = <1>;
63 #size-cells = <0>;
64 status = "disabled";
65 };
66
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +020067 pwm_ab: pwm@8550 {
68 compatible = "amlogic,meson-pwm";
69 reg = <0x8550 0x10>;
70 #pwm-cells = <3>;
71 status = "disabled";
72 };
73
74 pwm_cd: pwm@8650 {
75 compatible = "amlogic,meson-pwm";
76 reg = <0x8650 0x10>;
77 #pwm-cells = <3>;
78 status = "disabled";
79 };
80
Martin Blumenstingla39a3b92017-06-15 23:33:47 +020081 saradc: adc@8680 {
82 compatible = "amlogic,meson-saradc";
83 reg = <0x8680 0x34>;
84 #io-channel-cells = <1>;
85 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
86 status = "disabled";
87 };
88
Martin Blumenstingl200a5752017-04-17 23:39:37 +020089 uart_C: serial@8700 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020090 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020091 reg = <0x8700 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020092 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020093 status = "disabled";
94 };
95
96 i2c_B: i2c@87c0 {
97 compatible = "amlogic,meson6-i2c";
98 reg = <0x87c0 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020099 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200100 #address-cells = <1>;
101 #size-cells = <0>;
102 status = "disabled";
103 };
104
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200105 usb0_phy: phy@8800 {
106 compatible = "amlogic,meson-mx-usb2-phy";
107 #phy-cells = <0>;
108 reg = <0x8800 0x20>;
109 status = "disabled";
110 };
111
112 usb1_phy: phy@8820 {
113 compatible = "amlogic,meson-mx-usb2-phy";
114 #phy-cells = <0>;
115 reg = <0x8820 0x20>;
116 status = "disabled";
117 };
118
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200119 sdio: mmc@8c20 {
120 compatible = "amlogic,meson-mx-sdio";
121 reg = <0x8c20 0x20>;
122 interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
123 #address-cells = <1>;
124 #size-cells = <0>;
125 status = "disabled";
126 };
127
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200128 spifc: spi@8c80 {
129 compatible = "amlogic,meson6-spifc";
130 reg = <0x8c80 0x80>;
131 #address-cells = <1>;
132 #size-cells = <0>;
133 status = "disabled";
134 };
135
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200136 sdhc: mmc@8e00 {
137 compatible = "amlogic,meson-mx-sdhc";
138 reg = <0x8e00 0x42>;
139 interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
140 status = "disabled";
141 };
142
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100143 gpio_intc: interrupt-controller@9880 {
144 compatible = "amlogic,meson-gpio-intc";
Martin Blumenstingl9fd7a2e2017-10-30 00:17:15 +0100145 reg = <0x9880 0x10>;
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100146 interrupt-controller;
147 #interrupt-cells = <2>;
148 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
149 status = "disabled";
150 };
151
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200152 wdt: watchdog@9900 {
153 compatible = "amlogic,meson6-wdt";
154 reg = <0x9900 0x8>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200155 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200156 };
157
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100158 timer_abcde: timer@9940 {
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200159 compatible = "amlogic,meson6-timer";
160 reg = <0x9940 0x18>;
Martin Blumenstingl523b8b32018-11-16 21:42:34 +0100161 interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
162 <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
163 <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
164 <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200165 };
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100166 };
167
Martin Blumenstingl8bcbcdb2020-08-15 20:22:23 +0200168 L2: cache-controller@c4200000 {
169 compatible = "arm,pl310-cache";
170 reg = <0xc4200000 0x1000>;
171 cache-unified;
172 cache-level = <2>;
173 };
174
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100175 periph: bus@c4300000 {
176 compatible = "simple-bus";
177 reg = <0xc4300000 0x10000>;
178 #address-cells = <1>;
179 #size-cells = <1>;
180 ranges = <0x0 0xc4300000 0x10000>;
181
182 gic: interrupt-controller@1000 {
183 compatible = "arm,cortex-a9-gic";
184 reg = <0x1000 0x1000>,
185 <0x100 0x100>;
186 interrupt-controller;
187 #interrupt-cells = <3>;
188 };
189 };
190
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200191 aobus: aobus@c8100000 {
192 compatible = "simple-bus";
193 reg = <0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100194 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200195 #size-cells = <1>;
196 ranges = <0x0 0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100197
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200198 ir_receiver: ir-receiver@480 {
199 compatible= "amlogic,meson6-ir";
200 reg = <0x480 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200201 interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200202 status = "disabled";
203 };
Linus Torvalds2183a582014-12-11 11:49:23 -0800204
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200205 uart_AO: serial@4c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200206 compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200207 reg = <0x4c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200208 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200209 status = "disabled";
210 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100211
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200212 i2c_AO: i2c@500 {
213 compatible = "amlogic,meson6-i2c";
214 reg = <0x500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200215 interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200216 #address-cells = <1>;
217 #size-cells = <0>;
218 status = "disabled";
219 };
Martin Blumenstinglf6eb9732019-04-13 18:34:21 +0200220
221 rtc: rtc@740 {
222 compatible = "amlogic,meson6-rtc";
223 reg = <0x740 0x14>;
224 interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
225 #address-cells = <1>;
226 #size-cells = <1>;
227 status = "disabled";
228 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100229 };
Beniamino Galvani2345d502015-03-01 20:45:37 +0100230
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200231 usb0: usb@c9040000 {
232 compatible = "snps,dwc2";
233 #address-cells = <1>;
234 #size-cells = <0>;
235 reg = <0xc9040000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200236 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200237 phys = <&usb0_phy>;
238 phy-names = "usb2-phy";
Martin Blumenstingl9530dcf2020-05-04 21:51:05 +0200239 g-rx-fifo-size = <512>;
240 g-np-tx-fifo-size = <500>;
241 g-tx-fifo-size = <256 192 128 128 128>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200242 dr_mode = "host";
243 status = "disabled";
244 };
245
246 usb1: usb@c90c0000 {
247 compatible = "snps,dwc2";
248 #address-cells = <1>;
249 #size-cells = <0>;
250 reg = <0xc90c0000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200251 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200252 phys = <&usb1_phy>;
253 phy-names = "usb2-phy";
254 dr_mode = "host";
255 status = "disabled";
256 };
257
Beniamino Galvani2345d502015-03-01 20:45:37 +0100258 ethmac: ethernet@c9410000 {
259 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
260 reg = <0xc9410000 0x10000
261 0xc1108108 0x4>;
Carlo Caionee35e26b2018-12-07 10:52:31 +0000262 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Beniamino Galvani2345d502015-03-01 20:45:37 +0100263 interrupt-names = "macirq";
Beniamino Galvani2345d502015-03-01 20:45:37 +0100264 status = "disabled";
265 };
Martin Blumenstingl40b5c4f2017-07-12 00:26:55 +0200266
267 ahb_sram: sram@d9000000 {
268 compatible = "mmio-sram";
269 reg = <0xd9000000 0x20000>;
270 #address-cells = <1>;
271 #size-cells = <1>;
272 ranges = <0 0xd9000000 0x20000>;
273 };
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200274
275 bootrom: bootrom@d9040000 {
276 compatible = "amlogic,meson-mx-bootrom", "syscon";
277 reg = <0xd9040000 0x10000>;
278 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200279
280 secbus: secbus@da000000 {
281 compatible = "simple-bus";
282 reg = <0xda000000 0x6000>;
283 #address-cells = <1>;
284 #size-cells = <1>;
285 ranges = <0x0 0xda000000 0x6000>;
286
287 efuse: nvmem@0 {
288 compatible = "amlogic,meson6-efuse";
289 reg = <0x0 0x2000>;
290 #address-cells = <1>;
291 #size-cells = <1>;
292 };
293 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200294 };
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100295
296 xtal: xtal-clk {
297 compatible = "fixed-clock";
298 clock-frequency = <24000000>;
299 clock-output-names = "xtal";
300 #clock-cells = <0>;
301 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200302}; /* end of / */