2 * Copyright (c) 2016 Andreas Färber
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.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/interrupt-controller/irq.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/gpio/meson-gxbb-gpio.h>
47 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
48 #include <dt-bindings/clock/gxbb-clkc.h>
51 compatible = "amlogic,meson-gxbb";
52 interrupt-parent = <&gic>;
57 #address-cells = <0x2>;
62 compatible = "arm,cortex-a53", "arm,armv8";
64 enable-method = "psci";
69 compatible = "arm,cortex-a53", "arm,armv8";
71 enable-method = "psci";
76 compatible = "arm,cortex-a53", "arm,armv8";
78 enable-method = "psci";
83 compatible = "arm,cortex-a53", "arm,armv8";
85 enable-method = "psci";
90 compatible = "arm,cortex-a53-pmu";
91 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
92 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
93 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
94 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
95 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
99 compatible = "arm,psci-0.2";
104 compatible = "arm,armv8-timer";
105 interrupts = <GIC_PPI 13
106 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
108 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
110 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
112 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>;
116 compatible = "fixed-clock";
117 clock-frequency = <24000000>;
118 clock-output-names = "xtal";
123 compatible = "simple-bus";
124 #address-cells = <2>;
128 cbus: cbus@c1100000 {
129 compatible = "simple-bus";
130 reg = <0x0 0xc1100000 0x0 0x100000>;
131 #address-cells = <2>;
133 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
135 reset: reset-controller@4404 {
136 compatible = "amlogic,meson-gxbb-reset";
137 reg = <0x0 0x04404 0x0 0x20>;
141 uart_A: serial@84c0 {
142 compatible = "amlogic,meson-uart";
143 reg = <0x0 0x84c0 0x0 0x14>;
144 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
149 uart_B: serial@84dc {
150 compatible = "amlogic,meson-uart";
151 reg = <0x0 0x84dc 0x0 0x14>;
152 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
157 uart_C: serial@8700 {
158 compatible = "amlogic,meson-uart";
159 reg = <0x0 0x8700 0x0 0x14>;
160 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
166 gic: interrupt-controller@c4301000 {
167 compatible = "arm,gic-400";
168 reg = <0x0 0xc4301000 0 0x1000>,
169 <0x0 0xc4302000 0 0x2000>,
170 <0x0 0xc4304000 0 0x2000>,
171 <0x0 0xc4306000 0 0x2000>;
172 interrupt-controller;
173 interrupts = <GIC_PPI 9
174 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
175 #interrupt-cells = <3>;
176 #address-cells = <0>;
179 aobus: aobus@c8100000 {
180 compatible = "simple-bus";
181 reg = <0x0 0xc8100000 0x0 0x100000>;
182 #address-cells = <2>;
184 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
186 pinctrl_aobus: pinctrl@14 {
187 compatible = "amlogic,meson-gxbb-aobus-pinctrl";
188 #address-cells = <2>;
193 reg = <0x0 0x00014 0x0 0x8>,
194 <0x0 0x0002c 0x0 0x4>,
195 <0x0 0x00024 0x0 0x8>;
196 reg-names = "mux", "pull", "gpio";
201 uart_ao_a_pins: uart_ao_a {
203 groups = "uart_tx_ao_a", "uart_rx_ao_a";
204 function = "uart_ao";
209 uart_AO: serial@4c0 {
210 compatible = "amlogic,meson-uart";
211 reg = <0x0 0x004c0 0x0 0x14>;
212 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
218 periphs: periphs@c8834000 {
219 compatible = "simple-bus";
220 reg = <0x0 0xc8834000 0x0 0x2000>;
221 #address-cells = <2>;
223 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
226 compatible = "amlogic,meson-rng";
227 reg = <0x0 0x0 0x0 0x4>;
230 pinctrl_periphs: pinctrl@4b0 {
231 compatible = "amlogic,meson-gxbb-periphs-pinctrl";
232 #address-cells = <2>;
237 reg = <0x0 0x004b0 0x0 0x28>,
238 <0x0 0x004e8 0x0 0x14>,
239 <0x0 0x00120 0x0 0x14>,
240 <0x0 0x00430 0x0 0x40>;
241 reg-names = "mux", "pull", "pull-enable", "gpio";
248 groups = "emmc_nand_d07",
255 sdcard_pins: sdcard {
257 groups = "sdcard_d0",
267 uart_a_pins: uart_a {
269 groups = "uart_tx_a",
275 uart_b_pins: uart_b {
277 groups = "uart_tx_b",
283 uart_c_pins: uart_c {
285 groups = "uart_tx_c",
313 hiubus: hiubus@c883c000 {
314 compatible = "simple-bus";
315 reg = <0x0 0xc883c000 0x0 0x2000>;
316 #address-cells = <2>;
318 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
320 clkc: clock-controller@0 {
321 compatible = "amlogic,gxbb-clkc";
323 reg = <0x0 0x0 0x0 0x3db>;
328 compatible = "simple-bus";
329 reg = <0x0 0xd0000000 0x0 0x200000>;
330 #address-cells = <2>;
332 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
335 ethmac: ethernet@c9410000 {
336 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
337 reg = <0x0 0xc9410000 0x0 0x10000
338 0x0 0xc8834540 0x0 0x4>;
339 interrupts = <0 8 1>;
340 interrupt-names = "macirq";
341 clocks = <&clkc CLKID_ETH>;
342 clock-names = "stmmaceth";