blob: 94f1c03deccefa2e425110a5b2941db557b4a2d0 [file] [log] [blame]
Neil Armstrong677092c2019-05-27 15:38:55 +02001// SPDX-License-Identifier: GPL-2.0 OR MIT
Carlo Caione4a69fcd2015-10-07 22:31:04 +02002/*
3 * Copyright 2015 Endless Mobile, Inc.
4 * Author: Carlo Caione <carlo@endlessm.com>
Carlo Caione4a69fcd2015-10-07 22:31:04 +02005 */
6
Martin Blumenstingl6d549ff2019-12-08 19:05:25 +01007#include <dt-bindings/clock/meson8-ddr-clkc.h>
Carlo Caione4a69fcd2015-10-07 22:31:04 +02008#include <dt-bindings/clock/meson8b-clkc.h>
9#include <dt-bindings/gpio/meson8b-gpio.h>
Martin Blumenstingl9960cac2020-06-20 18:10:10 +020010#include <dt-bindings/power/meson8-power.h>
Neil Armstrongcad059c2016-05-30 15:27:18 +020011#include <dt-bindings/reset/amlogic,meson8b-reset.h>
Carlo Caione46921422017-09-17 18:45:23 +020012#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
Martin Blumenstingl9073f692020-12-21 19:13:05 +010013#include <dt-bindings/thermal/thermal.h>
Martin Blumenstinglf44135e2017-04-17 23:39:38 +020014#include "meson.dtsi"
Carlo Caione4a69fcd2015-10-07 22:31:04 +020015
16/ {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020017 cpus {
18 #address-cells = <1>;
19 #size-cells = <0>;
20
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020021 cpu0: cpu@200 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020022 device_type = "cpu";
23 compatible = "arm,cortex-a5";
24 next-level-cache = <&L2>;
25 reg = <0x200>;
Carlo Caione46921422017-09-17 18:45:23 +020026 enable-method = "amlogic,meson8b-smp";
27 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010028 operating-points-v2 = <&cpu_opp_table>;
29 clocks = <&clkc CLKID_CPUCLK>;
Martin Blumenstingl9073f692020-12-21 19:13:05 +010030 #cooling-cells = <2>; /* min followed by max */
Carlo Caione4a69fcd2015-10-07 22:31:04 +020031 };
32
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020033 cpu1: cpu@201 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020034 device_type = "cpu";
35 compatible = "arm,cortex-a5";
36 next-level-cache = <&L2>;
37 reg = <0x201>;
Carlo Caione46921422017-09-17 18:45:23 +020038 enable-method = "amlogic,meson8b-smp";
39 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010040 operating-points-v2 = <&cpu_opp_table>;
41 clocks = <&clkc CLKID_CPUCLK>;
Martin Blumenstingl9073f692020-12-21 19:13:05 +010042 #cooling-cells = <2>; /* min followed by max */
Carlo Caione4a69fcd2015-10-07 22:31:04 +020043 };
44
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020045 cpu2: cpu@202 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020046 device_type = "cpu";
47 compatible = "arm,cortex-a5";
48 next-level-cache = <&L2>;
49 reg = <0x202>;
Carlo Caione46921422017-09-17 18:45:23 +020050 enable-method = "amlogic,meson8b-smp";
51 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010052 operating-points-v2 = <&cpu_opp_table>;
53 clocks = <&clkc CLKID_CPUCLK>;
Martin Blumenstingl9073f692020-12-21 19:13:05 +010054 #cooling-cells = <2>; /* min followed by max */
Carlo Caione4a69fcd2015-10-07 22:31:04 +020055 };
56
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020057 cpu3: cpu@203 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020058 device_type = "cpu";
59 compatible = "arm,cortex-a5";
60 next-level-cache = <&L2>;
61 reg = <0x203>;
Carlo Caione46921422017-09-17 18:45:23 +020062 enable-method = "amlogic,meson8b-smp";
63 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010064 operating-points-v2 = <&cpu_opp_table>;
65 clocks = <&clkc CLKID_CPUCLK>;
Martin Blumenstingl9073f692020-12-21 19:13:05 +010066 #cooling-cells = <2>; /* min followed by max */
Martin Blumenstinglc3115522018-11-30 00:00:44 +010067 };
68 };
69
70 cpu_opp_table: opp-table {
71 compatible = "operating-points-v2";
72 opp-shared;
73
74 opp-96000000 {
75 opp-hz = /bits/ 64 <96000000>;
76 opp-microvolt = <860000>;
77 };
78 opp-192000000 {
79 opp-hz = /bits/ 64 <192000000>;
80 opp-microvolt = <860000>;
81 };
82 opp-312000000 {
83 opp-hz = /bits/ 64 <312000000>;
84 opp-microvolt = <860000>;
85 };
86 opp-408000000 {
87 opp-hz = /bits/ 64 <408000000>;
88 opp-microvolt = <860000>;
89 };
90 opp-504000000 {
91 opp-hz = /bits/ 64 <504000000>;
92 opp-microvolt = <860000>;
93 };
94 opp-600000000 {
95 opp-hz = /bits/ 64 <600000000>;
96 opp-microvolt = <860000>;
97 };
98 opp-720000000 {
99 opp-hz = /bits/ 64 <720000000>;
100 opp-microvolt = <860000>;
101 };
102 opp-816000000 {
103 opp-hz = /bits/ 64 <816000000>;
104 opp-microvolt = <900000>;
105 };
106 opp-1008000000 {
107 opp-hz = /bits/ 64 <1008000000>;
108 opp-microvolt = <1140000>;
109 };
110 opp-1200000000 {
111 opp-hz = /bits/ 64 <1200000000>;
112 opp-microvolt = <1140000>;
113 };
114 opp-1320000000 {
115 opp-hz = /bits/ 64 <1320000000>;
116 opp-microvolt = <1140000>;
117 };
118 opp-1488000000 {
119 opp-hz = /bits/ 64 <1488000000>;
120 opp-microvolt = <1140000>;
121 };
122 opp-1536000000 {
123 opp-hz = /bits/ 64 <1536000000>;
124 opp-microvolt = <1140000>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200125 };
126 };
Martin Blumenstingld8dd3d22017-06-15 23:33:51 +0200127
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100128 gpu_opp_table: gpu-opp-table {
129 compatible = "operating-points-v2";
130
131 opp-255000000 {
132 opp-hz = /bits/ 64 <255000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200133 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100134 };
Martin Blumenstinglc3dd3312019-12-25 02:06:07 +0100135 opp-364285714 {
136 opp-hz = /bits/ 64 <364285714>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200137 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100138 };
139 opp-425000000 {
140 opp-hz = /bits/ 64 <425000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200141 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100142 };
143 opp-510000000 {
144 opp-hz = /bits/ 64 <510000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200145 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100146 };
147 opp-637500000 {
148 opp-hz = /bits/ 64 <637500000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200149 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100150 turbo-mode;
151 };
152 };
153
Martin Blumenstingle8d85d72018-04-22 12:45:02 +0200154 pmu {
155 compatible = "arm,cortex-a5-pmu";
156 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
157 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
158 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
159 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
160 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
161 };
162
Linus Lüssingb9b4bf52017-10-02 17:59:03 +0200163 reserved-memory {
164 #address-cells = <1>;
165 #size-cells = <1>;
166 ranges;
167
168 /* 2 MiB reserved for Hardware ROM Firmware? */
169 hwrom@0 {
170 reg = <0x0 0x200000>;
171 no-map;
172 };
173 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100174
Martin Blumenstingl9073f692020-12-21 19:13:05 +0100175 thermal-zones {
176 soc {
177 polling-delay-passive = <250>; /* milliseconds */
178 polling-delay = <1000>; /* milliseconds */
179 thermal-sensors = <&thermal_sensor>;
180
181 cooling-maps {
182 map0 {
183 trip = <&soc_passive>;
184 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
185 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
186 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
187 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
188 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
189 };
190
191 map1 {
192 trip = <&soc_hot>;
193 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
194 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
195 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
196 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
197 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
198 };
199 };
200
201 trips {
202 soc_passive: soc-passive {
203 temperature = <80000>; /* millicelsius */
204 hysteresis = <2000>; /* millicelsius */
205 type = "passive";
206 };
207
208 soc_hot: soc-hot {
209 temperature = <90000>; /* millicelsius */
210 hysteresis = <2000>; /* millicelsius */
211 type = "hot";
212 };
213
214 soc_critical: soc-critical {
215 temperature = <110000>; /* millicelsius */
216 hysteresis = <2000>; /* millicelsius */
217 type = "critical";
218 };
219 };
220 };
221 };
222
Martin Blumenstingl872f8812019-05-20 21:43:53 +0200223 mmcbus: bus@c8000000 {
224 compatible = "simple-bus";
225 reg = <0xc8000000 0x8000>;
226 #address-cells = <1>;
227 #size-cells = <1>;
228 ranges = <0x0 0xc8000000 0x8000>;
229
Martin Blumenstingl6d549ff2019-12-08 19:05:25 +0100230 ddr_clkc: clock-controller@400 {
231 compatible = "amlogic,meson8b-ddr-clkc";
232 reg = <0x400 0x20>;
233 clocks = <&xtal>;
234 clock-names = "xtal";
235 #clock-cells = <1>;
236 };
237
Martin Blumenstingl872f8812019-05-20 21:43:53 +0200238 dmcbus: bus@6000 {
239 compatible = "simple-bus";
240 reg = <0x6000 0x400>;
241 #address-cells = <1>;
242 #size-cells = <1>;
243 ranges = <0x0 0x6000 0x400>;
244
245 canvas: video-lut@48 {
246 compatible = "amlogic,meson8b-canvas",
247 "amlogic,canvas";
248 reg = <0x48 0x14>;
249 };
250 };
251 };
252
Martin Blumenstingle402d242018-12-08 17:50:25 +0100253 apb: bus@d0000000 {
254 compatible = "simple-bus";
255 reg = <0xd0000000 0x200000>;
256 #address-cells = <1>;
257 #size-cells = <1>;
258 ranges = <0x0 0xd0000000 0x200000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100259
260 mali: gpu@c0000 {
261 compatible = "amlogic,meson8b-mali", "arm,mali-450";
262 reg = <0xc0000 0x40000>;
263 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
264 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
265 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
266 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
267 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
268 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
269 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
270 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
271 interrupt-names = "gp", "gpmmu", "pp", "pmu",
272 "pp0", "ppmmu0", "pp1", "ppmmu1";
273 resets = <&reset RESET_MALI>;
274 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
275 clock-names = "bus", "core";
276 operating-points-v2 = <&gpu_opp_table>;
Martin Blumenstingl9073f692020-12-21 19:13:05 +0100277 #cooling-cells = <2>; /* min followed by max */
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100278 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100279 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200280}; /* end of / */
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200281
Martin Blumenstingl4f8ca132021-07-18 01:30:29 +0200282&aiu {
283 compatible = "amlogic,aiu-meson8b", "amlogic,aiu";
284 clocks = <&clkc CLKID_AIU_GLUE>,
285 <&clkc CLKID_I2S_OUT>,
286 <&clkc CLKID_AOCLK_GATE>,
287 <&clkc CLKID_CTS_AMCLK>,
288 <&clkc CLKID_MIXER_IFACE>,
289 <&clkc CLKID_IEC958>,
290 <&clkc CLKID_IEC958_GATE>,
291 <&clkc CLKID_CTS_MCLK_I958>,
292 <&clkc CLKID_CTS_I958>;
293 clock-names = "pclk",
294 "i2s_pclk",
295 "i2s_aoclk",
296 "i2s_mclk",
297 "i2s_mixer",
298 "spdif_pclk",
299 "spdif_aoclk",
300 "spdif_mclk",
301 "spdif_mclk_sel";
302 resets = <&reset RESET_AIU>;
303};
304
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200305&aobus {
Carlo Caione46921422017-09-17 18:45:23 +0200306 pmu: pmu@e0 {
307 compatible = "amlogic,meson8b-pmu", "syscon";
308 reg = <0xe0 0x18>;
309 };
310
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200311 pinctrl_aobus: pinctrl@84 {
312 compatible = "amlogic,meson8b-aobus-pinctrl";
313 reg = <0x84 0xc>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200314 #address-cells = <1>;
315 #size-cells = <1>;
316 ranges;
317
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200318 gpio_ao: ao-bank@14 {
319 reg = <0x14 0x4>,
320 <0x2c 0x4>,
321 <0x24 0x8>;
322 reg-names = "mux", "pull", "gpio";
323 gpio-controller;
324 #gpio-cells = <2>;
Jerome Brunet677c4322017-09-21 19:14:44 +0200325 gpio-ranges = <&pinctrl_aobus 0 0 16>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200326 };
327
Martin Blumenstingl4f8ca132021-07-18 01:30:29 +0200328 i2s_am_clk_pins: i2s-am-clk-out {
329 mux {
330 groups = "i2s_am_clk_out";
331 function = "i2s";
332 bias-disable;
333 };
334 };
335
336 i2s_out_ao_clk_pins: i2s-ao-clk-out {
337 mux {
338 groups = "i2s_ao_clk_out";
339 function = "i2s";
340 bias-disable;
341 };
342 };
343
344 i2s_out_lr_clk_pins: i2s-lr-clk-out {
345 mux {
346 groups = "i2s_lr_clk_out";
347 function = "i2s";
348 bias-disable;
349 };
350 };
351
352 i2s_out_ch01_ao_pins: i2s-out-ch01 {
353 mux {
354 groups = "i2s_out_01";
355 function = "i2s";
356 bias-disable;
357 };
358 };
359
360 spdif_out_1_pins: spdif-out-1 {
361 mux {
362 groups = "spdif_out_1";
363 function = "spdif_1";
364 bias-disable;
365 };
366 };
367
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200368 uart_ao_a_pins: uart_ao_a {
369 mux {
370 groups = "uart_tx_ao_a", "uart_rx_ao_a";
371 function = "uart_ao";
Jerome Brunet7e263352018-11-09 15:04:45 +0100372 bias-disable;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200373 };
374 };
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200375
376 ir_recv_pins: remote {
377 mux {
378 groups = "remote_input";
379 function = "remote";
Jerome Brunet7e263352018-11-09 15:04:45 +0100380 bias-disable;
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200381 };
382 };
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200383 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200384};
385
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100386&ao_arc_rproc {
387 compatible= "amlogic,meson8b-ao-arc", "amlogic,meson-mx-ao-arc";
388 amlogic,secbus2 = <&secbus2>;
389 sram = <&ao_arc_sram>;
390 resets = <&reset RESET_MEDIA_CPU>;
391 clocks = <&clkc CLKID_AO_MEDIA_CPU>;
392};
393
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200394&cbus {
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200395 reset: reset-controller@4404 {
396 compatible = "amlogic,meson8b-reset";
Martin Blumenstingla2730ed2018-01-21 23:14:12 +0100397 reg = <0x4404 0x9c>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200398 #reset-cells = <1>;
399 };
400
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200401 analog_top: analog-top@81a8 {
402 compatible = "amlogic,meson8b-analog-top", "syscon";
403 reg = <0x81a8 0x14>;
404 };
405
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200406 pwm_ef: pwm@86c0 {
407 compatible = "amlogic,meson8b-pwm";
408 reg = <0x86c0 0x10>;
409 #pwm-cells = <3>;
410 status = "disabled";
411 };
412
Martin Blumenstinglf1975b982019-02-09 01:26:41 +0100413 clock-measure@8758 {
414 compatible = "amlogic,meson8b-clk-measure";
415 reg = <0x8758 0x1c>;
416 };
417
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200418 pinctrl_cbus: pinctrl@9880 {
419 compatible = "amlogic,meson8b-cbus-pinctrl";
420 reg = <0x9880 0x10>;
421 #address-cells = <1>;
422 #size-cells = <1>;
423 ranges;
424
425 gpio: banks@80b0 {
426 reg = <0x80b0 0x28>,
427 <0x80e8 0x18>,
428 <0x8120 0x18>,
429 <0x8030 0x38>;
430 reg-names = "mux", "pull", "pull-enable", "gpio";
431 gpio-controller;
432 #gpio-cells = <2>;
Martin Blumenstingl4e461e62018-03-12 21:57:09 +0100433 gpio-ranges = <&pinctrl_cbus 0 0 83>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200434 };
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100435
436 eth_rgmii_pins: eth-rgmii {
437 mux {
438 groups = "eth_tx_clk",
439 "eth_tx_en",
440 "eth_txd1_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100441 "eth_txd0_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100442 "eth_rx_clk",
443 "eth_rx_dv",
444 "eth_rxd1",
445 "eth_rxd0",
446 "eth_mdio_en",
447 "eth_mdc",
448 "eth_ref_clk",
449 "eth_txd2",
Martin Blumenstingl29f00232018-12-29 15:35:56 +0100450 "eth_txd3",
451 "eth_rxd3",
452 "eth_rxd2";
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100453 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100454 bias-disable;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100455 };
456 };
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100457
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200458 eth_rmii_pins: eth-rmii {
459 mux {
460 groups = "eth_tx_en",
461 "eth_txd1_0",
462 "eth_txd0_0",
463 "eth_rx_clk",
464 "eth_rx_dv",
465 "eth_rxd1",
466 "eth_rxd0",
467 "eth_mdio_en",
468 "eth_mdc";
469 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100470 bias-disable;
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200471 };
472 };
473
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200474 i2c_a_pins: i2c-a {
475 mux {
476 groups = "i2c_sda_a", "i2c_sck_a";
477 function = "i2c_a";
Jerome Brunet7e263352018-11-09 15:04:45 +0100478 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200479 };
480 };
481
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100482 sd_b_pins: sd-b {
483 mux {
484 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
485 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
486 function = "sd_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100487 bias-disable;
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100488 };
489 };
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200490
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200491 sdxc_c_pins: sdxc-c {
492 mux {
493 groups = "sdxc_d0_c", "sdxc_d13_c",
494 "sdxc_d47_c", "sdxc_clk_c",
495 "sdxc_cmd_c";
496 function = "sdxc_c";
497 bias-pull-up;
498 };
499 };
500
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200501 pwm_c1_pins: pwm-c1 {
502 mux {
503 groups = "pwm_c1";
504 function = "pwm_c";
Jerome Brunet7e263352018-11-09 15:04:45 +0100505 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200506 };
507 };
508
Martin Blumenstinglea241bd2019-07-27 14:12:54 +0200509 pwm_d_pins: pwm-d {
510 mux {
511 groups = "pwm_d";
512 function = "pwm_d";
513 bias-disable;
514 };
515 };
516
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200517 uart_b0_pins: uart-b0 {
518 mux {
519 groups = "uart_tx_b0",
520 "uart_rx_b0";
521 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100522 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200523 };
524 };
525
526 uart_b0_cts_rts_pins: uart-b0-cts-rts {
527 mux {
528 groups = "uart_cts_b0",
529 "uart_rts_b0";
530 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100531 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200532 };
533 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200534 };
535};
536
Carlo Caione46921422017-09-17 18:45:23 +0200537&ahb_sram {
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100538 ao_arc_sram: ao-arc-sram@0 {
539 compatible = "amlogic,meson8b-ao-arc-sram";
540 reg = <0x0 0x8000>;
541 pool;
542 };
543
Carlo Caione46921422017-09-17 18:45:23 +0200544 smp-sram@1ff80 {
545 compatible = "amlogic,meson8b-smp-sram";
546 reg = <0x1ff80 0x8>;
547 };
548};
549
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200550
551&efuse {
552 compatible = "amlogic,meson8b-efuse";
553 clocks = <&clkc CLKID_EFUSE>;
554 clock-names = "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100555
556 temperature_calib: calib@1f4 {
557 /* only the upper two bytes are relevant */
558 reg = <0x1f4 0x4>;
559 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200560};
561
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200562&ethmac {
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100563 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
564
565 reg = <0xc9410000 0x10000
566 0xc1108140 0x4>;
567
568 clocks = <&clkc CLKID_ETH>,
569 <&clkc CLKID_MPLL2>,
Martin Blumenstinglb632506c2020-05-12 23:51:47 +0200570 <&clkc CLKID_MPLL2>,
571 <&clkc CLKID_FCLK_DIV2>;
572 clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
Jerome Brunet4f0303d2019-07-18 11:36:23 +0200573 rx-fifo-depth = <4096>;
574 tx-fifo-depth = <2048>;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100575
576 resets = <&reset RESET_ETHERNET>;
577 reset-names = "stmmaceth";
Martin Blumenstingl9960cac2020-06-20 18:10:10 +0200578
579 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200580};
581
Jerome Brunet7d32bc02017-10-19 14:01:41 +0200582&gpio_intc {
583 compatible = "amlogic,meson-gpio-intc",
584 "amlogic,meson8b-gpio-intc";
585 status = "okay";
586};
587
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100588&hhi {
589 clkc: clock-controller {
Martin Blumenstinglda256552019-12-25 02:06:05 +0100590 compatible = "amlogic,meson8b-clkc";
Martin Blumenstingl6d549ff2019-12-08 19:05:25 +0100591 clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
592 clock-names = "xtal", "ddr_pll";
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100593 #clock-cells = <1>;
594 #reset-cells = <1>;
595 };
Martin Blumenstingl9960cac2020-06-20 18:10:10 +0200596
597 pwrc: power-controller {
598 compatible = "amlogic,meson8b-pwrc";
599 #power-domain-cells = <1>;
600 amlogic,ao-sysctrl = <&pmu>;
601 resets = <&reset RESET_DBLK>,
602 <&reset RESET_PIC_DC>,
603 <&reset RESET_HDMI_APB>,
604 <&reset RESET_HDMI_SYSTEM_RESET>,
605 <&reset RESET_VENCI>,
606 <&reset RESET_VENCP>,
607 <&reset RESET_VDAC_4>,
608 <&reset RESET_VENCL>,
609 <&reset RESET_VIU>,
610 <&reset RESET_VENC>,
611 <&reset RESET_RDMA>;
612 reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system",
613 "venci", "vencp", "vdac", "vencl", "viu",
614 "venc", "rdma";
615 clocks = <&clkc CLKID_VPU>;
616 clock-names = "vpu";
617 assigned-clocks = <&clkc CLKID_VPU>;
618 assigned-clock-rates = <182142857>;
619 };
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100620};
621
Martin Blumenstingla35910d2017-06-15 23:33:49 +0200622&hwrng {
623 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
624 clocks = <&clkc CLKID_RNG0>;
625 clock-names = "core";
626};
627
Martin Blumenstingl7a6cc8b2018-02-17 17:06:50 +0100628&i2c_AO {
629 clocks = <&clkc CLKID_CLK81>;
630};
631
632&i2c_A {
633 clocks = <&clkc CLKID_I2C>;
634};
635
636&i2c_B {
637 clocks = <&clkc CLKID_I2C>;
638};
639
Carlo Caionebbe5b232017-04-17 23:42:44 +0200640&L2 {
641 arm,data-latency = <3 3 3>;
642 arm,tag-latency = <2 2 2>;
643 arm,filter-ranges = <0x100000 0xc0000000>;
Martin Blumenstingl9bef3062017-10-31 23:23:15 +0100644 prefetch-data = <1>;
645 prefetch-instr = <1>;
646 arm,shared-override;
Carlo Caionebbe5b232017-04-17 23:42:44 +0200647};
648
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100649&periph {
650 scu@0 {
651 compatible = "arm,cortex-a5-scu";
652 reg = <0x0 0x100>;
653 };
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100654
Martin Blumenstinglda386362018-11-23 20:53:11 +0100655 timer@200 {
656 compatible = "arm,cortex-a5-global-timer";
657 reg = <0x200 0x20>;
658 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
659 clocks = <&clkc CLKID_PERIPH>;
660
661 /*
662 * the arm_global_timer driver currently does not handle clock
663 * rate changes. Keep it disabled for now.
664 */
665 status = "disabled";
666 };
667
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100668 timer@600 {
669 compatible = "arm,cortex-a5-twd-timer";
670 reg = <0x600 0x20>;
671 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
672 clocks = <&clkc CLKID_PERIPH>;
673 };
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100674};
675
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200676&pwm_ab {
677 compatible = "amlogic,meson8b-pwm";
678};
679
680&pwm_cd {
681 compatible = "amlogic,meson8b-pwm";
682};
683
Martin Blumenstinglf6eb9732019-04-13 18:34:21 +0200684&rtc {
685 compatible = "amlogic,meson8b-rtc";
686 resets = <&reset RESET_RTC>;
687};
688
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200689&saradc {
690 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100691 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
Xingyu Chenb9b9db02017-11-16 17:01:15 +0800692 clock-names = "clkin", "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100693 amlogic,hhi-sysctrl = <&hhi>;
694 nvmem-cells = <&temperature_calib>;
695 nvmem-cell-names = "temperature_calib";
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200696};
697
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200698&sdhc {
699 compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
700 clocks = <&xtal>,
701 <&clkc CLKID_FCLK_DIV4>,
702 <&clkc CLKID_FCLK_DIV3>,
703 <&clkc CLKID_FCLK_DIV5>,
704 <&clkc CLKID_SDHC>;
705 clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
706};
707
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100708&secbus {
709 secbus2: system-controller@4000 {
710 compatible = "amlogic,meson8b-secbus2", "syscon";
711 reg = <0x4000 0x2000>;
712 };
713};
714
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200715&sdio {
716 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
717 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
718 clock-names = "core", "clkin";
719};
720
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100721&timer_abcde {
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100722 clocks = <&xtal>, <&clkc CLKID_CLK81>;
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100723 clock-names = "xtal", "pclk";
724};
725
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200726&uart_AO {
Martin Blumenstingl3375aa72021-12-27 19:00:26 +0100727 compatible = "amlogic,meson8b-uart", "amlogic,meson-ao-uart";
728 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&clkc CLKID_CLK81>;
729 clock-names = "xtal", "pclk", "baud";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200730};
731
732&uart_A {
Martin Blumenstingl3375aa72021-12-27 19:00:26 +0100733 compatible = "amlogic,meson8b-uart";
734 clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
735 clock-names = "xtal", "pclk", "baud";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200736};
737
738&uart_B {
Martin Blumenstingl3375aa72021-12-27 19:00:26 +0100739 compatible = "amlogic,meson8b-uart";
740 clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
741 clock-names = "xtal", "pclk", "baud";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200742};
743
744&uart_C {
Martin Blumenstingl3375aa72021-12-27 19:00:26 +0100745 compatible = "amlogic,meson8b-uart";
746 clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
747 clock-names = "xtal", "pclk", "baud";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200748};
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200749
750&usb0 {
751 compatible = "amlogic,meson8b-usb", "snps,dwc2";
752 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
753 clock-names = "otg";
754};
755
756&usb1 {
757 compatible = "amlogic,meson8b-usb", "snps,dwc2";
758 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
759 clock-names = "otg";
760};
761
762&usb0_phy {
763 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
764 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
765 clock-names = "usb_general", "usb";
766 resets = <&reset RESET_USB_OTG>;
767};
768
769&usb1_phy {
770 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
771 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
772 clock-names = "usb_general", "usb";
773 resets = <&reset RESET_USB_OTG>;
774};
Martin Blumenstingl2eca2a12017-07-12 00:22:22 +0200775
776&wdt {
777 compatible = "amlogic,meson8b-wdt";
778};