blob: a285c34aef94ba3c5e47c20006848faccdfa68af [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 Blumenstinglf44135e2017-04-17 23:39:38 +020013#include "meson.dtsi"
Carlo Caione4a69fcd2015-10-07 22:31:04 +020014
15/ {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020016 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020020 cpu0: cpu@200 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020021 device_type = "cpu";
22 compatible = "arm,cortex-a5";
23 next-level-cache = <&L2>;
24 reg = <0x200>;
Carlo Caione46921422017-09-17 18:45:23 +020025 enable-method = "amlogic,meson8b-smp";
26 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010027 operating-points-v2 = <&cpu_opp_table>;
28 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020029 };
30
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020031 cpu1: cpu@201 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020032 device_type = "cpu";
33 compatible = "arm,cortex-a5";
34 next-level-cache = <&L2>;
35 reg = <0x201>;
Carlo Caione46921422017-09-17 18:45:23 +020036 enable-method = "amlogic,meson8b-smp";
37 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010038 operating-points-v2 = <&cpu_opp_table>;
39 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020040 };
41
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020042 cpu2: cpu@202 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020043 device_type = "cpu";
44 compatible = "arm,cortex-a5";
45 next-level-cache = <&L2>;
46 reg = <0x202>;
Carlo Caione46921422017-09-17 18:45:23 +020047 enable-method = "amlogic,meson8b-smp";
48 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010049 operating-points-v2 = <&cpu_opp_table>;
50 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020051 };
52
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020053 cpu3: cpu@203 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020054 device_type = "cpu";
55 compatible = "arm,cortex-a5";
56 next-level-cache = <&L2>;
57 reg = <0x203>;
Carlo Caione46921422017-09-17 18:45:23 +020058 enable-method = "amlogic,meson8b-smp";
59 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010060 operating-points-v2 = <&cpu_opp_table>;
61 clocks = <&clkc CLKID_CPUCLK>;
62 };
63 };
64
65 cpu_opp_table: opp-table {
66 compatible = "operating-points-v2";
67 opp-shared;
68
69 opp-96000000 {
70 opp-hz = /bits/ 64 <96000000>;
71 opp-microvolt = <860000>;
72 };
73 opp-192000000 {
74 opp-hz = /bits/ 64 <192000000>;
75 opp-microvolt = <860000>;
76 };
77 opp-312000000 {
78 opp-hz = /bits/ 64 <312000000>;
79 opp-microvolt = <860000>;
80 };
81 opp-408000000 {
82 opp-hz = /bits/ 64 <408000000>;
83 opp-microvolt = <860000>;
84 };
85 opp-504000000 {
86 opp-hz = /bits/ 64 <504000000>;
87 opp-microvolt = <860000>;
88 };
89 opp-600000000 {
90 opp-hz = /bits/ 64 <600000000>;
91 opp-microvolt = <860000>;
92 };
93 opp-720000000 {
94 opp-hz = /bits/ 64 <720000000>;
95 opp-microvolt = <860000>;
96 };
97 opp-816000000 {
98 opp-hz = /bits/ 64 <816000000>;
99 opp-microvolt = <900000>;
100 };
101 opp-1008000000 {
102 opp-hz = /bits/ 64 <1008000000>;
103 opp-microvolt = <1140000>;
104 };
105 opp-1200000000 {
106 opp-hz = /bits/ 64 <1200000000>;
107 opp-microvolt = <1140000>;
108 };
109 opp-1320000000 {
110 opp-hz = /bits/ 64 <1320000000>;
111 opp-microvolt = <1140000>;
112 };
113 opp-1488000000 {
114 opp-hz = /bits/ 64 <1488000000>;
115 opp-microvolt = <1140000>;
116 };
117 opp-1536000000 {
118 opp-hz = /bits/ 64 <1536000000>;
119 opp-microvolt = <1140000>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200120 };
121 };
Martin Blumenstingld8dd3d22017-06-15 23:33:51 +0200122
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100123 gpu_opp_table: gpu-opp-table {
124 compatible = "operating-points-v2";
125
126 opp-255000000 {
127 opp-hz = /bits/ 64 <255000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200128 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100129 };
Martin Blumenstinglc3dd3312019-12-25 02:06:07 +0100130 opp-364285714 {
131 opp-hz = /bits/ 64 <364285714>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200132 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100133 };
134 opp-425000000 {
135 opp-hz = /bits/ 64 <425000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200136 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100137 };
138 opp-510000000 {
139 opp-hz = /bits/ 64 <510000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200140 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100141 };
142 opp-637500000 {
143 opp-hz = /bits/ 64 <637500000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200144 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100145 turbo-mode;
146 };
147 };
148
Martin Blumenstingle8d85d72018-04-22 12:45:02 +0200149 pmu {
150 compatible = "arm,cortex-a5-pmu";
151 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
153 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
154 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
155 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
156 };
157
Linus Lüssingb9b4bf52017-10-02 17:59:03 +0200158 reserved-memory {
159 #address-cells = <1>;
160 #size-cells = <1>;
161 ranges;
162
163 /* 2 MiB reserved for Hardware ROM Firmware? */
164 hwrom@0 {
165 reg = <0x0 0x200000>;
166 no-map;
167 };
168 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100169
Martin Blumenstingl872f8812019-05-20 21:43:53 +0200170 mmcbus: bus@c8000000 {
171 compatible = "simple-bus";
172 reg = <0xc8000000 0x8000>;
173 #address-cells = <1>;
174 #size-cells = <1>;
175 ranges = <0x0 0xc8000000 0x8000>;
176
Martin Blumenstingl6d549ff2019-12-08 19:05:25 +0100177 ddr_clkc: clock-controller@400 {
178 compatible = "amlogic,meson8b-ddr-clkc";
179 reg = <0x400 0x20>;
180 clocks = <&xtal>;
181 clock-names = "xtal";
182 #clock-cells = <1>;
183 };
184
Martin Blumenstingl872f8812019-05-20 21:43:53 +0200185 dmcbus: bus@6000 {
186 compatible = "simple-bus";
187 reg = <0x6000 0x400>;
188 #address-cells = <1>;
189 #size-cells = <1>;
190 ranges = <0x0 0x6000 0x400>;
191
192 canvas: video-lut@48 {
193 compatible = "amlogic,meson8b-canvas",
194 "amlogic,canvas";
195 reg = <0x48 0x14>;
196 };
197 };
198 };
199
Martin Blumenstingle402d242018-12-08 17:50:25 +0100200 apb: bus@d0000000 {
201 compatible = "simple-bus";
202 reg = <0xd0000000 0x200000>;
203 #address-cells = <1>;
204 #size-cells = <1>;
205 ranges = <0x0 0xd0000000 0x200000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100206
207 mali: gpu@c0000 {
208 compatible = "amlogic,meson8b-mali", "arm,mali-450";
209 reg = <0xc0000 0x40000>;
210 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
211 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
212 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
213 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
214 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
215 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
216 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
217 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
218 interrupt-names = "gp", "gpmmu", "pp", "pmu",
219 "pp0", "ppmmu0", "pp1", "ppmmu1";
220 resets = <&reset RESET_MALI>;
221 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
222 clock-names = "bus", "core";
223 operating-points-v2 = <&gpu_opp_table>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100224 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100225 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200226}; /* end of / */
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200227
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200228&aobus {
Carlo Caione46921422017-09-17 18:45:23 +0200229 pmu: pmu@e0 {
230 compatible = "amlogic,meson8b-pmu", "syscon";
231 reg = <0xe0 0x18>;
232 };
233
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200234 pinctrl_aobus: pinctrl@84 {
235 compatible = "amlogic,meson8b-aobus-pinctrl";
236 reg = <0x84 0xc>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200237 #address-cells = <1>;
238 #size-cells = <1>;
239 ranges;
240
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200241 gpio_ao: ao-bank@14 {
242 reg = <0x14 0x4>,
243 <0x2c 0x4>,
244 <0x24 0x8>;
245 reg-names = "mux", "pull", "gpio";
246 gpio-controller;
247 #gpio-cells = <2>;
Jerome Brunet677c4322017-09-21 19:14:44 +0200248 gpio-ranges = <&pinctrl_aobus 0 0 16>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200249 };
250
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200251 uart_ao_a_pins: uart_ao_a {
252 mux {
253 groups = "uart_tx_ao_a", "uart_rx_ao_a";
254 function = "uart_ao";
Jerome Brunet7e263352018-11-09 15:04:45 +0100255 bias-disable;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200256 };
257 };
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200258
259 ir_recv_pins: remote {
260 mux {
261 groups = "remote_input";
262 function = "remote";
Jerome Brunet7e263352018-11-09 15:04:45 +0100263 bias-disable;
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200264 };
265 };
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200266 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200267};
268
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100269&ao_arc_rproc {
270 compatible= "amlogic,meson8b-ao-arc", "amlogic,meson-mx-ao-arc";
271 amlogic,secbus2 = <&secbus2>;
272 sram = <&ao_arc_sram>;
273 resets = <&reset RESET_MEDIA_CPU>;
274 clocks = <&clkc CLKID_AO_MEDIA_CPU>;
275};
276
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200277&cbus {
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200278 reset: reset-controller@4404 {
279 compatible = "amlogic,meson8b-reset";
Martin Blumenstingla2730ed2018-01-21 23:14:12 +0100280 reg = <0x4404 0x9c>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200281 #reset-cells = <1>;
282 };
283
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200284 analog_top: analog-top@81a8 {
285 compatible = "amlogic,meson8b-analog-top", "syscon";
286 reg = <0x81a8 0x14>;
287 };
288
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200289 pwm_ef: pwm@86c0 {
290 compatible = "amlogic,meson8b-pwm";
291 reg = <0x86c0 0x10>;
292 #pwm-cells = <3>;
293 status = "disabled";
294 };
295
Martin Blumenstinglf1975b982019-02-09 01:26:41 +0100296 clock-measure@8758 {
297 compatible = "amlogic,meson8b-clk-measure";
298 reg = <0x8758 0x1c>;
299 };
300
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200301 pinctrl_cbus: pinctrl@9880 {
302 compatible = "amlogic,meson8b-cbus-pinctrl";
303 reg = <0x9880 0x10>;
304 #address-cells = <1>;
305 #size-cells = <1>;
306 ranges;
307
308 gpio: banks@80b0 {
309 reg = <0x80b0 0x28>,
310 <0x80e8 0x18>,
311 <0x8120 0x18>,
312 <0x8030 0x38>;
313 reg-names = "mux", "pull", "pull-enable", "gpio";
314 gpio-controller;
315 #gpio-cells = <2>;
Martin Blumenstingl4e461e62018-03-12 21:57:09 +0100316 gpio-ranges = <&pinctrl_cbus 0 0 83>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200317 };
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100318
319 eth_rgmii_pins: eth-rgmii {
320 mux {
321 groups = "eth_tx_clk",
322 "eth_tx_en",
323 "eth_txd1_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100324 "eth_txd0_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100325 "eth_rx_clk",
326 "eth_rx_dv",
327 "eth_rxd1",
328 "eth_rxd0",
329 "eth_mdio_en",
330 "eth_mdc",
331 "eth_ref_clk",
332 "eth_txd2",
Martin Blumenstingl29f00232018-12-29 15:35:56 +0100333 "eth_txd3",
334 "eth_rxd3",
335 "eth_rxd2";
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100336 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100337 bias-disable;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100338 };
339 };
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100340
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200341 eth_rmii_pins: eth-rmii {
342 mux {
343 groups = "eth_tx_en",
344 "eth_txd1_0",
345 "eth_txd0_0",
346 "eth_rx_clk",
347 "eth_rx_dv",
348 "eth_rxd1",
349 "eth_rxd0",
350 "eth_mdio_en",
351 "eth_mdc";
352 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100353 bias-disable;
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200354 };
355 };
356
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200357 i2c_a_pins: i2c-a {
358 mux {
359 groups = "i2c_sda_a", "i2c_sck_a";
360 function = "i2c_a";
Jerome Brunet7e263352018-11-09 15:04:45 +0100361 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200362 };
363 };
364
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100365 sd_b_pins: sd-b {
366 mux {
367 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
368 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
369 function = "sd_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100370 bias-disable;
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100371 };
372 };
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200373
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200374 sdxc_c_pins: sdxc-c {
375 mux {
376 groups = "sdxc_d0_c", "sdxc_d13_c",
377 "sdxc_d47_c", "sdxc_clk_c",
378 "sdxc_cmd_c";
379 function = "sdxc_c";
380 bias-pull-up;
381 };
382 };
383
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200384 pwm_c1_pins: pwm-c1 {
385 mux {
386 groups = "pwm_c1";
387 function = "pwm_c";
Jerome Brunet7e263352018-11-09 15:04:45 +0100388 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200389 };
390 };
391
Martin Blumenstinglea241bd2019-07-27 14:12:54 +0200392 pwm_d_pins: pwm-d {
393 mux {
394 groups = "pwm_d";
395 function = "pwm_d";
396 bias-disable;
397 };
398 };
399
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200400 uart_b0_pins: uart-b0 {
401 mux {
402 groups = "uart_tx_b0",
403 "uart_rx_b0";
404 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100405 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200406 };
407 };
408
409 uart_b0_cts_rts_pins: uart-b0-cts-rts {
410 mux {
411 groups = "uart_cts_b0",
412 "uart_rts_b0";
413 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100414 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200415 };
416 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200417 };
418};
419
Carlo Caione46921422017-09-17 18:45:23 +0200420&ahb_sram {
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100421 ao_arc_sram: ao-arc-sram@0 {
422 compatible = "amlogic,meson8b-ao-arc-sram";
423 reg = <0x0 0x8000>;
424 pool;
425 };
426
Carlo Caione46921422017-09-17 18:45:23 +0200427 smp-sram@1ff80 {
428 compatible = "amlogic,meson8b-smp-sram";
429 reg = <0x1ff80 0x8>;
430 };
431};
432
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200433
434&efuse {
435 compatible = "amlogic,meson8b-efuse";
436 clocks = <&clkc CLKID_EFUSE>;
437 clock-names = "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100438
439 temperature_calib: calib@1f4 {
440 /* only the upper two bytes are relevant */
441 reg = <0x1f4 0x4>;
442 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200443};
444
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200445&ethmac {
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100446 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
447
448 reg = <0xc9410000 0x10000
449 0xc1108140 0x4>;
450
451 clocks = <&clkc CLKID_ETH>,
452 <&clkc CLKID_MPLL2>,
Martin Blumenstinglb632506c2020-05-12 23:51:47 +0200453 <&clkc CLKID_MPLL2>,
454 <&clkc CLKID_FCLK_DIV2>;
455 clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
Jerome Brunet4f0303d2019-07-18 11:36:23 +0200456 rx-fifo-depth = <4096>;
457 tx-fifo-depth = <2048>;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100458
459 resets = <&reset RESET_ETHERNET>;
460 reset-names = "stmmaceth";
Martin Blumenstingl9960cac2020-06-20 18:10:10 +0200461
462 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200463};
464
Jerome Brunet7d32bc02017-10-19 14:01:41 +0200465&gpio_intc {
466 compatible = "amlogic,meson-gpio-intc",
467 "amlogic,meson8b-gpio-intc";
468 status = "okay";
469};
470
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100471&hhi {
472 clkc: clock-controller {
Martin Blumenstinglda256552019-12-25 02:06:05 +0100473 compatible = "amlogic,meson8b-clkc";
Martin Blumenstingl6d549ff2019-12-08 19:05:25 +0100474 clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
475 clock-names = "xtal", "ddr_pll";
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100476 #clock-cells = <1>;
477 #reset-cells = <1>;
478 };
Martin Blumenstingl9960cac2020-06-20 18:10:10 +0200479
480 pwrc: power-controller {
481 compatible = "amlogic,meson8b-pwrc";
482 #power-domain-cells = <1>;
483 amlogic,ao-sysctrl = <&pmu>;
484 resets = <&reset RESET_DBLK>,
485 <&reset RESET_PIC_DC>,
486 <&reset RESET_HDMI_APB>,
487 <&reset RESET_HDMI_SYSTEM_RESET>,
488 <&reset RESET_VENCI>,
489 <&reset RESET_VENCP>,
490 <&reset RESET_VDAC_4>,
491 <&reset RESET_VENCL>,
492 <&reset RESET_VIU>,
493 <&reset RESET_VENC>,
494 <&reset RESET_RDMA>;
495 reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system",
496 "venci", "vencp", "vdac", "vencl", "viu",
497 "venc", "rdma";
498 clocks = <&clkc CLKID_VPU>;
499 clock-names = "vpu";
500 assigned-clocks = <&clkc CLKID_VPU>;
501 assigned-clock-rates = <182142857>;
502 };
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100503};
504
Martin Blumenstingla35910d2017-06-15 23:33:49 +0200505&hwrng {
506 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
507 clocks = <&clkc CLKID_RNG0>;
508 clock-names = "core";
509};
510
Martin Blumenstingl7a6cc8b2018-02-17 17:06:50 +0100511&i2c_AO {
512 clocks = <&clkc CLKID_CLK81>;
513};
514
515&i2c_A {
516 clocks = <&clkc CLKID_I2C>;
517};
518
519&i2c_B {
520 clocks = <&clkc CLKID_I2C>;
521};
522
Carlo Caionebbe5b232017-04-17 23:42:44 +0200523&L2 {
524 arm,data-latency = <3 3 3>;
525 arm,tag-latency = <2 2 2>;
526 arm,filter-ranges = <0x100000 0xc0000000>;
Martin Blumenstingl9bef3062017-10-31 23:23:15 +0100527 prefetch-data = <1>;
528 prefetch-instr = <1>;
529 arm,shared-override;
Carlo Caionebbe5b232017-04-17 23:42:44 +0200530};
531
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100532&periph {
533 scu@0 {
534 compatible = "arm,cortex-a5-scu";
535 reg = <0x0 0x100>;
536 };
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100537
Martin Blumenstinglda386362018-11-23 20:53:11 +0100538 timer@200 {
539 compatible = "arm,cortex-a5-global-timer";
540 reg = <0x200 0x20>;
541 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
542 clocks = <&clkc CLKID_PERIPH>;
543
544 /*
545 * the arm_global_timer driver currently does not handle clock
546 * rate changes. Keep it disabled for now.
547 */
548 status = "disabled";
549 };
550
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100551 timer@600 {
552 compatible = "arm,cortex-a5-twd-timer";
553 reg = <0x600 0x20>;
554 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
555 clocks = <&clkc CLKID_PERIPH>;
556 };
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100557};
558
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200559&pwm_ab {
560 compatible = "amlogic,meson8b-pwm";
561};
562
563&pwm_cd {
564 compatible = "amlogic,meson8b-pwm";
565};
566
Martin Blumenstinglf6eb9732019-04-13 18:34:21 +0200567&rtc {
568 compatible = "amlogic,meson8b-rtc";
569 resets = <&reset RESET_RTC>;
570};
571
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200572&saradc {
573 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100574 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
Xingyu Chenb9b9db02017-11-16 17:01:15 +0800575 clock-names = "clkin", "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100576 amlogic,hhi-sysctrl = <&hhi>;
577 nvmem-cells = <&temperature_calib>;
578 nvmem-cell-names = "temperature_calib";
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200579};
580
Martin Blumenstingl73106f72020-06-20 18:36:52 +0200581&sdhc {
582 compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
583 clocks = <&xtal>,
584 <&clkc CLKID_FCLK_DIV4>,
585 <&clkc CLKID_FCLK_DIV3>,
586 <&clkc CLKID_FCLK_DIV5>,
587 <&clkc CLKID_SDHC>;
588 clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
589};
590
Martin Blumenstinglfb606cd2021-01-02 21:59:04 +0100591&secbus {
592 secbus2: system-controller@4000 {
593 compatible = "amlogic,meson8b-secbus2", "syscon";
594 reg = <0x4000 0x2000>;
595 };
596};
597
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200598&sdio {
599 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
600 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
601 clock-names = "core", "clkin";
602};
603
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100604&timer_abcde {
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100605 clocks = <&xtal>, <&clkc CLKID_CLK81>;
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100606 clock-names = "xtal", "pclk";
607};
608
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200609&uart_AO {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100610 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100611 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100612 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200613};
614
615&uart_A {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100616 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100617 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100618 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200619};
620
621&uart_B {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100622 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100623 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100624 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200625};
626
627&uart_C {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100628 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100629 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100630 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200631};
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200632
633&usb0 {
634 compatible = "amlogic,meson8b-usb", "snps,dwc2";
635 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
636 clock-names = "otg";
637};
638
639&usb1 {
640 compatible = "amlogic,meson8b-usb", "snps,dwc2";
641 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
642 clock-names = "otg";
643};
644
645&usb0_phy {
646 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
647 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
648 clock-names = "usb_general", "usb";
649 resets = <&reset RESET_USB_OTG>;
650};
651
652&usb1_phy {
653 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
654 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
655 clock-names = "usb_general", "usb";
656 resets = <&reset RESET_USB_OTG>;
657};
Martin Blumenstingl2eca2a12017-07-12 00:22:22 +0200658
659&wdt {
660 compatible = "amlogic,meson8b-wdt";
661};