blob: 5f074f7aa1a28d1ba5e4a8d7890364ac1772a272 [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
Martin Blumenstingle9ced252020-12-21 19:13:02 +010014 iio-hwmon {
15 compatible = "iio-hwmon";
16 io-channels = <&saradc 8>;
17 };
18
Carlo Caione6b112e22014-09-09 22:12:56 +020019 soc {
20 compatible = "simple-bus";
21 #address-cells = <1>;
22 #size-cells = <1>;
23 ranges;
24
Martin Blumenstingl200a5752017-04-17 23:39:37 +020025 cbus: cbus@c1100000 {
26 compatible = "simple-bus";
27 reg = <0xc1100000 0x200000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +010028 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020029 #size-cells = <1>;
30 ranges = <0x0 0xc1100000 0x200000>;
31
Martin Blumenstinglb6db3932019-01-18 23:52:21 +010032 hhi: system-controller@4000 {
33 compatible = "amlogic,meson-hhi-sysctrl",
34 "simple-mfd",
35 "syscon";
36 reg = <0x4000 0x400>;
37 };
38
Martin Blumenstinglbd835d52017-09-23 16:14:03 +020039 assist: assist@7c00 {
40 compatible = "amlogic,meson-mx-assist", "syscon";
41 reg = <0x7c00 0x200>;
42 };
43
Martin Blumenstingla35910d2017-06-15 23:33:49 +020044 hwrng: rng@8100 {
45 compatible = "amlogic,meson-rng";
46 reg = <0x8100 0x8>;
47 };
48
Martin Blumenstingl200a5752017-04-17 23:39:37 +020049 uart_A: serial@84c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020050 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020051 reg = <0x84c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020052 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020053 status = "disabled";
54 };
55
56 uart_B: serial@84dc {
Neil Armstrongec9b5912017-06-21 16:42:12 +020057 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020058 reg = <0x84dc 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020059 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020060 status = "disabled";
61 };
62
63 i2c_A: i2c@8500 {
64 compatible = "amlogic,meson6-i2c";
65 reg = <0x8500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020066 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020067 #address-cells = <1>;
68 #size-cells = <0>;
69 status = "disabled";
70 };
71
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +020072 pwm_ab: pwm@8550 {
73 compatible = "amlogic,meson-pwm";
74 reg = <0x8550 0x10>;
75 #pwm-cells = <3>;
76 status = "disabled";
77 };
78
79 pwm_cd: pwm@8650 {
80 compatible = "amlogic,meson-pwm";
81 reg = <0x8650 0x10>;
82 #pwm-cells = <3>;
83 status = "disabled";
84 };
85
Martin Blumenstingla39a3b92017-06-15 23:33:47 +020086 saradc: adc@8680 {
87 compatible = "amlogic,meson-saradc";
88 reg = <0x8680 0x34>;
89 #io-channel-cells = <1>;
90 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
91 status = "disabled";
92 };
93
Martin Blumenstingl200a5752017-04-17 23:39:37 +020094 uart_C: serial@8700 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020095 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020096 reg = <0x8700 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020097 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020098 status = "disabled";
99 };
100
101 i2c_B: i2c@87c0 {
102 compatible = "amlogic,meson6-i2c";
103 reg = <0x87c0 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200104 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200105 #address-cells = <1>;
106 #size-cells = <0>;
107 status = "disabled";
108 };
109
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200110 usb0_phy: phy@8800 {
111 compatible = "amlogic,meson-mx-usb2-phy";
112 #phy-cells = <0>;
113 reg = <0x8800 0x20>;
114 status = "disabled";
115 };
116
117 usb1_phy: phy@8820 {
118 compatible = "amlogic,meson-mx-usb2-phy";
119 #phy-cells = <0>;
120 reg = <0x8820 0x20>;
121 status = "disabled";
122 };
123
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200124 sdio: mmc@8c20 {
125 compatible = "amlogic,meson-mx-sdio";
126 reg = <0x8c20 0x20>;
127 interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
128 #address-cells = <1>;
129 #size-cells = <0>;
130 status = "disabled";
131 };
132
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200133 spifc: spi@8c80 {
134 compatible = "amlogic,meson6-spifc";
135 reg = <0x8c80 0x80>;
136 #address-cells = <1>;
137 #size-cells = <0>;
138 status = "disabled";
139 };
140
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200141 sdhc: mmc@8e00 {
142 compatible = "amlogic,meson-mx-sdhc";
143 reg = <0x8e00 0x42>;
144 interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
145 status = "disabled";
146 };
147
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100148 gpio_intc: interrupt-controller@9880 {
149 compatible = "amlogic,meson-gpio-intc";
Martin Blumenstingl9fd7a2e2017-10-30 00:17:15 +0100150 reg = <0x9880 0x10>;
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100151 interrupt-controller;
152 #interrupt-cells = <2>;
153 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
154 status = "disabled";
155 };
156
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200157 wdt: watchdog@9900 {
158 compatible = "amlogic,meson6-wdt";
159 reg = <0x9900 0x8>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200160 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200161 };
162
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100163 timer_abcde: timer@9940 {
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200164 compatible = "amlogic,meson6-timer";
165 reg = <0x9940 0x18>;
Martin Blumenstingl523b8b32018-11-16 21:42:34 +0100166 interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
167 <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
168 <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
169 <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200170 };
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100171 };
172
Martin Blumenstingl8bcbcdb2020-08-15 20:22:23 +0200173 L2: cache-controller@c4200000 {
174 compatible = "arm,pl310-cache";
175 reg = <0xc4200000 0x1000>;
176 cache-unified;
177 cache-level = <2>;
178 };
179
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100180 periph: bus@c4300000 {
181 compatible = "simple-bus";
182 reg = <0xc4300000 0x10000>;
183 #address-cells = <1>;
184 #size-cells = <1>;
185 ranges = <0x0 0xc4300000 0x10000>;
186
187 gic: interrupt-controller@1000 {
188 compatible = "arm,cortex-a9-gic";
189 reg = <0x1000 0x1000>,
190 <0x100 0x100>;
191 interrupt-controller;
192 #interrupt-cells = <3>;
193 };
194 };
195
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200196 aobus: aobus@c8100000 {
197 compatible = "simple-bus";
198 reg = <0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100199 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200200 #size-cells = <1>;
201 ranges = <0x0 0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100202
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200203 ir_receiver: ir-receiver@480 {
204 compatible= "amlogic,meson6-ir";
205 reg = <0x480 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200206 interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200207 status = "disabled";
208 };
Linus Torvalds2183a582014-12-11 11:49:23 -0800209
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200210 uart_AO: serial@4c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200211 compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200212 reg = <0x4c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200213 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200214 status = "disabled";
215 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100216
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200217 i2c_AO: i2c@500 {
218 compatible = "amlogic,meson6-i2c";
219 reg = <0x500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200220 interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200221 #address-cells = <1>;
222 #size-cells = <0>;
223 status = "disabled";
224 };
Martin Blumenstinglf6eb9732019-04-13 18:34:21 +0200225
226 rtc: rtc@740 {
227 compatible = "amlogic,meson6-rtc";
228 reg = <0x740 0x14>;
229 interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
230 #address-cells = <1>;
231 #size-cells = <1>;
232 status = "disabled";
233 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100234 };
Beniamino Galvani2345d502015-03-01 20:45:37 +0100235
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200236 usb0: usb@c9040000 {
237 compatible = "snps,dwc2";
238 #address-cells = <1>;
239 #size-cells = <0>;
240 reg = <0xc9040000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200241 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200242 phys = <&usb0_phy>;
243 phy-names = "usb2-phy";
Martin Blumenstingl9530dcf2020-05-04 21:51:05 +0200244 g-rx-fifo-size = <512>;
245 g-np-tx-fifo-size = <500>;
246 g-tx-fifo-size = <256 192 128 128 128>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200247 dr_mode = "host";
248 status = "disabled";
249 };
250
251 usb1: usb@c90c0000 {
252 compatible = "snps,dwc2";
253 #address-cells = <1>;
254 #size-cells = <0>;
255 reg = <0xc90c0000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200256 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200257 phys = <&usb1_phy>;
258 phy-names = "usb2-phy";
259 dr_mode = "host";
260 status = "disabled";
261 };
262
Beniamino Galvani2345d502015-03-01 20:45:37 +0100263 ethmac: ethernet@c9410000 {
264 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
265 reg = <0xc9410000 0x10000
266 0xc1108108 0x4>;
Carlo Caionee35e26b2018-12-07 10:52:31 +0000267 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Beniamino Galvani2345d502015-03-01 20:45:37 +0100268 interrupt-names = "macirq";
Beniamino Galvani2345d502015-03-01 20:45:37 +0100269 status = "disabled";
270 };
Martin Blumenstingl40b5c4f2017-07-12 00:26:55 +0200271
272 ahb_sram: sram@d9000000 {
273 compatible = "mmio-sram";
274 reg = <0xd9000000 0x20000>;
275 #address-cells = <1>;
276 #size-cells = <1>;
277 ranges = <0 0xd9000000 0x20000>;
278 };
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200279
280 bootrom: bootrom@d9040000 {
281 compatible = "amlogic,meson-mx-bootrom", "syscon";
282 reg = <0xd9040000 0x10000>;
283 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200284
285 secbus: secbus@da000000 {
286 compatible = "simple-bus";
287 reg = <0xda000000 0x6000>;
288 #address-cells = <1>;
289 #size-cells = <1>;
290 ranges = <0x0 0xda000000 0x6000>;
291
292 efuse: nvmem@0 {
293 compatible = "amlogic,meson6-efuse";
294 reg = <0x0 0x2000>;
295 #address-cells = <1>;
296 #size-cells = <1>;
297 };
298 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200299 };
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100300
301 xtal: xtal-clk {
302 compatible = "fixed-clock";
303 clock-frequency = <24000000>;
304 clock-output-names = "xtal";
305 #clock-cells = <0>;
306 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200307}; /* end of / */