xref: /freebsd-src/sys/contrib/device-tree/src/arm/amlogic/meson8b.dtsi (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR MIT
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright 2015 Endless Mobile, Inc.
4*f126890aSEmmanuel Vadot * Author: Carlo Caione <carlo@endlessm.com>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include <dt-bindings/clock/meson8-ddr-clkc.h>
8*f126890aSEmmanuel Vadot#include <dt-bindings/clock/meson8b-clkc.h>
9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/meson8b-gpio.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/power/meson8-power.h>
11*f126890aSEmmanuel Vadot#include <dt-bindings/reset/amlogic,meson8b-reset.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h>
14*f126890aSEmmanuel Vadot#include "meson.dtsi"
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	cpus {
18*f126890aSEmmanuel Vadot		#address-cells = <1>;
19*f126890aSEmmanuel Vadot		#size-cells = <0>;
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot		cpu0: cpu@200 {
22*f126890aSEmmanuel Vadot			device_type = "cpu";
23*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a5";
24*f126890aSEmmanuel Vadot			next-level-cache = <&L2>;
25*f126890aSEmmanuel Vadot			reg = <0x200>;
26*f126890aSEmmanuel Vadot			enable-method = "amlogic,meson8b-smp";
27*f126890aSEmmanuel Vadot			resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
28*f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
29*f126890aSEmmanuel Vadot			clocks = <&clkc CLKID_CPUCLK>;
30*f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot		cpu1: cpu@201 {
34*f126890aSEmmanuel Vadot			device_type = "cpu";
35*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a5";
36*f126890aSEmmanuel Vadot			next-level-cache = <&L2>;
37*f126890aSEmmanuel Vadot			reg = <0x201>;
38*f126890aSEmmanuel Vadot			enable-method = "amlogic,meson8b-smp";
39*f126890aSEmmanuel Vadot			resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
40*f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
41*f126890aSEmmanuel Vadot			clocks = <&clkc CLKID_CPUCLK>;
42*f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot		cpu2: cpu@202 {
46*f126890aSEmmanuel Vadot			device_type = "cpu";
47*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a5";
48*f126890aSEmmanuel Vadot			next-level-cache = <&L2>;
49*f126890aSEmmanuel Vadot			reg = <0x202>;
50*f126890aSEmmanuel Vadot			enable-method = "amlogic,meson8b-smp";
51*f126890aSEmmanuel Vadot			resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
52*f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
53*f126890aSEmmanuel Vadot			clocks = <&clkc CLKID_CPUCLK>;
54*f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot		cpu3: cpu@203 {
58*f126890aSEmmanuel Vadot			device_type = "cpu";
59*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a5";
60*f126890aSEmmanuel Vadot			next-level-cache = <&L2>;
61*f126890aSEmmanuel Vadot			reg = <0x203>;
62*f126890aSEmmanuel Vadot			enable-method = "amlogic,meson8b-smp";
63*f126890aSEmmanuel Vadot			resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
64*f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
65*f126890aSEmmanuel Vadot			clocks = <&clkc CLKID_CPUCLK>;
66*f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot	cpu_opp_table: opp-table {
71*f126890aSEmmanuel Vadot		compatible = "operating-points-v2";
72*f126890aSEmmanuel Vadot		opp-shared;
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot		opp-96000000 {
75*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <96000000>;
76*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
77*f126890aSEmmanuel Vadot		};
78*f126890aSEmmanuel Vadot		opp-192000000 {
79*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <192000000>;
80*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
81*f126890aSEmmanuel Vadot		};
82*f126890aSEmmanuel Vadot		opp-312000000 {
83*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <312000000>;
84*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
85*f126890aSEmmanuel Vadot		};
86*f126890aSEmmanuel Vadot		opp-408000000 {
87*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <408000000>;
88*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
89*f126890aSEmmanuel Vadot		};
90*f126890aSEmmanuel Vadot		opp-504000000 {
91*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <504000000>;
92*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
93*f126890aSEmmanuel Vadot		};
94*f126890aSEmmanuel Vadot		opp-600000000 {
95*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <600000000>;
96*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
97*f126890aSEmmanuel Vadot		};
98*f126890aSEmmanuel Vadot		opp-720000000 {
99*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <720000000>;
100*f126890aSEmmanuel Vadot			opp-microvolt = <860000>;
101*f126890aSEmmanuel Vadot		};
102*f126890aSEmmanuel Vadot		opp-816000000 {
103*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <816000000>;
104*f126890aSEmmanuel Vadot			opp-microvolt = <900000>;
105*f126890aSEmmanuel Vadot		};
106*f126890aSEmmanuel Vadot		opp-1008000000 {
107*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1008000000>;
108*f126890aSEmmanuel Vadot			opp-microvolt = <1140000>;
109*f126890aSEmmanuel Vadot		};
110*f126890aSEmmanuel Vadot		opp-1200000000 {
111*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1200000000>;
112*f126890aSEmmanuel Vadot			opp-microvolt = <1140000>;
113*f126890aSEmmanuel Vadot		};
114*f126890aSEmmanuel Vadot		opp-1320000000 {
115*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1320000000>;
116*f126890aSEmmanuel Vadot			opp-microvolt = <1140000>;
117*f126890aSEmmanuel Vadot		};
118*f126890aSEmmanuel Vadot		opp-1488000000 {
119*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1488000000>;
120*f126890aSEmmanuel Vadot			opp-microvolt = <1140000>;
121*f126890aSEmmanuel Vadot		};
122*f126890aSEmmanuel Vadot		opp-1536000000 {
123*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1536000000>;
124*f126890aSEmmanuel Vadot			opp-microvolt = <1140000>;
125*f126890aSEmmanuel Vadot		};
126*f126890aSEmmanuel Vadot	};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	gpu_opp_table: opp-table-gpu {
129*f126890aSEmmanuel Vadot		compatible = "operating-points-v2";
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot		opp-255000000 {
132*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <255000000>;
133*f126890aSEmmanuel Vadot			opp-microvolt = <1100000>;
134*f126890aSEmmanuel Vadot		};
135*f126890aSEmmanuel Vadot		opp-364285714 {
136*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <364285714>;
137*f126890aSEmmanuel Vadot			opp-microvolt = <1100000>;
138*f126890aSEmmanuel Vadot		};
139*f126890aSEmmanuel Vadot		opp-425000000 {
140*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <425000000>;
141*f126890aSEmmanuel Vadot			opp-microvolt = <1100000>;
142*f126890aSEmmanuel Vadot		};
143*f126890aSEmmanuel Vadot		opp-510000000 {
144*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <510000000>;
145*f126890aSEmmanuel Vadot			opp-microvolt = <1100000>;
146*f126890aSEmmanuel Vadot		};
147*f126890aSEmmanuel Vadot		opp-637500000 {
148*f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <637500000>;
149*f126890aSEmmanuel Vadot			opp-microvolt = <1100000>;
150*f126890aSEmmanuel Vadot			turbo-mode;
151*f126890aSEmmanuel Vadot		};
152*f126890aSEmmanuel Vadot	};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot	pmu {
155*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a5-pmu";
156*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
157*f126890aSEmmanuel Vadot			     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
158*f126890aSEmmanuel Vadot			     <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
159*f126890aSEmmanuel Vadot			     <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
160*f126890aSEmmanuel Vadot		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
161*f126890aSEmmanuel Vadot	};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot	reserved-memory {
164*f126890aSEmmanuel Vadot		#address-cells = <1>;
165*f126890aSEmmanuel Vadot		#size-cells = <1>;
166*f126890aSEmmanuel Vadot		ranges;
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot		/* 2 MiB reserved for Hardware ROM Firmware? */
169*f126890aSEmmanuel Vadot		hwrom@0 {
170*f126890aSEmmanuel Vadot			reg = <0x0 0x200000>;
171*f126890aSEmmanuel Vadot			no-map;
172*f126890aSEmmanuel Vadot		};
173*f126890aSEmmanuel Vadot	};
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot	thermal-zones {
176*f126890aSEmmanuel Vadot		soc {
177*f126890aSEmmanuel Vadot			polling-delay-passive = <250>; /* milliseconds */
178*f126890aSEmmanuel Vadot			polling-delay = <1000>; /* milliseconds */
179*f126890aSEmmanuel Vadot			thermal-sensors = <&thermal_sensor>;
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot			cooling-maps {
182*f126890aSEmmanuel Vadot				map0 {
183*f126890aSEmmanuel Vadot					trip = <&soc_passive>;
184*f126890aSEmmanuel Vadot					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
185*f126890aSEmmanuel Vadot							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
186*f126890aSEmmanuel Vadot							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
187*f126890aSEmmanuel Vadot							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
188*f126890aSEmmanuel Vadot							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
189*f126890aSEmmanuel Vadot				};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot				map1 {
192*f126890aSEmmanuel Vadot					trip = <&soc_hot>;
193*f126890aSEmmanuel Vadot					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
194*f126890aSEmmanuel Vadot							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
195*f126890aSEmmanuel Vadot							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
196*f126890aSEmmanuel Vadot							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
197*f126890aSEmmanuel Vadot							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
198*f126890aSEmmanuel Vadot				};
199*f126890aSEmmanuel Vadot			};
200*f126890aSEmmanuel Vadot
201*f126890aSEmmanuel Vadot			trips {
202*f126890aSEmmanuel Vadot				soc_passive: soc-passive {
203*f126890aSEmmanuel Vadot					temperature = <80000>; /* millicelsius */
204*f126890aSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
205*f126890aSEmmanuel Vadot					type = "passive";
206*f126890aSEmmanuel Vadot				};
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot				soc_hot: soc-hot {
209*f126890aSEmmanuel Vadot					temperature = <90000>; /* millicelsius */
210*f126890aSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
211*f126890aSEmmanuel Vadot					type = "hot";
212*f126890aSEmmanuel Vadot				};
213*f126890aSEmmanuel Vadot
214*f126890aSEmmanuel Vadot				soc_critical: soc-critical {
215*f126890aSEmmanuel Vadot					temperature = <110000>; /* millicelsius */
216*f126890aSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
217*f126890aSEmmanuel Vadot					type = "critical";
218*f126890aSEmmanuel Vadot				};
219*f126890aSEmmanuel Vadot			};
220*f126890aSEmmanuel Vadot		};
221*f126890aSEmmanuel Vadot	};
222*f126890aSEmmanuel Vadot
223*f126890aSEmmanuel Vadot	mmcbus: bus@c8000000 {
224*f126890aSEmmanuel Vadot		compatible = "simple-bus";
225*f126890aSEmmanuel Vadot		reg = <0xc8000000 0x8000>;
226*f126890aSEmmanuel Vadot		#address-cells = <1>;
227*f126890aSEmmanuel Vadot		#size-cells = <1>;
228*f126890aSEmmanuel Vadot		ranges = <0x0 0xc8000000 0x8000>;
229*f126890aSEmmanuel Vadot
230*f126890aSEmmanuel Vadot		ddr_clkc: clock-controller@400 {
231*f126890aSEmmanuel Vadot			compatible = "amlogic,meson8b-ddr-clkc";
232*f126890aSEmmanuel Vadot			reg = <0x400 0x20>;
233*f126890aSEmmanuel Vadot			clocks = <&xtal>;
234*f126890aSEmmanuel Vadot			clock-names = "xtal";
235*f126890aSEmmanuel Vadot			#clock-cells = <1>;
236*f126890aSEmmanuel Vadot		};
237*f126890aSEmmanuel Vadot
238*f126890aSEmmanuel Vadot		dmcbus: bus@6000 {
239*f126890aSEmmanuel Vadot			compatible = "simple-bus";
240*f126890aSEmmanuel Vadot			reg = <0x6000 0x400>;
241*f126890aSEmmanuel Vadot			#address-cells = <1>;
242*f126890aSEmmanuel Vadot			#size-cells = <1>;
243*f126890aSEmmanuel Vadot			ranges = <0x0 0x6000 0x400>;
244*f126890aSEmmanuel Vadot
245*f126890aSEmmanuel Vadot			canvas: video-lut@48 {
246*f126890aSEmmanuel Vadot				compatible = "amlogic,meson8b-canvas",
247*f126890aSEmmanuel Vadot					     "amlogic,canvas";
248*f126890aSEmmanuel Vadot				reg = <0x48 0x14>;
249*f126890aSEmmanuel Vadot			};
250*f126890aSEmmanuel Vadot		};
251*f126890aSEmmanuel Vadot	};
252*f126890aSEmmanuel Vadot
253*f126890aSEmmanuel Vadot	apb: bus@d0000000 {
254*f126890aSEmmanuel Vadot		compatible = "simple-bus";
255*f126890aSEmmanuel Vadot		reg = <0xd0000000 0x200000>;
256*f126890aSEmmanuel Vadot		#address-cells = <1>;
257*f126890aSEmmanuel Vadot		#size-cells = <1>;
258*f126890aSEmmanuel Vadot		ranges = <0x0 0xd0000000 0x200000>;
259*f126890aSEmmanuel Vadot
260*f126890aSEmmanuel Vadot		mali: gpu@c0000 {
261*f126890aSEmmanuel Vadot			compatible = "amlogic,meson8b-mali", "arm,mali-450";
262*f126890aSEmmanuel Vadot			reg = <0xc0000 0x40000>;
263*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
264*f126890aSEmmanuel Vadot				     <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
265*f126890aSEmmanuel Vadot				     <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
266*f126890aSEmmanuel Vadot				     <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
267*f126890aSEmmanuel Vadot				     <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
268*f126890aSEmmanuel Vadot				     <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
269*f126890aSEmmanuel Vadot				     <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
270*f126890aSEmmanuel Vadot				     <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
271*f126890aSEmmanuel Vadot			interrupt-names = "gp", "gpmmu", "pp", "pmu",
272*f126890aSEmmanuel Vadot					  "pp0", "ppmmu0", "pp1", "ppmmu1";
273*f126890aSEmmanuel Vadot			resets = <&reset RESET_MALI>;
274*f126890aSEmmanuel Vadot			clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
275*f126890aSEmmanuel Vadot			clock-names = "bus", "core";
276*f126890aSEmmanuel Vadot			operating-points-v2 = <&gpu_opp_table>;
277*f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
278*f126890aSEmmanuel Vadot		};
279*f126890aSEmmanuel Vadot	};
280*f126890aSEmmanuel Vadot}; /* end of / */
281*f126890aSEmmanuel Vadot
282*f126890aSEmmanuel Vadot&aiu {
283*f126890aSEmmanuel Vadot	compatible = "amlogic,aiu-meson8b", "amlogic,aiu";
284*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_AIU_GLUE>,
285*f126890aSEmmanuel Vadot		 <&clkc CLKID_I2S_OUT>,
286*f126890aSEmmanuel Vadot		 <&clkc CLKID_AOCLK_GATE>,
287*f126890aSEmmanuel Vadot		 <&clkc CLKID_CTS_AMCLK>,
288*f126890aSEmmanuel Vadot		 <&clkc CLKID_MIXER_IFACE>,
289*f126890aSEmmanuel Vadot		 <&clkc CLKID_IEC958>,
290*f126890aSEmmanuel Vadot		 <&clkc CLKID_IEC958_GATE>,
291*f126890aSEmmanuel Vadot		 <&clkc CLKID_CTS_MCLK_I958>,
292*f126890aSEmmanuel Vadot		 <&clkc CLKID_CTS_I958>;
293*f126890aSEmmanuel Vadot	clock-names = "pclk",
294*f126890aSEmmanuel Vadot		      "i2s_pclk",
295*f126890aSEmmanuel Vadot		      "i2s_aoclk",
296*f126890aSEmmanuel Vadot		      "i2s_mclk",
297*f126890aSEmmanuel Vadot		      "i2s_mixer",
298*f126890aSEmmanuel Vadot		      "spdif_pclk",
299*f126890aSEmmanuel Vadot		      "spdif_aoclk",
300*f126890aSEmmanuel Vadot		      "spdif_mclk",
301*f126890aSEmmanuel Vadot		      "spdif_mclk_sel";
302*f126890aSEmmanuel Vadot	resets = <&reset RESET_AIU>;
303*f126890aSEmmanuel Vadot};
304*f126890aSEmmanuel Vadot
305*f126890aSEmmanuel Vadot&aobus {
306*f126890aSEmmanuel Vadot	pmu: pmu@e0 {
307*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-pmu", "syscon";
308*f126890aSEmmanuel Vadot		reg = <0xe0 0x18>;
309*f126890aSEmmanuel Vadot	};
310*f126890aSEmmanuel Vadot
311*f126890aSEmmanuel Vadot	pinctrl_aobus: pinctrl@84 {
312*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-aobus-pinctrl";
313*f126890aSEmmanuel Vadot		reg = <0x84 0xc>;
314*f126890aSEmmanuel Vadot		#address-cells = <1>;
315*f126890aSEmmanuel Vadot		#size-cells = <1>;
316*f126890aSEmmanuel Vadot		ranges;
317*f126890aSEmmanuel Vadot
318*f126890aSEmmanuel Vadot		gpio_ao: ao-bank@14 {
319*f126890aSEmmanuel Vadot			reg = <0x14 0x4>,
320*f126890aSEmmanuel Vadot				<0x2c 0x4>,
321*f126890aSEmmanuel Vadot				<0x24 0x8>;
322*f126890aSEmmanuel Vadot			reg-names = "mux", "pull", "gpio";
323*f126890aSEmmanuel Vadot			gpio-controller;
324*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
325*f126890aSEmmanuel Vadot			gpio-ranges = <&pinctrl_aobus 0 0 16>;
326*f126890aSEmmanuel Vadot		};
327*f126890aSEmmanuel Vadot
328*f126890aSEmmanuel Vadot		i2s_am_clk_pins: i2s-am-clk-out {
329*f126890aSEmmanuel Vadot			mux {
330*f126890aSEmmanuel Vadot				groups = "i2s_am_clk_out";
331*f126890aSEmmanuel Vadot				function = "i2s";
332*f126890aSEmmanuel Vadot				bias-disable;
333*f126890aSEmmanuel Vadot			};
334*f126890aSEmmanuel Vadot		};
335*f126890aSEmmanuel Vadot
336*f126890aSEmmanuel Vadot		i2s_out_ao_clk_pins: i2s-ao-clk-out {
337*f126890aSEmmanuel Vadot			mux {
338*f126890aSEmmanuel Vadot				groups = "i2s_ao_clk_out";
339*f126890aSEmmanuel Vadot				function = "i2s";
340*f126890aSEmmanuel Vadot				bias-disable;
341*f126890aSEmmanuel Vadot			};
342*f126890aSEmmanuel Vadot		};
343*f126890aSEmmanuel Vadot
344*f126890aSEmmanuel Vadot		i2s_out_lr_clk_pins: i2s-lr-clk-out {
345*f126890aSEmmanuel Vadot			mux {
346*f126890aSEmmanuel Vadot				groups = "i2s_lr_clk_out";
347*f126890aSEmmanuel Vadot				function = "i2s";
348*f126890aSEmmanuel Vadot				bias-disable;
349*f126890aSEmmanuel Vadot			};
350*f126890aSEmmanuel Vadot		};
351*f126890aSEmmanuel Vadot
352*f126890aSEmmanuel Vadot		i2s_out_ch01_ao_pins: i2s-out-ch01 {
353*f126890aSEmmanuel Vadot			mux {
354*f126890aSEmmanuel Vadot				groups = "i2s_out_01";
355*f126890aSEmmanuel Vadot				function = "i2s";
356*f126890aSEmmanuel Vadot				bias-disable;
357*f126890aSEmmanuel Vadot			};
358*f126890aSEmmanuel Vadot		};
359*f126890aSEmmanuel Vadot
360*f126890aSEmmanuel Vadot		spdif_out_1_pins: spdif-out-1 {
361*f126890aSEmmanuel Vadot			mux {
362*f126890aSEmmanuel Vadot				groups = "spdif_out_1";
363*f126890aSEmmanuel Vadot				function = "spdif_1";
364*f126890aSEmmanuel Vadot				bias-disable;
365*f126890aSEmmanuel Vadot			};
366*f126890aSEmmanuel Vadot		};
367*f126890aSEmmanuel Vadot
368*f126890aSEmmanuel Vadot		uart_ao_a_pins: uart_ao_a {
369*f126890aSEmmanuel Vadot			mux {
370*f126890aSEmmanuel Vadot				groups = "uart_tx_ao_a", "uart_rx_ao_a";
371*f126890aSEmmanuel Vadot				function = "uart_ao";
372*f126890aSEmmanuel Vadot				bias-disable;
373*f126890aSEmmanuel Vadot			};
374*f126890aSEmmanuel Vadot		};
375*f126890aSEmmanuel Vadot
376*f126890aSEmmanuel Vadot		ir_recv_pins: remote {
377*f126890aSEmmanuel Vadot			mux {
378*f126890aSEmmanuel Vadot				groups = "remote_input";
379*f126890aSEmmanuel Vadot				function = "remote";
380*f126890aSEmmanuel Vadot				bias-disable;
381*f126890aSEmmanuel Vadot			};
382*f126890aSEmmanuel Vadot		};
383*f126890aSEmmanuel Vadot	};
384*f126890aSEmmanuel Vadot};
385*f126890aSEmmanuel Vadot
386*f126890aSEmmanuel Vadot&ao_arc_rproc {
387*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-ao-arc", "amlogic,meson-mx-ao-arc";
388*f126890aSEmmanuel Vadot	amlogic,secbus2 = <&secbus2>;
389*f126890aSEmmanuel Vadot	sram = <&ao_arc_sram>;
390*f126890aSEmmanuel Vadot	resets = <&reset RESET_MEDIA_CPU>;
391*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_AO_MEDIA_CPU>;
392*f126890aSEmmanuel Vadot};
393*f126890aSEmmanuel Vadot
394*f126890aSEmmanuel Vadot&cbus {
395*f126890aSEmmanuel Vadot	reset: reset-controller@4404 {
396*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-reset";
397*f126890aSEmmanuel Vadot		reg = <0x4404 0x9c>;
398*f126890aSEmmanuel Vadot		#reset-cells = <1>;
399*f126890aSEmmanuel Vadot	};
400*f126890aSEmmanuel Vadot
401*f126890aSEmmanuel Vadot	analog_top: analog-top@81a8 {
402*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-analog-top", "syscon";
403*f126890aSEmmanuel Vadot		reg = <0x81a8 0x14>;
404*f126890aSEmmanuel Vadot	};
405*f126890aSEmmanuel Vadot
406*f126890aSEmmanuel Vadot	pwm_ef: pwm@86c0 {
407*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-pwm";
408*f126890aSEmmanuel Vadot		reg = <0x86c0 0x10>;
409*f126890aSEmmanuel Vadot		#pwm-cells = <3>;
410*f126890aSEmmanuel Vadot		status = "disabled";
411*f126890aSEmmanuel Vadot	};
412*f126890aSEmmanuel Vadot
413*f126890aSEmmanuel Vadot	clock-measure@8758 {
414*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-clk-measure";
415*f126890aSEmmanuel Vadot		reg = <0x8758 0x1c>;
416*f126890aSEmmanuel Vadot	};
417*f126890aSEmmanuel Vadot
418*f126890aSEmmanuel Vadot	pinctrl_cbus: pinctrl@9880 {
419*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-cbus-pinctrl";
420*f126890aSEmmanuel Vadot		reg = <0x9880 0x10>;
421*f126890aSEmmanuel Vadot		#address-cells = <1>;
422*f126890aSEmmanuel Vadot		#size-cells = <1>;
423*f126890aSEmmanuel Vadot		ranges;
424*f126890aSEmmanuel Vadot
425*f126890aSEmmanuel Vadot		gpio: banks@80b0 {
426*f126890aSEmmanuel Vadot			reg = <0x80b0 0x28>,
427*f126890aSEmmanuel Vadot				<0x80e8 0x18>,
428*f126890aSEmmanuel Vadot				<0x8120 0x18>,
429*f126890aSEmmanuel Vadot				<0x8030 0x38>;
430*f126890aSEmmanuel Vadot			reg-names = "mux", "pull", "pull-enable", "gpio";
431*f126890aSEmmanuel Vadot			gpio-controller;
432*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
433*f126890aSEmmanuel Vadot			gpio-ranges = <&pinctrl_cbus 0 0 83>;
434*f126890aSEmmanuel Vadot		};
435*f126890aSEmmanuel Vadot
436*f126890aSEmmanuel Vadot		eth_rgmii_pins: eth-rgmii {
437*f126890aSEmmanuel Vadot			mux {
438*f126890aSEmmanuel Vadot				groups = "eth_tx_clk",
439*f126890aSEmmanuel Vadot					 "eth_tx_en",
440*f126890aSEmmanuel Vadot					 "eth_txd1_0",
441*f126890aSEmmanuel Vadot					 "eth_txd0_0",
442*f126890aSEmmanuel Vadot					 "eth_rx_clk",
443*f126890aSEmmanuel Vadot					 "eth_rx_dv",
444*f126890aSEmmanuel Vadot					 "eth_rxd1",
445*f126890aSEmmanuel Vadot					 "eth_rxd0",
446*f126890aSEmmanuel Vadot					 "eth_mdio_en",
447*f126890aSEmmanuel Vadot					 "eth_mdc",
448*f126890aSEmmanuel Vadot					 "eth_ref_clk",
449*f126890aSEmmanuel Vadot					 "eth_txd2",
450*f126890aSEmmanuel Vadot					 "eth_txd3",
451*f126890aSEmmanuel Vadot					 "eth_rxd3",
452*f126890aSEmmanuel Vadot					 "eth_rxd2";
453*f126890aSEmmanuel Vadot				function = "ethernet";
454*f126890aSEmmanuel Vadot				bias-disable;
455*f126890aSEmmanuel Vadot			};
456*f126890aSEmmanuel Vadot		};
457*f126890aSEmmanuel Vadot
458*f126890aSEmmanuel Vadot		eth_rmii_pins: eth-rmii {
459*f126890aSEmmanuel Vadot			mux {
460*f126890aSEmmanuel Vadot				groups = "eth_tx_en",
461*f126890aSEmmanuel Vadot					 "eth_txd1_0",
462*f126890aSEmmanuel Vadot					 "eth_txd0_0",
463*f126890aSEmmanuel Vadot					 "eth_rx_clk",
464*f126890aSEmmanuel Vadot					 "eth_rx_dv",
465*f126890aSEmmanuel Vadot					 "eth_rxd1",
466*f126890aSEmmanuel Vadot					 "eth_rxd0",
467*f126890aSEmmanuel Vadot					 "eth_mdio_en",
468*f126890aSEmmanuel Vadot					 "eth_mdc";
469*f126890aSEmmanuel Vadot				function = "ethernet";
470*f126890aSEmmanuel Vadot				bias-disable;
471*f126890aSEmmanuel Vadot			};
472*f126890aSEmmanuel Vadot		};
473*f126890aSEmmanuel Vadot
474*f126890aSEmmanuel Vadot		i2c_a_pins: i2c-a {
475*f126890aSEmmanuel Vadot			mux {
476*f126890aSEmmanuel Vadot				groups = "i2c_sda_a", "i2c_sck_a";
477*f126890aSEmmanuel Vadot				function = "i2c_a";
478*f126890aSEmmanuel Vadot				bias-disable;
479*f126890aSEmmanuel Vadot			};
480*f126890aSEmmanuel Vadot		};
481*f126890aSEmmanuel Vadot
482*f126890aSEmmanuel Vadot		sd_b_pins: sd-b {
483*f126890aSEmmanuel Vadot			mux {
484*f126890aSEmmanuel Vadot				groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
485*f126890aSEmmanuel Vadot					"sd_d3_b", "sd_clk_b", "sd_cmd_b";
486*f126890aSEmmanuel Vadot				function = "sd_b";
487*f126890aSEmmanuel Vadot				bias-disable;
488*f126890aSEmmanuel Vadot			};
489*f126890aSEmmanuel Vadot		};
490*f126890aSEmmanuel Vadot
491*f126890aSEmmanuel Vadot		sdxc_c_pins: sdxc-c {
492*f126890aSEmmanuel Vadot			mux {
493*f126890aSEmmanuel Vadot				groups = "sdxc_d0_c", "sdxc_d13_c",
494*f126890aSEmmanuel Vadot					 "sdxc_d47_c", "sdxc_clk_c",
495*f126890aSEmmanuel Vadot					 "sdxc_cmd_c";
496*f126890aSEmmanuel Vadot				function = "sdxc_c";
497*f126890aSEmmanuel Vadot				bias-pull-up;
498*f126890aSEmmanuel Vadot			};
499*f126890aSEmmanuel Vadot		};
500*f126890aSEmmanuel Vadot
501*f126890aSEmmanuel Vadot		pwm_c1_pins: pwm-c1 {
502*f126890aSEmmanuel Vadot			mux {
503*f126890aSEmmanuel Vadot				groups = "pwm_c1";
504*f126890aSEmmanuel Vadot				function = "pwm_c";
505*f126890aSEmmanuel Vadot				bias-disable;
506*f126890aSEmmanuel Vadot			};
507*f126890aSEmmanuel Vadot		};
508*f126890aSEmmanuel Vadot
509*f126890aSEmmanuel Vadot		pwm_d_pins: pwm-d {
510*f126890aSEmmanuel Vadot			mux {
511*f126890aSEmmanuel Vadot				groups = "pwm_d";
512*f126890aSEmmanuel Vadot				function = "pwm_d";
513*f126890aSEmmanuel Vadot				bias-disable;
514*f126890aSEmmanuel Vadot			};
515*f126890aSEmmanuel Vadot		};
516*f126890aSEmmanuel Vadot
517*f126890aSEmmanuel Vadot		uart_b0_pins: uart-b0 {
518*f126890aSEmmanuel Vadot			mux {
519*f126890aSEmmanuel Vadot				groups = "uart_tx_b0",
520*f126890aSEmmanuel Vadot				       "uart_rx_b0";
521*f126890aSEmmanuel Vadot				function = "uart_b";
522*f126890aSEmmanuel Vadot				bias-disable;
523*f126890aSEmmanuel Vadot			};
524*f126890aSEmmanuel Vadot		};
525*f126890aSEmmanuel Vadot
526*f126890aSEmmanuel Vadot		uart_b0_cts_rts_pins: uart-b0-cts-rts {
527*f126890aSEmmanuel Vadot			mux {
528*f126890aSEmmanuel Vadot				groups = "uart_cts_b0",
529*f126890aSEmmanuel Vadot				       "uart_rts_b0";
530*f126890aSEmmanuel Vadot				function = "uart_b";
531*f126890aSEmmanuel Vadot				bias-disable;
532*f126890aSEmmanuel Vadot			};
533*f126890aSEmmanuel Vadot		};
534*f126890aSEmmanuel Vadot	};
535*f126890aSEmmanuel Vadot};
536*f126890aSEmmanuel Vadot
537*f126890aSEmmanuel Vadot&ahb_sram {
538*f126890aSEmmanuel Vadot	ao_arc_sram: ao-arc-sram@0 {
539*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-ao-arc-sram";
540*f126890aSEmmanuel Vadot		reg = <0x0 0x8000>;
541*f126890aSEmmanuel Vadot		pool;
542*f126890aSEmmanuel Vadot	};
543*f126890aSEmmanuel Vadot
544*f126890aSEmmanuel Vadot	smp-sram@1ff80 {
545*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-smp-sram";
546*f126890aSEmmanuel Vadot		reg = <0x1ff80 0x8>;
547*f126890aSEmmanuel Vadot	};
548*f126890aSEmmanuel Vadot};
549*f126890aSEmmanuel Vadot
550*f126890aSEmmanuel Vadot
551*f126890aSEmmanuel Vadot&efuse {
552*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-efuse";
553*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_EFUSE>;
554*f126890aSEmmanuel Vadot	clock-names = "core";
555*f126890aSEmmanuel Vadot
556*f126890aSEmmanuel Vadot	temperature_calib: calib@1f4 {
557*f126890aSEmmanuel Vadot		/* only the upper two bytes are relevant */
558*f126890aSEmmanuel Vadot		reg = <0x1f4 0x4>;
559*f126890aSEmmanuel Vadot	};
560*f126890aSEmmanuel Vadot};
561*f126890aSEmmanuel Vadot
562*f126890aSEmmanuel Vadot&ethmac {
563*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
564*f126890aSEmmanuel Vadot
565*f126890aSEmmanuel Vadot	reg = <0xc9410000 0x10000
566*f126890aSEmmanuel Vadot	       0xc1108140 0x4>;
567*f126890aSEmmanuel Vadot
568*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_ETH>,
569*f126890aSEmmanuel Vadot		 <&clkc CLKID_MPLL2>,
570*f126890aSEmmanuel Vadot		 <&clkc CLKID_MPLL2>,
571*f126890aSEmmanuel Vadot		 <&clkc CLKID_FCLK_DIV2>;
572*f126890aSEmmanuel Vadot	clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
573*f126890aSEmmanuel Vadot	rx-fifo-depth = <4096>;
574*f126890aSEmmanuel Vadot	tx-fifo-depth = <2048>;
575*f126890aSEmmanuel Vadot
576*f126890aSEmmanuel Vadot	resets = <&reset RESET_ETHERNET>;
577*f126890aSEmmanuel Vadot	reset-names = "stmmaceth";
578*f126890aSEmmanuel Vadot
579*f126890aSEmmanuel Vadot	power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
580*f126890aSEmmanuel Vadot};
581*f126890aSEmmanuel Vadot
582*f126890aSEmmanuel Vadot&gpio_intc {
583*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-gpio-intc",
584*f126890aSEmmanuel Vadot		     "amlogic,meson-gpio-intc";
585*f126890aSEmmanuel Vadot	status = "okay";
586*f126890aSEmmanuel Vadot};
587*f126890aSEmmanuel Vadot
588*f126890aSEmmanuel Vadot&hhi {
589*f126890aSEmmanuel Vadot	clkc: clock-controller {
590*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-clkc";
591*f126890aSEmmanuel Vadot		clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
592*f126890aSEmmanuel Vadot		clock-names = "xtal", "ddr_pll";
593*f126890aSEmmanuel Vadot		#clock-cells = <1>;
594*f126890aSEmmanuel Vadot		#reset-cells = <1>;
595*f126890aSEmmanuel Vadot	};
596*f126890aSEmmanuel Vadot
597*f126890aSEmmanuel Vadot	pwrc: power-controller {
598*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-pwrc";
599*f126890aSEmmanuel Vadot		#power-domain-cells = <1>;
600*f126890aSEmmanuel Vadot		amlogic,ao-sysctrl = <&pmu>;
601*f126890aSEmmanuel Vadot		resets = <&reset RESET_DBLK>,
602*f126890aSEmmanuel Vadot			 <&reset RESET_PIC_DC>,
603*f126890aSEmmanuel Vadot			 <&reset RESET_HDMI_APB>,
604*f126890aSEmmanuel Vadot			 <&reset RESET_HDMI_SYSTEM_RESET>,
605*f126890aSEmmanuel Vadot			 <&reset RESET_VENCI>,
606*f126890aSEmmanuel Vadot			 <&reset RESET_VENCP>,
607*f126890aSEmmanuel Vadot			 <&reset RESET_VDAC_4>,
608*f126890aSEmmanuel Vadot			 <&reset RESET_VENCL>,
609*f126890aSEmmanuel Vadot			 <&reset RESET_VIU>,
610*f126890aSEmmanuel Vadot			 <&reset RESET_VENC>,
611*f126890aSEmmanuel Vadot			 <&reset RESET_RDMA>;
612*f126890aSEmmanuel Vadot		reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system",
613*f126890aSEmmanuel Vadot			      "venci", "vencp", "vdac", "vencl", "viu",
614*f126890aSEmmanuel Vadot			      "venc", "rdma";
615*f126890aSEmmanuel Vadot		clocks = <&clkc CLKID_VPU>;
616*f126890aSEmmanuel Vadot		clock-names = "vpu";
617*f126890aSEmmanuel Vadot		assigned-clocks = <&clkc CLKID_VPU>;
618*f126890aSEmmanuel Vadot		assigned-clock-rates = <182142857>;
619*f126890aSEmmanuel Vadot	};
620*f126890aSEmmanuel Vadot};
621*f126890aSEmmanuel Vadot
622*f126890aSEmmanuel Vadot&hwrng {
623*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_RNG0>;
624*f126890aSEmmanuel Vadot	clock-names = "core";
625*f126890aSEmmanuel Vadot};
626*f126890aSEmmanuel Vadot
627*f126890aSEmmanuel Vadot&i2c_AO {
628*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_CLK81>;
629*f126890aSEmmanuel Vadot};
630*f126890aSEmmanuel Vadot
631*f126890aSEmmanuel Vadot&i2c_A {
632*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_I2C>;
633*f126890aSEmmanuel Vadot};
634*f126890aSEmmanuel Vadot
635*f126890aSEmmanuel Vadot&i2c_B {
636*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_I2C>;
637*f126890aSEmmanuel Vadot};
638*f126890aSEmmanuel Vadot
639*f126890aSEmmanuel Vadot&L2 {
640*f126890aSEmmanuel Vadot	arm,data-latency = <3 3 3>;
641*f126890aSEmmanuel Vadot	arm,tag-latency = <2 2 2>;
642*f126890aSEmmanuel Vadot	arm,filter-ranges = <0x100000 0xc0000000>;
643*f126890aSEmmanuel Vadot	prefetch-data = <1>;
644*f126890aSEmmanuel Vadot	prefetch-instr = <1>;
645*f126890aSEmmanuel Vadot	arm,prefetch-offset = <7>;
646*f126890aSEmmanuel Vadot	arm,double-linefill = <1>;
647*f126890aSEmmanuel Vadot	arm,prefetch-drop = <1>;
648*f126890aSEmmanuel Vadot	arm,shared-override;
649*f126890aSEmmanuel Vadot};
650*f126890aSEmmanuel Vadot
651*f126890aSEmmanuel Vadot&periph {
652*f126890aSEmmanuel Vadot	scu@0 {
653*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a5-scu";
654*f126890aSEmmanuel Vadot		reg = <0x0 0x100>;
655*f126890aSEmmanuel Vadot	};
656*f126890aSEmmanuel Vadot
657*f126890aSEmmanuel Vadot	timer@200 {
658*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a5-global-timer";
659*f126890aSEmmanuel Vadot		reg = <0x200 0x20>;
660*f126890aSEmmanuel Vadot		interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
661*f126890aSEmmanuel Vadot		clocks = <&clkc CLKID_PERIPH>;
662*f126890aSEmmanuel Vadot
663*f126890aSEmmanuel Vadot		/*
664*f126890aSEmmanuel Vadot		 * the arm_global_timer driver currently does not handle clock
665*f126890aSEmmanuel Vadot		 * rate changes. Keep it disabled for now.
666*f126890aSEmmanuel Vadot		 */
667*f126890aSEmmanuel Vadot		status = "disabled";
668*f126890aSEmmanuel Vadot	};
669*f126890aSEmmanuel Vadot
670*f126890aSEmmanuel Vadot	timer@600 {
671*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a5-twd-timer";
672*f126890aSEmmanuel Vadot		reg = <0x600 0x20>;
673*f126890aSEmmanuel Vadot		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
674*f126890aSEmmanuel Vadot		clocks = <&clkc CLKID_PERIPH>;
675*f126890aSEmmanuel Vadot	};
676*f126890aSEmmanuel Vadot};
677*f126890aSEmmanuel Vadot
678*f126890aSEmmanuel Vadot&pwm_ab {
679*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-pwm";
680*f126890aSEmmanuel Vadot};
681*f126890aSEmmanuel Vadot
682*f126890aSEmmanuel Vadot&pwm_cd {
683*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-pwm";
684*f126890aSEmmanuel Vadot};
685*f126890aSEmmanuel Vadot
686*f126890aSEmmanuel Vadot&rtc {
687*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-rtc";
688*f126890aSEmmanuel Vadot	resets = <&reset RESET_RTC>;
689*f126890aSEmmanuel Vadot};
690*f126890aSEmmanuel Vadot
691*f126890aSEmmanuel Vadot&saradc {
692*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
693*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
694*f126890aSEmmanuel Vadot	clock-names = "clkin", "core";
695*f126890aSEmmanuel Vadot	amlogic,hhi-sysctrl = <&hhi>;
696*f126890aSEmmanuel Vadot	nvmem-cells = <&temperature_calib>;
697*f126890aSEmmanuel Vadot	nvmem-cell-names = "temperature_calib";
698*f126890aSEmmanuel Vadot};
699*f126890aSEmmanuel Vadot
700*f126890aSEmmanuel Vadot&sdhc {
701*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
702*f126890aSEmmanuel Vadot	clocks = <&xtal>,
703*f126890aSEmmanuel Vadot		 <&clkc CLKID_FCLK_DIV4>,
704*f126890aSEmmanuel Vadot		 <&clkc CLKID_FCLK_DIV3>,
705*f126890aSEmmanuel Vadot		 <&clkc CLKID_FCLK_DIV5>,
706*f126890aSEmmanuel Vadot		 <&clkc CLKID_SDHC>;
707*f126890aSEmmanuel Vadot	clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
708*f126890aSEmmanuel Vadot};
709*f126890aSEmmanuel Vadot
710*f126890aSEmmanuel Vadot&secbus {
711*f126890aSEmmanuel Vadot	secbus2: system-controller@4000 {
712*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8b-secbus2", "syscon";
713*f126890aSEmmanuel Vadot		reg = <0x4000 0x2000>;
714*f126890aSEmmanuel Vadot	};
715*f126890aSEmmanuel Vadot};
716*f126890aSEmmanuel Vadot
717*f126890aSEmmanuel Vadot&sdio {
718*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
719*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
720*f126890aSEmmanuel Vadot	clock-names = "core", "clkin";
721*f126890aSEmmanuel Vadot};
722*f126890aSEmmanuel Vadot
723*f126890aSEmmanuel Vadot&timer_abcde {
724*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_CLK81>;
725*f126890aSEmmanuel Vadot	clock-names = "xtal", "pclk";
726*f126890aSEmmanuel Vadot};
727*f126890aSEmmanuel Vadot
728*f126890aSEmmanuel Vadot&uart_AO {
729*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-uart", "amlogic,meson-ao-uart";
730*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_CLK81>, <&clkc CLKID_CLK81>;
731*f126890aSEmmanuel Vadot	clock-names = "xtal", "pclk", "baud";
732*f126890aSEmmanuel Vadot};
733*f126890aSEmmanuel Vadot
734*f126890aSEmmanuel Vadot&uart_A {
735*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-uart";
736*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
737*f126890aSEmmanuel Vadot	clock-names = "xtal", "pclk", "baud";
738*f126890aSEmmanuel Vadot};
739*f126890aSEmmanuel Vadot
740*f126890aSEmmanuel Vadot&uart_B {
741*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-uart";
742*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_UART1>, <&clkc CLKID_CLK81>;
743*f126890aSEmmanuel Vadot	clock-names = "xtal", "pclk", "baud";
744*f126890aSEmmanuel Vadot};
745*f126890aSEmmanuel Vadot
746*f126890aSEmmanuel Vadot&uart_C {
747*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-uart";
748*f126890aSEmmanuel Vadot	clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>;
749*f126890aSEmmanuel Vadot	clock-names = "xtal", "pclk", "baud";
750*f126890aSEmmanuel Vadot};
751*f126890aSEmmanuel Vadot
752*f126890aSEmmanuel Vadot&usb0 {
753*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-usb", "snps,dwc2";
754*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
755*f126890aSEmmanuel Vadot	clock-names = "otg";
756*f126890aSEmmanuel Vadot};
757*f126890aSEmmanuel Vadot
758*f126890aSEmmanuel Vadot&usb1 {
759*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-usb", "snps,dwc2";
760*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
761*f126890aSEmmanuel Vadot	clock-names = "otg";
762*f126890aSEmmanuel Vadot};
763*f126890aSEmmanuel Vadot
764*f126890aSEmmanuel Vadot&usb0_phy {
765*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
766*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
767*f126890aSEmmanuel Vadot	clock-names = "usb_general", "usb";
768*f126890aSEmmanuel Vadot	resets = <&reset RESET_USB_OTG>;
769*f126890aSEmmanuel Vadot};
770*f126890aSEmmanuel Vadot
771*f126890aSEmmanuel Vadot&usb1_phy {
772*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
773*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
774*f126890aSEmmanuel Vadot	clock-names = "usb_general", "usb";
775*f126890aSEmmanuel Vadot	resets = <&reset RESET_USB_OTG>;
776*f126890aSEmmanuel Vadot};
777*f126890aSEmmanuel Vadot
778*f126890aSEmmanuel Vadot&wdt {
779*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8b-wdt";
780*f126890aSEmmanuel Vadot};
781