blob: 7ae30e780506aa9e1978d42bf9eed5436deeb2c0 [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 gic: interrupt-controller@c4301000 {
63 compatible = "arm,cortex-a9-gic";
64 reg = <0xc4301000 0x1000>,
65 <0xc4300100 0x0100>;
66 interrupt-controller;
67 #interrupt-cells = <3>;
68 };
69
Carlo Caione6b112e22014-09-09 22:12:56 +020070 soc {
71 compatible = "simple-bus";
72 #address-cells = <1>;
73 #size-cells = <1>;
74 ranges;
75
Martin Blumenstingl200a5752017-04-17 23:39:37 +020076 cbus: cbus@c1100000 {
77 compatible = "simple-bus";
78 reg = <0xc1100000 0x200000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +010079 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020080 #size-cells = <1>;
81 ranges = <0x0 0xc1100000 0x200000>;
82
Martin Blumenstinglbd835d52017-09-23 16:14:03 +020083 assist: assist@7c00 {
84 compatible = "amlogic,meson-mx-assist", "syscon";
85 reg = <0x7c00 0x200>;
86 };
87
Martin Blumenstingla35910d2017-06-15 23:33:49 +020088 hwrng: rng@8100 {
89 compatible = "amlogic,meson-rng";
90 reg = <0x8100 0x8>;
91 };
92
Martin Blumenstingl200a5752017-04-17 23:39:37 +020093 uart_A: serial@84c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +020094 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +020095 reg = <0x84c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +020096 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +020097 status = "disabled";
98 };
99
100 uart_B: serial@84dc {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200101 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200102 reg = <0x84dc 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200103 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200104 status = "disabled";
105 };
106
107 i2c_A: i2c@8500 {
108 compatible = "amlogic,meson6-i2c";
109 reg = <0x8500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200110 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200111 #address-cells = <1>;
112 #size-cells = <0>;
113 status = "disabled";
114 };
115
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200116 pwm_ab: pwm@8550 {
117 compatible = "amlogic,meson-pwm";
118 reg = <0x8550 0x10>;
119 #pwm-cells = <3>;
120 status = "disabled";
121 };
122
123 pwm_cd: pwm@8650 {
124 compatible = "amlogic,meson-pwm";
125 reg = <0x8650 0x10>;
126 #pwm-cells = <3>;
127 status = "disabled";
128 };
129
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200130 saradc: adc@8680 {
131 compatible = "amlogic,meson-saradc";
132 reg = <0x8680 0x34>;
133 #io-channel-cells = <1>;
134 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
135 status = "disabled";
136 };
137
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200138 uart_C: serial@8700 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200139 compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200140 reg = <0x8700 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200141 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200142 status = "disabled";
143 };
144
145 i2c_B: i2c@87c0 {
146 compatible = "amlogic,meson6-i2c";
147 reg = <0x87c0 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200148 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200149 #address-cells = <1>;
150 #size-cells = <0>;
151 status = "disabled";
152 };
153
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200154 usb0_phy: phy@8800 {
155 compatible = "amlogic,meson-mx-usb2-phy";
156 #phy-cells = <0>;
157 reg = <0x8800 0x20>;
158 status = "disabled";
159 };
160
161 usb1_phy: phy@8820 {
162 compatible = "amlogic,meson-mx-usb2-phy";
163 #phy-cells = <0>;
164 reg = <0x8820 0x20>;
165 status = "disabled";
166 };
167
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200168 spifc: spi@8c80 {
169 compatible = "amlogic,meson6-spifc";
170 reg = <0x8c80 0x80>;
171 #address-cells = <1>;
172 #size-cells = <0>;
173 status = "disabled";
174 };
175
176 wdt: watchdog@9900 {
177 compatible = "amlogic,meson6-wdt";
178 reg = <0x9900 0x8>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200179 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200180 };
181
182 timer@9940 {
183 compatible = "amlogic,meson6-timer";
184 reg = <0x9940 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200185 interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200186 };
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100187 };
188
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200189 aobus: aobus@c8100000 {
190 compatible = "simple-bus";
191 reg = <0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100192 #address-cells = <1>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200193 #size-cells = <1>;
194 ranges = <0x0 0xc8100000 0x100000>;
Beniamino Galvani8fba96f2014-11-13 20:32:03 +0100195
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200196 ir_receiver: ir-receiver@480 {
197 compatible= "amlogic,meson6-ir";
198 reg = <0x480 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200199 interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200200 status = "disabled";
201 };
Linus Torvalds2183a582014-12-11 11:49:23 -0800202
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200203 uart_AO: serial@4c0 {
Neil Armstrongec9b5912017-06-21 16:42:12 +0200204 compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200205 reg = <0x4c0 0x18>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200206 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200207 status = "disabled";
208 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100209
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200210 i2c_AO: i2c@500 {
211 compatible = "amlogic,meson6-i2c";
212 reg = <0x500 0x20>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200213 interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl200a5752017-04-17 23:39:37 +0200214 #address-cells = <1>;
215 #size-cells = <0>;
216 status = "disabled";
217 };
Beniamino Galvani03bb9512015-03-01 20:39:51 +0100218 };
Beniamino Galvani2345d502015-03-01 20:45:37 +0100219
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200220 usb0: usb@c9040000 {
221 compatible = "snps,dwc2";
222 #address-cells = <1>;
223 #size-cells = <0>;
224 reg = <0xc9040000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200225 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200226 phys = <&usb0_phy>;
227 phy-names = "usb2-phy";
228 dr_mode = "host";
229 status = "disabled";
230 };
231
232 usb1: usb@c90c0000 {
233 compatible = "snps,dwc2";
234 #address-cells = <1>;
235 #size-cells = <0>;
236 reg = <0xc90c0000 0x40000>;
Emiliano Ingrassia291f45d2017-09-22 13:57:08 +0200237 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200238 phys = <&usb1_phy>;
239 phy-names = "usb2-phy";
240 dr_mode = "host";
241 status = "disabled";
242 };
243
Beniamino Galvani2345d502015-03-01 20:45:37 +0100244 ethmac: ethernet@c9410000 {
245 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
246 reg = <0xc9410000 0x10000
247 0xc1108108 0x4>;
Martin Blumenstingl5239e052017-06-15 23:33:44 +0200248 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
Beniamino Galvani2345d502015-03-01 20:45:37 +0100249 interrupt-names = "macirq";
Beniamino Galvani2345d502015-03-01 20:45:37 +0100250 status = "disabled";
251 };
Martin Blumenstingl40b5c4f2017-07-12 00:26:55 +0200252
253 ahb_sram: sram@d9000000 {
254 compatible = "mmio-sram";
255 reg = <0xd9000000 0x20000>;
256 #address-cells = <1>;
257 #size-cells = <1>;
258 ranges = <0 0xd9000000 0x20000>;
259 };
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200260
261 bootrom: bootrom@d9040000 {
262 compatible = "amlogic,meson-mx-bootrom", "syscon";
263 reg = <0xd9040000 0x10000>;
264 };
Carlo Caione6b112e22014-09-09 22:12:56 +0200265 };
266}; /* end of / */