xref: /linux/scripts/dtc/include-prefixes/arm/amlogic/meson8b.dtsi (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 OR MIT
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright 2015 Endless Mobile, Inc.
4724ba675SRob Herring * Author: Carlo Caione <carlo@endlessm.com>
5724ba675SRob Herring */
6724ba675SRob Herring
7724ba675SRob Herring#include <dt-bindings/clock/meson8-ddr-clkc.h>
8724ba675SRob Herring#include <dt-bindings/clock/meson8b-clkc.h>
9724ba675SRob Herring#include <dt-bindings/gpio/meson8b-gpio.h>
10724ba675SRob Herring#include <dt-bindings/power/meson8-power.h>
11724ba675SRob Herring#include <dt-bindings/reset/amlogic,meson8b-reset.h>
12724ba675SRob Herring#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
13724ba675SRob Herring#include <dt-bindings/thermal/thermal.h>
14724ba675SRob Herring#include "meson.dtsi"
15724ba675SRob Herring
16724ba675SRob Herring/ {
17724ba675SRob Herring	cpus {
18724ba675SRob Herring		#address-cells = <1>;
19724ba675SRob Herring		#size-cells = <0>;
20724ba675SRob Herring
21724ba675SRob Herring		cpu0: cpu@200 {
22724ba675SRob Herring			device_type = "cpu";
23724ba675SRob Herring			compatible = "arm,cortex-a5";
24724ba675SRob Herring			next-level-cache = <&L2>;
25724ba675SRob Herring			reg = <0x200>;
26724ba675SRob Herring			enable-method = "amlogic,meson8b-smp";
27724ba675SRob Herring			resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
28724ba675SRob Herring			operating-points-v2 = <&cpu_opp_table>;
29724ba675SRob Herring			clocks = <&clkc CLKID_CPUCLK>;
30724ba675SRob Herring			#cooling-cells = <2>; /* min followed by max */
31724ba675SRob Herring		};
32724ba675SRob Herring
33724ba675SRob Herring		cpu1: cpu@201 {
34724ba675SRob Herring			device_type = "cpu";
35724ba675SRob Herring			compatible = "arm,cortex-a5";
36724ba675SRob Herring			next-level-cache = <&L2>;
37724ba675SRob Herring			reg = <0x201>;
38724ba675SRob Herring			enable-method = "amlogic,meson8b-smp";
39724ba675SRob Herring			resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
40724ba675SRob Herring			operating-points-v2 = <&cpu_opp_table>;
41724ba675SRob Herring			clocks = <&clkc CLKID_CPUCLK>;
42724ba675SRob Herring			#cooling-cells = <2>; /* min followed by max */
43724ba675SRob Herring		};
44724ba675SRob Herring
45724ba675SRob Herring		cpu2: cpu@202 {
46724ba675SRob Herring			device_type = "cpu";
47724ba675SRob Herring			compatible = "arm,cortex-a5";
48724ba675SRob Herring			next-level-cache = <&L2>;
49724ba675SRob Herring			reg = <0x202>;
50724ba675SRob Herring			enable-method = "amlogic,meson8b-smp";
51724ba675SRob Herring			resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
52724ba675SRob Herring			operating-points-v2 = <&cpu_opp_table>;
53724ba675SRob Herring			clocks = <&clkc CLKID_CPUCLK>;
54724ba675SRob Herring			#cooling-cells = <2>; /* min followed by max */
55724ba675SRob Herring		};
56724ba675SRob Herring
57724ba675SRob Herring		cpu3: cpu@203 {
58724ba675SRob Herring			device_type = "cpu";
59724ba675SRob Herring			compatible = "arm,cortex-a5";
60724ba675SRob Herring			next-level-cache = <&L2>;
61724ba675SRob Herring			reg = <0x203>;
62724ba675SRob Herring			enable-method = "amlogic,meson8b-smp";
63724ba675SRob Herring			resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
64724ba675SRob Herring			operating-points-v2 = <&cpu_opp_table>;
65724ba675SRob Herring			clocks = <&clkc CLKID_CPUCLK>;
66724ba675SRob Herring			#cooling-cells = <2>; /* min followed by max */
67724ba675SRob Herring		};
68724ba675SRob Herring	};
69724ba675SRob Herring
70724ba675SRob Herring	cpu_opp_table: opp-table {
71724ba675SRob Herring		compatible = "operating-points-v2";
72724ba675SRob Herring		opp-shared;
73724ba675SRob Herring
74724ba675SRob Herring		opp-96000000 {
75724ba675SRob Herring			opp-hz = /bits/ 64 <96000000>;
76724ba675SRob Herring			opp-microvolt = <860000>;
77724ba675SRob Herring		};
78724ba675SRob Herring		opp-192000000 {
79724ba675SRob Herring			opp-hz = /bits/ 64 <192000000>;
80724ba675SRob Herring			opp-microvolt = <860000>;
81724ba675SRob Herring		};
82724ba675SRob Herring		opp-312000000 {
83724ba675SRob Herring			opp-hz = /bits/ 64 <312000000>;
84724ba675SRob Herring			opp-microvolt = <860000>;
85724ba675SRob Herring		};
86724ba675SRob Herring		opp-408000000 {
87724ba675SRob Herring			opp-hz = /bits/ 64 <408000000>;
88724ba675SRob Herring			opp-microvolt = <860000>;
89724ba675SRob Herring		};
90724ba675SRob Herring		opp-504000000 {
91724ba675SRob Herring			opp-hz = /bits/ 64 <504000000>;
92724ba675SRob Herring			opp-microvolt = <860000>;
93724ba675SRob Herring		};
94724ba675SRob Herring		opp-600000000 {
95724ba675SRob Herring			opp-hz = /bits/ 64 <600000000>;
96724ba675SRob Herring			opp-microvolt = <860000>;
97724ba675SRob Herring		};
98724ba675SRob Herring		opp-720000000 {
99724ba675SRob Herring			opp-hz = /bits/ 64 <720000000>;
100724ba675SRob Herring			opp-microvolt = <860000>;
101724ba675SRob Herring		};
102724ba675SRob Herring		opp-816000000 {
103724ba675SRob Herring			opp-hz = /bits/ 64 <816000000>;
104724ba675SRob Herring			opp-microvolt = <900000>;
105724ba675SRob Herring		};
106724ba675SRob Herring		opp-1008000000 {
107724ba675SRob Herring			opp-hz = /bits/ 64 <1008000000>;
108724ba675SRob Herring			opp-microvolt = <1140000>;
109724ba675SRob Herring		};
110724ba675SRob Herring		opp-1200000000 {
111724ba675SRob Herring			opp-hz = /bits/ 64 <1200000000>;
112724ba675SRob Herring			opp-microvolt = <1140000>;
113724ba675SRob Herring		};
114724ba675SRob Herring		opp-1320000000 {
115724ba675SRob Herring			opp-hz = /bits/ 64 <1320000000>;
116724ba675SRob Herring			opp-microvolt = <1140000>;
117724ba675SRob Herring		};
118724ba675SRob Herring		opp-1488000000 {
119724ba675SRob Herring			opp-hz = /bits/ 64 <1488000000>;
120724ba675SRob Herring			opp-microvolt = <1140000>;
121724ba675SRob Herring		};
122724ba675SRob Herring		opp-1536000000 {
123724ba675SRob Herring			opp-hz = /bits/ 64 <1536000000>;
124724ba675SRob Herring			opp-microvolt = <1140000>;
125724ba675SRob Herring		};
126724ba675SRob Herring	};
127724ba675SRob Herring
128724ba675SRob Herring	gpu_opp_table: opp-table-gpu {
129724ba675SRob Herring		compatible = "operating-points-v2";
130724ba675SRob Herring
131724ba675SRob Herring		opp-255000000 {
132724ba675SRob Herring			opp-hz = /bits/ 64 <255000000>;
133724ba675SRob Herring			opp-microvolt = <1100000>;
134724ba675SRob Herring		};
135724ba675SRob Herring		opp-364285714 {
136724ba675SRob Herring			opp-hz = /bits/ 64 <364285714>;
137724ba675SRob Herring			opp-microvolt = <1100000>;
138724ba675SRob Herring		};
139724ba675SRob Herring		opp-425000000 {
140724ba675SRob Herring			opp-hz = /bits/ 64 <425000000>;
141724ba675SRob Herring			opp-microvolt = <1100000>;
142724ba675SRob Herring		};
143724ba675SRob Herring		opp-510000000 {
144724ba675SRob Herring			opp-hz = /bits/ 64 <510000000>;
145724ba675SRob Herring			opp-microvolt = <1100000>;
146724ba675SRob Herring		};
147724ba675SRob Herring		opp-637500000 {
148724ba675SRob Herring			opp-hz = /bits/ 64 <637500000>;
149724ba675SRob Herring			opp-microvolt = <1100000>;
150724ba675SRob Herring			turbo-mode;
151724ba675SRob Herring		};
152724ba675SRob Herring	};
153724ba675SRob Herring
154724ba675SRob Herring	pmu {
155724ba675SRob Herring		compatible = "arm,cortex-a5-pmu";
156724ba675SRob Herring		interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
157724ba675SRob Herring			     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
158724ba675SRob Herring			     <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
159724ba675SRob Herring			     <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
160724ba675SRob Herring		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
161724ba675SRob Herring	};
162724ba675SRob Herring
163724ba675SRob Herring	reserved-memory {
164724ba675SRob Herring		#address-cells = <1>;
165724ba675SRob Herring		#size-cells = <1>;
166724ba675SRob Herring		ranges;
167724ba675SRob Herring
168724ba675SRob Herring		/* 2 MiB reserved for Hardware ROM Firmware? */
169724ba675SRob Herring		hwrom@0 {
170724ba675SRob Herring			reg = <0x0 0x200000>;
171724ba675SRob Herring			no-map;
172724ba675SRob Herring		};
173724ba675SRob Herring	};
174724ba675SRob Herring
175724ba675SRob Herring	thermal-zones {
176285d2d64SNeil Armstrong		soc-thermal {
177724ba675SRob Herring			polling-delay-passive = <250>; /* milliseconds */
178724ba675SRob Herring			polling-delay = <1000>; /* milliseconds */
179724ba675SRob Herring			thermal-sensors = <&thermal_sensor>;
180724ba675SRob Herring
181724ba675SRob Herring			cooling-maps {
182724ba675SRob Herring				map0 {
183724ba675SRob Herring					trip = <&soc_passive>;
184724ba675SRob Herring					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
185724ba675SRob Herring							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
186724ba675SRob Herring							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
187724ba675SRob Herring							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
188724ba675SRob Herring							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
189724ba675SRob Herring				};
190724ba675SRob Herring
191724ba675SRob Herring				map1 {
192724ba675SRob Herring					trip = <&soc_hot>;
193724ba675SRob Herring					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
194724ba675SRob Herring							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
195724ba675SRob Herring							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
196724ba675SRob Herring							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
197724ba675SRob Herring							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
198724ba675SRob Herring				};
199724ba675SRob Herring			};
200724ba675SRob Herring
201724ba675SRob Herring			trips {
202724ba675SRob Herring				soc_passive: soc-passive {
203724ba675SRob Herring					temperature = <80000>; /* millicelsius */
204724ba675SRob Herring					hysteresis = <2000>; /* millicelsius */
205724ba675SRob Herring					type = "passive";
206724ba675SRob Herring				};
207724ba675SRob Herring
208724ba675SRob Herring				soc_hot: soc-hot {
209724ba675SRob Herring					temperature = <90000>; /* millicelsius */
210724ba675SRob Herring					hysteresis = <2000>; /* millicelsius */
211724ba675SRob Herring					type = "hot";
212724ba675SRob Herring				};
213724ba675SRob Herring
214724ba675SRob Herring				soc_critical: soc-critical {
215724ba675SRob Herring					temperature = <110000>; /* millicelsius */
216724ba675SRob Herring					hysteresis = <2000>; /* millicelsius */
217724ba675SRob Herring					type = "critical";
218724ba675SRob Herring				};
219724ba675SRob Herring			};
220724ba675SRob Herring		};
221724ba675SRob Herring	};
222724ba675SRob Herring
223724ba675SRob Herring	mmcbus: bus@c8000000 {
224724ba675SRob Herring		compatible = "simple-bus";
225724ba675SRob Herring		reg = <0xc8000000 0x8000>;
226724ba675SRob Herring		#address-cells = <1>;
227724ba675SRob Herring		#size-cells = <1>;
228724ba675SRob Herring		ranges = <0x0 0xc8000000 0x8000>;
229724ba675SRob Herring
230724ba675SRob Herring		ddr_clkc: clock-controller@400 {
231724ba675SRob Herring			compatible = "amlogic,meson8b-ddr-clkc";
232724ba675SRob Herring			reg = <0x400 0x20>;
233724ba675SRob Herring			clocks = <&xtal>;
234724ba675SRob Herring			clock-names = "xtal";
235724ba675SRob Herring			#clock-cells = <1>;
236724ba675SRob Herring		};
237724ba675SRob Herring
238724ba675SRob Herring		dmcbus: bus@6000 {
239724ba675SRob Herring			compatible = "simple-bus";
240724ba675SRob Herring			reg = <0x6000 0x400>;
241724ba675SRob Herring			#address-cells = <1>;
242724ba675SRob Herring			#size-cells = <1>;
243724ba675SRob Herring			ranges = <0x0 0x6000 0x400>;
244724ba675SRob Herring
245724ba675SRob Herring			canvas: video-lut@48 {
246724ba675SRob Herring				compatible = "amlogic,meson8b-canvas",
247724ba675SRob Herring					     "amlogic,canvas";
248724ba675SRob Herring				reg = <0x48 0x14>;
249724ba675SRob Herring			};
250724ba675SRob Herring		};
251724ba675SRob Herring	};
252724ba675SRob Herring
253724ba675SRob Herring	apb: bus@d0000000 {
254724ba675SRob Herring		compatible = "simple-bus";
255724ba675SRob Herring		reg = <0xd0000000 0x200000>;
256724ba675SRob Herring		#address-cells = <1>;
257724ba675SRob Herring		#size-cells = <1>;
258724ba675SRob Herring		ranges = <0x0 0xd0000000 0x200000>;
259724ba675SRob Herring
260724ba675SRob Herring		mali: gpu@c0000 {
261724ba675SRob Herring			compatible = "amlogic,meson8b-mali", "arm,mali-450";
262724ba675SRob Herring			reg = <0xc0000 0x40000>;
263724ba675SRob Herring			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
264724ba675SRob Herring				     <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
265724ba675SRob Herring				     <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
266724ba675SRob Herring				     <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
267724ba675SRob Herring				     <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
268724ba675SRob Herring				     <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
269724ba675SRob Herring				     <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
270724ba675SRob Herring				     <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
271724ba675SRob Herring			interrupt-names = "gp", "gpmmu", "pp", "pmu",
272724ba675SRob Herring					  "pp0", "ppmmu0", "pp1", "ppmmu1";
273724ba675SRob Herring			resets = <&reset RESET_MALI>;
274724ba675SRob Herring			clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
275724ba675SRob Herring			clock-names = "bus", "core";
276724ba675SRob Herring			operating-points-v2 = <&gpu_opp_table>;
277724ba675SRob Herring			#cooling-cells = <2>; /* min followed by max */
278724ba675SRob Herring		};
279724ba675SRob Herring	};
280724ba675SRob Herring}; /* end of / */
281724ba675SRob Herring
282724ba675SRob Herring&aiu {
283724ba675SRob Herring	compatible = "amlogic,aiu-meson8b", "amlogic,aiu";
284724ba675SRob Herring	clocks = <&clkc CLKID_AIU_GLUE>,
285724ba675SRob Herring		 <&clkc CLKID_I2S_OUT>,
286724ba675SRob Herring		 <&clkc CLKID_AOCLK_GATE>,
287724ba675SRob Herring		 <&clkc CLKID_CTS_AMCLK>,
288724ba675SRob Herring		 <&clkc CLKID_MIXER_IFACE>,
289724ba675SRob Herring		 <&clkc CLKID_IEC958>,
290724ba675SRob Herring		 <&clkc CLKID_IEC958_GATE>,
291724ba675SRob Herring		 <&clkc CLKID_CTS_MCLK_I958>,
292724ba675SRob Herring		 <&clkc CLKID_CTS_I958>;
293724ba675SRob Herring	clock-names = "pclk",
294724ba675SRob Herring		      "i2s_pclk",
295724ba675SRob Herring		      "i2s_aoclk",
296724ba675SRob Herring		      "i2s_mclk",
297724ba675SRob Herring		      "i2s_mixer",
298724ba675SRob Herring		      "spdif_pclk",
299724ba675SRob Herring		      "spdif_aoclk",
300724ba675SRob Herring		      "spdif_mclk",
301724ba675SRob Herring		      "spdif_mclk_sel";
302724ba675SRob Herring	resets = <&reset RESET_AIU>;
303724ba675SRob Herring};
304724ba675SRob Herring
305724ba675SRob Herring&aobus {
306724ba675SRob Herring	pmu: pmu@e0 {
307724ba675SRob Herring		compatible = "amlogic,meson8b-pmu", "syscon";
308724ba675SRob Herring		reg = <0xe0 0x18>;
309724ba675SRob Herring	};
310724ba675SRob Herring
311*2b901e9eSNeil Armstrong	pinctrl_aobus: pinctrl@14 {
312724ba675SRob Herring		compatible = "amlogic,meson8b-aobus-pinctrl";
313724ba675SRob Herring		#address-cells = <1>;
314724ba675SRob Herring		#size-cells = <1>;
315*2b901e9eSNeil Armstrong		ranges = <0x0 0x14 0x1c>;
316724ba675SRob Herring
317*2b901e9eSNeil Armstrong		gpio_ao: bank@0 {
318*2b901e9eSNeil Armstrong			reg = <0x0 0x4>,
319*2b901e9eSNeil Armstrong			      <0x18 0x4>,
320*2b901e9eSNeil Armstrong			      <0x10 0x8>;
321724ba675SRob Herring			reg-names = "mux", "pull", "gpio";
322724ba675SRob Herring			gpio-controller;
323724ba675SRob Herring			#gpio-cells = <2>;
324724ba675SRob Herring			gpio-ranges = <&pinctrl_aobus 0 0 16>;
325724ba675SRob Herring		};
326724ba675SRob Herring
327724ba675SRob Herring		i2s_am_clk_pins: i2s-am-clk-out {
328724ba675SRob Herring			mux {
329724ba675SRob Herring				groups = "i2s_am_clk_out";
330724ba675SRob Herring				function = "i2s";
331724ba675SRob Herring				bias-disable;
332724ba675SRob Herring			};
333724ba675SRob Herring		};
334724ba675SRob Herring
335724ba675SRob Herring		i2s_out_ao_clk_pins: i2s-ao-clk-out {
336724ba675SRob Herring			mux {
337724ba675SRob Herring				groups = "i2s_ao_clk_out";
338724ba675SRob Herring				function = "i2s";
339724ba675SRob Herring				bias-disable;
340724ba675SRob Herring			};
341724ba675SRob Herring		};
342724ba675SRob Herring
343724ba675SRob Herring		i2s_out_lr_clk_pins: i2s-lr-clk-out {
344724ba675SRob Herring			mux {
345724ba675SRob Herring				groups = "i2s_lr_clk_out";
346724ba675SRob Herring				function = "i2s";
347724ba675SRob Herring				bias-disable;
348724ba675SRob Herring			};
349724ba675SRob Herring		};
350724ba675SRob Herring
351724ba675SRob Herring		i2s_out_ch01_ao_pins: i2s-out-ch01 {
352724ba675SRob Herring			mux {
353724ba675SRob Herring				groups = "i2s_out_01";
354724ba675SRob Herring				function = "i2s";
355724ba675SRob Herring				bias-disable;
356724ba675SRob Herring			};
357724ba675SRob Herring		};
358724ba675SRob Herring
359724ba675SRob Herring		spdif_out_1_pins: spdif-out-1 {
360724ba675SRob Herring			mux {
361724ba675SRob Herring				groups = "spdif_out_1";
362724ba675SRob Herring				function = "spdif_1";
363724ba675SRob Herring				bias-disable;
364724ba675SRob Herring			};
365724ba675SRob Herring		};
366724ba675SRob Herring
367724ba675SRob Herring		uart_ao_a_pins: uart_ao_a {
368724ba675SRob Herring			mux {
369724ba675SRob Herring				groups = "uart_tx_ao_a", "uart_rx_ao_a";
370724ba675SRob Herring				function = "uart_ao";
371724ba675SRob Herring				bias-disable;
372724ba675SRob Herring			};
373724ba675SRob Herring		};
374724ba675SRob Herring
375724ba675SRob Herring		ir_recv_pins: remote {
376724ba675SRob Herring			mux {
377724ba675SRob Herring				groups = "remote_input";
378724ba675SRob Herring				function = "remote";
379724ba675SRob Herring				bias-disable;
380724ba675SRob Herring			};
381724ba675SRob Herring		};
382724ba675SRob Herring	};
383724ba675SRob Herring};
384724ba675SRob Herring
385724ba675SRob Herring&ao_arc_rproc {
386724ba675SRob Herring	compatible = "amlogic,meson8b-ao-arc", "amlogic,meson-mx-ao-arc";
387724ba675SRob Herring	amlogic,secbus2 = <&secbus2>;
388724ba675SRob Herring	sram = <&ao_arc_sram>;
389724ba675SRob Herring	resets = <&reset RESET_MEDIA_CPU>;
390724ba675SRob Herring	clocks = <&clkc CLKID_AO_MEDIA_CPU>;
391724ba675SRob Herring};
392724ba675SRob Herring
393724ba675SRob Herring&cbus {
394724ba675SRob Herring	reset: reset-controller@4404 {
395724ba675SRob Herring		compatible = "amlogic,meson8b-reset";
396724ba675SRob Herring		reg = <0x4404 0x9c>;
397724ba675SRob Herring		#reset-cells = <1>;
398724ba675SRob Herring	};
399724ba675SRob Herring
400724ba675SRob Herring	analog_top: analog-top@81a8 {
401724ba675SRob Herring		compatible = "amlogic,meson8b-analog-top", "syscon";
402724ba675SRob Herring		reg = <0x81a8 0x14>;
403724ba675SRob Herring	};
404724ba675SRob Herring
405724ba675SRob Herring	pwm_ef: pwm@86c0 {
406724ba675SRob Herring		compatible = "amlogic,meson8b-pwm";
407724ba675SRob Herring		reg = <0x86c0 0x10>;
408724ba675SRob Herring		#pwm-cells = <3>;
409724ba675SRob Herring		status = "disabled";
410724ba675SRob Herring	};
411724ba675SRob Herring
412724ba675SRob Herring	clock-measure@8758 {
413724ba675SRob Herring		compatible = "amlogic,meson8b-clk-measure";
414724ba675SRob Herring		reg = <0x8758 0x1c>;
415724ba675SRob Herring	};
416724ba675SRob Herring
417*2b901e9eSNeil Armstrong	pinctrl_cbus: pinctrl@8030 {
418724ba675SRob Herring		compatible = "amlogic,meson8b-cbus-pinctrl";
419724ba675SRob Herring		#address-cells = <1>;
420724ba675SRob Herring		#size-cells = <1>;
421*2b901e9eSNeil Armstrong		ranges = <0x0 0x8030 0x108>;
422724ba675SRob Herring
423*2b901e9eSNeil Armstrong		gpio: bank@80 {
424*2b901e9eSNeil Armstrong			reg = <0x80 0x28>,
425*2b901e9eSNeil Armstrong			      <0xb8 0x18>,
426*2b901e9eSNeil Armstrong			      <0xf0 0x18>,
427*2b901e9eSNeil Armstrong			      <0x00 0x38>;
428724ba675SRob Herring			reg-names = "mux", "pull", "pull-enable", "gpio";
429724ba675SRob Herring			gpio-controller;
430724ba675SRob Herring			#gpio-cells = <2>;
431724ba675SRob Herring			gpio-ranges = <&pinctrl_cbus 0 0 83>;
432724ba675SRob Herring		};
433724ba675SRob Herring
434724ba675SRob Herring		eth_rgmii_pins: eth-rgmii {
435724ba675SRob Herring			mux {
436724ba675SRob Herring				groups = "eth_tx_clk",
437724ba675SRob Herring					 "eth_tx_en",
438724ba675SRob Herring					 "eth_txd1_0",
439724ba675SRob Herring					 "eth_txd0_0",
440724ba675SRob Herring					 "eth_rx_clk",
441724ba675SRob Herring					 "eth_rx_dv",
442724ba675SRob Herring					 "eth_rxd1",
443724ba675SRob Herring					 "eth_rxd0",
444724ba675SRob Herring					 "eth_mdio_en",
445724ba675SRob Herring					 "eth_mdc",
446724ba675SRob Herring					 "eth_ref_clk",
447724ba675SRob Herring					 "eth_txd2",
448724ba675SRob Herring					 "eth_txd3",
449724ba675SRob Herring					 "eth_rxd3",
450724ba675SRob Herring					 "eth_rxd2";
451724ba675SRob Herring				function = "ethernet";
452724ba675SRob Herring				bias-disable;
453724ba675SRob Herring			};
454724ba675SRob Herring		};
455724ba675SRob Herring
456724ba675SRob Herring		eth_rmii_pins: eth-rmii {
457724ba675SRob Herring			mux {
458724ba675SRob Herring				groups = "eth_tx_en",
459724ba675SRob Herring					 "eth_txd1_0",
460724ba675SRob Herring					 "eth_txd0_0",
461724ba675SRob Herring					 "eth_rx_clk",
462724ba675SRob Herring					 "eth_rx_dv",
463724ba675SRob Herring					 "eth_rxd1",
464724ba675SRob Herring					 "eth_rxd0",
465724ba675SRob Herring					 "eth_mdio_en",
466724ba675SRob Herring					 "eth_mdc";
467724ba675SRob Herring				function = "ethernet";
468724ba675SRob Herring				bias-disable;
469724ba675SRob Herring			};
470724ba675SRob Herring		};
471724ba675SRob Herring
472724ba675SRob Herring		i2c_a_pins: i2c-a {
473724ba675SRob Herring			mux {
474724ba675SRob Herring				groups = "i2c_sda_a", "i2c_sck_a";
475724ba675SRob Herring				function = "i2c_a";
476724ba675SRob Herring				bias-disable;
477724ba675SRob Herring			};
478724ba675SRob Herring		};
479724ba675SRob Herring
480724ba675SRob Herring		sd_b_pins: sd-b {
481724ba675SRob Herring			mux {
482724ba675SRob Herring				groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
483724ba675SRob Herring					"sd_d3_b", "sd_clk_b", "sd_cmd_b";
484724ba675SRob Herring				function = "sd_b";
485724ba675SRob Herring				bias-disable;
486724ba675SRob Herring			};
487724ba675SRob Herring		};
488724ba675SRob Herring
489724ba675SRob Herring		sdxc_c_pins: sdxc-c {
490724ba675SRob Herring			mux {
491724ba675SRob Herring				groups = "sdxc_d0_c", "sdxc_d13_c",
492724ba675SRob Herring					 "sdxc_d47_c", "sdxc_clk_c",
493724ba675SRob Herring					 "sdxc_cmd_c";
494724ba675SRob Herring				function = "sdxc_c";
495724ba675SRob Herring				bias-pull-up;
496724ba675SRob Herring			};
497724ba675SRob Herring		};
498724ba675SRob Herring
499724ba675SRob Herring		pwm_c1_pins: pwm-c1 {
500724ba675SRob Herring			mux {
501724ba675SRob Herring				groups = "pwm_c1";
502724ba675SRob Herring				function = "pwm_c";
503724ba675SRob Herring				bias-disable;
504724ba675SRob Herring			};
505724ba675SRob Herring		};
506724ba675SRob Herring
507724ba675SRob Herring		pwm_d_pins: pwm-d {
508724ba675SRob Herring			mux {
509724ba675SRob Herring				groups = "pwm_d";
510724ba675SRob Herring				function = "pwm_d";
511724ba675SRob Herring				bias-disable;
512724ba675SRob Herring			};
513724ba675SRob Herring		};
514724ba675SRob Herring
515724ba675SRob Herring		uart_b0_pins: uart-b0 {
516724ba675SRob Herring			mux {
517724ba675SRob Herring				groups = "uart_tx_b0",
518724ba675SRob Herring				       "uart_rx_b0";
519724ba675SRob Herring				function = "uart_b";
520724ba675SRob Herring				bias-disable;
521724ba675SRob Herring			};
522724ba675SRob Herring		};
523724ba675SRob Herring
524724ba675SRob Herring		uart_b0_cts_rts_pins: uart-b0-cts-rts {
525724ba675SRob Herring			mux {
526724ba675SRob Herring				groups = "uart_cts_b0",
527724ba675SRob Herring				       "uart_rts_b0";
528724ba675SRob Herring				function = "uart_b";
529724ba675SRob Herring				bias-disable;
530724ba675SRob Herring			};
531724ba675SRob Herring		};
532724ba675SRob Herring	};
533724ba675SRob Herring};
534724ba675SRob Herring
535724ba675SRob Herring&ahb_sram {
536e1d42e11SNeil Armstrong	ao_arc_sram: aoarc-sram@0 {
537724ba675SRob Herring		compatible = "amlogic,meson8b-ao-arc-sram";
538724ba675SRob Herring		reg = <0x0 0x8000>;
539724ba675SRob Herring		pool;
540724ba675SRob Herring	};
541724ba675SRob Herring
542724ba675SRob Herring	smp-sram@1ff80 {
543724ba675SRob Herring		compatible = "amlogic,meson8b-smp-sram";
544724ba675SRob Herring		reg = <0x1ff80 0x8>;
545724ba675SRob Herring	};
546724ba675SRob Herring};
547724ba675SRob Herring
548724ba675SRob Herring
549724ba675SRob Herring&efuse {
550724ba675SRob Herring	compatible = "amlogic,meson8b-efuse";
551724ba675SRob Herring	clocks = <&clkc CLKID_EFUSE>;
552724ba675SRob Herring	clock-names = "core";
553724ba675SRob Herring
554724ba675SRob Herring	temperature_calib: calib@1f4 {
555724ba675SRob Herring		/* only the upper two bytes are relevant */
556724ba675SRob Herring		reg = <0x1f4 0x4>;
557724ba675SRob Herring	};
558724ba675SRob Herring};
559724ba675SRob Herring
560724ba675SRob Herring&ethmac {
561724ba675SRob Herring	compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
562724ba675SRob Herring
563724ba675SRob Herring	reg = <0xc9410000 0x10000
564724ba675SRob Herring	       0xc1108140 0x4>;
565724ba675SRob Herring
566724ba675SRob Herring	clocks = <&clkc CLKID_ETH>,
567724ba675SRob Herring		 <&clkc CLKID_MPLL2>,
568724ba675SRob Herring		 <&clkc CLKID_MPLL2>,
569724ba675SRob Herring		 <&clkc CLKID_FCLK_DIV2>;
570724ba675SRob Herring	clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
571724ba675SRob Herring	rx-fifo-depth = <4096>;
572724ba675SRob Herring	tx-fifo-depth = <2048>;
573724ba675SRob Herring
574724ba675SRob Herring	resets = <&reset RESET_ETHERNET>;
575724ba675SRob Herring	reset-names = "stmmaceth";
576724ba675SRob Herring
577724ba675SRob Herring	power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
578724ba675SRob Herring};
579724ba675SRob Herring
580724ba675SRob Herring&gpio_intc {
581724ba675SRob Herring	compatible = "amlogic,meson8b-gpio-intc",
582724ba675SRob Herring		     "amlogic,meson-gpio-intc";
583724ba675SRob Herring	status = "okay";
584724ba675SRob Herring};
585724ba675SRob Herring
586724ba675SRob Herring&hhi {
587724ba675SRob Herring	clkc: clock-controller {
588724ba675SRob Herring		compatible = "amlogic,meson8b-clkc";
589724ba675SRob Herring		clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
590724ba675SRob Herring		clock-names = "xtal", "ddr_pll";
591724ba675SRob Herring		#clock-cells = <1>;
592724ba675SRob Herring		#reset-cells = <1>;
593724ba675SRob Herring	};
594724ba675SRob Herring
595724ba675SRob Herring	pwrc: power-controller {
596724ba675SRob Herring		compatible = "amlogic,meson8b-pwrc";
597724ba675SRob Herring		#power-domain-cells = <1>;
598724ba675SRob Herring		amlogic,ao-sysctrl = <&pmu>;
599724ba675SRob Herring		resets = <&reset RESET_DBLK>,
600724ba675SRob Herring			 <&reset RESET_PIC_DC>,
601724ba675SRob Herring			 <&reset RESET_HDMI_APB>,
602724ba675SRob Herring			 <&reset RESET_HDMI_SYSTEM_RESET>,
603724ba675SRob Herring			 <&reset RESET_VENCI>,
604724ba675SRob Herring			 <&reset RESET_VENCP>,
605724ba675SRob Herring			 <&reset RESET_VDAC_4>,
606724ba675SRob Herring			 <&reset RESET_VENCL>,
607724ba675SRob Herring			 <&reset RESET_VIU>,
608724ba675SRob Herring			 <&reset RESET_VENC>,
609724ba675SRob Herring			 <&reset RESET_RDMA>;
610724ba675SRob Herring		reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system",
611724ba675SRob Herring			      "venci", "vencp", "vdac", "vencl", "viu",
612724ba675SRob Herring			      "venc", "rdma";
613724ba675SRob Herring		clocks = <&clkc CLKID_VPU>;
614724ba675SRob Herring		clock-names = "vpu";
615724ba675SRob Herring		assigned-clocks = <&clkc CLKID_VPU>;
616724ba675SRob Herring		assigned-clock-rates = <182142857>;
617724ba675SRob Herring	};
618724ba675SRob Herring};
619724ba675SRob Herring
620724ba675SRob Herring&hwrng {
621724ba675SRob Herring	clocks = <&clkc CLKID_RNG0>;
622724ba675SRob Herring	clock-names = "core";
623724ba675SRob Herring};
624724ba675SRob Herring
625724ba675SRob Herring&i2c_AO {
626724ba675SRob Herring	clocks = <&clkc CLKID_CLK81>;
627724ba675SRob Herring};
628724ba675SRob Herring
629724ba675SRob Herring&i2c_A {
630724ba675SRob Herring	clocks = <&clkc CLKID_I2C>;
631724ba675SRob Herring};
632724ba675SRob Herring
633724ba675SRob Herring&i2c_B {
634724ba675SRob Herring	clocks = <&clkc CLKID_I2C>;
635724ba675SRob Herring};
636724ba675SRob Herring
637724ba675SRob Herring&L2 {
638724ba675SRob Herring	arm,data-latency = <3 3 3>;
639724ba675SRob Herring	arm,tag-latency = <2 2 2>;
640724ba675SRob Herring	arm,filter-ranges = <0x100000 0xc0000000>;
641724ba675SRob Herring	prefetch-data = <1>;
642724ba675SRob Herring	prefetch-instr = <1>;
643724ba675SRob Herring	arm,prefetch-offset = <7>;
644724ba675SRob Herring	arm,double-linefill = <1>;
645724ba675SRob Herring	arm,prefetch-drop = <1>;
646724ba675SRob Herring	arm,shared-override;
647724ba675SRob Herring};
648724ba675SRob Herring
649724ba675SRob Herring&periph {
650724ba675SRob Herring	scu@0 {
651724ba675SRob Herring		compatible = "arm,cortex-a5-scu";
652724ba675SRob Herring		reg = <0x0 0x100>;
653724ba675SRob Herring	};
654724ba675SRob Herring
655724ba675SRob Herring	timer@200 {
656724ba675SRob Herring		compatible = "arm,cortex-a5-global-timer";
657724ba675SRob Herring		reg = <0x200 0x20>;
658724ba675SRob Herring		interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
659724ba675SRob Herring		clocks = <&clkc CLKID_PERIPH>;
660724ba675SRob Herring
661724ba675SRob Herring		/*
662724ba675SRob Herring		 * the arm_global_timer driver currently does not handle clock
663724ba675SRob Herring		 * rate changes. Keep it disabled for now.
664724ba675SRob Herring		 */
665724ba675SRob Herring		status = "disabled";
666724ba675SRob Herring	};
667724ba675SRob Herring
668724ba675SRob Herring	timer@600 {
669724ba675SRob Herring		compatible = "arm,cortex-a5-twd-timer";
670724ba675SRob Herring		reg = <0x600 0x20>;
671724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
672724ba675SRob Herring		clocks = <&clkc CLKID_PERIPH>;
673724ba675SRob Herring	};
674724ba675SRob Herring};
675724ba675SRob Herring
676724ba675SRob Herring&pwm_ab {
677724ba675SRob Herring	compatible = "amlogic,meson8b-pwm";
678724ba675SRob Herring};
679724ba675SRob Herring
680724ba675SRob Herring&pwm_cd {
681724ba675SRob Herring	compatible = "amlogic,meson8b-pwm";
682724ba675SRob Herring};
683724ba675SRob Herring
684724ba675SRob Herring&rtc {
685724ba675SRob Herring	compatible = "amlogic,meson8b-rtc";
686724ba675SRob Herring	resets = <&reset RESET_RTC>;
687724ba675SRob Herring};
688724ba675SRob Herring
689724ba675SRob Herring&saradc {
690724ba675SRob Herring	compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
691724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
692724ba675SRob Herring	clock-names = "clkin", "core";
693724ba675SRob Herring	amlogic,hhi-sysctrl = <&hhi>;
694724ba675SRob Herring	nvmem-cells = <&temperature_calib>;
695724ba675SRob Herring	nvmem-cell-names = "temperature_calib";
696724ba675SRob Herring};
697724ba675SRob Herring
698724ba675SRob Herring&sdhc {
699724ba675SRob Herring	compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
700724ba675SRob Herring	clocks = <&xtal>,
701724ba675SRob Herring		 <&clkc CLKID_FCLK_DIV4>,
702724ba675SRob Herring		 <&clkc CLKID_FCLK_DIV3>,
703724ba675SRob Herring		 <&clkc CLKID_FCLK_DIV5>,
704724ba675SRob Herring		 <&clkc CLKID_SDHC>;
705724ba675SRob Herring	clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
706724ba675SRob Herring};
707724ba675SRob Herring
708724ba675SRob Herring&secbus {
709724ba675SRob Herring	secbus2: system-controller@4000 {
710724ba675SRob Herring		compatible = "amlogic,meson8b-secbus2", "syscon";
711724ba675SRob Herring		reg = <0x4000 0x2000>;
712724ba675SRob Herring	};
713724ba675SRob Herring};
714724ba675SRob Herring
715724ba675SRob Herring&sdio {
716724ba675SRob Herring	compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
717724ba675SRob Herring	clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
718724ba675SRob Herring	clock-names = "core", "clkin";
719724ba675SRob Herring};
720724ba675SRob Herring
721724ba675SRob Herring&timer_abcde {
722724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_CLK81>;
723724ba675SRob Herring	clock-names = "xtal", "pclk";
724724ba675SRob Herring};
725724ba675SRob Herring
726724ba675SRob Herring&uart_AO {
727724ba675SRob Herring	compatible = "amlogic,meson8b-uart", "amlogic,meson-ao-uart";
728724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_CLK81>, <&clkc CLKID_CLK81>;
729724ba675SRob Herring	clock-names = "xtal", "pclk", "baud";
730724ba675SRob Herring};
731724ba675SRob Herring
732724ba675SRob Herring&uart_A {
733724ba675SRob Herring	compatible = "amlogic,meson8b-uart";
734724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
735724ba675SRob Herring	clock-names = "xtal", "pclk", "baud";
736724ba675SRob Herring};
737724ba675SRob Herring
738724ba675SRob Herring&uart_B {
739724ba675SRob Herring	compatible = "amlogic,meson8b-uart";
740724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_UART1>, <&clkc CLKID_CLK81>;
741724ba675SRob Herring	clock-names = "xtal", "pclk", "baud";
742724ba675SRob Herring};
743724ba675SRob Herring
744724ba675SRob Herring&uart_C {
745724ba675SRob Herring	compatible = "amlogic,meson8b-uart";
746724ba675SRob Herring	clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>;
747724ba675SRob Herring	clock-names = "xtal", "pclk", "baud";
748724ba675SRob Herring};
749724ba675SRob Herring
750724ba675SRob Herring&usb0 {
751724ba675SRob Herring	compatible = "amlogic,meson8b-usb", "snps,dwc2";
752724ba675SRob Herring	clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
753724ba675SRob Herring	clock-names = "otg";
754724ba675SRob Herring};
755724ba675SRob Herring
756724ba675SRob Herring&usb1 {
757724ba675SRob Herring	compatible = "amlogic,meson8b-usb", "snps,dwc2";
758724ba675SRob Herring	clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
759724ba675SRob Herring	clock-names = "otg";
760724ba675SRob Herring};
761724ba675SRob Herring
762724ba675SRob Herring&usb0_phy {
763724ba675SRob Herring	compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
764724ba675SRob Herring	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
765724ba675SRob Herring	clock-names = "usb_general", "usb";
766724ba675SRob Herring	resets = <&reset RESET_USB_OTG>;
767724ba675SRob Herring};
768724ba675SRob Herring
769724ba675SRob Herring&usb1_phy {
770724ba675SRob Herring	compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
771724ba675SRob Herring	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
772724ba675SRob Herring	clock-names = "usb_general", "usb";
773724ba675SRob Herring	resets = <&reset RESET_USB_OTG>;
774724ba675SRob Herring};
775724ba675SRob Herring
776724ba675SRob Herring&wdt {
777724ba675SRob Herring	compatible = "amlogic,meson8b-wdt";
778724ba675SRob Herring};
779