xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/meson-gx.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Copyright (c) 2016 Andreas Färber
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright (c) 2016 BayLibre, SAS.
5*4882a593Smuzhiyun * Author: Neil Armstrong <narmstrong@baylibre.com>
6*4882a593Smuzhiyun *
7*4882a593Smuzhiyun * Copyright (c) 2016 Endless Computers, Inc.
8*4882a593Smuzhiyun * Author: Carlo Caione <carlo@endlessm.com>
9*4882a593Smuzhiyun *
10*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms
11*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual
12*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a
13*4882a593Smuzhiyun * whole.
14*4882a593Smuzhiyun *
15*4882a593Smuzhiyun *  a) This library is free software; you can redistribute it and/or
16*4882a593Smuzhiyun *     modify it under the terms of the GNU General Public License as
17*4882a593Smuzhiyun *     published by the Free Software Foundation; either version 2 of the
18*4882a593Smuzhiyun *     License, or (at your option) any later version.
19*4882a593Smuzhiyun *
20*4882a593Smuzhiyun *     This library is distributed in the hope that it will be useful,
21*4882a593Smuzhiyun *     but WITHOUT ANY WARRANTY; without even the implied warranty of
22*4882a593Smuzhiyun *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23*4882a593Smuzhiyun *     GNU General Public License for more details.
24*4882a593Smuzhiyun *
25*4882a593Smuzhiyun * Or, alternatively,
26*4882a593Smuzhiyun *
27*4882a593Smuzhiyun *  b) Permission is hereby granted, free of charge, to any person
28*4882a593Smuzhiyun *     obtaining a copy of this software and associated documentation
29*4882a593Smuzhiyun *     files (the "Software"), to deal in the Software without
30*4882a593Smuzhiyun *     restriction, including without limitation the rights to use,
31*4882a593Smuzhiyun *     copy, modify, merge, publish, distribute, sublicense, and/or
32*4882a593Smuzhiyun *     sell copies of the Software, and to permit persons to whom the
33*4882a593Smuzhiyun *     Software is furnished to do so, subject to the following
34*4882a593Smuzhiyun *     conditions:
35*4882a593Smuzhiyun *
36*4882a593Smuzhiyun *     The above copyright notice and this permission notice shall be
37*4882a593Smuzhiyun *     included in all copies or substantial portions of the Software.
38*4882a593Smuzhiyun *
39*4882a593Smuzhiyun *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40*4882a593Smuzhiyun *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41*4882a593Smuzhiyun *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42*4882a593Smuzhiyun *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43*4882a593Smuzhiyun *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44*4882a593Smuzhiyun *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45*4882a593Smuzhiyun *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46*4882a593Smuzhiyun *     OTHER DEALINGS IN THE SOFTWARE.
47*4882a593Smuzhiyun */
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h>
50*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/irq.h>
51*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/arm-gic.h>
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun/ {
54*4882a593Smuzhiyun	interrupt-parent = <&gic>;
55*4882a593Smuzhiyun	#address-cells = <2>;
56*4882a593Smuzhiyun	#size-cells = <2>;
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun	reserved-memory {
59*4882a593Smuzhiyun		#address-cells = <2>;
60*4882a593Smuzhiyun		#size-cells = <2>;
61*4882a593Smuzhiyun		ranges;
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun		/* 16 MiB reserved for Hardware ROM Firmware */
64*4882a593Smuzhiyun		hwrom_reserved: hwrom@0 {
65*4882a593Smuzhiyun			reg = <0x0 0x0 0x0 0x1000000>;
66*4882a593Smuzhiyun			no-map;
67*4882a593Smuzhiyun		};
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun		/* 2 MiB reserved for ARM Trusted Firmware (BL31) */
70*4882a593Smuzhiyun		secmon_reserved: secmon@10000000 {
71*4882a593Smuzhiyun			reg = <0x0 0x10000000 0x0 0x200000>;
72*4882a593Smuzhiyun			no-map;
73*4882a593Smuzhiyun		};
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun		linux,cma {
76*4882a593Smuzhiyun			compatible = "shared-dma-pool";
77*4882a593Smuzhiyun			reusable;
78*4882a593Smuzhiyun			size = <0x0 0xbc00000>;
79*4882a593Smuzhiyun			alignment = <0x0 0x400000>;
80*4882a593Smuzhiyun			linux,cma-default;
81*4882a593Smuzhiyun		};
82*4882a593Smuzhiyun	};
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun	cpus {
85*4882a593Smuzhiyun		#address-cells = <0x2>;
86*4882a593Smuzhiyun		#size-cells = <0x0>;
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun		cpu0: cpu@0 {
89*4882a593Smuzhiyun			device_type = "cpu";
90*4882a593Smuzhiyun			compatible = "arm,cortex-a53", "arm,armv8";
91*4882a593Smuzhiyun			reg = <0x0 0x0>;
92*4882a593Smuzhiyun			enable-method = "psci";
93*4882a593Smuzhiyun			next-level-cache = <&l2>;
94*4882a593Smuzhiyun			clocks = <&scpi_dvfs 0>;
95*4882a593Smuzhiyun		};
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun		cpu1: cpu@1 {
98*4882a593Smuzhiyun			device_type = "cpu";
99*4882a593Smuzhiyun			compatible = "arm,cortex-a53", "arm,armv8";
100*4882a593Smuzhiyun			reg = <0x0 0x1>;
101*4882a593Smuzhiyun			enable-method = "psci";
102*4882a593Smuzhiyun			next-level-cache = <&l2>;
103*4882a593Smuzhiyun			clocks = <&scpi_dvfs 0>;
104*4882a593Smuzhiyun		};
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun		cpu2: cpu@2 {
107*4882a593Smuzhiyun			device_type = "cpu";
108*4882a593Smuzhiyun			compatible = "arm,cortex-a53", "arm,armv8";
109*4882a593Smuzhiyun			reg = <0x0 0x2>;
110*4882a593Smuzhiyun			enable-method = "psci";
111*4882a593Smuzhiyun			next-level-cache = <&l2>;
112*4882a593Smuzhiyun			clocks = <&scpi_dvfs 0>;
113*4882a593Smuzhiyun		};
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun		cpu3: cpu@3 {
116*4882a593Smuzhiyun			device_type = "cpu";
117*4882a593Smuzhiyun			compatible = "arm,cortex-a53", "arm,armv8";
118*4882a593Smuzhiyun			reg = <0x0 0x3>;
119*4882a593Smuzhiyun			enable-method = "psci";
120*4882a593Smuzhiyun			next-level-cache = <&l2>;
121*4882a593Smuzhiyun			clocks = <&scpi_dvfs 0>;
122*4882a593Smuzhiyun		};
123*4882a593Smuzhiyun
124*4882a593Smuzhiyun		l2: l2-cache0 {
125*4882a593Smuzhiyun			compatible = "cache";
126*4882a593Smuzhiyun		};
127*4882a593Smuzhiyun	};
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun	arm-pmu {
130*4882a593Smuzhiyun		compatible = "arm,cortex-a53-pmu";
131*4882a593Smuzhiyun		interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
132*4882a593Smuzhiyun			     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
133*4882a593Smuzhiyun			     <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
134*4882a593Smuzhiyun			     <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
135*4882a593Smuzhiyun		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
136*4882a593Smuzhiyun	};
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun	psci {
139*4882a593Smuzhiyun		compatible = "arm,psci-0.2";
140*4882a593Smuzhiyun		method = "smc";
141*4882a593Smuzhiyun	};
142*4882a593Smuzhiyun
143*4882a593Smuzhiyun	timer {
144*4882a593Smuzhiyun		compatible = "arm,armv8-timer";
145*4882a593Smuzhiyun		interrupts = <GIC_PPI 13
146*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
147*4882a593Smuzhiyun			     <GIC_PPI 14
148*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
149*4882a593Smuzhiyun			     <GIC_PPI 11
150*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
151*4882a593Smuzhiyun			     <GIC_PPI 10
152*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
153*4882a593Smuzhiyun	};
154*4882a593Smuzhiyun
155*4882a593Smuzhiyun	xtal: xtal-clk {
156*4882a593Smuzhiyun		compatible = "fixed-clock";
157*4882a593Smuzhiyun		clock-frequency = <24000000>;
158*4882a593Smuzhiyun		clock-output-names = "xtal";
159*4882a593Smuzhiyun		#clock-cells = <0>;
160*4882a593Smuzhiyun	};
161*4882a593Smuzhiyun
162*4882a593Smuzhiyun	firmware {
163*4882a593Smuzhiyun		sm: secure-monitor {
164*4882a593Smuzhiyun			compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
165*4882a593Smuzhiyun		};
166*4882a593Smuzhiyun	};
167*4882a593Smuzhiyun
168*4882a593Smuzhiyun	efuse: efuse {
169*4882a593Smuzhiyun		compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
170*4882a593Smuzhiyun		#address-cells = <1>;
171*4882a593Smuzhiyun		#size-cells = <1>;
172*4882a593Smuzhiyun
173*4882a593Smuzhiyun		sn: sn@14 {
174*4882a593Smuzhiyun			reg = <0x14 0x10>;
175*4882a593Smuzhiyun		};
176*4882a593Smuzhiyun
177*4882a593Smuzhiyun		eth_mac: eth_mac@34 {
178*4882a593Smuzhiyun			reg = <0x34 0x10>;
179*4882a593Smuzhiyun		};
180*4882a593Smuzhiyun
181*4882a593Smuzhiyun		bid: bid@46 {
182*4882a593Smuzhiyun			reg = <0x46 0x30>;
183*4882a593Smuzhiyun		};
184*4882a593Smuzhiyun	};
185*4882a593Smuzhiyun
186*4882a593Smuzhiyun	scpi {
187*4882a593Smuzhiyun		compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
188*4882a593Smuzhiyun		mboxes = <&mailbox 1 &mailbox 2>;
189*4882a593Smuzhiyun		shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
190*4882a593Smuzhiyun
191*4882a593Smuzhiyun		scpi_clocks: clocks {
192*4882a593Smuzhiyun			compatible = "arm,scpi-clocks";
193*4882a593Smuzhiyun
194*4882a593Smuzhiyun			scpi_dvfs: scpi_clocks@0 {
195*4882a593Smuzhiyun				compatible = "arm,scpi-dvfs-clocks";
196*4882a593Smuzhiyun				#clock-cells = <1>;
197*4882a593Smuzhiyun				clock-indices = <0>;
198*4882a593Smuzhiyun				clock-output-names = "vcpu";
199*4882a593Smuzhiyun			};
200*4882a593Smuzhiyun		};
201*4882a593Smuzhiyun
202*4882a593Smuzhiyun		scpi_sensors: sensors {
203*4882a593Smuzhiyun			compatible = "arm,scpi-sensors";
204*4882a593Smuzhiyun			#thermal-sensor-cells = <1>;
205*4882a593Smuzhiyun		};
206*4882a593Smuzhiyun	};
207*4882a593Smuzhiyun
208*4882a593Smuzhiyun	soc {
209*4882a593Smuzhiyun		compatible = "simple-bus";
210*4882a593Smuzhiyun		#address-cells = <2>;
211*4882a593Smuzhiyun		#size-cells = <2>;
212*4882a593Smuzhiyun		ranges;
213*4882a593Smuzhiyun
214*4882a593Smuzhiyun		cbus: cbus@c1100000 {
215*4882a593Smuzhiyun			compatible = "simple-bus";
216*4882a593Smuzhiyun			reg = <0x0 0xc1100000 0x0 0x100000>;
217*4882a593Smuzhiyun			#address-cells = <2>;
218*4882a593Smuzhiyun			#size-cells = <2>;
219*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
220*4882a593Smuzhiyun
221*4882a593Smuzhiyun			reset: reset-controller@4404 {
222*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset";
223*4882a593Smuzhiyun				reg = <0x0 0x04404 0x0 0x20>;
224*4882a593Smuzhiyun				#reset-cells = <1>;
225*4882a593Smuzhiyun			};
226*4882a593Smuzhiyun
227*4882a593Smuzhiyun			uart_A: serial@84c0 {
228*4882a593Smuzhiyun				compatible = "amlogic,meson-uart";
229*4882a593Smuzhiyun				reg = <0x0 0x84c0 0x0 0x14>;
230*4882a593Smuzhiyun				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
231*4882a593Smuzhiyun				clocks = <&xtal>;
232*4882a593Smuzhiyun				status = "disabled";
233*4882a593Smuzhiyun			};
234*4882a593Smuzhiyun
235*4882a593Smuzhiyun			uart_B: serial@84dc {
236*4882a593Smuzhiyun				compatible = "amlogic,meson-uart";
237*4882a593Smuzhiyun				reg = <0x0 0x84dc 0x0 0x14>;
238*4882a593Smuzhiyun				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
239*4882a593Smuzhiyun				clocks = <&xtal>;
240*4882a593Smuzhiyun				status = "disabled";
241*4882a593Smuzhiyun			};
242*4882a593Smuzhiyun
243*4882a593Smuzhiyun			i2c_A: i2c@8500 {
244*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
245*4882a593Smuzhiyun				reg = <0x0 0x08500 0x0 0x20>;
246*4882a593Smuzhiyun				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
247*4882a593Smuzhiyun				#address-cells = <1>;
248*4882a593Smuzhiyun				#size-cells = <0>;
249*4882a593Smuzhiyun				status = "disabled";
250*4882a593Smuzhiyun			};
251*4882a593Smuzhiyun
252*4882a593Smuzhiyun			pwm_ab: pwm@8550 {
253*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
254*4882a593Smuzhiyun				reg = <0x0 0x08550 0x0 0x10>;
255*4882a593Smuzhiyun				#pwm-cells = <3>;
256*4882a593Smuzhiyun				status = "disabled";
257*4882a593Smuzhiyun			};
258*4882a593Smuzhiyun
259*4882a593Smuzhiyun			pwm_cd: pwm@8650 {
260*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
261*4882a593Smuzhiyun				reg = <0x0 0x08650 0x0 0x10>;
262*4882a593Smuzhiyun				#pwm-cells = <3>;
263*4882a593Smuzhiyun				status = "disabled";
264*4882a593Smuzhiyun			};
265*4882a593Smuzhiyun
266*4882a593Smuzhiyun			saradc: adc@8680 {
267*4882a593Smuzhiyun				compatible = "amlogic,meson-saradc";
268*4882a593Smuzhiyun				reg = <0x0 0x8680 0x0 0x34>;
269*4882a593Smuzhiyun				#io-channel-cells = <1>;
270*4882a593Smuzhiyun				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
271*4882a593Smuzhiyun				status = "disabled";
272*4882a593Smuzhiyun			};
273*4882a593Smuzhiyun
274*4882a593Smuzhiyun			pwm_ef: pwm@86c0 {
275*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
276*4882a593Smuzhiyun				reg = <0x0 0x086c0 0x0 0x10>;
277*4882a593Smuzhiyun				#pwm-cells = <3>;
278*4882a593Smuzhiyun				status = "disabled";
279*4882a593Smuzhiyun			};
280*4882a593Smuzhiyun
281*4882a593Smuzhiyun			uart_C: serial@8700 {
282*4882a593Smuzhiyun				compatible = "amlogic,meson-uart";
283*4882a593Smuzhiyun				reg = <0x0 0x8700 0x0 0x14>;
284*4882a593Smuzhiyun				interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
285*4882a593Smuzhiyun				clocks = <&xtal>;
286*4882a593Smuzhiyun				status = "disabled";
287*4882a593Smuzhiyun			};
288*4882a593Smuzhiyun
289*4882a593Smuzhiyun			i2c_B: i2c@87c0 {
290*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
291*4882a593Smuzhiyun				reg = <0x0 0x087c0 0x0 0x20>;
292*4882a593Smuzhiyun				interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
293*4882a593Smuzhiyun				#address-cells = <1>;
294*4882a593Smuzhiyun				#size-cells = <0>;
295*4882a593Smuzhiyun				status = "disabled";
296*4882a593Smuzhiyun			};
297*4882a593Smuzhiyun
298*4882a593Smuzhiyun			i2c_C: i2c@87e0 {
299*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
300*4882a593Smuzhiyun				reg = <0x0 0x087e0 0x0 0x20>;
301*4882a593Smuzhiyun				interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
302*4882a593Smuzhiyun				#address-cells = <1>;
303*4882a593Smuzhiyun				#size-cells = <0>;
304*4882a593Smuzhiyun				status = "disabled";
305*4882a593Smuzhiyun			};
306*4882a593Smuzhiyun
307*4882a593Smuzhiyun			spifc: spi@8c80 {
308*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc";
309*4882a593Smuzhiyun				reg = <0x0 0x08c80 0x0 0x80>;
310*4882a593Smuzhiyun				#address-cells = <1>;
311*4882a593Smuzhiyun				#size-cells = <0>;
312*4882a593Smuzhiyun				status = "disabled";
313*4882a593Smuzhiyun			};
314*4882a593Smuzhiyun
315*4882a593Smuzhiyun			watchdog@98d0 {
316*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt";
317*4882a593Smuzhiyun				reg = <0x0 0x098d0 0x0 0x10>;
318*4882a593Smuzhiyun				clocks = <&xtal>;
319*4882a593Smuzhiyun			};
320*4882a593Smuzhiyun		};
321*4882a593Smuzhiyun
322*4882a593Smuzhiyun		gic: interrupt-controller@c4301000 {
323*4882a593Smuzhiyun			compatible = "arm,gic-400";
324*4882a593Smuzhiyun			reg = <0x0 0xc4301000 0 0x1000>,
325*4882a593Smuzhiyun			      <0x0 0xc4302000 0 0x2000>,
326*4882a593Smuzhiyun			      <0x0 0xc4304000 0 0x2000>,
327*4882a593Smuzhiyun			      <0x0 0xc4306000 0 0x2000>;
328*4882a593Smuzhiyun			interrupt-controller;
329*4882a593Smuzhiyun			interrupts = <GIC_PPI 9
330*4882a593Smuzhiyun				(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
331*4882a593Smuzhiyun			#interrupt-cells = <3>;
332*4882a593Smuzhiyun			#address-cells = <0>;
333*4882a593Smuzhiyun		};
334*4882a593Smuzhiyun
335*4882a593Smuzhiyun		sram: sram@c8000000 {
336*4882a593Smuzhiyun			compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
337*4882a593Smuzhiyun			reg = <0x0 0xc8000000 0x0 0x14000>;
338*4882a593Smuzhiyun
339*4882a593Smuzhiyun			#address-cells = <1>;
340*4882a593Smuzhiyun			#size-cells = <1>;
341*4882a593Smuzhiyun			ranges = <0 0x0 0xc8000000 0x14000>;
342*4882a593Smuzhiyun
343*4882a593Smuzhiyun			cpu_scp_lpri: scp-shmem@0 {
344*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
345*4882a593Smuzhiyun				reg = <0x13000 0x400>;
346*4882a593Smuzhiyun			};
347*4882a593Smuzhiyun
348*4882a593Smuzhiyun			cpu_scp_hpri: scp-shmem@200 {
349*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
350*4882a593Smuzhiyun				reg = <0x13400 0x400>;
351*4882a593Smuzhiyun			};
352*4882a593Smuzhiyun		};
353*4882a593Smuzhiyun
354*4882a593Smuzhiyun		aobus: aobus@c8100000 {
355*4882a593Smuzhiyun			compatible = "simple-bus";
356*4882a593Smuzhiyun			reg = <0x0 0xc8100000 0x0 0x100000>;
357*4882a593Smuzhiyun			#address-cells = <2>;
358*4882a593Smuzhiyun			#size-cells = <2>;
359*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
360*4882a593Smuzhiyun
361*4882a593Smuzhiyun			clkc_AO: clock-controller@040 {
362*4882a593Smuzhiyun				compatible = "amlogic,gx-aoclkc", "amlogic,gxbb-aoclkc";
363*4882a593Smuzhiyun				reg = <0x0 0x00040 0x0 0x4>;
364*4882a593Smuzhiyun				#clock-cells = <1>;
365*4882a593Smuzhiyun				#reset-cells = <1>;
366*4882a593Smuzhiyun			};
367*4882a593Smuzhiyun
368*4882a593Smuzhiyun			uart_AO: serial@4c0 {
369*4882a593Smuzhiyun				compatible = "amlogic,meson-uart";
370*4882a593Smuzhiyun				reg = <0x0 0x004c0 0x0 0x14>;
371*4882a593Smuzhiyun				interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
372*4882a593Smuzhiyun				clocks = <&xtal>;
373*4882a593Smuzhiyun				status = "disabled";
374*4882a593Smuzhiyun			};
375*4882a593Smuzhiyun
376*4882a593Smuzhiyun			uart_AO_B: serial@4e0 {
377*4882a593Smuzhiyun				compatible = "amlogic,meson-uart";
378*4882a593Smuzhiyun				reg = <0x0 0x004e0 0x0 0x14>;
379*4882a593Smuzhiyun				interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
380*4882a593Smuzhiyun				clocks = <&xtal>;
381*4882a593Smuzhiyun				status = "disabled";
382*4882a593Smuzhiyun			};
383*4882a593Smuzhiyun
384*4882a593Smuzhiyun			i2c_AO: i2c@500 {
385*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
386*4882a593Smuzhiyun				reg = <0x0 0x500 0x0 0x20>;
387*4882a593Smuzhiyun				interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
388*4882a593Smuzhiyun				#address-cells = <1>;
389*4882a593Smuzhiyun				#size-cells = <0>;
390*4882a593Smuzhiyun				status = "disabled";
391*4882a593Smuzhiyun			};
392*4882a593Smuzhiyun
393*4882a593Smuzhiyun			pwm_AO_ab: pwm@550 {
394*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
395*4882a593Smuzhiyun				reg = <0x0 0x00550 0x0 0x10>;
396*4882a593Smuzhiyun				#pwm-cells = <3>;
397*4882a593Smuzhiyun				status = "disabled";
398*4882a593Smuzhiyun			};
399*4882a593Smuzhiyun
400*4882a593Smuzhiyun			ir: ir@580 {
401*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
402*4882a593Smuzhiyun				reg = <0x0 0x00580 0x0 0x40>;
403*4882a593Smuzhiyun				interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
404*4882a593Smuzhiyun				status = "disabled";
405*4882a593Smuzhiyun			};
406*4882a593Smuzhiyun		};
407*4882a593Smuzhiyun
408*4882a593Smuzhiyun		periphs: periphs@c8834000 {
409*4882a593Smuzhiyun			compatible = "simple-bus";
410*4882a593Smuzhiyun			reg = <0x0 0xc8834000 0x0 0x2000>;
411*4882a593Smuzhiyun			#address-cells = <2>;
412*4882a593Smuzhiyun			#size-cells = <2>;
413*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
414*4882a593Smuzhiyun
415*4882a593Smuzhiyun			hwrng: rng {
416*4882a593Smuzhiyun				compatible = "amlogic,meson-rng";
417*4882a593Smuzhiyun				reg = <0x0 0x0 0x0 0x4>;
418*4882a593Smuzhiyun			};
419*4882a593Smuzhiyun		};
420*4882a593Smuzhiyun
421*4882a593Smuzhiyun		hiubus: hiubus@c883c000 {
422*4882a593Smuzhiyun			compatible = "simple-bus";
423*4882a593Smuzhiyun			reg = <0x0 0xc883c000 0x0 0x2000>;
424*4882a593Smuzhiyun			#address-cells = <2>;
425*4882a593Smuzhiyun			#size-cells = <2>;
426*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
427*4882a593Smuzhiyun
428*4882a593Smuzhiyun			mailbox: mailbox@404 {
429*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
430*4882a593Smuzhiyun				reg = <0 0x404 0 0x4c>;
431*4882a593Smuzhiyun				interrupts = <0 208 IRQ_TYPE_EDGE_RISING>,
432*4882a593Smuzhiyun					     <0 209 IRQ_TYPE_EDGE_RISING>,
433*4882a593Smuzhiyun					     <0 210 IRQ_TYPE_EDGE_RISING>;
434*4882a593Smuzhiyun				#mbox-cells = <1>;
435*4882a593Smuzhiyun			};
436*4882a593Smuzhiyun		};
437*4882a593Smuzhiyun
438*4882a593Smuzhiyun		ethmac: ethernet@c9410000 {
439*4882a593Smuzhiyun			compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";
440*4882a593Smuzhiyun			reg = <0x0 0xc9410000 0x0 0x10000
441*4882a593Smuzhiyun			       0x0 0xc8834540 0x0 0x4>;
442*4882a593Smuzhiyun			interrupts = <0 8 1>;
443*4882a593Smuzhiyun			interrupt-names = "macirq";
444*4882a593Smuzhiyun			status = "disabled";
445*4882a593Smuzhiyun		};
446*4882a593Smuzhiyun
447*4882a593Smuzhiyun		apb: apb@d0000000 {
448*4882a593Smuzhiyun			compatible = "simple-bus";
449*4882a593Smuzhiyun			reg = <0x0 0xd0000000 0x0 0x200000>;
450*4882a593Smuzhiyun			#address-cells = <2>;
451*4882a593Smuzhiyun			#size-cells = <2>;
452*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
453*4882a593Smuzhiyun
454*4882a593Smuzhiyun			sd_emmc_a: mmc@70000 {
455*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
456*4882a593Smuzhiyun				reg = <0x0 0x70000 0x0 0x2000>;
457*4882a593Smuzhiyun				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
458*4882a593Smuzhiyun				status = "disabled";
459*4882a593Smuzhiyun			};
460*4882a593Smuzhiyun
461*4882a593Smuzhiyun			sd_emmc_b: mmc@72000 {
462*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
463*4882a593Smuzhiyun				reg = <0x0 0x72000 0x0 0x2000>;
464*4882a593Smuzhiyun				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
465*4882a593Smuzhiyun				status = "disabled";
466*4882a593Smuzhiyun			};
467*4882a593Smuzhiyun
468*4882a593Smuzhiyun			sd_emmc_c: mmc@74000 {
469*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
470*4882a593Smuzhiyun				reg = <0x0 0x74000 0x0 0x2000>;
471*4882a593Smuzhiyun				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
472*4882a593Smuzhiyun				status = "disabled";
473*4882a593Smuzhiyun			};
474*4882a593Smuzhiyun		};
475*4882a593Smuzhiyun
476*4882a593Smuzhiyun		vpu: vpu@d0100000 {
477*4882a593Smuzhiyun			compatible = "amlogic,meson-gx-vpu";
478*4882a593Smuzhiyun			reg = <0x0 0xd0100000 0x0 0x100000>,
479*4882a593Smuzhiyun			      <0x0 0xc883c000 0x0 0x1000>,
480*4882a593Smuzhiyun			      <0x0 0xc8838000 0x0 0x1000>;
481*4882a593Smuzhiyun			reg-names = "vpu", "hhi", "dmc";
482*4882a593Smuzhiyun			interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
483*4882a593Smuzhiyun			#address-cells = <1>;
484*4882a593Smuzhiyun			#size-cells = <0>;
485*4882a593Smuzhiyun
486*4882a593Smuzhiyun			/* CVBS VDAC output port */
487*4882a593Smuzhiyun			cvbs_vdac_port: port@0 {
488*4882a593Smuzhiyun				reg = <0>;
489*4882a593Smuzhiyun			};
490*4882a593Smuzhiyun
491*4882a593Smuzhiyun			/* HDMI-TX output port */
492*4882a593Smuzhiyun			hdmi_tx_port: port@1 {
493*4882a593Smuzhiyun				reg = <1>;
494*4882a593Smuzhiyun
495*4882a593Smuzhiyun				hdmi_tx_out: endpoint {
496*4882a593Smuzhiyun					remote-endpoint = <&hdmi_tx_in>;
497*4882a593Smuzhiyun				};
498*4882a593Smuzhiyun			};
499*4882a593Smuzhiyun		};
500*4882a593Smuzhiyun
501*4882a593Smuzhiyun		hdmi_tx: hdmi-tx@c883a000 {
502*4882a593Smuzhiyun			compatible = "amlogic,meson-gx-dw-hdmi";
503*4882a593Smuzhiyun			reg = <0x0 0xc883a000 0x0 0x1c>;
504*4882a593Smuzhiyun			interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
505*4882a593Smuzhiyun			#address-cells = <1>;
506*4882a593Smuzhiyun			#size-cells = <0>;
507*4882a593Smuzhiyun			status = "disabled";
508*4882a593Smuzhiyun
509*4882a593Smuzhiyun			/* VPU VENC Input */
510*4882a593Smuzhiyun			hdmi_tx_venc_port: port@0 {
511*4882a593Smuzhiyun				reg = <0>;
512*4882a593Smuzhiyun
513*4882a593Smuzhiyun				hdmi_tx_in: endpoint {
514*4882a593Smuzhiyun					remote-endpoint = <&hdmi_tx_out>;
515*4882a593Smuzhiyun				};
516*4882a593Smuzhiyun			};
517*4882a593Smuzhiyun
518*4882a593Smuzhiyun			/* TMDS Output */
519*4882a593Smuzhiyun			hdmi_tx_tmds_port: port@1 {
520*4882a593Smuzhiyun				reg = <1>;
521*4882a593Smuzhiyun			};
522*4882a593Smuzhiyun		};
523*4882a593Smuzhiyun	};
524*4882a593Smuzhiyun};
525