blob: e5a601e75ef2e93312b05ed042430e9833be3c1f [file] [log] [blame]
Neil Armstrong114abfe2018-02-27 12:30:33 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Neil Armstrongc3286662016-10-04 17:37:08 +02002/*
Andreas Färber0e26f262016-11-06 20:25:34 +01003 * Copyright (c) 2016 Andreas Färber
4 *
Neil Armstrongc3286662016-10-04 17:37:08 +02005 * Copyright (c) 2016 BayLibre, SAS.
6 * Author: Neil Armstrong <narmstrong@baylibre.com>
7 *
8 * Copyright (c) 2016 Endless Computers, Inc.
9 * Author: Carlo Caione <carlo@endlessm.com>
Neil Armstrongc3286662016-10-04 17:37:08 +020010 */
11
12#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14#include <dt-bindings/interrupt-controller/arm-gic.h>
15
16/ {
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
20
Neil Armstrongbba8e3f2017-01-20 08:20:25 -080021 reserved-memory {
22 #address-cells = <2>;
23 #size-cells = <2>;
24 ranges;
25
26 /* 16 MiB reserved for Hardware ROM Firmware */
27 hwrom_reserved: hwrom@0 {
28 reg = <0x0 0x0 0x0 0x1000000>;
29 no-map;
30 };
31
32 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
33 secmon_reserved: secmon@10000000 {
34 reg = <0x0 0x10000000 0x0 0x200000>;
35 no-map;
36 };
Neil Armstronge9da7282017-03-21 16:25:45 +010037
Kevin Hilman48e21de2018-06-07 13:51:01 -070038 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
39 secmon_reserved_alt: secmon@5000000 {
40 reg = <0x0 0x05000000 0x0 0x300000>;
41 no-map;
42 };
43
Neil Armstronge9da7282017-03-21 16:25:45 +010044 linux,cma {
45 compatible = "shared-dma-pool";
46 reusable;
Christian Hewitt4cbef412018-09-04 22:30:43 +040047 size = <0x0 0x10000000>;
Neil Armstronge9da7282017-03-21 16:25:45 +010048 alignment = <0x0 0x400000>;
49 linux,cma-default;
50 };
Neil Armstrongbba8e3f2017-01-20 08:20:25 -080051 };
52
Maxime Jourdan03b37032019-01-16 13:40:30 +010053 chosen {
54 #address-cells = <2>;
55 #size-cells = <2>;
56 ranges;
57
58 simplefb_cvbs: framebuffer-cvbs {
59 compatible = "amlogic,simple-framebuffer",
60 "simple-framebuffer";
61 amlogic,pipeline = "vpu-cvbs";
62 power-domains = <&pwrc_vpu>;
63 status = "disabled";
64 };
65
66 simplefb_hdmi: framebuffer-hdmi {
67 compatible = "amlogic,simple-framebuffer",
68 "simple-framebuffer";
69 amlogic,pipeline = "vpu-hdmi";
70 power-domains = <&pwrc_vpu>;
71 status = "disabled";
72 };
73 };
74
Neil Armstrongc3286662016-10-04 17:37:08 +020075 cpus {
76 #address-cells = <0x2>;
77 #size-cells = <0x0>;
78
79 cpu0: cpu@0 {
80 device_type = "cpu";
Rob Herring31af04c2019-01-14 11:45:33 -060081 compatible = "arm,cortex-a53";
Neil Armstrongc3286662016-10-04 17:37:08 +020082 reg = <0x0 0x0>;
83 enable-method = "psci";
Neil Armstrong214ec522016-10-05 15:53:50 +020084 next-level-cache = <&l2>;
Martin Blumenstingl47961f12016-12-03 00:08:48 +010085 clocks = <&scpi_dvfs 0>;
Neil Armstrongc3286662016-10-04 17:37:08 +020086 };
87
88 cpu1: cpu@1 {
89 device_type = "cpu";
Rob Herring31af04c2019-01-14 11:45:33 -060090 compatible = "arm,cortex-a53";
Neil Armstrongc3286662016-10-04 17:37:08 +020091 reg = <0x0 0x1>;
92 enable-method = "psci";
Neil Armstrong214ec522016-10-05 15:53:50 +020093 next-level-cache = <&l2>;
Martin Blumenstingl47961f12016-12-03 00:08:48 +010094 clocks = <&scpi_dvfs 0>;
Neil Armstrongc3286662016-10-04 17:37:08 +020095 };
96
97 cpu2: cpu@2 {
98 device_type = "cpu";
Rob Herring31af04c2019-01-14 11:45:33 -060099 compatible = "arm,cortex-a53";
Neil Armstrongc3286662016-10-04 17:37:08 +0200100 reg = <0x0 0x2>;
101 enable-method = "psci";
Neil Armstrong214ec522016-10-05 15:53:50 +0200102 next-level-cache = <&l2>;
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100103 clocks = <&scpi_dvfs 0>;
Neil Armstrongc3286662016-10-04 17:37:08 +0200104 };
105
106 cpu3: cpu@3 {
107 device_type = "cpu";
Rob Herring31af04c2019-01-14 11:45:33 -0600108 compatible = "arm,cortex-a53";
Neil Armstrongc3286662016-10-04 17:37:08 +0200109 reg = <0x0 0x3>;
110 enable-method = "psci";
Neil Armstrong214ec522016-10-05 15:53:50 +0200111 next-level-cache = <&l2>;
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100112 clocks = <&scpi_dvfs 0>;
Neil Armstrong214ec522016-10-05 15:53:50 +0200113 };
114
115 l2: l2-cache0 {
116 compatible = "cache";
Neil Armstrongc3286662016-10-04 17:37:08 +0200117 };
118 };
119
120 arm-pmu {
121 compatible = "arm,cortex-a53-pmu";
122 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
123 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
124 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
125 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
126 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
127 };
128
129 psci {
130 compatible = "arm,psci-0.2";
131 method = "smc";
132 };
133
134 timer {
135 compatible = "arm,armv8-timer";
136 interrupts = <GIC_PPI 13
137 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
138 <GIC_PPI 14
139 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
140 <GIC_PPI 11
141 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
142 <GIC_PPI 10
143 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
144 };
145
146 xtal: xtal-clk {
147 compatible = "fixed-clock";
148 clock-frequency = <24000000>;
149 clock-output-names = "xtal";
150 #clock-cells = <0>;
151 };
152
Neil Armstrong998a9c82016-10-31 17:44:39 +0100153 firmware {
154 sm: secure-monitor {
155 compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
156 };
157 };
158
159 efuse: efuse {
160 compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
161 #address-cells = <1>;
162 #size-cells = <1>;
Jerome Brunetc339f0e2018-03-16 15:50:21 +0100163 read-only;
Carlo Caionede82e742019-07-31 09:23:38 +0100164 secure-monitor = <&sm>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100165
166 sn: sn@14 {
167 reg = <0x14 0x10>;
168 };
169
170 eth_mac: eth_mac@34 {
171 reg = <0x34 0x10>;
172 };
173
174 bid: bid@46 {
175 reg = <0x46 0x30>;
176 };
177 };
178
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100179 scpi {
180 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
181 mboxes = <&mailbox 1 &mailbox 2>;
182 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
183
184 scpi_clocks: clocks {
185 compatible = "arm,scpi-clocks";
186
187 scpi_dvfs: scpi_clocks@0 {
188 compatible = "arm,scpi-dvfs-clocks";
189 #clock-cells = <1>;
190 clock-indices = <0>;
191 clock-output-names = "vcpu";
192 };
193 };
194
195 scpi_sensors: sensors {
Carlo Caione5f3195e2017-06-06 12:23:42 +0200196 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100197 #thermal-sensor-cells = <1>;
198 };
199 };
200
Neil Armstrongc3286662016-10-04 17:37:08 +0200201 soc {
202 compatible = "simple-bus";
203 #address-cells = <2>;
204 #size-cells = <2>;
205 ranges;
206
Kevin Hilman0cb6c602017-12-06 11:30:05 -0800207 cbus: bus@c1100000 {
Neil Armstrongc3286662016-10-04 17:37:08 +0200208 compatible = "simple-bus";
209 reg = <0x0 0xc1100000 0x0 0x100000>;
210 #address-cells = <2>;
211 #size-cells = <2>;
212 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
213
Jerome Brunet9dbb56e2017-10-19 14:01:42 +0200214 gpio_intc: interrupt-controller@9880 {
215 compatible = "amlogic,meson-gpio-intc";
216 reg = <0x0 0x9880 0x0 0x10>;
217 interrupt-controller;
218 #interrupt-cells = <2>;
219 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
220 status = "disabled";
221 };
222
Neil Armstrong998a9c82016-10-31 17:44:39 +0100223 reset: reset-controller@4404 {
Neil Armstrong96326912019-08-23 09:02:37 +0200224 compatible = "amlogic,meson-gxbb-reset";
Neil Armstrong1eb09192017-11-20 15:19:56 +0100225 reg = <0x0 0x04404 0x0 0x9c>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100226 #reset-cells = <1>;
227 };
228
Neil Armstrongc3286662016-10-04 17:37:08 +0200229 uart_A: serial@84c0 {
Neil Armstronga87f8542017-10-11 17:39:40 +0200230 compatible = "amlogic,meson-gx-uart";
Yixun Lan77f5cdb2018-01-11 10:33:57 +0800231 reg = <0x0 0x84c0 0x0 0x18>;
Neil Armstrongc3286662016-10-04 17:37:08 +0200232 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
Neil Armstrongc3286662016-10-04 17:37:08 +0200233 status = "disabled";
234 };
Neil Armstrong998a9c82016-10-31 17:44:39 +0100235
236 uart_B: serial@84dc {
Neil Armstronga87f8542017-10-11 17:39:40 +0200237 compatible = "amlogic,meson-gx-uart";
Yixun Lan77f5cdb2018-01-11 10:33:57 +0800238 reg = <0x0 0x84dc 0x0 0x18>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100239 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100240 status = "disabled";
241 };
242
243 i2c_A: i2c@8500 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100244 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100245 reg = <0x0 0x08500 0x0 0x20>;
246 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
247 #address-cells = <1>;
248 #size-cells = <0>;
249 status = "disabled";
250 };
251
252 pwm_ab: pwm@8550 {
253 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
254 reg = <0x0 0x08550 0x0 0x10>;
255 #pwm-cells = <3>;
256 status = "disabled";
257 };
258
259 pwm_cd: pwm@8650 {
260 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
261 reg = <0x0 0x08650 0x0 0x10>;
262 #pwm-cells = <3>;
263 status = "disabled";
264 };
265
Martin Blumenstinglbd80ef52017-01-22 19:17:14 +0100266 saradc: adc@8680 {
267 compatible = "amlogic,meson-saradc";
268 reg = <0x0 0x8680 0x0 0x34>;
269 #io-channel-cells = <1>;
270 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
271 status = "disabled";
272 };
273
Neil Armstrong998a9c82016-10-31 17:44:39 +0100274 pwm_ef: pwm@86c0 {
275 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
276 reg = <0x0 0x086c0 0x0 0x10>;
277 #pwm-cells = <3>;
278 status = "disabled";
279 };
280
281 uart_C: serial@8700 {
Neil Armstronga87f8542017-10-11 17:39:40 +0200282 compatible = "amlogic,meson-gx-uart";
Yixun Lan77f5cdb2018-01-11 10:33:57 +0800283 reg = <0x0 0x8700 0x0 0x18>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100284 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100285 status = "disabled";
286 };
287
Neil Armstrong5e339a12018-11-18 14:50:24 +0100288 clock-measure@8758 {
289 compatible = "amlogic,meson-gx-clk-measure";
290 reg = <0x0 0x8758 0x0 0x10>;
291 };
292
Neil Armstrong998a9c82016-10-31 17:44:39 +0100293 i2c_B: i2c@87c0 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100294 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100295 reg = <0x0 0x087c0 0x0 0x20>;
296 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
297 #address-cells = <1>;
298 #size-cells = <0>;
299 status = "disabled";
300 };
301
302 i2c_C: i2c@87e0 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100303 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100304 reg = <0x0 0x087e0 0x0 0x20>;
305 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
306 #address-cells = <1>;
307 #size-cells = <0>;
308 status = "disabled";
309 };
310
Neil Armstrongfa808632017-05-29 10:09:55 +0200311 spicc: spi@8d80 {
312 compatible = "amlogic,meson-gx-spicc";
313 reg = <0x0 0x08d80 0x0 0x80>;
314 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
315 #address-cells = <1>;
316 #size-cells = <0>;
317 status = "disabled";
318 };
319
Neil Armstrong04b36df2017-03-13 10:10:50 +0100320 spifc: spi@8c80 {
Neil Armstrong599bfd52019-08-23 09:02:38 +0200321 compatible = "amlogic,meson-gxbb-spifc";
Neil Armstrong04b36df2017-03-13 10:10:50 +0100322 reg = <0x0 0x08c80 0x0 0x80>;
323 #address-cells = <1>;
324 #size-cells = <0>;
325 status = "disabled";
326 };
327
Neil Armstrong998a9c82016-10-31 17:44:39 +0100328 watchdog@98d0 {
Neil Armstrong03c76b82019-08-23 09:02:39 +0200329 compatible = "amlogic,meson-gxbb-wdt";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100330 reg = <0x0 0x098d0 0x0 0x10>;
331 clocks = <&xtal>;
332 };
Neil Armstrongc3286662016-10-04 17:37:08 +0200333 };
334
335 gic: interrupt-controller@c4301000 {
336 compatible = "arm,gic-400";
337 reg = <0x0 0xc4301000 0 0x1000>,
338 <0x0 0xc4302000 0 0x2000>,
339 <0x0 0xc4304000 0 0x2000>,
340 <0x0 0xc4306000 0 0x2000>;
341 interrupt-controller;
342 interrupts = <GIC_PPI 9
343 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
344 #interrupt-cells = <3>;
345 #address-cells = <0>;
346 };
347
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100348 sram: sram@c8000000 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100349 compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100350 reg = <0x0 0xc8000000 0x0 0x14000>;
351
352 #address-cells = <1>;
353 #size-cells = <1>;
354 ranges = <0 0x0 0xc8000000 0x14000>;
355
356 cpu_scp_lpri: scp-shmem@0 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100357 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100358 reg = <0x13000 0x400>;
359 };
360
361 cpu_scp_hpri: scp-shmem@200 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100362 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
Martin Blumenstingl47961f12016-12-03 00:08:48 +0100363 reg = <0x13400 0x400>;
364 };
365 };
366
Kevin Hilman0cb6c602017-12-06 11:30:05 -0800367 aobus: bus@c8100000 {
Neil Armstrongc3286662016-10-04 17:37:08 +0200368 compatible = "simple-bus";
369 reg = <0x0 0xc8100000 0x0 0x100000>;
370 #address-cells = <2>;
371 #size-cells = <2>;
372 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
373
Neil Armstrong7fd2c352017-08-04 15:12:12 +0200374 sysctrl_AO: sys-ctrl@0 {
Neil Armstrong445f2bd2018-09-13 09:12:27 +0200375 compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
Neil Armstrong7fd2c352017-08-04 15:12:12 +0200376 reg = <0x0 0x0 0x0 0x100>;
377
Neil Armstrong74d1c6e2017-11-20 15:19:54 +0100378 pwrc_vpu: power-controller-vpu {
379 compatible = "amlogic,meson-gx-pwrc-vpu";
380 #power-domain-cells = <0>;
381 amlogic,hhi-sysctrl = <&sysctrl>;
382 };
383
Neil Armstrong7fd2c352017-08-04 15:12:12 +0200384 clkc_AO: clock-controller {
385 compatible = "amlogic,meson-gx-aoclkc";
386 #clock-cells = <1>;
387 #reset-cells = <1>;
388 };
Neil Armstrong04b36df2017-03-13 10:10:50 +0100389 };
390
Neil Armstrongb16c71c2017-08-04 15:12:13 +0200391 cec_AO: cec@100 {
392 compatible = "amlogic,meson-gx-ao-cec";
393 reg = <0x0 0x00100 0x0 0x14>;
394 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
395 };
396
Neil Armstrongc9fe1cf2017-06-23 10:28:17 +0200397 sec_AO: ao-secure@140 {
398 compatible = "amlogic,meson-gx-ao-secure", "syscon";
399 reg = <0x0 0x140 0x0 0x140>;
400 amlogic,has-chip-id;
401 };
402
Neil Armstrongc3286662016-10-04 17:37:08 +0200403 uart_AO: serial@4c0 {
Neil Armstronga87f8542017-10-11 17:39:40 +0200404 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
Yixun Lan77f5cdb2018-01-11 10:33:57 +0800405 reg = <0x0 0x004c0 0x0 0x18>;
Neil Armstrongc3286662016-10-04 17:37:08 +0200406 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
Neil Armstrongc3286662016-10-04 17:37:08 +0200407 status = "disabled";
408 };
Neil Armstrong998a9c82016-10-31 17:44:39 +0100409
Martin Blumenstingl890a96a2017-01-15 23:20:29 +0100410 uart_AO_B: serial@4e0 {
Neil Armstronga87f8542017-10-11 17:39:40 +0200411 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
Yixun Lan77f5cdb2018-01-11 10:33:57 +0800412 reg = <0x0 0x004e0 0x0 0x18>;
Martin Blumenstingl890a96a2017-01-15 23:20:29 +0100413 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
Martin Blumenstingl890a96a2017-01-15 23:20:29 +0100414 status = "disabled";
415 };
416
Neil Armstrong04b36df2017-03-13 10:10:50 +0100417 i2c_AO: i2c@500 {
418 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
419 reg = <0x0 0x500 0x0 0x20>;
420 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
421 #address-cells = <1>;
422 #size-cells = <0>;
423 status = "disabled";
424 };
425
Martin Blumenstingle4851222017-01-22 22:05:26 +0100426 pwm_AO_ab: pwm@550 {
Jerome Brunet6620f142017-06-08 14:39:55 +0200427 compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
Martin Blumenstingle4851222017-01-22 22:05:26 +0100428 reg = <0x0 0x00550 0x0 0x10>;
429 #pwm-cells = <3>;
430 status = "disabled";
431 };
432
Neil Armstrong998a9c82016-10-31 17:44:39 +0100433 ir: ir@580 {
Neil Armstronge19e64a2017-03-13 10:10:52 +0100434 compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100435 reg = <0x0 0x00580 0x0 0x40>;
436 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
437 status = "disabled";
438 };
Neil Armstrongc3286662016-10-04 17:37:08 +0200439 };
440
Maxime Jourdan1f11d612019-07-26 14:46:38 +0200441 vdec: video-codec@c8820000 {
442 compatible = "amlogic,gx-vdec";
443 reg = <0x0 0xc8820000 0x0 0x10000>,
444 <0x0 0xc110a580 0x0 0xe4>;
445 reg-names = "dos", "esparser";
446
447 interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>,
448 <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
449 interrupt-names = "vdec", "esparser";
450
451 amlogic,ao-sysctrl = <&sysctrl_AO>;
452 amlogic,canvas = <&canvas>;
453 };
454
Neil Armstrong2e364802019-08-23 09:02:41 +0200455 periphs: bus@c8834000 {
Neil Armstrongc3286662016-10-04 17:37:08 +0200456 compatible = "simple-bus";
457 reg = <0x0 0xc8834000 0x0 0x2000>;
458 #address-cells = <2>;
459 #size-cells = <2>;
460 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100461
Heiner Kallweit1b3f6d12017-02-22 08:00:55 +0100462 hwrng: rng {
Neil Armstrong998a9c82016-10-31 17:44:39 +0100463 compatible = "amlogic,meson-rng";
464 reg = <0x0 0x0 0x0 0x4>;
465 };
Neil Armstrongc3286662016-10-04 17:37:08 +0200466 };
467
Maxime Jourdanf1726042018-08-23 13:49:54 +0200468 dmcbus: bus@c8838000 {
469 compatible = "simple-bus";
470 reg = <0x0 0xc8838000 0x0 0x400>;
471 #address-cells = <2>;
472 #size-cells = <2>;
473 ranges = <0x0 0x0 0x0 0xc8838000 0x0 0x400>;
474
475 canvas: video-lut@48 {
476 compatible = "amlogic,canvas";
477 reg = <0x0 0x48 0x0 0x14>;
478 };
479 };
480
Kevin Hilman0cb6c602017-12-06 11:30:05 -0800481 hiubus: bus@c883c000 {
Neil Armstrongc3286662016-10-04 17:37:08 +0200482 compatible = "simple-bus";
483 reg = <0x0 0xc883c000 0x0 0x2000>;
484 #address-cells = <2>;
485 #size-cells = <2>;
486 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100487
Neil Armstrong74d1c6e2017-11-20 15:19:54 +0100488 sysctrl: system-controller@0 {
Neil Armstrong445f2bd2018-09-13 09:12:27 +0200489 compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
Neil Armstrong74d1c6e2017-11-20 15:19:54 +0100490 reg = <0 0 0 0x400>;
491 };
492
Neil Armstrong998a9c82016-10-31 17:44:39 +0100493 mailbox: mailbox@404 {
Neil Armstrong59d37012019-08-23 09:02:40 +0200494 compatible = "amlogic,meson-gxbb-mhu";
Neil Armstrong998a9c82016-10-31 17:44:39 +0100495 reg = <0 0x404 0 0x4c>;
Martin Blumenstingl5e3465f2017-07-16 16:11:45 +0200496 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
497 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
498 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100499 #mbox-cells = <1>;
500 };
501 };
502
503 ethmac: ethernet@c9410000 {
Jerome Brunet9d63f5d2019-05-24 15:08:17 +0200504 compatible = "amlogic,meson-gxbb-dwmac",
505 "snps,dwmac-3.70a",
506 "snps,dwmac";
Neil Armstrong3ad6c9e2019-08-23 09:02:35 +0200507 reg = <0x0 0xc9410000 0x0 0x10000>,
508 <0x0 0xc8834540 0x0 0x4>;
Carlo Caione8b3e6f82018-12-07 10:52:30 +0000509 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100510 interrupt-names = "macirq";
Jerome Brunetef689842019-07-18 11:03:01 +0200511 rx-fifo-depth = <4096>;
512 tx-fifo-depth = <2048>;
Neil Armstrong998a9c82016-10-31 17:44:39 +0100513 status = "disabled";
Neil Armstrongc3286662016-10-04 17:37:08 +0200514 };
515
516 apb: apb@d0000000 {
517 compatible = "simple-bus";
518 reg = <0x0 0xd0000000 0x0 0x200000>;
519 #address-cells = <2>;
520 #size-cells = <2>;
521 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
Kevin Hilmanef8d2ff2016-10-20 13:42:54 +0200522
523 sd_emmc_a: mmc@70000 {
524 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
Kevin Hilmane4905202018-06-04 15:23:09 -0700525 reg = <0x0 0x70000 0x0 0x800>;
Kevin Hilmanef8d2ff2016-10-20 13:42:54 +0200526 interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
527 status = "disabled";
528 };
529
530 sd_emmc_b: mmc@72000 {
531 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
Kevin Hilmane4905202018-06-04 15:23:09 -0700532 reg = <0x0 0x72000 0x0 0x800>;
Kevin Hilmanef8d2ff2016-10-20 13:42:54 +0200533 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
534 status = "disabled";
535 };
536
537 sd_emmc_c: mmc@74000 {
538 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
Kevin Hilmane4905202018-06-04 15:23:09 -0700539 reg = <0x0 0x74000 0x0 0x800>;
Kevin Hilmanef8d2ff2016-10-20 13:42:54 +0200540 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
541 status = "disabled";
542 };
Neil Armstrongc3286662016-10-04 17:37:08 +0200543 };
Neil Armstrongfafdbdf2016-12-01 10:05:58 +0100544
545 vpu: vpu@d0100000 {
546 compatible = "amlogic,meson-gx-vpu";
547 reg = <0x0 0xd0100000 0x0 0x100000>,
Neil Armstrong5e975c52019-08-23 09:02:36 +0200548 <0x0 0xc883c000 0x0 0x1000>;
549 reg-names = "vpu", "hhi";
Neil Armstrongfafdbdf2016-12-01 10:05:58 +0100550 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
551 #address-cells = <1>;
552 #size-cells = <0>;
Maxime Jourdancf342872019-01-14 17:22:29 +0100553 amlogic,canvas = <&canvas>;
Neil Armstrongfafdbdf2016-12-01 10:05:58 +0100554
555 /* CVBS VDAC output port */
556 cvbs_vdac_port: port@0 {
557 reg = <0>;
558 };
Neil Armstrong6939db72017-03-21 16:25:46 +0100559
560 /* HDMI-TX output port */
561 hdmi_tx_port: port@1 {
562 reg = <1>;
563
564 hdmi_tx_out: endpoint {
565 remote-endpoint = <&hdmi_tx_in>;
566 };
567 };
568 };
569
570 hdmi_tx: hdmi-tx@c883a000 {
571 compatible = "amlogic,meson-gx-dw-hdmi";
572 reg = <0x0 0xc883a000 0x0 0x1c>;
573 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
574 #address-cells = <1>;
575 #size-cells = <0>;
576 status = "disabled";
577
578 /* VPU VENC Input */
579 hdmi_tx_venc_port: port@0 {
580 reg = <0>;
581
582 hdmi_tx_in: endpoint {
583 remote-endpoint = <&hdmi_tx_out>;
584 };
585 };
586
587 /* TMDS Output */
588 hdmi_tx_tmds_port: port@1 {
589 reg = <1>;
590 };
Neil Armstrongfafdbdf2016-12-01 10:05:58 +0100591 };
Neil Armstrongc3286662016-10-04 17:37:08 +0200592 };
593};