xref: /freebsd-src/sys/contrib/device-tree/src/arm/amlogic/meson.dtsi (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR MIT
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2014 Carlo Caione <carlo@caione.org>
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
7f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
8f126890aSEmmanuel Vadot#include <dt-bindings/sound/meson-aiu.h>
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/ {
11f126890aSEmmanuel Vadot	#address-cells = <1>;
12f126890aSEmmanuel Vadot	#size-cells = <1>;
13f126890aSEmmanuel Vadot	interrupt-parent = <&gic>;
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot	iio-hwmon {
16f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
17f126890aSEmmanuel Vadot		io-channels = <&saradc 8>;
18f126890aSEmmanuel Vadot	};
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot	soc {
21f126890aSEmmanuel Vadot		compatible = "simple-bus";
22f126890aSEmmanuel Vadot		#address-cells = <1>;
23f126890aSEmmanuel Vadot		#size-cells = <1>;
24f126890aSEmmanuel Vadot		ranges;
25f126890aSEmmanuel Vadot
26*01950c46SEmmanuel Vadot		cbus: bus@c1100000 {
27f126890aSEmmanuel Vadot			compatible = "simple-bus";
28f126890aSEmmanuel Vadot			reg = <0xc1100000 0x200000>;
29f126890aSEmmanuel Vadot			#address-cells = <1>;
30f126890aSEmmanuel Vadot			#size-cells = <1>;
31f126890aSEmmanuel Vadot			ranges = <0x0 0xc1100000 0x200000>;
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot			hhi: system-controller@4000 {
34f126890aSEmmanuel Vadot				compatible = "amlogic,meson-hhi-sysctrl",
35f126890aSEmmanuel Vadot					     "simple-mfd",
36f126890aSEmmanuel Vadot					     "syscon";
37f126890aSEmmanuel Vadot				reg = <0x4000 0x400>;
38f126890aSEmmanuel Vadot			};
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot			aiu: audio-controller@5400 {
41f126890aSEmmanuel Vadot				compatible = "amlogic,aiu";
42f126890aSEmmanuel Vadot				#sound-dai-cells = <2>;
43f126890aSEmmanuel Vadot				sound-name-prefix = "AIU";
44f126890aSEmmanuel Vadot				reg = <0x5400 0x2ac>;
45f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
46f126890aSEmmanuel Vadot					     <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
47f126890aSEmmanuel Vadot				interrupt-names = "i2s", "spdif";
48f126890aSEmmanuel Vadot				status = "disabled";
49f126890aSEmmanuel Vadot			};
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot			assist: assist@7c00 {
52f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-assist", "syscon";
53f126890aSEmmanuel Vadot				reg = <0x7c00 0x200>;
54f126890aSEmmanuel Vadot			};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot			hwrng: rng@8100 {
57f126890aSEmmanuel Vadot				compatible = "amlogic,meson-rng";
58f126890aSEmmanuel Vadot				reg = <0x8100 0x8>;
59f126890aSEmmanuel Vadot			};
60f126890aSEmmanuel Vadot
61f126890aSEmmanuel Vadot			uart_A: serial@84c0 {
62f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-uart";
63f126890aSEmmanuel Vadot				reg = <0x84c0 0x18>;
64f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
65f126890aSEmmanuel Vadot				fifo-size = <128>;
66f126890aSEmmanuel Vadot				status = "disabled";
67f126890aSEmmanuel Vadot			};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot			uart_B: serial@84dc {
70f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-uart";
71f126890aSEmmanuel Vadot				reg = <0x84dc 0x18>;
72f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
73f126890aSEmmanuel Vadot				status = "disabled";
74f126890aSEmmanuel Vadot			};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot			i2c_A: i2c@8500 {
77f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-i2c";
78f126890aSEmmanuel Vadot				reg = <0x8500 0x20>;
79f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
80f126890aSEmmanuel Vadot				#address-cells = <1>;
81f126890aSEmmanuel Vadot				#size-cells = <0>;
82f126890aSEmmanuel Vadot				status = "disabled";
83f126890aSEmmanuel Vadot			};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot			pwm_ab: pwm@8550 {
86f126890aSEmmanuel Vadot				compatible = "amlogic,meson-pwm";
87f126890aSEmmanuel Vadot				reg = <0x8550 0x10>;
88f126890aSEmmanuel Vadot				#pwm-cells = <3>;
89f126890aSEmmanuel Vadot				status = "disabled";
90f126890aSEmmanuel Vadot			};
91f126890aSEmmanuel Vadot
92f126890aSEmmanuel Vadot			pwm_cd: pwm@8650 {
93f126890aSEmmanuel Vadot				compatible = "amlogic,meson-pwm";
94f126890aSEmmanuel Vadot				reg = <0x8650 0x10>;
95f126890aSEmmanuel Vadot				#pwm-cells = <3>;
96f126890aSEmmanuel Vadot				status = "disabled";
97f126890aSEmmanuel Vadot			};
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot			saradc: adc@8680 {
100f126890aSEmmanuel Vadot				compatible = "amlogic,meson-saradc";
101f126890aSEmmanuel Vadot				reg = <0x8680 0x34>;
102f126890aSEmmanuel Vadot				#io-channel-cells = <1>;
103f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
104f126890aSEmmanuel Vadot				status = "disabled";
105f126890aSEmmanuel Vadot			};
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot			uart_C: serial@8700 {
108f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-uart";
109f126890aSEmmanuel Vadot				reg = <0x8700 0x18>;
110f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
111f126890aSEmmanuel Vadot				status = "disabled";
112f126890aSEmmanuel Vadot			};
113f126890aSEmmanuel Vadot
114f126890aSEmmanuel Vadot			i2c_B: i2c@87c0 {
115f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-i2c";
116f126890aSEmmanuel Vadot				reg = <0x87c0 0x20>;
117f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
118f126890aSEmmanuel Vadot				#address-cells = <1>;
119f126890aSEmmanuel Vadot				#size-cells = <0>;
120f126890aSEmmanuel Vadot				status = "disabled";
121f126890aSEmmanuel Vadot			};
122f126890aSEmmanuel Vadot
123f126890aSEmmanuel Vadot			usb0_phy: phy@8800 {
124f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-usb2-phy";
125f126890aSEmmanuel Vadot				#phy-cells = <0>;
126f126890aSEmmanuel Vadot				reg = <0x8800 0x20>;
127f126890aSEmmanuel Vadot				status = "disabled";
128f126890aSEmmanuel Vadot			};
129f126890aSEmmanuel Vadot
130f126890aSEmmanuel Vadot			usb1_phy: phy@8820 {
131f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-usb2-phy";
132f126890aSEmmanuel Vadot				#phy-cells = <0>;
133f126890aSEmmanuel Vadot				reg = <0x8820 0x20>;
134f126890aSEmmanuel Vadot				status = "disabled";
135f126890aSEmmanuel Vadot			};
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot			sdio: mmc@8c20 {
138f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-sdio";
139f126890aSEmmanuel Vadot				reg = <0x8c20 0x20>;
140f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
141f126890aSEmmanuel Vadot				#address-cells = <1>;
142f126890aSEmmanuel Vadot				#size-cells = <0>;
143f126890aSEmmanuel Vadot				status = "disabled";
144f126890aSEmmanuel Vadot			};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot			spifc: spi@8c80 {
147f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-spifc";
148f126890aSEmmanuel Vadot				reg = <0x8c80 0x80>;
149f126890aSEmmanuel Vadot				#address-cells = <1>;
150f126890aSEmmanuel Vadot				#size-cells = <0>;
151f126890aSEmmanuel Vadot				status = "disabled";
152f126890aSEmmanuel Vadot			};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot			sdhc: mmc@8e00 {
155f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-sdhc";
156f126890aSEmmanuel Vadot				reg = <0x8e00 0x42>;
157f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
158f126890aSEmmanuel Vadot				status = "disabled";
159f126890aSEmmanuel Vadot			};
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot			gpio_intc: interrupt-controller@9880 {
162f126890aSEmmanuel Vadot				compatible = "amlogic,meson-gpio-intc";
163f126890aSEmmanuel Vadot				reg = <0x9880 0x10>;
164f126890aSEmmanuel Vadot				interrupt-controller;
165f126890aSEmmanuel Vadot				#interrupt-cells = <2>;
166f126890aSEmmanuel Vadot				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
167f126890aSEmmanuel Vadot				status = "disabled";
168f126890aSEmmanuel Vadot			};
169f126890aSEmmanuel Vadot
170f126890aSEmmanuel Vadot			wdt: watchdog@9900 {
171f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-wdt";
172f126890aSEmmanuel Vadot				reg = <0x9900 0x8>;
173f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
174f126890aSEmmanuel Vadot			};
175f126890aSEmmanuel Vadot
176f126890aSEmmanuel Vadot			timer_abcde: timer@9940 {
177f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-timer";
178f126890aSEmmanuel Vadot				reg = <0x9940 0x18>;
179f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
180f126890aSEmmanuel Vadot					     <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
181f126890aSEmmanuel Vadot					     <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
182f126890aSEmmanuel Vadot					     <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
183f126890aSEmmanuel Vadot			};
184f126890aSEmmanuel Vadot		};
185f126890aSEmmanuel Vadot
186f126890aSEmmanuel Vadot		L2: cache-controller@c4200000 {
187f126890aSEmmanuel Vadot			compatible = "arm,pl310-cache";
188f126890aSEmmanuel Vadot			reg = <0xc4200000 0x1000>;
189f126890aSEmmanuel Vadot			cache-unified;
190f126890aSEmmanuel Vadot			cache-level = <2>;
191f126890aSEmmanuel Vadot		};
192f126890aSEmmanuel Vadot
193f126890aSEmmanuel Vadot		periph: bus@c4300000 {
194f126890aSEmmanuel Vadot			compatible = "simple-bus";
195f126890aSEmmanuel Vadot			reg = <0xc4300000 0x10000>;
196f126890aSEmmanuel Vadot			#address-cells = <1>;
197f126890aSEmmanuel Vadot			#size-cells = <1>;
198f126890aSEmmanuel Vadot			ranges = <0x0 0xc4300000 0x10000>;
199f126890aSEmmanuel Vadot
200f126890aSEmmanuel Vadot			gic: interrupt-controller@1000 {
201f126890aSEmmanuel Vadot				compatible = "arm,cortex-a9-gic";
202f126890aSEmmanuel Vadot				reg = <0x1000 0x1000>,
203f126890aSEmmanuel Vadot				      <0x100 0x100>;
204f126890aSEmmanuel Vadot				interrupt-controller;
205f126890aSEmmanuel Vadot				#interrupt-cells = <3>;
206f126890aSEmmanuel Vadot			};
207f126890aSEmmanuel Vadot		};
208f126890aSEmmanuel Vadot
209*01950c46SEmmanuel Vadot		aobus: bus@c8100000 {
210f126890aSEmmanuel Vadot			compatible = "simple-bus";
211f126890aSEmmanuel Vadot			reg = <0xc8100000 0x100000>;
212f126890aSEmmanuel Vadot			#address-cells = <1>;
213f126890aSEmmanuel Vadot			#size-cells = <1>;
214f126890aSEmmanuel Vadot			ranges = <0x0 0xc8100000 0x100000>;
215f126890aSEmmanuel Vadot
216f126890aSEmmanuel Vadot			ao_arc_rproc: remoteproc@1c {
217f126890aSEmmanuel Vadot				compatible = "amlogic,meson-mx-ao-arc";
218f126890aSEmmanuel Vadot				reg = <0x1c 0x8>, <0x38 0x8>;
219f126890aSEmmanuel Vadot				reg-names = "remap", "cpu";
220f126890aSEmmanuel Vadot				status = "disabled";
221f126890aSEmmanuel Vadot			};
222f126890aSEmmanuel Vadot
223f126890aSEmmanuel Vadot			ir_receiver: ir-receiver@480 {
224f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-ir";
225f126890aSEmmanuel Vadot				reg = <0x480 0x20>;
226f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
227f126890aSEmmanuel Vadot				status = "disabled";
228f126890aSEmmanuel Vadot			};
229f126890aSEmmanuel Vadot
230f126890aSEmmanuel Vadot			uart_AO: serial@4c0 {
231f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart";
232f126890aSEmmanuel Vadot				reg = <0x4c0 0x18>;
233f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
234f126890aSEmmanuel Vadot				status = "disabled";
235f126890aSEmmanuel Vadot			};
236f126890aSEmmanuel Vadot
237f126890aSEmmanuel Vadot			i2c_AO: i2c@500 {
238f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-i2c";
239f126890aSEmmanuel Vadot				reg = <0x500 0x20>;
240f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
241f126890aSEmmanuel Vadot				#address-cells = <1>;
242f126890aSEmmanuel Vadot				#size-cells = <0>;
243f126890aSEmmanuel Vadot				status = "disabled";
244f126890aSEmmanuel Vadot			};
245f126890aSEmmanuel Vadot
246f126890aSEmmanuel Vadot			rtc: rtc@740 {
247f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-rtc";
248f126890aSEmmanuel Vadot				reg = <0x740 0x14>;
249f126890aSEmmanuel Vadot				interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
250f126890aSEmmanuel Vadot				#address-cells = <1>;
251f126890aSEmmanuel Vadot				#size-cells = <1>;
252f126890aSEmmanuel Vadot				status = "disabled";
253f126890aSEmmanuel Vadot			};
254f126890aSEmmanuel Vadot		};
255f126890aSEmmanuel Vadot
256f126890aSEmmanuel Vadot		usb0: usb@c9040000 {
257f126890aSEmmanuel Vadot			compatible = "snps,dwc2";
258f126890aSEmmanuel Vadot			#address-cells = <1>;
259f126890aSEmmanuel Vadot			#size-cells = <0>;
260f126890aSEmmanuel Vadot			reg = <0xc9040000 0x40000>;
261f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
262f126890aSEmmanuel Vadot			phys = <&usb0_phy>;
263f126890aSEmmanuel Vadot			phy-names = "usb2-phy";
264f126890aSEmmanuel Vadot			g-rx-fifo-size = <512>;
265f126890aSEmmanuel Vadot			g-np-tx-fifo-size = <500>;
266f126890aSEmmanuel Vadot			g-tx-fifo-size = <256 192 128 128 128>;
267f126890aSEmmanuel Vadot			dr_mode = "host";
268f126890aSEmmanuel Vadot			status = "disabled";
269f126890aSEmmanuel Vadot		};
270f126890aSEmmanuel Vadot
271f126890aSEmmanuel Vadot		usb1: usb@c90c0000 {
272f126890aSEmmanuel Vadot			compatible = "snps,dwc2";
273f126890aSEmmanuel Vadot			#address-cells = <1>;
274f126890aSEmmanuel Vadot			#size-cells = <0>;
275f126890aSEmmanuel Vadot			reg = <0xc90c0000 0x40000>;
276f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
277f126890aSEmmanuel Vadot			phys = <&usb1_phy>;
278f126890aSEmmanuel Vadot			phy-names = "usb2-phy";
279f126890aSEmmanuel Vadot			dr_mode = "host";
280f126890aSEmmanuel Vadot			status = "disabled";
281f126890aSEmmanuel Vadot		};
282f126890aSEmmanuel Vadot
283f126890aSEmmanuel Vadot		ethmac: ethernet@c9410000 {
284f126890aSEmmanuel Vadot			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
285f126890aSEmmanuel Vadot			reg = <0xc9410000 0x10000
286f126890aSEmmanuel Vadot			       0xc1108108 0x4>;
287f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
288f126890aSEmmanuel Vadot			interrupt-names = "macirq";
289f126890aSEmmanuel Vadot			status = "disabled";
290f126890aSEmmanuel Vadot		};
291f126890aSEmmanuel Vadot
292f126890aSEmmanuel Vadot		ahb_sram: sram@d9000000 {
293f126890aSEmmanuel Vadot			compatible = "mmio-sram";
294f126890aSEmmanuel Vadot			reg = <0xd9000000 0x20000>;
295f126890aSEmmanuel Vadot			#address-cells = <1>;
296f126890aSEmmanuel Vadot			#size-cells = <1>;
297f126890aSEmmanuel Vadot			ranges = <0 0xd9000000 0x20000>;
298f126890aSEmmanuel Vadot		};
299f126890aSEmmanuel Vadot
300f126890aSEmmanuel Vadot		bootrom: bootrom@d9040000 {
301f126890aSEmmanuel Vadot			compatible = "amlogic,meson-mx-bootrom", "syscon";
302f126890aSEmmanuel Vadot			reg = <0xd9040000 0x10000>;
303f126890aSEmmanuel Vadot		};
304f126890aSEmmanuel Vadot
305*01950c46SEmmanuel Vadot		secbus: bus@da000000 {
306f126890aSEmmanuel Vadot			compatible = "simple-bus";
307f126890aSEmmanuel Vadot			reg = <0xda000000 0x6000>;
308f126890aSEmmanuel Vadot			#address-cells = <1>;
309f126890aSEmmanuel Vadot			#size-cells = <1>;
310f126890aSEmmanuel Vadot			ranges = <0x0 0xda000000 0x6000>;
311f126890aSEmmanuel Vadot
312f126890aSEmmanuel Vadot			efuse: nvmem@0 {
313f126890aSEmmanuel Vadot				compatible = "amlogic,meson6-efuse";
314f126890aSEmmanuel Vadot				reg = <0x0 0x2000>;
315f126890aSEmmanuel Vadot				#address-cells = <1>;
316f126890aSEmmanuel Vadot				#size-cells = <1>;
317f126890aSEmmanuel Vadot			};
318f126890aSEmmanuel Vadot		};
319f126890aSEmmanuel Vadot	};
320f126890aSEmmanuel Vadot
321f126890aSEmmanuel Vadot	thermal_sensor: thermal-sensor {
322f126890aSEmmanuel Vadot		compatible = "generic-adc-thermal";
323f126890aSEmmanuel Vadot		#thermal-sensor-cells = <0>;
324f126890aSEmmanuel Vadot		io-channels = <&saradc 8>;
325f126890aSEmmanuel Vadot		io-channel-names = "sensor-channel";
326f126890aSEmmanuel Vadot	};
327f126890aSEmmanuel Vadot
328f126890aSEmmanuel Vadot	xtal: xtal-clk {
329f126890aSEmmanuel Vadot		compatible = "fixed-clock";
330f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
331f126890aSEmmanuel Vadot		clock-output-names = "xtal";
332f126890aSEmmanuel Vadot		#clock-cells = <0>;
333f126890aSEmmanuel Vadot	};
334f126890aSEmmanuel Vadot}; /* end of / */
335