blob: 1934666ff60f991010757f1adf0b86c24483be3d [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
7#include <dt-bindings/clock/meson8b-clkc.h>
8#include <dt-bindings/gpio/meson8b-gpio.h>
Neil Armstrongcad059c2016-05-30 15:27:18 +02009#include <dt-bindings/reset/amlogic,meson8b-reset.h>
Carlo Caione46921422017-09-17 18:45:23 +020010#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
Martin Blumenstinglf44135e2017-04-17 23:39:38 +020011#include "meson.dtsi"
Carlo Caione4a69fcd2015-10-07 22:31:04 +020012
13/ {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020014 cpus {
15 #address-cells = <1>;
16 #size-cells = <0>;
17
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020018 cpu0: cpu@200 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020019 device_type = "cpu";
20 compatible = "arm,cortex-a5";
21 next-level-cache = <&L2>;
22 reg = <0x200>;
Carlo Caione46921422017-09-17 18:45:23 +020023 enable-method = "amlogic,meson8b-smp";
24 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010025 operating-points-v2 = <&cpu_opp_table>;
26 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020027 };
28
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020029 cpu1: cpu@201 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020030 device_type = "cpu";
31 compatible = "arm,cortex-a5";
32 next-level-cache = <&L2>;
33 reg = <0x201>;
Carlo Caione46921422017-09-17 18:45:23 +020034 enable-method = "amlogic,meson8b-smp";
35 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010036 operating-points-v2 = <&cpu_opp_table>;
37 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020038 };
39
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020040 cpu2: cpu@202 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020041 device_type = "cpu";
42 compatible = "arm,cortex-a5";
43 next-level-cache = <&L2>;
44 reg = <0x202>;
Carlo Caione46921422017-09-17 18:45:23 +020045 enable-method = "amlogic,meson8b-smp";
46 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010047 operating-points-v2 = <&cpu_opp_table>;
48 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020049 };
50
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020051 cpu3: cpu@203 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020052 device_type = "cpu";
53 compatible = "arm,cortex-a5";
54 next-level-cache = <&L2>;
55 reg = <0x203>;
Carlo Caione46921422017-09-17 18:45:23 +020056 enable-method = "amlogic,meson8b-smp";
57 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010058 operating-points-v2 = <&cpu_opp_table>;
59 clocks = <&clkc CLKID_CPUCLK>;
60 };
61 };
62
63 cpu_opp_table: opp-table {
64 compatible = "operating-points-v2";
65 opp-shared;
66
67 opp-96000000 {
68 opp-hz = /bits/ 64 <96000000>;
69 opp-microvolt = <860000>;
70 };
71 opp-192000000 {
72 opp-hz = /bits/ 64 <192000000>;
73 opp-microvolt = <860000>;
74 };
75 opp-312000000 {
76 opp-hz = /bits/ 64 <312000000>;
77 opp-microvolt = <860000>;
78 };
79 opp-408000000 {
80 opp-hz = /bits/ 64 <408000000>;
81 opp-microvolt = <860000>;
82 };
83 opp-504000000 {
84 opp-hz = /bits/ 64 <504000000>;
85 opp-microvolt = <860000>;
86 };
87 opp-600000000 {
88 opp-hz = /bits/ 64 <600000000>;
89 opp-microvolt = <860000>;
90 };
91 opp-720000000 {
92 opp-hz = /bits/ 64 <720000000>;
93 opp-microvolt = <860000>;
94 };
95 opp-816000000 {
96 opp-hz = /bits/ 64 <816000000>;
97 opp-microvolt = <900000>;
98 };
99 opp-1008000000 {
100 opp-hz = /bits/ 64 <1008000000>;
101 opp-microvolt = <1140000>;
102 };
103 opp-1200000000 {
104 opp-hz = /bits/ 64 <1200000000>;
105 opp-microvolt = <1140000>;
106 };
107 opp-1320000000 {
108 opp-hz = /bits/ 64 <1320000000>;
109 opp-microvolt = <1140000>;
110 };
111 opp-1488000000 {
112 opp-hz = /bits/ 64 <1488000000>;
113 opp-microvolt = <1140000>;
114 };
115 opp-1536000000 {
116 opp-hz = /bits/ 64 <1536000000>;
117 opp-microvolt = <1140000>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200118 };
119 };
Martin Blumenstingld8dd3d22017-06-15 23:33:51 +0200120
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100121 gpu_opp_table: gpu-opp-table {
122 compatible = "operating-points-v2";
123
124 opp-255000000 {
125 opp-hz = /bits/ 64 <255000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200126 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100127 };
128 opp-364300000 {
129 opp-hz = /bits/ 64 <364300000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200130 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100131 };
132 opp-425000000 {
133 opp-hz = /bits/ 64 <425000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200134 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100135 };
136 opp-510000000 {
137 opp-hz = /bits/ 64 <510000000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200138 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100139 };
140 opp-637500000 {
141 opp-hz = /bits/ 64 <637500000>;
Martin Blumenstingl26d65142019-05-12 21:39:36 +0200142 opp-microvolt = <1100000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100143 turbo-mode;
144 };
145 };
146
Martin Blumenstingle8d85d72018-04-22 12:45:02 +0200147 pmu {
148 compatible = "arm,cortex-a5-pmu";
149 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
150 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
151 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
153 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
154 };
155
Linus Lüssingb9b4bf52017-10-02 17:59:03 +0200156 reserved-memory {
157 #address-cells = <1>;
158 #size-cells = <1>;
159 ranges;
160
161 /* 2 MiB reserved for Hardware ROM Firmware? */
162 hwrom@0 {
163 reg = <0x0 0x200000>;
164 no-map;
165 };
166 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100167
Martin Blumenstingl872f8812019-05-20 21:43:53 +0200168 mmcbus: bus@c8000000 {
169 compatible = "simple-bus";
170 reg = <0xc8000000 0x8000>;
171 #address-cells = <1>;
172 #size-cells = <1>;
173 ranges = <0x0 0xc8000000 0x8000>;
174
175 dmcbus: bus@6000 {
176 compatible = "simple-bus";
177 reg = <0x6000 0x400>;
178 #address-cells = <1>;
179 #size-cells = <1>;
180 ranges = <0x0 0x6000 0x400>;
181
182 canvas: video-lut@48 {
183 compatible = "amlogic,meson8b-canvas",
184 "amlogic,canvas";
185 reg = <0x48 0x14>;
186 };
187 };
188 };
189
Martin Blumenstingle402d242018-12-08 17:50:25 +0100190 apb: bus@d0000000 {
191 compatible = "simple-bus";
192 reg = <0xd0000000 0x200000>;
193 #address-cells = <1>;
194 #size-cells = <1>;
195 ranges = <0x0 0xd0000000 0x200000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100196
197 mali: gpu@c0000 {
198 compatible = "amlogic,meson8b-mali", "arm,mali-450";
199 reg = <0xc0000 0x40000>;
200 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
201 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
202 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
203 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
204 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
205 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
206 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
207 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
208 interrupt-names = "gp", "gpmmu", "pp", "pmu",
209 "pp0", "ppmmu0", "pp1", "ppmmu1";
210 resets = <&reset RESET_MALI>;
211 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
212 clock-names = "bus", "core";
213 operating-points-v2 = <&gpu_opp_table>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100214 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100215 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200216}; /* end of / */
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200217
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200218&aobus {
Carlo Caione46921422017-09-17 18:45:23 +0200219 pmu: pmu@e0 {
220 compatible = "amlogic,meson8b-pmu", "syscon";
221 reg = <0xe0 0x18>;
222 };
223
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200224 pinctrl_aobus: pinctrl@84 {
225 compatible = "amlogic,meson8b-aobus-pinctrl";
226 reg = <0x84 0xc>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200227 #address-cells = <1>;
228 #size-cells = <1>;
229 ranges;
230
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200231 gpio_ao: ao-bank@14 {
232 reg = <0x14 0x4>,
233 <0x2c 0x4>,
234 <0x24 0x8>;
235 reg-names = "mux", "pull", "gpio";
236 gpio-controller;
237 #gpio-cells = <2>;
Jerome Brunet677c4322017-09-21 19:14:44 +0200238 gpio-ranges = <&pinctrl_aobus 0 0 16>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200239 };
240
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200241 uart_ao_a_pins: uart_ao_a {
242 mux {
243 groups = "uart_tx_ao_a", "uart_rx_ao_a";
244 function = "uart_ao";
Jerome Brunet7e263352018-11-09 15:04:45 +0100245 bias-disable;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200246 };
247 };
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200248
249 ir_recv_pins: remote {
250 mux {
251 groups = "remote_input";
252 function = "remote";
Jerome Brunet7e263352018-11-09 15:04:45 +0100253 bias-disable;
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200254 };
255 };
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200256 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200257};
258
259&cbus {
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200260 reset: reset-controller@4404 {
261 compatible = "amlogic,meson8b-reset";
Martin Blumenstingla2730ed2018-01-21 23:14:12 +0100262 reg = <0x4404 0x9c>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200263 #reset-cells = <1>;
264 };
265
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200266 analog_top: analog-top@81a8 {
267 compatible = "amlogic,meson8b-analog-top", "syscon";
268 reg = <0x81a8 0x14>;
269 };
270
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200271 pwm_ef: pwm@86c0 {
272 compatible = "amlogic,meson8b-pwm";
273 reg = <0x86c0 0x10>;
274 #pwm-cells = <3>;
275 status = "disabled";
276 };
277
Martin Blumenstinglf1975b982019-02-09 01:26:41 +0100278 clock-measure@8758 {
279 compatible = "amlogic,meson8b-clk-measure";
280 reg = <0x8758 0x1c>;
281 };
282
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200283 pinctrl_cbus: pinctrl@9880 {
284 compatible = "amlogic,meson8b-cbus-pinctrl";
285 reg = <0x9880 0x10>;
286 #address-cells = <1>;
287 #size-cells = <1>;
288 ranges;
289
290 gpio: banks@80b0 {
291 reg = <0x80b0 0x28>,
292 <0x80e8 0x18>,
293 <0x8120 0x18>,
294 <0x8030 0x38>;
295 reg-names = "mux", "pull", "pull-enable", "gpio";
296 gpio-controller;
297 #gpio-cells = <2>;
Martin Blumenstingl4e461e62018-03-12 21:57:09 +0100298 gpio-ranges = <&pinctrl_cbus 0 0 83>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200299 };
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100300
301 eth_rgmii_pins: eth-rgmii {
302 mux {
303 groups = "eth_tx_clk",
304 "eth_tx_en",
305 "eth_txd1_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100306 "eth_txd0_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100307 "eth_rx_clk",
308 "eth_rx_dv",
309 "eth_rxd1",
310 "eth_rxd0",
311 "eth_mdio_en",
312 "eth_mdc",
313 "eth_ref_clk",
314 "eth_txd2",
Martin Blumenstingl29f00232018-12-29 15:35:56 +0100315 "eth_txd3",
316 "eth_rxd3",
317 "eth_rxd2";
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100318 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100319 bias-disable;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100320 };
321 };
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100322
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200323 eth_rmii_pins: eth-rmii {
324 mux {
325 groups = "eth_tx_en",
326 "eth_txd1_0",
327 "eth_txd0_0",
328 "eth_rx_clk",
329 "eth_rx_dv",
330 "eth_rxd1",
331 "eth_rxd0",
332 "eth_mdio_en",
333 "eth_mdc";
334 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100335 bias-disable;
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200336 };
337 };
338
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200339 i2c_a_pins: i2c-a {
340 mux {
341 groups = "i2c_sda_a", "i2c_sck_a";
342 function = "i2c_a";
Jerome Brunet7e263352018-11-09 15:04:45 +0100343 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200344 };
345 };
346
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100347 sd_b_pins: sd-b {
348 mux {
349 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
350 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
351 function = "sd_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100352 bias-disable;
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100353 };
354 };
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200355
356 pwm_c1_pins: pwm-c1 {
357 mux {
358 groups = "pwm_c1";
359 function = "pwm_c";
Jerome Brunet7e263352018-11-09 15:04:45 +0100360 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200361 };
362 };
363
Martin Blumenstinglea241bd2019-07-27 14:12:54 +0200364 pwm_d_pins: pwm-d {
365 mux {
366 groups = "pwm_d";
367 function = "pwm_d";
368 bias-disable;
369 };
370 };
371
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200372 uart_b0_pins: uart-b0 {
373 mux {
374 groups = "uart_tx_b0",
375 "uart_rx_b0";
376 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100377 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200378 };
379 };
380
381 uart_b0_cts_rts_pins: uart-b0-cts-rts {
382 mux {
383 groups = "uart_cts_b0",
384 "uart_rts_b0";
385 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100386 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200387 };
388 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200389 };
390};
391
Carlo Caione46921422017-09-17 18:45:23 +0200392&ahb_sram {
393 smp-sram@1ff80 {
394 compatible = "amlogic,meson8b-smp-sram";
395 reg = <0x1ff80 0x8>;
396 };
397};
398
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200399
400&efuse {
401 compatible = "amlogic,meson8b-efuse";
402 clocks = <&clkc CLKID_EFUSE>;
403 clock-names = "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100404
405 temperature_calib: calib@1f4 {
406 /* only the upper two bytes are relevant */
407 reg = <0x1f4 0x4>;
408 };
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200409};
410
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200411&ethmac {
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100412 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
413
414 reg = <0xc9410000 0x10000
415 0xc1108140 0x4>;
416
417 clocks = <&clkc CLKID_ETH>,
418 <&clkc CLKID_MPLL2>,
419 <&clkc CLKID_MPLL2>;
420 clock-names = "stmmaceth", "clkin0", "clkin1";
Jerome Brunet4f0303d2019-07-18 11:36:23 +0200421 rx-fifo-depth = <4096>;
422 tx-fifo-depth = <2048>;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100423
424 resets = <&reset RESET_ETHERNET>;
425 reset-names = "stmmaceth";
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200426};
427
Jerome Brunet7d32bc02017-10-19 14:01:41 +0200428&gpio_intc {
429 compatible = "amlogic,meson-gpio-intc",
430 "amlogic,meson8b-gpio-intc";
431 status = "okay";
432};
433
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100434&hhi {
435 clkc: clock-controller {
436 compatible = "amlogic,meson8-clkc";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100437 clocks = <&xtal>;
438 clock-names = "xtal";
Martin Blumenstinglb6db3932019-01-18 23:52:21 +0100439 #clock-cells = <1>;
440 #reset-cells = <1>;
441 };
442};
443
Martin Blumenstingla35910d2017-06-15 23:33:49 +0200444&hwrng {
445 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
446 clocks = <&clkc CLKID_RNG0>;
447 clock-names = "core";
448};
449
Martin Blumenstingl7a6cc8b2018-02-17 17:06:50 +0100450&i2c_AO {
451 clocks = <&clkc CLKID_CLK81>;
452};
453
454&i2c_A {
455 clocks = <&clkc CLKID_I2C>;
456};
457
458&i2c_B {
459 clocks = <&clkc CLKID_I2C>;
460};
461
Carlo Caionebbe5b232017-04-17 23:42:44 +0200462&L2 {
463 arm,data-latency = <3 3 3>;
464 arm,tag-latency = <2 2 2>;
465 arm,filter-ranges = <0x100000 0xc0000000>;
Martin Blumenstingl9bef3062017-10-31 23:23:15 +0100466 prefetch-data = <1>;
467 prefetch-instr = <1>;
468 arm,shared-override;
Carlo Caionebbe5b232017-04-17 23:42:44 +0200469};
470
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100471&periph {
472 scu@0 {
473 compatible = "arm,cortex-a5-scu";
474 reg = <0x0 0x100>;
475 };
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100476
Martin Blumenstinglda386362018-11-23 20:53:11 +0100477 timer@200 {
478 compatible = "arm,cortex-a5-global-timer";
479 reg = <0x200 0x20>;
480 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
481 clocks = <&clkc CLKID_PERIPH>;
482
483 /*
484 * the arm_global_timer driver currently does not handle clock
485 * rate changes. Keep it disabled for now.
486 */
487 status = "disabled";
488 };
489
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100490 timer@600 {
491 compatible = "arm,cortex-a5-twd-timer";
492 reg = <0x600 0x20>;
493 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
494 clocks = <&clkc CLKID_PERIPH>;
495 };
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100496};
497
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200498&pwm_ab {
499 compatible = "amlogic,meson8b-pwm";
500};
501
502&pwm_cd {
503 compatible = "amlogic,meson8b-pwm";
504};
505
Martin Blumenstinglf6eb9732019-04-13 18:34:21 +0200506&rtc {
507 compatible = "amlogic,meson8b-rtc";
508 resets = <&reset RESET_RTC>;
509};
510
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200511&saradc {
512 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100513 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
Xingyu Chenb9b9db02017-11-16 17:01:15 +0800514 clock-names = "clkin", "core";
Martin Blumenstinglbbbcf642019-01-18 23:52:24 +0100515 amlogic,hhi-sysctrl = <&hhi>;
516 nvmem-cells = <&temperature_calib>;
517 nvmem-cell-names = "temperature_calib";
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200518};
519
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200520&sdio {
521 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
522 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
523 clock-names = "core", "clkin";
524};
525
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100526&timer_abcde {
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100527 clocks = <&xtal>, <&clkc CLKID_CLK81>;
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100528 clock-names = "xtal", "pclk";
529};
530
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200531&uart_AO {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100532 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100533 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100534 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200535};
536
537&uart_A {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100538 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100539 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100540 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200541};
542
543&uart_B {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100544 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100545 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100546 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200547};
548
549&uart_C {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100550 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
Martin Blumenstingl630ea312019-12-08 19:05:23 +0100551 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100552 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200553};
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200554
555&usb0 {
556 compatible = "amlogic,meson8b-usb", "snps,dwc2";
557 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
558 clock-names = "otg";
559};
560
561&usb1 {
562 compatible = "amlogic,meson8b-usb", "snps,dwc2";
563 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
564 clock-names = "otg";
565};
566
567&usb0_phy {
568 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
569 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
570 clock-names = "usb_general", "usb";
571 resets = <&reset RESET_USB_OTG>;
572};
573
574&usb1_phy {
575 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
576 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
577 clock-names = "usb_general", "usb";
578 resets = <&reset RESET_USB_OTG>;
579};
Martin Blumenstingl2eca2a12017-07-12 00:22:22 +0200580
581&wdt {
582 compatible = "amlogic,meson8b-wdt";
583};