blob: c3ac531c4f84af6141f69ab9228a80969e1fd232 [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 {
Neil Armstrong4e7b0a32020-09-10 10:48:12 +020017 usb: usb@d0078080 {
18 compatible = "amlogic,meson-gxl-usb-ctrl";
19 reg = <0x0 0xd0078080 0x0 0x20>;
20 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020021 #address-cells = <2>;
22 #size-cells = <2>;
23 ranges;
24
Neil Armstrong4e7b0a32020-09-10 10:48:12 +020025 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
26 clock-names = "usb_ctrl", "ddr";
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020027 resets = <&reset RESET_USB_OTG>;
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020028
Neil Armstrong4e7b0a32020-09-10 10:48:12 +020029 dr_mode = "otg";
30
31 phys = <&usb2_phy0>, <&usb2_phy1>;
32 phy-names = "usb2-phy0", "usb2-phy1";
33
34 dwc2: usb@c9100000 {
35 compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
36 reg = <0x0 0xc9100000 0x0 0x40000>;
37 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
38 clocks = <&clkc CLKID_USB1>;
39 clock-names = "otg";
40 phys = <&usb2_phy1>;
41 dr_mode = "peripheral";
42 g-rx-fifo-size = <192>;
43 g-np-tx-fifo-size = <128>;
44 g-tx-fifo-size = <128 128 16 16 16>;
45 };
46
47 dwc3: usb@c9000000 {
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020048 compatible = "snps,dwc3";
49 reg = <0x0 0xc9000000 0x0 0x100000>;
50 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
51 dr_mode = "host";
52 maximum-speed = "high-speed";
53 snps,dis_u2_susphy_quirk;
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020054 };
55 };
Jerome Brunetdd5f2352020-03-05 12:12:38 +010056
Neil Armstrong4e7b0a32020-09-10 10:48:12 +020057 acodec: audio-controller@c8832000 {
58 compatible = "amlogic,t9015";
59 reg = <0x0 0xc8832000 0x0 0x14>;
60 #sound-dai-cells = <0>;
61 sound-name-prefix = "ACODEC";
62 clocks = <&clkc CLKID_ACODEC>;
63 clock-names = "pclk";
64 resets = <&reset RESET_ACODEC>;
65 status = "disabled";
66 };
67
Jerome Brunetdd5f2352020-03-05 12:12:38 +010068 crypto: crypto@c883e000 {
69 compatible = "amlogic,gxl-crypto";
70 reg = <0x0 0xc883e000 0x0 0x36>;
71 interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>,
72 <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
73 clocks = <&clkc CLKID_BLKMV>;
74 clock-names = "blkmv";
75 status = "okay";
76 };
Neil Armstrong5b3da7f2018-06-05 10:10:44 +020077 };
78};
79
Neil Armstrong4e7b0a32020-09-10 10:48:12 +020080&aiu {
81 compatible = "amlogic,aiu-gxl", "amlogic,aiu";
82 clocks = <&clkc CLKID_AIU_GLUE>,
83 <&clkc CLKID_I2S_OUT>,
84 <&clkc CLKID_AOCLK_GATE>,
85 <&clkc CLKID_CTS_AMCLK>,
86 <&clkc CLKID_MIXER_IFACE>,
87 <&clkc CLKID_IEC958>,
88 <&clkc CLKID_IEC958_GATE>,
89 <&clkc CLKID_CTS_MCLK_I958>,
90 <&clkc CLKID_CTS_I958>;
91 clock-names = "pclk",
92 "i2s_pclk",
93 "i2s_aoclk",
94 "i2s_mclk",
95 "i2s_mixer",
96 "spdif_pclk",
97 "spdif_aoclk",
98 "spdif_mclk",
99 "spdif_mclk_sel";
100 resets = <&reset RESET_AIU>;
101};
102
Neil Armstrong5b3da7f2018-06-05 10:10:44 +0200103&apb {
104 usb2_phy0: phy@78000 {
105 compatible = "amlogic,meson-gxl-usb2-phy";
106 #phy-cells = <0>;
107 reg = <0x0 0x78000 0x0 0x20>;
108 clocks = <&clkc CLKID_USB>;
109 clock-names = "phy";
110 resets = <&reset RESET_USB_OTG>;
111 reset-names = "phy";
112 status = "okay";
113 };
114
115 usb2_phy1: phy@78020 {
116 compatible = "amlogic,meson-gxl-usb2-phy";
117 #phy-cells = <0>;
118 reg = <0x0 0x78020 0x0 0x20>;
119 clocks = <&clkc CLKID_USB>;
120 clock-names = "phy";
121 resets = <&reset RESET_USB_OTG>;
122 reset-names = "phy";
123 status = "okay";
124 };
Neil Armstrong48622152017-10-12 15:50:30 +0200125};
126
Neil Armstrong91fe0712019-03-26 11:20:34 +0100127&efuse {
128 clocks = <&clkc CLKID_EFUSE>;
129};
130
Neil Armstrong48622152017-10-12 15:50:30 +0200131&ethmac {
Neil Armstrong48622152017-10-12 15:50:30 +0200132 clocks = <&clkc CLKID_ETH>,
133 <&clkc CLKID_FCLK_DIV2>,
Neil Armstrongee731352020-10-02 09:47:37 +0200134 <&clkc CLKID_MPLL2>,
135 <&clkc CLKID_FCLK_DIV2>;
136 clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
Neil Armstrong48622152017-10-12 15:50:30 +0200137
138 mdio0: mdio {
139 #address-cells = <1>;
140 #size-cells = <0>;
141 compatible = "snps,dwmac-mdio";
142 };
143};
144
145&aobus {
146 pinctrl_aobus: pinctrl@14 {
147 compatible = "amlogic,meson-gxl-aobus-pinctrl";
148 #address-cells = <2>;
149 #size-cells = <2>;
150 ranges;
151
152 gpio_ao: bank@14 {
153 reg = <0x0 0x00014 0x0 0x8>,
154 <0x0 0x0002c 0x0 0x4>,
155 <0x0 0x00024 0x0 0x8>;
156 reg-names = "mux", "pull", "gpio";
157 gpio-controller;
158 #gpio-cells = <2>;
159 gpio-ranges = <&pinctrl_aobus 0 0 14>;
160 };
161
162 uart_ao_a_pins: uart_ao_a {
163 mux {
164 groups = "uart_tx_ao_a", "uart_rx_ao_a";
165 function = "uart_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100166 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200167 };
168 };
169
170 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
171 mux {
172 groups = "uart_cts_ao_a",
173 "uart_rts_ao_a";
174 function = "uart_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100175 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200176 };
177 };
178
179 uart_ao_b_pins: uart_ao_b {
180 mux {
181 groups = "uart_tx_ao_b", "uart_rx_ao_b";
182 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100183 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200184 };
185 };
186
187 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
188 mux {
189 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
190 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100191 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200192 };
193 };
194
195 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
196 mux {
197 groups = "uart_cts_ao_b",
198 "uart_rts_ao_b";
199 function = "uart_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100200 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200201 };
202 };
203
204 remote_input_ao_pins: remote_input_ao {
205 mux {
206 groups = "remote_input_ao";
207 function = "remote_input_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100208 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200209 };
210 };
211
212 i2c_ao_pins: i2c_ao {
213 mux {
214 groups = "i2c_sck_ao",
215 "i2c_sda_ao";
216 function = "i2c_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100217 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200218 };
219 };
220
221 pwm_ao_a_3_pins: pwm_ao_a_3 {
222 mux {
223 groups = "pwm_ao_a_3";
224 function = "pwm_ao_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100225 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200226 };
227 };
228
229 pwm_ao_a_8_pins: pwm_ao_a_8 {
230 mux {
231 groups = "pwm_ao_a_8";
232 function = "pwm_ao_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100233 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200234 };
235 };
236
237 pwm_ao_b_pins: pwm_ao_b {
238 mux {
239 groups = "pwm_ao_b";
240 function = "pwm_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100241 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200242 };
243 };
244
245 pwm_ao_b_6_pins: pwm_ao_b_6 {
246 mux {
247 groups = "pwm_ao_b_6";
248 function = "pwm_ao_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100249 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200250 };
251 };
252
253 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
254 mux {
255 groups = "i2s_out_ch23_ao";
256 function = "i2s_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100257 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200258 };
259 };
260
261 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
262 mux {
263 groups = "i2s_out_ch45_ao";
264 function = "i2s_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100265 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200266 };
267 };
268
269 spdif_out_ao_6_pins: spdif_out_ao_6 {
270 mux {
271 groups = "spdif_out_ao_6";
272 function = "spdif_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100273 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200274 };
275 };
276
277 spdif_out_ao_9_pins: spdif_out_ao_9 {
278 mux {
279 groups = "spdif_out_ao_9";
280 function = "spdif_out_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100281 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200282 };
283 };
284
285 ao_cec_pins: ao_cec {
286 mux {
287 groups = "ao_cec";
288 function = "cec_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100289 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200290 };
291 };
292
293 ee_cec_pins: ee_cec {
294 mux {
295 groups = "ee_cec";
296 function = "cec_ao";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100297 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200298 };
299 };
300 };
301};
302
Neil Armstrong7d750c32018-04-11 17:40:40 +0200303&cec_AO {
304 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
305 clock-names = "core";
306};
307
308&clkc_AO {
309 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100310 clocks = <&xtal>, <&clkc CLKID_CLK81>;
311 clock-names = "xtal", "mpeg-clk";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200312};
313
314&gpio_intc {
315 compatible = "amlogic,meson-gpio-intc",
316 "amlogic,meson-gxl-gpio-intc";
317 status = "okay";
318};
319
Neil Armstrong48622152017-10-12 15:50:30 +0200320&hdmi_tx {
321 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
322 resets = <&reset RESET_HDMITX_CAPB3>,
323 <&reset RESET_HDMI_SYSTEM_RESET>,
324 <&reset RESET_HDMI_TX>;
325 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
326 clocks = <&clkc CLKID_HDMI_PCLK>,
327 <&clkc CLKID_CLK81>,
328 <&clkc CLKID_GCLK_VENCI_INT0>;
329 clock-names = "isfr", "iahb", "venci";
330};
331
Loic Devulder8973d812018-11-27 17:41:18 +0100332&sysctrl {
333 clkc: clock-controller {
334 compatible = "amlogic,gxl-clkc";
Neil Armstrong48622152017-10-12 15:50:30 +0200335 #clock-cells = <1>;
Neil Armstrong91fe0712019-03-26 11:20:34 +0100336 clocks = <&xtal>;
337 clock-names = "xtal";
Neil Armstrong48622152017-10-12 15:50:30 +0200338 };
339};
340
Neil Armstrongee731352020-10-02 09:47:37 +0200341&hwrng {
342 clocks = <&clkc CLKID_RNG0>;
343 clock-names = "core";
344};
345
Neil Armstrong48622152017-10-12 15:50:30 +0200346&i2c_A {
347 clocks = <&clkc CLKID_I2C>;
348};
349
350&i2c_AO {
351 clocks = <&clkc CLKID_AO_I2C>;
352};
353
354&i2c_B {
355 clocks = <&clkc CLKID_I2C>;
356};
357
358&i2c_C {
359 clocks = <&clkc CLKID_I2C>;
360};
361
362&periphs {
363 pinctrl_periphs: pinctrl@4b0 {
364 compatible = "amlogic,meson-gxl-periphs-pinctrl";
365 #address-cells = <2>;
366 #size-cells = <2>;
367 ranges;
368
369 gpio: bank@4b0 {
370 reg = <0x0 0x004b0 0x0 0x28>,
371 <0x0 0x004e8 0x0 0x14>,
372 <0x0 0x00520 0x0 0x14>,
373 <0x0 0x00430 0x0 0x40>;
374 reg-names = "mux", "pull", "pull-enable", "gpio";
375 gpio-controller;
376 #gpio-cells = <2>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200377 gpio-ranges = <&pinctrl_periphs 0 0 100>;
Neil Armstrong48622152017-10-12 15:50:30 +0200378 };
379
380 emmc_pins: emmc {
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100381 mux-0 {
Neil Armstrong48622152017-10-12 15:50:30 +0200382 groups = "emmc_nand_d07",
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100383 "emmc_cmd";
384 function = "emmc";
385 bias-pull-up;
386 };
387
388 mux-1 {
389 groups = "emmc_clk";
Neil Armstrong48622152017-10-12 15:50:30 +0200390 function = "emmc";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100391 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200392 };
393 };
394
Neil Armstrong7d750c32018-04-11 17:40:40 +0200395 emmc_ds_pins: emmc-ds {
396 mux {
397 groups = "emmc_ds";
398 function = "emmc";
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100399 bias-pull-down;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200400 };
401 };
402
403 emmc_clk_gate_pins: emmc_clk_gate {
404 mux {
405 groups = "BOOT_8";
406 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200407 bias-pull-down;
408 };
409 };
410
Neil Armstrong48622152017-10-12 15:50:30 +0200411 nor_pins: nor {
412 mux {
413 groups = "nor_d",
414 "nor_q",
415 "nor_c",
416 "nor_cs";
417 function = "nor";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100418 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200419 };
420 };
421
Loic Devulder8973d812018-11-27 17:41:18 +0100422 spi_pins: spi-pins {
Neil Armstrong48622152017-10-12 15:50:30 +0200423 mux {
424 groups = "spi_miso",
425 "spi_mosi",
426 "spi_sclk";
427 function = "spi";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100428 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200429 };
430 };
431
432 spi_ss0_pins: spi-ss0 {
433 mux {
434 groups = "spi_ss0";
435 function = "spi";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100436 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200437 };
438 };
439
440 sdcard_pins: sdcard {
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100441 mux-0 {
Neil Armstrong48622152017-10-12 15:50:30 +0200442 groups = "sdcard_d0",
443 "sdcard_d1",
444 "sdcard_d2",
445 "sdcard_d3",
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100446 "sdcard_cmd";
447 function = "sdcard";
448 bias-pull-up;
449 };
450
451 mux-1 {
452 groups = "sdcard_clk";
Neil Armstrong48622152017-10-12 15:50:30 +0200453 function = "sdcard";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100454 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200455 };
456 };
457
Neil Armstrong7d750c32018-04-11 17:40:40 +0200458 sdcard_clk_gate_pins: sdcard_clk_gate {
459 mux {
460 groups = "CARD_2";
461 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200462 bias-pull-down;
463 };
464 };
465
Neil Armstrong48622152017-10-12 15:50:30 +0200466 sdio_pins: sdio {
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100467 mux-0 {
Neil Armstrong48622152017-10-12 15:50:30 +0200468 groups = "sdio_d0",
469 "sdio_d1",
470 "sdio_d2",
471 "sdio_d3",
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100472 "sdio_cmd";
473 function = "sdio";
474 bias-pull-up;
475 };
476
477 mux-1 {
478 groups = "sdio_clk";
Neil Armstrong48622152017-10-12 15:50:30 +0200479 function = "sdio";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100480 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200481 };
482 };
483
Neil Armstrong7d750c32018-04-11 17:40:40 +0200484 sdio_clk_gate_pins: sdio_clk_gate {
485 mux {
486 groups = "GPIOX_4";
487 function = "gpio_periphs";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200488 bias-pull-down;
489 };
490 };
491
Neil Armstrong48622152017-10-12 15:50:30 +0200492 sdio_irq_pins: sdio_irq {
493 mux {
494 groups = "sdio_irq";
495 function = "sdio";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100496 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200497 };
498 };
499
500 uart_a_pins: uart_a {
501 mux {
502 groups = "uart_tx_a",
503 "uart_rx_a";
504 function = "uart_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100505 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200506 };
507 };
508
509 uart_a_cts_rts_pins: uart_a_cts_rts {
510 mux {
511 groups = "uart_cts_a",
512 "uart_rts_a";
513 function = "uart_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100514 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200515 };
516 };
517
518 uart_b_pins: uart_b {
519 mux {
520 groups = "uart_tx_b",
521 "uart_rx_b";
522 function = "uart_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100523 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200524 };
525 };
526
527 uart_b_cts_rts_pins: uart_b_cts_rts {
528 mux {
529 groups = "uart_cts_b",
530 "uart_rts_b";
531 function = "uart_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100532 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200533 };
534 };
535
536 uart_c_pins: uart_c {
537 mux {
538 groups = "uart_tx_c",
539 "uart_rx_c";
540 function = "uart_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100541 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200542 };
543 };
544
545 uart_c_cts_rts_pins: uart_c_cts_rts {
546 mux {
547 groups = "uart_cts_c",
548 "uart_rts_c";
549 function = "uart_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100550 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200551 };
552 };
553
554 i2c_a_pins: i2c_a {
555 mux {
556 groups = "i2c_sck_a",
557 "i2c_sda_a";
558 function = "i2c_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100559 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200560 };
561 };
562
563 i2c_b_pins: i2c_b {
564 mux {
565 groups = "i2c_sck_b",
566 "i2c_sda_b";
567 function = "i2c_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100568 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200569 };
570 };
571
572 i2c_c_pins: i2c_c {
573 mux {
574 groups = "i2c_sck_c",
575 "i2c_sda_c";
576 function = "i2c_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100577 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200578 };
579 };
580
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100581 i2c_c_dv18_pins: i2c_c_dv18 {
582 mux {
583 groups = "i2c_sck_c_dv19",
584 "i2c_sda_c_dv18";
585 function = "i2c_c";
586 bias-disable;
587 };
588 };
589
Neil Armstrong48622152017-10-12 15:50:30 +0200590 eth_pins: eth_c {
591 mux {
592 groups = "eth_mdio",
593 "eth_mdc",
594 "eth_clk_rx_clk",
595 "eth_rx_dv",
596 "eth_rxd0",
597 "eth_rxd1",
598 "eth_rxd2",
599 "eth_rxd3",
600 "eth_rgmii_tx_clk",
601 "eth_tx_en",
602 "eth_txd0",
603 "eth_txd1",
604 "eth_txd2",
605 "eth_txd3";
606 function = "eth";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100607 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200608 };
609 };
610
611 eth_link_led_pins: eth_link_led {
612 mux {
613 groups = "eth_link_led";
614 function = "eth_led";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100615 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200616 };
617 };
618
619 eth_act_led_pins: eth_act_led {
620 mux {
621 groups = "eth_act_led";
622 function = "eth_led";
623 };
624 };
625
626 pwm_a_pins: pwm_a {
627 mux {
628 groups = "pwm_a";
629 function = "pwm_a";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100630 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200631 };
632 };
633
634 pwm_b_pins: pwm_b {
635 mux {
636 groups = "pwm_b";
637 function = "pwm_b";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100638 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200639 };
640 };
641
642 pwm_c_pins: pwm_c {
643 mux {
644 groups = "pwm_c";
645 function = "pwm_c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100646 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200647 };
648 };
649
650 pwm_d_pins: pwm_d {
651 mux {
652 groups = "pwm_d";
653 function = "pwm_d";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100654 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200655 };
656 };
657
658 pwm_e_pins: pwm_e {
659 mux {
660 groups = "pwm_e";
661 function = "pwm_e";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100662 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200663 };
664 };
665
666 pwm_f_clk_pins: pwm_f_clk {
667 mux {
668 groups = "pwm_f_clk";
669 function = "pwm_f";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100670 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200671 };
672 };
673
674 pwm_f_x_pins: pwm_f_x {
675 mux {
676 groups = "pwm_f_x";
677 function = "pwm_f";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100678 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200679 };
680 };
681
682 hdmi_hpd_pins: hdmi_hpd {
683 mux {
684 groups = "hdmi_hpd";
685 function = "hdmi_hpd";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100686 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200687 };
688 };
689
690 hdmi_i2c_pins: hdmi_i2c {
691 mux {
692 groups = "hdmi_sda", "hdmi_scl";
693 function = "hdmi_i2c";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100694 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200695 };
696 };
697
698 i2s_am_clk_pins: i2s_am_clk {
699 mux {
700 groups = "i2s_am_clk";
701 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100702 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200703 };
704 };
705
706 i2s_out_ao_clk_pins: i2s_out_ao_clk {
707 mux {
708 groups = "i2s_out_ao_clk";
709 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100710 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200711 };
712 };
713
714 i2s_out_lr_clk_pins: i2s_out_lr_clk {
715 mux {
716 groups = "i2s_out_lr_clk";
717 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100718 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200719 };
720 };
721
722 i2s_out_ch01_pins: i2s_out_ch01 {
723 mux {
724 groups = "i2s_out_ch01";
725 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100726 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200727 };
728 };
729 i2sout_ch23_z_pins: i2sout_ch23_z {
730 mux {
731 groups = "i2sout_ch23_z";
732 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100733 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200734 };
735 };
736
737 i2sout_ch45_z_pins: i2sout_ch45_z {
738 mux {
739 groups = "i2sout_ch45_z";
740 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100741 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200742 };
743 };
744
745 i2sout_ch67_z_pins: i2sout_ch67_z {
746 mux {
747 groups = "i2sout_ch67_z";
748 function = "i2s_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100749 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200750 };
751 };
752
753 spdif_out_h_pins: spdif_out_ao_h {
754 mux {
755 groups = "spdif_out_h";
756 function = "spdif_out";
Neil Armstrong91fe0712019-03-26 11:20:34 +0100757 bias-disable;
Neil Armstrong48622152017-10-12 15:50:30 +0200758 };
759 };
760 };
761
762 eth-phy-mux {
763 compatible = "mdio-mux-mmioreg", "mdio-mux";
764 #address-cells = <1>;
765 #size-cells = <0>;
766 reg = <0x0 0x55c 0x0 0x4>;
767 mux-mask = <0xffffffff>;
768 mdio-parent-bus = <&mdio0>;
769
770 internal_mdio: mdio@e40908ff {
771 reg = <0xe40908ff>;
772 #address-cells = <1>;
773 #size-cells = <0>;
774
775 internal_phy: ethernet-phy@8 {
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100776 compatible = "ethernet-phy-id0181.4400";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200777 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Neil Armstrong48622152017-10-12 15:50:30 +0200778 reg = <8>;
779 max-speed = <100>;
780 };
781 };
782
783 external_mdio: mdio@2009087f {
784 reg = <0x2009087f>;
785 #address-cells = <1>;
786 #size-cells = <0>;
787 };
788 };
789};
790
Neil Armstrongee731352020-10-02 09:47:37 +0200791&pwrc {
Neil Armstrong7d750c32018-04-11 17:40:40 +0200792 resets = <&reset RESET_VIU>,
793 <&reset RESET_VENC>,
794 <&reset RESET_VCBUS>,
795 <&reset RESET_BT656>,
796 <&reset RESET_DVIN_RESET>,
797 <&reset RESET_RDMA>,
798 <&reset RESET_VENCI>,
799 <&reset RESET_VENCP>,
800 <&reset RESET_VDAC>,
801 <&reset RESET_VDI6>,
802 <&reset RESET_VENCL>,
803 <&reset RESET_VID_LOCK>;
Neil Armstrongee731352020-10-02 09:47:37 +0200804 reset-names = "viu", "venc", "vcbus", "bt656",
805 "dvin", "rdma", "venci", "vencp",
806 "vdac", "vdi6", "vencl", "vid_lock";
Neil Armstrong7d750c32018-04-11 17:40:40 +0200807 clocks = <&clkc CLKID_VPU>,
808 <&clkc CLKID_VAPB>;
809 clock-names = "vpu", "vapb";
810 /*
811 * VPU clocking is provided by two identical clock paths
812 * VPU_0 and VPU_1 muxed to a single clock by a glitch
813 * free mux to safely change frequency while running.
814 * Same for VAPB but with a final gate after the glitch free mux.
815 */
816 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
817 <&clkc CLKID_VPU_0>,
818 <&clkc CLKID_VPU>, /* Glitch free mux */
819 <&clkc CLKID_VAPB_0_SEL>,
820 <&clkc CLKID_VAPB_0>,
821 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
822 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
823 <0>, /* Do Nothing */
824 <&clkc CLKID_VPU_0>,
825 <&clkc CLKID_FCLK_DIV4>,
826 <0>, /* Do Nothing */
827 <&clkc CLKID_VAPB_0>;
828 assigned-clock-rates = <0>, /* Do Nothing */
829 <666666666>,
830 <0>, /* Do Nothing */
831 <0>, /* Do Nothing */
832 <250000000>,
833 <0>; /* Do Nothing */
834};
835
Neil Armstrong48622152017-10-12 15:50:30 +0200836&saradc {
837 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
838 clocks = <&xtal>,
839 <&clkc CLKID_SAR_ADC>,
Neil Armstrong48622152017-10-12 15:50:30 +0200840 <&clkc CLKID_SAR_ADC_CLK>,
841 <&clkc CLKID_SAR_ADC_SEL>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200842 clock-names = "clkin", "core", "adc_clk", "adc_sel";
Neil Armstrong48622152017-10-12 15:50:30 +0200843};
844
845&sd_emmc_a {
846 clocks = <&clkc CLKID_SD_EMMC_A>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200847 <&clkc CLKID_SD_EMMC_A_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200848 <&clkc CLKID_FCLK_DIV2>;
849 clock-names = "core", "clkin0", "clkin1";
Loic Devulder8973d812018-11-27 17:41:18 +0100850 resets = <&reset RESET_SD_EMMC_A>;
Neil Armstrong48622152017-10-12 15:50:30 +0200851};
852
853&sd_emmc_b {
854 clocks = <&clkc CLKID_SD_EMMC_B>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200855 <&clkc CLKID_SD_EMMC_B_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200856 <&clkc CLKID_FCLK_DIV2>;
Loic Devulder8973d812018-11-27 17:41:18 +0100857 clock-names = "core", "clkin0", "clkin1";
858 resets = <&reset RESET_SD_EMMC_B>;
Neil Armstrong48622152017-10-12 15:50:30 +0200859};
860
861&sd_emmc_c {
862 clocks = <&clkc CLKID_SD_EMMC_C>,
Neil Armstrong7d750c32018-04-11 17:40:40 +0200863 <&clkc CLKID_SD_EMMC_C_CLK0>,
Neil Armstrong48622152017-10-12 15:50:30 +0200864 <&clkc CLKID_FCLK_DIV2>;
865 clock-names = "core", "clkin0", "clkin1";
Loic Devulder8973d812018-11-27 17:41:18 +0100866 resets = <&reset RESET_SD_EMMC_C>;
Neil Armstrong48622152017-10-12 15:50:30 +0200867};
868
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100869&simplefb_hdmi {
870 clocks = <&clkc CLKID_HDMI_PCLK>,
871 <&clkc CLKID_CLK81>,
872 <&clkc CLKID_GCLK_VENCI_INT0>;
873};
874
Neil Armstrong48622152017-10-12 15:50:30 +0200875&spicc {
876 clocks = <&clkc CLKID_SPICC>;
877 clock-names = "core";
878 resets = <&reset RESET_PERIPHS_SPICC>;
879 num-cs = <1>;
880};
881
882&spifc {
883 clocks = <&clkc CLKID_SPI>;
884};
885
Neil Armstrong7d750c32018-04-11 17:40:40 +0200886&uart_A {
887 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
888 clock-names = "xtal", "pclk", "baud";
889};
890
891&uart_AO {
Loic Devulder8973d812018-11-27 17:41:18 +0100892 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200893 clock-names = "xtal", "pclk", "baud";
894};
895
896&uart_AO_B {
Loic Devulder8973d812018-11-27 17:41:18 +0100897 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
Neil Armstrong7d750c32018-04-11 17:40:40 +0200898 clock-names = "xtal", "pclk", "baud";
899};
900
901&uart_B {
902 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
903 clock-names = "xtal", "pclk", "baud";
904};
905
906&uart_C {
907 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
908 clock-names = "xtal", "pclk", "baud";
909};
910
Neil Armstrong48622152017-10-12 15:50:30 +0200911&vpu {
912 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
Neil Armstrongee731352020-10-02 09:47:37 +0200913 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
Neil Armstrong48622152017-10-12 15:50:30 +0200914};
Jerome Brunetdd5f2352020-03-05 12:12:38 +0100915
916&vdec {
917 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
918 clocks = <&clkc CLKID_DOS_PARSER>,
919 <&clkc CLKID_DOS>,
920 <&clkc CLKID_VDEC_1>,
921 <&clkc CLKID_VDEC_HEVC>;
922 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
923 resets = <&reset RESET_PARSER>;
924 reset-names = "esparser";
925};