]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/arm64/boot/dts/amlogic/meson-gx.dtsi
ARM64: dts: meson-gxbb: Add support for the Nexbox A95X Board
[mirror_ubuntu-focal-kernel.git] / arch / arm64 / boot / dts / amlogic / meson-gx.dtsi
CommitLineData
c328666d
NA
1/*
2 * Copyright (c) 2016 BayLibre, SAS.
3 * Author: Neil Armstrong <narmstrong@baylibre.com>
4 *
5 * Copyright (c) 2016 Endless Computers, Inc.
6 * Author: Carlo Caione <carlo@endlessm.com>
7 *
8 * Copyright (c) 2016 Andreas Färber
9 *
10 * This file is dual-licensed: you can use it either under the terms
11 * of the GPL or the X11 license, at your option. Note that this dual
12 * licensing only applies to this file, and not this project as a
13 * whole.
14 *
15 * a) This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of the
18 * License, or (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * Or, alternatively,
26 *
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use,
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
34 * conditions:
35 *
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
38 *
39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
47 */
48
49#include <dt-bindings/gpio/gpio.h>
50#include <dt-bindings/interrupt-controller/irq.h>
51#include <dt-bindings/interrupt-controller/arm-gic.h>
52
53/ {
54 interrupt-parent = <&gic>;
55 #address-cells = <2>;
56 #size-cells = <2>;
57
58 cpus {
59 #address-cells = <0x2>;
60 #size-cells = <0x0>;
61
62 cpu0: cpu@0 {
63 device_type = "cpu";
64 compatible = "arm,cortex-a53", "arm,armv8";
65 reg = <0x0 0x0>;
66 enable-method = "psci";
67 };
68
69 cpu1: cpu@1 {
70 device_type = "cpu";
71 compatible = "arm,cortex-a53", "arm,armv8";
72 reg = <0x0 0x1>;
73 enable-method = "psci";
74 };
75
76 cpu2: cpu@2 {
77 device_type = "cpu";
78 compatible = "arm,cortex-a53", "arm,armv8";
79 reg = <0x0 0x2>;
80 enable-method = "psci";
81 };
82
83 cpu3: cpu@3 {
84 device_type = "cpu";
85 compatible = "arm,cortex-a53", "arm,armv8";
86 reg = <0x0 0x3>;
87 enable-method = "psci";
88 };
89 };
90
91 arm-pmu {
92 compatible = "arm,cortex-a53-pmu";
93 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
94 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
95 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
96 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
97 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
98 };
99
100 psci {
101 compatible = "arm,psci-0.2";
102 method = "smc";
103 };
104
105 timer {
106 compatible = "arm,armv8-timer";
107 interrupts = <GIC_PPI 13
108 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
109 <GIC_PPI 14
110 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
111 <GIC_PPI 11
112 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
113 <GIC_PPI 10
114 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
115 };
116
117 xtal: xtal-clk {
118 compatible = "fixed-clock";
119 clock-frequency = <24000000>;
120 clock-output-names = "xtal";
121 #clock-cells = <0>;
122 };
123
124 soc {
125 compatible = "simple-bus";
126 #address-cells = <2>;
127 #size-cells = <2>;
128 ranges;
129
130 cbus: cbus@c1100000 {
131 compatible = "simple-bus";
132 reg = <0x0 0xc1100000 0x0 0x100000>;
133 #address-cells = <2>;
134 #size-cells = <2>;
135 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
136
137 uart_A: serial@84c0 {
138 compatible = "amlogic,meson-uart";
139 reg = <0x0 0x84c0 0x0 0x14>;
140 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
141 clocks = <&xtal>;
142 status = "disabled";
143 };
144 };
145
146 gic: interrupt-controller@c4301000 {
147 compatible = "arm,gic-400";
148 reg = <0x0 0xc4301000 0 0x1000>,
149 <0x0 0xc4302000 0 0x2000>,
150 <0x0 0xc4304000 0 0x2000>,
151 <0x0 0xc4306000 0 0x2000>;
152 interrupt-controller;
153 interrupts = <GIC_PPI 9
154 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
155 #interrupt-cells = <3>;
156 #address-cells = <0>;
157 };
158
159 aobus: aobus@c8100000 {
160 compatible = "simple-bus";
161 reg = <0x0 0xc8100000 0x0 0x100000>;
162 #address-cells = <2>;
163 #size-cells = <2>;
164 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
165
166 uart_AO: serial@4c0 {
167 compatible = "amlogic,meson-uart";
168 reg = <0x0 0x004c0 0x0 0x14>;
169 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
170 clocks = <&xtal>;
171 status = "disabled";
172 };
173 };
174
175 periphs: periphs@c8834000 {
176 compatible = "simple-bus";
177 reg = <0x0 0xc8834000 0x0 0x2000>;
178 #address-cells = <2>;
179 #size-cells = <2>;
180 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
181 };
182
183
184 hiubus: hiubus@c883c000 {
185 compatible = "simple-bus";
186 reg = <0x0 0xc883c000 0x0 0x2000>;
187 #address-cells = <2>;
188 #size-cells = <2>;
189 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
190 };
191
192 apb: apb@d0000000 {
193 compatible = "simple-bus";
194 reg = <0x0 0xd0000000 0x0 0x200000>;
195 #address-cells = <2>;
196 #size-cells = <2>;
197 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
198 };
199 };
200};