2 * Copyright 2014 Carlo Caione <carlo@caione.org>
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
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.
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.
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,
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
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
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.
48 #include <dt-bindings/interrupt-controller/irq.h>
49 #include <dt-bindings/interrupt-controller/arm-gic.h>
50 /include/ "skeleton.dtsi"
53 interrupt-parent = <&gic>;
55 L2: l2-cache-controller@c4200000 {
56 compatible = "arm,pl310-cache";
57 reg = <0xc4200000 0x1000>;
62 gic: interrupt-controller@c4301000 {
63 compatible = "arm,cortex-a9-gic";
64 reg = <0xc4301000 0x1000>,
67 #interrupt-cells = <3>;
71 compatible = "simple-bus";
77 compatible = "simple-bus";
78 reg = <0xc1100000 0x200000>;
81 ranges = <0x0 0xc1100000 0x200000>;
84 compatible = "amlogic,meson-mx-assist", "syscon";
89 compatible = "amlogic,meson-rng";
94 compatible = "amlogic,meson6-uart";
96 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
100 uart_B: serial@84dc {
101 compatible = "amlogic,meson6-uart";
103 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
108 compatible = "amlogic,meson6-i2c";
110 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
111 #address-cells = <1>;
117 compatible = "amlogic,meson-pwm";
124 compatible = "amlogic,meson-pwm";
131 compatible = "amlogic,meson-saradc";
133 #io-channel-cells = <1>;
134 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
138 uart_C: serial@8700 {
139 compatible = "amlogic,meson6-uart";
141 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
146 compatible = "amlogic,meson6-i2c";
148 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
149 #address-cells = <1>;
155 compatible = "amlogic,meson-mx-usb2-phy";
162 compatible = "amlogic,meson-mx-usb2-phy";
169 compatible = "amlogic,meson-mx-sdio";
171 interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
172 #address-cells = <1>;
178 compatible = "amlogic,meson6-spifc";
180 #address-cells = <1>;
185 gpio_intc: interrupt-controller@9880 {
186 compatible = "amlogic,meson-gpio-intc";
188 interrupt-controller;
189 #interrupt-cells = <2>;
190 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
195 compatible = "amlogic,meson6-wdt";
197 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
201 compatible = "amlogic,meson6-timer";
203 interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>;
207 aobus: aobus@c8100000 {
208 compatible = "simple-bus";
209 reg = <0xc8100000 0x100000>;
210 #address-cells = <1>;
212 ranges = <0x0 0xc8100000 0x100000>;
214 ir_receiver: ir-receiver@480 {
215 compatible= "amlogic,meson6-ir";
217 interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
221 uart_AO: serial@4c0 {
222 compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart";
224 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
229 compatible = "amlogic,meson6-i2c";
231 interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
232 #address-cells = <1>;
239 compatible = "snps,dwc2";
240 #address-cells = <1>;
242 reg = <0xc9040000 0x40000>;
243 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
245 phy-names = "usb2-phy";
251 compatible = "snps,dwc2";
252 #address-cells = <1>;
254 reg = <0xc90c0000 0x40000>;
255 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
257 phy-names = "usb2-phy";
262 ethmac: ethernet@c9410000 {
263 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
264 reg = <0xc9410000 0x10000
266 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
267 interrupt-names = "macirq";
271 ahb_sram: sram@d9000000 {
272 compatible = "mmio-sram";
273 reg = <0xd9000000 0x20000>;
274 #address-cells = <1>;
276 ranges = <0 0xd9000000 0x20000>;
279 bootrom: bootrom@d9040000 {
280 compatible = "amlogic,meson-mx-bootrom", "syscon";
281 reg = <0xd9040000 0x10000>;
284 secbus: secbus@da000000 {
285 compatible = "simple-bus";
286 reg = <0xda000000 0x6000>;
287 #address-cells = <1>;
289 ranges = <0x0 0xda000000 0x6000>;
292 compatible = "amlogic,meson6-efuse";
294 #address-cells = <1>;