blob: 536d6314d97e9c6c9520d38beb8d0204e63536d5 [file] [log] [blame]
Carlo Caione6b112e22014-09-09 22:12:56 +02001/*
2 * Copyright 2014 Carlo Caione <carlo@caione.org>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this library; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
46 */
47
Martin Blumenstingl5239e052017-06-15 23:33:44 +020048#include <dt-bindings/interrupt-controller/irq.h>
49#include <dt-bindings/interrupt-controller/arm-gic.h>
Carlo Caione6b112e22014-09-09 22:12:56 +020050/include/ "skeleton.dtsi"
51
52/ {
53 interrupt-parent = <&gic>;
54
Beniamino Galvani550ab392014-11-18 15:30:35 +010055 L2: l2-cache-controller@c4200000 {
56 compatible = "arm,pl310-cache";
57 reg = <0xc4200000 0x1000>;
58 cache-unified;
59 cache-level = <2>;
60 };
61
Carlo Caione6b112e22014-09-09 22:12:56 +020062 soc {
63 compatible = "simple-bus";
64 #address-cells = <1>;
65 #size-cells = <1>;
66 ranges;
67
Martin Blumenstingl200a5752017-04-17 23:39:37 +020068 cbus: cbus@c1100000 {
69 compatible = "simple-bus";
70 reg = <0xc1100000 0x200000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +010071 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020072 #size-cells = <1>;
73 ranges = <0x0 0xc1100000 0x200000>;
74
Martin Blumenstinglb6db3932019-01-18 23:52:21 +010075 hhi: system-controller@4000 {
76 compatible = "amlogic,meson-hhi-sysctrl",
77 "simple-mfd",
78 "syscon";
79 reg = <0x4000 0x400>;
80 };
81
Martin Blumenstinglbd835d52017-09-23 16:14:03 +020082 assist: assist@7c00 {
83 compatible = "amlogic,meson-mx-assist", "syscon";
84 reg = <0x7c00 0x200>;
85 };
86
Martin Blumenstingla35910d2017-06-15 23:33:49 +020087 hwrng: rng@8100 {
88 compatible = "amlogic,meson-rng";
89 reg = <0x8100 0x8>;
90 };
91
Martin Blumenstingl200a5752017-04-17 23:39:37 +020092 uart_A: serial@84c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020093 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020094 reg = <0x84c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020095 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020096 status = "disabled";
97 };
98
99 uart_B: serial@84dc {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200100 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200101 reg = <0x84dc 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200102 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200103 status = "disabled";
104 };
105
106 i2c_A: i2c@8500 {
107 compatible = "amlogic,meson6-i2c";
108 reg = <0x8500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200109 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200110 #address-cells = <1>;
111 #size-cells = <0>;
112 status = "disabled";
113 };
114
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200115 pwm_ab: pwm@8550 {
116 compatible = "amlogic,meson-pwm";
117 reg = <0x8550 0x10>;
118 #pwm-cells = <3>;
119 status = "disabled";
120 };
121
122 pwm_cd: pwm@8650 {
123 compatible = "amlogic,meson-pwm";
124 reg = <0x8650 0x10>;
125 #pwm-cells = <3>;
126 status = "disabled";
127 };
128
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200129 saradc: adc@8680 {
130 compatible = "amlogic,meson-saradc";
131 reg = <0x8680 0x34>;
132 #io-channel-cells = <1>;
133 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
134 status = "disabled";
135 };
136
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200137 uart_C: serial@8700 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200138 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200139 reg = <0x8700 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200140 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200141 status = "disabled";
142 };
143
144 i2c_B: i2c@87c0 {
145 compatible = "amlogic,meson6-i2c";
146 reg = <0x87c0 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200147 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200148 #address-cells = <1>;
149 #size-cells = <0>;
150 status = "disabled";
151 };
152
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200153 usb0_phy: phy@8800 {
154 compatible = "amlogic,meson-mx-usb2-phy";
155 #phy-cells = <0>;
156 reg = <0x8800 0x20>;
157 status = "disabled";
158 };
159
160 usb1_phy: phy@8820 {
161 compatible = "amlogic,meson-mx-usb2-phy";
162 #phy-cells = <0>;
163 reg = <0x8820 0x20>;
164 status = "disabled";
165 };
166
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200167 sdio: mmc@8c20 {
168 compatible = "amlogic,meson-mx-sdio";
169 reg = <0x8c20 0x20>;
170 interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
171 #address-cells = <1>;
172 #size-cells = <0>;
173 status = "disabled";
174 };
175
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200176 spifc: spi@8c80 {
177 compatible = "amlogic,meson6-spifc";
178 reg = <0x8c80 0x80>;
179 #address-cells = <1>;
180 #size-cells = <0>;
181 status = "disabled";
182 };
183
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100184 gpio_intc: interrupt-controller@9880 {
185 compatible = "amlogic,meson-gpio-intc";
Martin Blumenstingl9fd7a2e2017-10-30 00:17:15 +0100186 reg = <0x9880 0x10>;
Martin Blumenstingl208e4ea2017-10-30 00:17:14 +0100187 interrupt-controller;
188 #interrupt-cells = <2>;
189 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
190 status = "disabled";
191 };
192
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200193 wdt: watchdog@9900 {
194 compatible = "amlogic,meson6-wdt";
195 reg = <0x9900 0x8>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200196 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200197 };
198
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100199 timer_abcde: timer@9940 {
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200200 compatible = "amlogic,meson6-timer";
201 reg = <0x9940 0x18>;
Martin Blumenstingl523b8b32018-11-16 21:42:34 +0100202 interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
203 <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
204 <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
205 <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200206 };
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100207 };
208
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100209 periph: bus@c4300000 {
210 compatible = "simple-bus";
211 reg = <0xc4300000 0x10000>;
212 #address-cells = <1>;
213 #size-cells = <1>;
214 ranges = <0x0 0xc4300000 0x10000>;
215
216 gic: interrupt-controller@1000 {
217 compatible = "arm,cortex-a9-gic";
218 reg = <0x1000 0x1000>,
219 <0x100 0x100>;
220 interrupt-controller;
221 #interrupt-cells = <3>;
222 };
223 };
224
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200225 aobus: aobus@c8100000 {
226 compatible = "simple-bus";
227 reg = <0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100228 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200229 #size-cells = <1>;
230 ranges = <0x0 0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100231
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200232 ir_receiver: ir-receiver@480 {
233 compatible= "amlogic,meson6-ir";
234 reg = <0x480 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200235 interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200236 status = "disabled";
237 };
Linus Torvalds2183a582014-12-11 11:49:23 -0800238
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200239 uart_AO: serial@4c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200240 compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200241 reg = <0x4c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200242 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200243 status = "disabled";
244 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100245
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200246 i2c_AO: i2c@500 {
247 compatible = "amlogic,meson6-i2c";
248 reg = <0x500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200249 interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200250 #address-cells = <1>;
251 #size-cells = <0>;
252 status = "disabled";
253 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100254 };
Beniamino Galvani2345d502015-03-01 20:45:37 +0100255
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200256 usb0: usb@c9040000 {
257 compatible = "snps,dwc2";
258 #address-cells = <1>;
259 #size-cells = <0>;
260 reg = <0xc9040000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200261 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200262 phys = <&usb0_phy>;
263 phy-names = "usb2-phy";
264 dr_mode = "host";
265 status = "disabled";
266 };
267
268 usb1: usb@c90c0000 {
269 compatible = "snps,dwc2";
270 #address-cells = <1>;
271 #size-cells = <0>;
272 reg = <0xc90c0000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200273 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200274 phys = <&usb1_phy>;
275 phy-names = "usb2-phy";
276 dr_mode = "host";
277 status = "disabled";
278 };
279
Beniamino Galvani2345d502015-03-01 20:45:37 +0100280 ethmac: ethernet@c9410000 {
281 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
282 reg = <0xc9410000 0x10000
283 0xc1108108 0x4>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200284 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
Beniamino Galvani2345d502015-03-01 20:45:37 +0100285 interrupt-names = "macirq";
Beniamino Galvani2345d502015-03-01 20:45:37 +0100286 status = "disabled";
287 };
Martin Blumenstingl40b5c4f2017-07-12 00:26:55 +0200288
289 ahb_sram: sram@d9000000 {
290 compatible = "mmio-sram";
291 reg = <0xd9000000 0x20000>;
292 #address-cells = <1>;
293 #size-cells = <1>;
294 ranges = <0 0xd9000000 0x20000>;
295 };
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200296
297 bootrom: bootrom@d9040000 {
298 compatible = "amlogic,meson-mx-bootrom", "syscon";
299 reg = <0xd9040000 0x10000>;
300 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200301
302 secbus: secbus@da000000 {
303 compatible = "simple-bus";
304 reg = <0xda000000 0x6000>;
305 #address-cells = <1>;
306 #size-cells = <1>;
307 ranges = <0x0 0xda000000 0x6000>;
308
309 efuse: nvmem@0 {
310 compatible = "amlogic,meson6-efuse";
311 reg = <0x0 0x2000>;
312 #address-cells = <1>;
313 #size-cells = <1>;
314 };
315 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200316 };
317}; /* end of / */