blob: d5c3d78aafeb5d97d69eb5cd788f1957a8c2538b [file] [log] [blame]
Neil Armstrong5b3da7f2018-06-05 10:10:44 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Neil Armstrong48622152017-10-12 15:50:30 +02002/*
3 * Copyright (c) 2016 Endless Computers, Inc.
4 * Author: Carlo Caione <carlo@endlessm.com>
Neil Armstrong48622152017-10-12 15:50:30 +02005 */
6
7#include "meson-gx.dtsi"
8#include <dt-bindings/clock/gxbb-clkc.h>
Neil Armstrong7d750c32018-04-11 17:40:40 +02009#include <dt-bindings/clock/gxbb-aoclkc.h>
Neil Armstrong48622152017-10-12 15:50:30 +020010#include <dt-bindings/gpio/meson-gxl-gpio.h>
11#include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
12
13/ {
14 compatible = "amlogic,meson-gxl";
Neil Armstrong7d750c32018-04-11 17:40:40 +020015
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020016 soc {
17 usb0: usb@c9000000 {
18 status = "disabled";
19 compatible = "amlogic,meson-gxl-dwc3";
20 #address-cells = <2>;
21 #size-cells = <2>;
22 ranges;
23
24 clocks = <&clkc CLKID_USB>;
25 clock-names = "usb_general";
26 resets = <&reset RESET_USB_OTG>;
27 reset-names = "usb_otg";
28
29 dwc3: dwc3@c9000000 {
30 compatible = "snps,dwc3";
31 reg = <0x0 0xc9000000 0x0 0x100000>;
32 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
33 dr_mode = "host";
34 maximum-speed = "high-speed";
35 snps,dis_u2_susphy_quirk;
36 phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>;
37 };
38 };
39 };
40};
41
42&apb {
43 usb2_phy0: phy@78000 {
44 compatible = "amlogic,meson-gxl-usb2-phy";
45 #phy-cells = <0>;
46 reg = <0x0 0x78000 0x0 0x20>;
47 clocks = <&clkc CLKID_USB>;
48 clock-names = "phy";
49 resets = <&reset RESET_USB_OTG>;
50 reset-names = "phy";
51 status = "okay";
52 };
53
54 usb2_phy1: phy@78020 {
55 compatible = "amlogic,meson-gxl-usb2-phy";
56 #phy-cells = <0>;
57 reg = <0x0 0x78020 0x0 0x20>;
58 clocks = <&clkc CLKID_USB>;
59 clock-names = "phy";
60 resets = <&reset RESET_USB_OTG>;
61 reset-names = "phy";
62 status = "okay";
63 };
64
65 usb3_phy: phy@78080 {
66 compatible = "amlogic,meson-gxl-usb3-phy";
67 #phy-cells = <0>;
68 reg = <0x0 0x78080 0x0 0x20>;
69 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
70 clocks = <&clkc CLKID_USB>, <&clkc_AO CLKID_AO_CEC_32K>;
71 clock-names = "phy", "peripheral";
72 resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>;
73 reset-names = "phy", "peripheral";
74 status = "okay";
75 };
Neil Armstrong48622152017-10-12 15:50:30 +020076};
77
Neil Armstrong91fe0712019-03-26 11:20:34 +010078&efuse {
79 clocks = <&clkc CLKID_EFUSE>;
80};
81
Neil Armstrong48622152017-10-12 15:50:30 +020082&ethmac {
83 reg = <0x0 0xc9410000 0x0 0x10000
84 0x0 0xc8834540 0x0 0x4>;
85
86 clocks = <&clkc CLKID_ETH>,
87 <&clkc CLKID_FCLK_DIV2>,
88 <&clkc CLKID_MPLL2>;
89 clock-names = "stmmaceth", "clkin0", "clkin1";
90
91 mdio0: mdio {
92 #address-cells = <1>;
93 #size-cells = <0>;
94 compatible = "snps,dwmac-mdio";
95 };
96};
97
98&aobus {
99 pinctrl_aobus: pinctrl@14 {
100 compatible = "amlogic,meson-gxl-aobus-pinctrl";
101 #address-cells = <2>;
102 #size-cells = <2>;
103 ranges;
104
105 gpio_ao: bank@14 {
106 reg = <0x0 0x00014 0x0 0x8>,
107 <0x0 0x0002c 0x0 0x4>,
108 <0x0 0x00024 0x0 0x8>;
109 reg-names = "mux", "pull", "gpio";
110 gpio-controller;
111 #gpio-cells = <2>;
112 gpio-ranges = <&pinctrl_aobus 0 0 14>;
113 };
114
115 uart_ao_a_pins: uart_ao_a {
116 mux {
117 groups = "uart_tx_ao_a", "uart_rx_ao_a";
118 function = "uart_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100119 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200120 };
121 };
122
123 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
124 mux {
125 groups = "uart_cts_ao_a",
126 "uart_rts_ao_a";
127 function = "uart_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100128 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200129 };
130 };
131
132 uart_ao_b_pins: uart_ao_b {
133 mux {
134 groups = "uart_tx_ao_b", "uart_rx_ao_b";
135 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100136 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200137 };
138 };
139
140 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
141 mux {
142 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
143 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100144 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200145 };
146 };
147
148 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
149 mux {
150 groups = "uart_cts_ao_b",
151 "uart_rts_ao_b";
152 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100153 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200154 };
155 };
156
157 remote_input_ao_pins: remote_input_ao {
158 mux {
159 groups = "remote_input_ao";
160 function = "remote_input_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100161 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200162 };
163 };
164
165 i2c_ao_pins: i2c_ao {
166 mux {
167 groups = "i2c_sck_ao",
168 "i2c_sda_ao";
169 function = "i2c_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100170 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200171 };
172 };
173
174 pwm_ao_a_3_pins: pwm_ao_a_3 {
175 mux {
176 groups = "pwm_ao_a_3";
177 function = "pwm_ao_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100178 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200179 };
180 };
181
182 pwm_ao_a_8_pins: pwm_ao_a_8 {
183 mux {
184 groups = "pwm_ao_a_8";
185 function = "pwm_ao_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100186 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200187 };
188 };
189
190 pwm_ao_b_pins: pwm_ao_b {
191 mux {
192 groups = "pwm_ao_b";
193 function = "pwm_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100194 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200195 };
196 };
197
198 pwm_ao_b_6_pins: pwm_ao_b_6 {
199 mux {
200 groups = "pwm_ao_b_6";
201 function = "pwm_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100202 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200203 };
204 };
205
206 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
207 mux {
208 groups = "i2s_out_ch23_ao";
209 function = "i2s_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100210 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200211 };
212 };
213
214 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
215 mux {
216 groups = "i2s_out_ch45_ao";
217 function = "i2s_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100218 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200219 };
220 };
221
222 spdif_out_ao_6_pins: spdif_out_ao_6 {
223 mux {
224 groups = "spdif_out_ao_6";
225 function = "spdif_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100226 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200227 };
228 };
229
230 spdif_out_ao_9_pins: spdif_out_ao_9 {
231 mux {
232 groups = "spdif_out_ao_9";
233 function = "spdif_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100234 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200235 };
236 };
237
238 ao_cec_pins: ao_cec {
239 mux {
240 groups = "ao_cec";
241 function = "cec_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100242 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200243 };
244 };
245
246 ee_cec_pins: ee_cec {
247 mux {
248 groups = "ee_cec";
249 function = "cec_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100250 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200251 };
252 };
253 };
254};
255
Neil Armstrong7d750c32018-04-11 17:40:40 +0200256&cec_AO {
257 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
258 clock-names = "core";
259};
260
261&clkc_AO {
262 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100263 clocks = <&xtal>, <&clkc CLKID_CLK81>;
264 clock-names = "xtal", "mpeg-clk";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200265};
266
267&gpio_intc {
268 compatible = "amlogic,meson-gpio-intc",
269 "amlogic,meson-gxl-gpio-intc";
270 status = "okay";
271};
272
Neil Armstrong48622152017-10-12 15:50:30 +0200273&hdmi_tx {
274 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
275 resets = <&reset RESET_HDMITX_CAPB3>,
276 <&reset RESET_HDMI_SYSTEM_RESET>,
277 <&reset RESET_HDMI_TX>;
278 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
279 clocks = <&clkc CLKID_HDMI_PCLK>,
280 <&clkc CLKID_CLK81>,
281 <&clkc CLKID_GCLK_VENCI_INT0>;
282 clock-names = "isfr", "iahb", "venci";
283};
284
Loic Devulder8973d812018-11-27 17:41:18 +0100285&sysctrl {
286 clkc: clock-controller {
287 compatible = "amlogic,gxl-clkc";
Neil Armstrong48622152017-10-12 15:50:30 +0200288 #clock-cells = <1>;
Neil Armstrong91fe0712019-03-26 11:20:34 +0100289 clocks = <&xtal>;
290 clock-names = "xtal";
Neil Armstrong48622152017-10-12 15:50:30 +0200291 };
292};
293
294&i2c_A {
295 clocks = <&clkc CLKID_I2C>;
296};
297
298&i2c_AO {
299 clocks = <&clkc CLKID_AO_I2C>;
300};
301
302&i2c_B {
303 clocks = <&clkc CLKID_I2C>;
304};
305
306&i2c_C {
307 clocks = <&clkc CLKID_I2C>;
308};
309
310&periphs {
311 pinctrl_periphs: pinctrl@4b0 {
312 compatible = "amlogic,meson-gxl-periphs-pinctrl";
313 #address-cells = <2>;
314 #size-cells = <2>;
315 ranges;
316
317 gpio: bank@4b0 {
318 reg = <0x0 0x004b0 0x0 0x28>,
319 <0x0 0x004e8 0x0 0x14>,
320 <0x0 0x00520 0x0 0x14>,
321 <0x0 0x00430 0x0 0x40>;
322 reg-names = "mux", "pull", "pull-enable", "gpio";
323 gpio-controller;
324 #gpio-cells = <2>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200325 gpio-ranges = <&pinctrl_periphs 0 0 100>;
Neil Armstrong48622152017-10-12 15:50:30 +0200326 };
327
328 emmc_pins: emmc {
329 mux {
330 groups = "emmc_nand_d07",
331 "emmc_cmd",
Neil Armstrong7d750c32018-04-11 17:40:40 +0200332 "emmc_clk";
Neil Armstrong48622152017-10-12 15:50:30 +0200333 function = "emmc";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100334 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200335 };
336 };
337
Neil Armstrong7d750c32018-04-11 17:40:40 +0200338 emmc_ds_pins: emmc-ds {
339 mux {
340 groups = "emmc_ds";
341 function = "emmc";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100342 bias-disable;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200343 };
344 };
345
346 emmc_clk_gate_pins: emmc_clk_gate {
347 mux {
348 groups = "BOOT_8";
349 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200350 bias-pull-down;
351 };
352 };
353
Neil Armstrong48622152017-10-12 15:50:30 +0200354 nor_pins: nor {
355 mux {
356 groups = "nor_d",
357 "nor_q",
358 "nor_c",
359 "nor_cs";
360 function = "nor";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100361 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200362 };
363 };
364
Loic Devulder8973d812018-11-27 17:41:18 +0100365 spi_pins: spi-pins {
Neil Armstrong48622152017-10-12 15:50:30 +0200366 mux {
367 groups = "spi_miso",
368 "spi_mosi",
369 "spi_sclk";
370 function = "spi";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100371 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200372 };
373 };
374
375 spi_ss0_pins: spi-ss0 {
376 mux {
377 groups = "spi_ss0";
378 function = "spi";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100379 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200380 };
381 };
382
383 sdcard_pins: sdcard {
384 mux {
385 groups = "sdcard_d0",
386 "sdcard_d1",
387 "sdcard_d2",
388 "sdcard_d3",
389 "sdcard_cmd",
390 "sdcard_clk";
391 function = "sdcard";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100392 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200393 };
394 };
395
Neil Armstrong7d750c32018-04-11 17:40:40 +0200396 sdcard_clk_gate_pins: sdcard_clk_gate {
397 mux {
398 groups = "CARD_2";
399 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200400 bias-pull-down;
401 };
402 };
403
Neil Armstrong48622152017-10-12 15:50:30 +0200404 sdio_pins: sdio {
405 mux {
406 groups = "sdio_d0",
407 "sdio_d1",
408 "sdio_d2",
409 "sdio_d3",
410 "sdio_cmd",
411 "sdio_clk";
412 function = "sdio";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100413 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200414 };
415 };
416
Neil Armstrong7d750c32018-04-11 17:40:40 +0200417 sdio_clk_gate_pins: sdio_clk_gate {
418 mux {
419 groups = "GPIOX_4";
420 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200421 bias-pull-down;
422 };
423 };
424
Neil Armstrong48622152017-10-12 15:50:30 +0200425 sdio_irq_pins: sdio_irq {
426 mux {
427 groups = "sdio_irq";
428 function = "sdio";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100429 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200430 };
431 };
432
433 uart_a_pins: uart_a {
434 mux {
435 groups = "uart_tx_a",
436 "uart_rx_a";
437 function = "uart_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100438 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200439 };
440 };
441
442 uart_a_cts_rts_pins: uart_a_cts_rts {
443 mux {
444 groups = "uart_cts_a",
445 "uart_rts_a";
446 function = "uart_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100447 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200448 };
449 };
450
451 uart_b_pins: uart_b {
452 mux {
453 groups = "uart_tx_b",
454 "uart_rx_b";
455 function = "uart_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100456 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200457 };
458 };
459
460 uart_b_cts_rts_pins: uart_b_cts_rts {
461 mux {
462 groups = "uart_cts_b",
463 "uart_rts_b";
464 function = "uart_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100465 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200466 };
467 };
468
469 uart_c_pins: uart_c {
470 mux {
471 groups = "uart_tx_c",
472 "uart_rx_c";
473 function = "uart_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100474 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200475 };
476 };
477
478 uart_c_cts_rts_pins: uart_c_cts_rts {
479 mux {
480 groups = "uart_cts_c",
481 "uart_rts_c";
482 function = "uart_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100483 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200484 };
485 };
486
487 i2c_a_pins: i2c_a {
488 mux {
489 groups = "i2c_sck_a",
490 "i2c_sda_a";
491 function = "i2c_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100492 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200493 };
494 };
495
496 i2c_b_pins: i2c_b {
497 mux {
498 groups = "i2c_sck_b",
499 "i2c_sda_b";
500 function = "i2c_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100501 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200502 };
503 };
504
505 i2c_c_pins: i2c_c {
506 mux {
507 groups = "i2c_sck_c",
508 "i2c_sda_c";
509 function = "i2c_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100510 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200511 };
512 };
513
514 eth_pins: eth_c {
515 mux {
516 groups = "eth_mdio",
517 "eth_mdc",
518 "eth_clk_rx_clk",
519 "eth_rx_dv",
520 "eth_rxd0",
521 "eth_rxd1",
522 "eth_rxd2",
523 "eth_rxd3",
524 "eth_rgmii_tx_clk",
525 "eth_tx_en",
526 "eth_txd0",
527 "eth_txd1",
528 "eth_txd2",
529 "eth_txd3";
530 function = "eth";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100531 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200532 };
533 };
534
535 eth_link_led_pins: eth_link_led {
536 mux {
537 groups = "eth_link_led";
538 function = "eth_led";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100539 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200540 };
541 };
542
543 eth_act_led_pins: eth_act_led {
544 mux {
545 groups = "eth_act_led";
546 function = "eth_led";
547 };
548 };
549
550 pwm_a_pins: pwm_a {
551 mux {
552 groups = "pwm_a";
553 function = "pwm_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100554 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200555 };
556 };
557
558 pwm_b_pins: pwm_b {
559 mux {
560 groups = "pwm_b";
561 function = "pwm_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100562 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200563 };
564 };
565
566 pwm_c_pins: pwm_c {
567 mux {
568 groups = "pwm_c";
569 function = "pwm_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100570 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200571 };
572 };
573
574 pwm_d_pins: pwm_d {
575 mux {
576 groups = "pwm_d";
577 function = "pwm_d";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100578 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200579 };
580 };
581
582 pwm_e_pins: pwm_e {
583 mux {
584 groups = "pwm_e";
585 function = "pwm_e";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100586 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200587 };
588 };
589
590 pwm_f_clk_pins: pwm_f_clk {
591 mux {
592 groups = "pwm_f_clk";
593 function = "pwm_f";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100594 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200595 };
596 };
597
598 pwm_f_x_pins: pwm_f_x {
599 mux {
600 groups = "pwm_f_x";
601 function = "pwm_f";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100602 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200603 };
604 };
605
606 hdmi_hpd_pins: hdmi_hpd {
607 mux {
608 groups = "hdmi_hpd";
609 function = "hdmi_hpd";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100610 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200611 };
612 };
613
614 hdmi_i2c_pins: hdmi_i2c {
615 mux {
616 groups = "hdmi_sda", "hdmi_scl";
617 function = "hdmi_i2c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100618 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200619 };
620 };
621
622 i2s_am_clk_pins: i2s_am_clk {
623 mux {
624 groups = "i2s_am_clk";
625 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100626 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200627 };
628 };
629
630 i2s_out_ao_clk_pins: i2s_out_ao_clk {
631 mux {
632 groups = "i2s_out_ao_clk";
633 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100634 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200635 };
636 };
637
638 i2s_out_lr_clk_pins: i2s_out_lr_clk {
639 mux {
640 groups = "i2s_out_lr_clk";
641 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100642 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200643 };
644 };
645
646 i2s_out_ch01_pins: i2s_out_ch01 {
647 mux {
648 groups = "i2s_out_ch01";
649 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100650 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200651 };
652 };
653 i2sout_ch23_z_pins: i2sout_ch23_z {
654 mux {
655 groups = "i2sout_ch23_z";
656 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100657 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200658 };
659 };
660
661 i2sout_ch45_z_pins: i2sout_ch45_z {
662 mux {
663 groups = "i2sout_ch45_z";
664 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100665 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200666 };
667 };
668
669 i2sout_ch67_z_pins: i2sout_ch67_z {
670 mux {
671 groups = "i2sout_ch67_z";
672 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100673 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200674 };
675 };
676
677 spdif_out_h_pins: spdif_out_ao_h {
678 mux {
679 groups = "spdif_out_h";
680 function = "spdif_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100681 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200682 };
683 };
684 };
685
686 eth-phy-mux {
687 compatible = "mdio-mux-mmioreg", "mdio-mux";
688 #address-cells = <1>;
689 #size-cells = <0>;
690 reg = <0x0 0x55c 0x0 0x4>;
691 mux-mask = <0xffffffff>;
692 mdio-parent-bus = <&mdio0>;
693
694 internal_mdio: mdio@e40908ff {
695 reg = <0xe40908ff>;
696 #address-cells = <1>;
697 #size-cells = <0>;
698
699 internal_phy: ethernet-phy@8 {
700 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200701 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Neil Armstrong48622152017-10-12 15:50:30 +0200702 reg = <8>;
703 max-speed = <100>;
704 };
705 };
706
707 external_mdio: mdio@2009087f {
708 reg = <0x2009087f>;
709 #address-cells = <1>;
710 #size-cells = <0>;
711 };
712 };
713};
714
Neil Armstrong7d750c32018-04-11 17:40:40 +0200715&pwrc_vpu {
716 resets = <&reset RESET_VIU>,
717 <&reset RESET_VENC>,
718 <&reset RESET_VCBUS>,
719 <&reset RESET_BT656>,
720 <&reset RESET_DVIN_RESET>,
721 <&reset RESET_RDMA>,
722 <&reset RESET_VENCI>,
723 <&reset RESET_VENCP>,
724 <&reset RESET_VDAC>,
725 <&reset RESET_VDI6>,
726 <&reset RESET_VENCL>,
727 <&reset RESET_VID_LOCK>;
728 clocks = <&clkc CLKID_VPU>,
729 <&clkc CLKID_VAPB>;
730 clock-names = "vpu", "vapb";
731 /*
732 * VPU clocking is provided by two identical clock paths
733 * VPU_0 and VPU_1 muxed to a single clock by a glitch
734 * free mux to safely change frequency while running.
735 * Same for VAPB but with a final gate after the glitch free mux.
736 */
737 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
738 <&clkc CLKID_VPU_0>,
739 <&clkc CLKID_VPU>, /* Glitch free mux */
740 <&clkc CLKID_VAPB_0_SEL>,
741 <&clkc CLKID_VAPB_0>,
742 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
743 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
744 <0>, /* Do Nothing */
745 <&clkc CLKID_VPU_0>,
746 <&clkc CLKID_FCLK_DIV4>,
747 <0>, /* Do Nothing */
748 <&clkc CLKID_VAPB_0>;
749 assigned-clock-rates = <0>, /* Do Nothing */
750 <666666666>,
751 <0>, /* Do Nothing */
752 <0>, /* Do Nothing */
753 <250000000>,
754 <0>; /* Do Nothing */
755};
756
Neil Armstrong48622152017-10-12 15:50:30 +0200757&saradc {
758 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
759 clocks = <&xtal>,
760 <&clkc CLKID_SAR_ADC>,
Neil Armstrong48622152017-10-12 15:50:30 +0200761 <&clkc CLKID_SAR_ADC_CLK>,
762 <&clkc CLKID_SAR_ADC_SEL>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200763 clock-names = "clkin", "core", "adc_clk", "adc_sel";
Neil Armstrong48622152017-10-12 15:50:30 +0200764};
765
766&sd_emmc_a {
767 clocks = <&clkc CLKID_SD_EMMC_A>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200768 <&clkc CLKID_SD_EMMC_A_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200769 <&clkc CLKID_FCLK_DIV2>;
770 clock-names = "core", "clkin0", "clkin1";
Loic Devulder8973d812018-11-27 17:41:18 +0100771 resets = <&reset RESET_SD_EMMC_A>;
Neil Armstrong48622152017-10-12 15:50:30 +0200772};
773
774&sd_emmc_b {
775 clocks = <&clkc CLKID_SD_EMMC_B>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200776 <&clkc CLKID_SD_EMMC_B_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200777 <&clkc CLKID_FCLK_DIV2>;
Loic Devulder8973d812018-11-27 17:41:18 +0100778 clock-names = "core", "clkin0", "clkin1";
779 resets = <&reset RESET_SD_EMMC_B>;
Neil Armstrong48622152017-10-12 15:50:30 +0200780};
781
782&sd_emmc_c {
783 clocks = <&clkc CLKID_SD_EMMC_C>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200784 <&clkc CLKID_SD_EMMC_C_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200785 <&clkc CLKID_FCLK_DIV2>;
786 clock-names = "core", "clkin0", "clkin1";
Loic Devulder8973d812018-11-27 17:41:18 +0100787 resets = <&reset RESET_SD_EMMC_C>;
Neil Armstrong48622152017-10-12 15:50:30 +0200788};
789
790&spicc {
791 clocks = <&clkc CLKID_SPICC>;
792 clock-names = "core";
793 resets = <&reset RESET_PERIPHS_SPICC>;
794 num-cs = <1>;
795};
796
797&spifc {
798 clocks = <&clkc CLKID_SPI>;
799};
800
Neil Armstrong7d750c32018-04-11 17:40:40 +0200801&uart_A {
802 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
803 clock-names = "xtal", "pclk", "baud";
804};
805
806&uart_AO {
Loic Devulder8973d812018-11-27 17:41:18 +0100807 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200808 clock-names = "xtal", "pclk", "baud";
809};
810
811&uart_AO_B {
Loic Devulder8973d812018-11-27 17:41:18 +0100812 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200813 clock-names = "xtal", "pclk", "baud";
814};
815
816&uart_B {
817 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
818 clock-names = "xtal", "pclk", "baud";
819};
820
821&uart_C {
822 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
823 clock-names = "xtal", "pclk", "baud";
824};
825
Neil Armstrong48622152017-10-12 15:50:30 +0200826&vpu {
827 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200828 power-domains = <&pwrc_vpu>;
Neil Armstrong48622152017-10-12 15:50:30 +0200829};