blob: 9fca77478fecb7207941aed1cc3ece997b285841 [file] [log] [blame]
Carlo Caione4a69fcd2015-10-07 22:31:04 +02001/*
2 * Copyright 2015 Endless Mobile, Inc.
3 * Author: Carlo Caione <carlo@endlessm.com>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * Or, alternatively,
24 *
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
32 * conditions:
33 *
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
36 *
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
45 */
46
47#include <dt-bindings/clock/meson8b-clkc.h>
48#include <dt-bindings/gpio/meson8b-gpio.h>
Neil Armstrongcad059c2016-05-30 15:27:18 +020049#include <dt-bindings/reset/amlogic,meson8b-reset.h>
Carlo Caione46921422017-09-17 18:45:23 +020050#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
Martin Blumenstinglf44135e2017-04-17 23:39:38 +020051#include "meson.dtsi"
Carlo Caione4a69fcd2015-10-07 22:31:04 +020052
53/ {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020054 cpus {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020058 cpu0: cpu@200 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020059 device_type = "cpu";
60 compatible = "arm,cortex-a5";
61 next-level-cache = <&L2>;
62 reg = <0x200>;
Carlo Caione46921422017-09-17 18:45:23 +020063 enable-method = "amlogic,meson8b-smp";
64 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010065 operating-points-v2 = <&cpu_opp_table>;
66 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020067 };
68
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020069 cpu1: cpu@201 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020070 device_type = "cpu";
71 compatible = "arm,cortex-a5";
72 next-level-cache = <&L2>;
73 reg = <0x201>;
Carlo Caione46921422017-09-17 18:45:23 +020074 enable-method = "amlogic,meson8b-smp";
75 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010076 operating-points-v2 = <&cpu_opp_table>;
77 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020078 };
79
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020080 cpu2: cpu@202 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020081 device_type = "cpu";
82 compatible = "arm,cortex-a5";
83 next-level-cache = <&L2>;
84 reg = <0x202>;
Carlo Caione46921422017-09-17 18:45:23 +020085 enable-method = "amlogic,meson8b-smp";
86 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010087 operating-points-v2 = <&cpu_opp_table>;
88 clocks = <&clkc CLKID_CPUCLK>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +020089 };
90
Martin Blumenstingle8d85d72018-04-22 12:45:02 +020091 cpu3: cpu@203 {
Carlo Caione4a69fcd2015-10-07 22:31:04 +020092 device_type = "cpu";
93 compatible = "arm,cortex-a5";
94 next-level-cache = <&L2>;
95 reg = <0x203>;
Carlo Caione46921422017-09-17 18:45:23 +020096 enable-method = "amlogic,meson8b-smp";
97 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
Martin Blumenstinglc3115522018-11-30 00:00:44 +010098 operating-points-v2 = <&cpu_opp_table>;
99 clocks = <&clkc CLKID_CPUCLK>;
100 };
101 };
102
103 cpu_opp_table: opp-table {
104 compatible = "operating-points-v2";
105 opp-shared;
106
107 opp-96000000 {
108 opp-hz = /bits/ 64 <96000000>;
109 opp-microvolt = <860000>;
110 };
111 opp-192000000 {
112 opp-hz = /bits/ 64 <192000000>;
113 opp-microvolt = <860000>;
114 };
115 opp-312000000 {
116 opp-hz = /bits/ 64 <312000000>;
117 opp-microvolt = <860000>;
118 };
119 opp-408000000 {
120 opp-hz = /bits/ 64 <408000000>;
121 opp-microvolt = <860000>;
122 };
123 opp-504000000 {
124 opp-hz = /bits/ 64 <504000000>;
125 opp-microvolt = <860000>;
126 };
127 opp-600000000 {
128 opp-hz = /bits/ 64 <600000000>;
129 opp-microvolt = <860000>;
130 };
131 opp-720000000 {
132 opp-hz = /bits/ 64 <720000000>;
133 opp-microvolt = <860000>;
134 };
135 opp-816000000 {
136 opp-hz = /bits/ 64 <816000000>;
137 opp-microvolt = <900000>;
138 };
139 opp-1008000000 {
140 opp-hz = /bits/ 64 <1008000000>;
141 opp-microvolt = <1140000>;
142 };
143 opp-1200000000 {
144 opp-hz = /bits/ 64 <1200000000>;
145 opp-microvolt = <1140000>;
146 };
147 opp-1320000000 {
148 opp-hz = /bits/ 64 <1320000000>;
149 opp-microvolt = <1140000>;
150 };
151 opp-1488000000 {
152 opp-hz = /bits/ 64 <1488000000>;
153 opp-microvolt = <1140000>;
154 };
155 opp-1536000000 {
156 opp-hz = /bits/ 64 <1536000000>;
157 opp-microvolt = <1140000>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200158 };
159 };
Martin Blumenstingld8dd3d22017-06-15 23:33:51 +0200160
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100161 gpu_opp_table: gpu-opp-table {
162 compatible = "operating-points-v2";
163
164 opp-255000000 {
165 opp-hz = /bits/ 64 <255000000>;
166 opp-microvolt = <1150000>;
167 };
168 opp-364300000 {
169 opp-hz = /bits/ 64 <364300000>;
170 opp-microvolt = <1150000>;
171 };
172 opp-425000000 {
173 opp-hz = /bits/ 64 <425000000>;
174 opp-microvolt = <1150000>;
175 };
176 opp-510000000 {
177 opp-hz = /bits/ 64 <510000000>;
178 opp-microvolt = <1150000>;
179 };
180 opp-637500000 {
181 opp-hz = /bits/ 64 <637500000>;
182 opp-microvolt = <1150000>;
183 turbo-mode;
184 };
185 };
186
Martin Blumenstingle8d85d72018-04-22 12:45:02 +0200187 pmu {
188 compatible = "arm,cortex-a5-pmu";
189 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
190 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
191 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
192 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
193 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
194 };
195
Linus Lüssingb9b4bf52017-10-02 17:59:03 +0200196 reserved-memory {
197 #address-cells = <1>;
198 #size-cells = <1>;
199 ranges;
200
201 /* 2 MiB reserved for Hardware ROM Firmware? */
202 hwrom@0 {
203 reg = <0x0 0x200000>;
204 no-map;
205 };
206 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100207
208 apb: bus@d0000000 {
209 compatible = "simple-bus";
210 reg = <0xd0000000 0x200000>;
211 #address-cells = <1>;
212 #size-cells = <1>;
213 ranges = <0x0 0xd0000000 0x200000>;
Martin Blumenstinglc3ea80b2018-12-08 18:12:47 +0100214
215 mali: gpu@c0000 {
216 compatible = "amlogic,meson8b-mali", "arm,mali-450";
217 reg = <0xc0000 0x40000>;
218 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
219 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
220 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
221 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
222 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
223 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
224 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
225 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
226 interrupt-names = "gp", "gpmmu", "pp", "pmu",
227 "pp0", "ppmmu0", "pp1", "ppmmu1";
228 resets = <&reset RESET_MALI>;
229 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
230 clock-names = "bus", "core";
231 operating-points-v2 = <&gpu_opp_table>;
232 switch-delay = <0xffff>;
233 };
Martin Blumenstingle402d242018-12-08 17:50:25 +0100234 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200235}; /* end of / */
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200236
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200237&aobus {
Carlo Caione46921422017-09-17 18:45:23 +0200238 pmu: pmu@e0 {
239 compatible = "amlogic,meson8b-pmu", "syscon";
240 reg = <0xe0 0x18>;
241 };
242
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200243 pinctrl_aobus: pinctrl@84 {
244 compatible = "amlogic,meson8b-aobus-pinctrl";
245 reg = <0x84 0xc>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200246 #address-cells = <1>;
247 #size-cells = <1>;
248 ranges;
249
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200250 gpio_ao: ao-bank@14 {
251 reg = <0x14 0x4>,
252 <0x2c 0x4>,
253 <0x24 0x8>;
254 reg-names = "mux", "pull", "gpio";
255 gpio-controller;
256 #gpio-cells = <2>;
Jerome Brunet677c4322017-09-21 19:14:44 +0200257 gpio-ranges = <&pinctrl_aobus 0 0 16>;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200258 };
259
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200260 uart_ao_a_pins: uart_ao_a {
261 mux {
262 groups = "uart_tx_ao_a", "uart_rx_ao_a";
263 function = "uart_ao";
Jerome Brunet7e263352018-11-09 15:04:45 +0100264 bias-disable;
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200265 };
266 };
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200267
268 ir_recv_pins: remote {
269 mux {
270 groups = "remote_input";
271 function = "remote";
Jerome Brunet7e263352018-11-09 15:04:45 +0100272 bias-disable;
Martin Blumenstingl15b520f2018-05-06 22:57:49 +0200273 };
274 };
Carlo Caione4a69fcd2015-10-07 22:31:04 +0200275 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200276};
277
278&cbus {
279 clkc: clock-controller@4000 {
280 #clock-cells = <1>;
Martin Blumenstingl45631ea2017-07-28 23:13:13 +0200281 #reset-cells = <1>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200282 compatible = "amlogic,meson8b-clkc";
Martin Blumenstinglf31094f2018-07-21 21:05:53 +0200283 reg = <0x8000 0x4>, <0x4000 0x400>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200284 };
285
286 reset: reset-controller@4404 {
287 compatible = "amlogic,meson8b-reset";
Martin Blumenstingla2730ed2018-01-21 23:14:12 +0100288 reg = <0x4404 0x9c>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200289 #reset-cells = <1>;
290 };
291
Martin Blumenstinglbd835d52017-09-23 16:14:03 +0200292 analog_top: analog-top@81a8 {
293 compatible = "amlogic,meson8b-analog-top", "syscon";
294 reg = <0x81a8 0x14>;
295 };
296
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200297 pwm_ef: pwm@86c0 {
298 compatible = "amlogic,meson8b-pwm";
299 reg = <0x86c0 0x10>;
300 #pwm-cells = <3>;
301 status = "disabled";
302 };
303
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200304 pinctrl_cbus: pinctrl@9880 {
305 compatible = "amlogic,meson8b-cbus-pinctrl";
306 reg = <0x9880 0x10>;
307 #address-cells = <1>;
308 #size-cells = <1>;
309 ranges;
310
311 gpio: banks@80b0 {
312 reg = <0x80b0 0x28>,
313 <0x80e8 0x18>,
314 <0x8120 0x18>,
315 <0x8030 0x38>;
316 reg-names = "mux", "pull", "pull-enable", "gpio";
317 gpio-controller;
318 #gpio-cells = <2>;
Martin Blumenstingl4e461e62018-03-12 21:57:09 +0100319 gpio-ranges = <&pinctrl_cbus 0 0 83>;
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200320 };
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100321
322 eth_rgmii_pins: eth-rgmii {
323 mux {
324 groups = "eth_tx_clk",
325 "eth_tx_en",
326 "eth_txd1_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100327 "eth_txd0_0",
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100328 "eth_rx_clk",
329 "eth_rx_dv",
330 "eth_rxd1",
331 "eth_rxd0",
332 "eth_mdio_en",
333 "eth_mdc",
334 "eth_ref_clk",
335 "eth_txd2",
Martin Blumenstingl29f00232018-12-29 15:35:56 +0100336 "eth_txd3",
337 "eth_rxd3",
338 "eth_rxd2";
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100339 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100340 bias-disable;
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100341 };
342 };
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100343
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200344 eth_rmii_pins: eth-rmii {
345 mux {
346 groups = "eth_tx_en",
347 "eth_txd1_0",
348 "eth_txd0_0",
349 "eth_rx_clk",
350 "eth_rx_dv",
351 "eth_rxd1",
352 "eth_rxd0",
353 "eth_mdio_en",
354 "eth_mdc";
355 function = "ethernet";
Jerome Brunet7e263352018-11-09 15:04:45 +0100356 bias-disable;
Martin Blumenstingla77d0ba2018-09-22 17:10:02 +0200357 };
358 };
359
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200360 i2c_a_pins: i2c-a {
361 mux {
362 groups = "i2c_sda_a", "i2c_sck_a";
363 function = "i2c_a";
Jerome Brunet7e263352018-11-09 15:04:45 +0100364 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200365 };
366 };
367
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100368 sd_b_pins: sd-b {
369 mux {
370 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
371 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
372 function = "sd_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100373 bias-disable;
Linus Lüssinge03efbc2018-03-17 21:11:14 +0100374 };
375 };
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200376
377 pwm_c1_pins: pwm-c1 {
378 mux {
379 groups = "pwm_c1";
380 function = "pwm_c";
Jerome Brunet7e263352018-11-09 15:04:45 +0100381 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200382 };
383 };
384
385 uart_b0_pins: uart-b0 {
386 mux {
387 groups = "uart_tx_b0",
388 "uart_rx_b0";
389 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100390 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200391 };
392 };
393
394 uart_b0_cts_rts_pins: uart-b0-cts-rts {
395 mux {
396 groups = "uart_cts_b0",
397 "uart_rts_b0";
398 function = "uart_b";
Jerome Brunet7e263352018-11-09 15:04:45 +0100399 bias-disable;
Martin Blumenstinglc821b812018-09-22 17:10:01 +0200400 };
401 };
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200402 };
403};
404
Carlo Caione46921422017-09-17 18:45:23 +0200405&ahb_sram {
406 smp-sram@1ff80 {
407 compatible = "amlogic,meson8b-smp-sram";
408 reg = <0x1ff80 0x8>;
409 };
410};
411
Martin Blumenstingl2cb51a82017-10-03 01:28:04 +0200412
413&efuse {
414 compatible = "amlogic,meson8b-efuse";
415 clocks = <&clkc CLKID_EFUSE>;
416 clock-names = "core";
417};
418
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200419&ethmac {
Emiliano Ingrassiab9644652018-01-19 02:48:00 +0100420 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
421
422 reg = <0xc9410000 0x10000
423 0xc1108140 0x4>;
424
425 clocks = <&clkc CLKID_ETH>,
426 <&clkc CLKID_MPLL2>,
427 <&clkc CLKID_MPLL2>;
428 clock-names = "stmmaceth", "clkin0", "clkin1";
429
430 resets = <&reset RESET_ETHERNET>;
431 reset-names = "stmmaceth";
Martin Blumenstinglf28d4bd2017-06-15 23:33:52 +0200432};
433
Jerome Brunet7d32bc02017-10-19 14:01:41 +0200434&gpio_intc {
435 compatible = "amlogic,meson-gpio-intc",
436 "amlogic,meson8b-gpio-intc";
437 status = "okay";
438};
439
Martin Blumenstingla35910d2017-06-15 23:33:49 +0200440&hwrng {
441 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
442 clocks = <&clkc CLKID_RNG0>;
443 clock-names = "core";
444};
445
Martin Blumenstingl7a6cc8b2018-02-17 17:06:50 +0100446&i2c_AO {
447 clocks = <&clkc CLKID_CLK81>;
448};
449
450&i2c_A {
451 clocks = <&clkc CLKID_I2C>;
452};
453
454&i2c_B {
455 clocks = <&clkc CLKID_I2C>;
456};
457
Carlo Caionebbe5b232017-04-17 23:42:44 +0200458&L2 {
459 arm,data-latency = <3 3 3>;
460 arm,tag-latency = <2 2 2>;
461 arm,filter-ranges = <0x100000 0xc0000000>;
Martin Blumenstingl9bef3062017-10-31 23:23:15 +0100462 prefetch-data = <1>;
463 prefetch-instr = <1>;
464 arm,shared-override;
Carlo Caionebbe5b232017-04-17 23:42:44 +0200465};
466
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100467&periph {
468 scu@0 {
469 compatible = "arm,cortex-a5-scu";
470 reg = <0x0 0x100>;
471 };
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100472
Martin Blumenstinglda386362018-11-23 20:53:11 +0100473 timer@200 {
474 compatible = "arm,cortex-a5-global-timer";
475 reg = <0x200 0x20>;
476 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
477 clocks = <&clkc CLKID_PERIPH>;
478
479 /*
480 * the arm_global_timer driver currently does not handle clock
481 * rate changes. Keep it disabled for now.
482 */
483 status = "disabled";
484 };
485
Martin Blumenstinglf5506e82018-11-23 20:53:10 +0100486 timer@600 {
487 compatible = "arm,cortex-a5-twd-timer";
488 reg = <0x600 0x20>;
489 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
490 clocks = <&clkc CLKID_PERIPH>;
491 };
Martin Blumenstingle8c276d2018-11-23 20:53:07 +0100492};
493
Martin Blumenstingl440bdcd2017-07-12 00:20:14 +0200494&pwm_ab {
495 compatible = "amlogic,meson8b-pwm";
496};
497
498&pwm_cd {
499 compatible = "amlogic,meson8b-pwm";
500};
501
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200502&saradc {
503 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
504 clocks = <&clkc CLKID_XTAL>,
Xingyu Chenb9b9db02017-11-16 17:01:15 +0800505 <&clkc CLKID_SAR_ADC>;
506 clock-names = "clkin", "core";
Martin Blumenstingla39a3b92017-06-15 23:33:47 +0200507};
508
Martin Blumenstingl88b1b182017-10-07 18:29:39 +0200509&sdio {
510 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
511 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
512 clock-names = "core", "clkin";
513};
514
Martin Blumenstingl7b141ab2018-11-16 21:42:35 +0100515&timer_abcde {
516 clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
517 clock-names = "xtal", "pclk";
518};
519
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200520&uart_AO {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100521 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
522 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
523 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200524};
525
526&uart_A {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100527 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
528 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>;
529 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200530};
531
532&uart_B {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100533 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
534 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>;
535 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200536};
537
538&uart_C {
Martin Blumenstinglb02d6e72017-11-17 23:58:57 +0100539 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
540 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
541 clock-names = "baud", "xtal", "pclk";
Martin Blumenstinglf44135e2017-04-17 23:39:38 +0200542};
Martin Blumenstingle29b1cf2017-06-15 23:33:50 +0200543
544&usb0 {
545 compatible = "amlogic,meson8b-usb", "snps,dwc2";
546 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
547 clock-names = "otg";
548};
549
550&usb1 {
551 compatible = "amlogic,meson8b-usb", "snps,dwc2";
552 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
553 clock-names = "otg";
554};
555
556&usb0_phy {
557 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
558 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
559 clock-names = "usb_general", "usb";
560 resets = <&reset RESET_USB_OTG>;
561};
562
563&usb1_phy {
564 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
565 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
566 clock-names = "usb_general", "usb";
567 resets = <&reset RESET_USB_OTG>;
568};
Martin Blumenstingl2eca2a12017-07-12 00:22:22 +0200569
570&wdt {
571 compatible = "amlogic,meson8b-wdt";
572};