1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Endless Computers, Inc.
4 * Author: Carlo Caione <carlo@endlessm.com>
7 #include "meson-gx.dtsi"
8 #include <dt-bindings/clock/gxbb-clkc.h>
9 #include <dt-bindings/clock/gxbb-aoclkc.h>
10 #include <dt-bindings/gpio/meson-gxl-gpio.h>
11 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
14 compatible = "amlogic,meson-gxl";
17 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
18 secmon_reserved_alt: secmon@5000000 {
19 reg = <0x0 0x05000000 0x0 0x300000>;
26 reg = <0x0 0xc9410000 0x0 0x10000
27 0x0 0xc8834540 0x0 0x4>;
29 clocks = <&clkc CLKID_ETH>,
30 <&clkc CLKID_FCLK_DIV2>,
32 clock-names = "stmmaceth", "clkin0", "clkin1";
37 compatible = "snps,dwmac-mdio";
42 pinctrl_aobus: pinctrl@14 {
43 compatible = "amlogic,meson-gxl-aobus-pinctrl";
49 reg = <0x0 0x00014 0x0 0x8>,
50 <0x0 0x0002c 0x0 0x4>,
51 <0x0 0x00024 0x0 0x8>;
52 reg-names = "mux", "pull", "gpio";
55 gpio-ranges = <&pinctrl_aobus 0 0 14>;
58 uart_ao_a_pins: uart_ao_a {
60 groups = "uart_tx_ao_a", "uart_rx_ao_a";
65 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
67 groups = "uart_cts_ao_a",
73 uart_ao_b_pins: uart_ao_b {
75 groups = "uart_tx_ao_b", "uart_rx_ao_b";
76 function = "uart_ao_b";
80 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
82 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
83 function = "uart_ao_b";
87 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
89 groups = "uart_cts_ao_b",
91 function = "uart_ao_b";
95 remote_input_ao_pins: remote_input_ao {
97 groups = "remote_input_ao";
98 function = "remote_input_ao";
102 i2c_ao_pins: i2c_ao {
104 groups = "i2c_sck_ao",
110 pwm_ao_a_3_pins: pwm_ao_a_3 {
112 groups = "pwm_ao_a_3";
113 function = "pwm_ao_a";
117 pwm_ao_a_8_pins: pwm_ao_a_8 {
119 groups = "pwm_ao_a_8";
120 function = "pwm_ao_a";
124 pwm_ao_b_pins: pwm_ao_b {
127 function = "pwm_ao_b";
131 pwm_ao_b_6_pins: pwm_ao_b_6 {
133 groups = "pwm_ao_b_6";
134 function = "pwm_ao_b";
138 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
140 groups = "i2s_out_ch23_ao";
141 function = "i2s_out_ao";
145 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
147 groups = "i2s_out_ch45_ao";
148 function = "i2s_out_ao";
152 spdif_out_ao_6_pins: spdif_out_ao_6 {
154 groups = "spdif_out_ao_6";
155 function = "spdif_out_ao";
159 spdif_out_ao_9_pins: spdif_out_ao_9 {
161 groups = "spdif_out_ao_9";
162 function = "spdif_out_ao";
166 ao_cec_pins: ao_cec {
173 ee_cec_pins: ee_cec {
183 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
184 clock-names = "core";
188 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
192 compatible = "amlogic,meson-gpio-intc",
193 "amlogic,meson-gxl-gpio-intc";
198 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
199 resets = <&reset RESET_HDMITX_CAPB3>,
200 <&reset RESET_HDMI_SYSTEM_RESET>,
201 <&reset RESET_HDMI_TX>;
202 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
203 clocks = <&clkc CLKID_HDMI_PCLK>,
205 <&clkc CLKID_GCLK_VENCI_INT0>;
206 clock-names = "isfr", "iahb", "venci";
210 clkc: clock-controller@0 {
211 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
213 reg = <0x0 0x0 0x0 0x3db>;
218 clocks = <&clkc CLKID_I2C>;
222 clocks = <&clkc CLKID_AO_I2C>;
226 clocks = <&clkc CLKID_I2C>;
230 clocks = <&clkc CLKID_I2C>;
234 pinctrl_periphs: pinctrl@4b0 {
235 compatible = "amlogic,meson-gxl-periphs-pinctrl";
236 #address-cells = <2>;
241 reg = <0x0 0x004b0 0x0 0x28>,
242 <0x0 0x004e8 0x0 0x14>,
243 <0x0 0x00520 0x0 0x14>,
244 <0x0 0x00430 0x0 0x40>;
245 reg-names = "mux", "pull", "pull-enable", "gpio";
248 gpio-ranges = <&pinctrl_periphs 0 0 100>;
253 groups = "emmc_nand_d07",
260 emmc_ds_pins: emmc-ds {
267 emmc_clk_gate_pins: emmc_clk_gate {
270 function = "gpio_periphs";
297 spi_ss0_pins: spi-ss0 {
304 sdcard_pins: sdcard {
306 groups = "sdcard_d0",
316 sdcard_clk_gate_pins: sdcard_clk_gate {
319 function = "gpio_periphs";
339 sdio_clk_gate_pins: sdio_clk_gate {
342 function = "gpio_periphs";
350 sdio_irq_pins: sdio_irq {
357 uart_a_pins: uart_a {
359 groups = "uart_tx_a",
365 uart_a_cts_rts_pins: uart_a_cts_rts {
367 groups = "uart_cts_a",
373 uart_b_pins: uart_b {
375 groups = "uart_tx_b",
381 uart_b_cts_rts_pins: uart_b_cts_rts {
383 groups = "uart_cts_b",
389 uart_c_pins: uart_c {
391 groups = "uart_tx_c",
397 uart_c_cts_rts_pins: uart_c_cts_rts {
399 groups = "uart_cts_c",
407 groups = "i2c_sck_a",
415 groups = "i2c_sck_b",
423 groups = "i2c_sck_c",
449 eth_link_led_pins: eth_link_led {
451 groups = "eth_link_led";
452 function = "eth_led";
456 eth_act_led_pins: eth_act_led {
458 groups = "eth_act_led";
459 function = "eth_led";
498 pwm_f_clk_pins: pwm_f_clk {
500 groups = "pwm_f_clk";
505 pwm_f_x_pins: pwm_f_x {
512 hdmi_hpd_pins: hdmi_hpd {
515 function = "hdmi_hpd";
519 hdmi_i2c_pins: hdmi_i2c {
521 groups = "hdmi_sda", "hdmi_scl";
522 function = "hdmi_i2c";
526 i2s_am_clk_pins: i2s_am_clk {
528 groups = "i2s_am_clk";
529 function = "i2s_out";
533 i2s_out_ao_clk_pins: i2s_out_ao_clk {
535 groups = "i2s_out_ao_clk";
536 function = "i2s_out";
540 i2s_out_lr_clk_pins: i2s_out_lr_clk {
542 groups = "i2s_out_lr_clk";
543 function = "i2s_out";
547 i2s_out_ch01_pins: i2s_out_ch01 {
549 groups = "i2s_out_ch01";
550 function = "i2s_out";
553 i2sout_ch23_z_pins: i2sout_ch23_z {
555 groups = "i2sout_ch23_z";
556 function = "i2s_out";
560 i2sout_ch45_z_pins: i2sout_ch45_z {
562 groups = "i2sout_ch45_z";
563 function = "i2s_out";
567 i2sout_ch67_z_pins: i2sout_ch67_z {
569 groups = "i2sout_ch67_z";
570 function = "i2s_out";
574 spdif_out_h_pins: spdif_out_ao_h {
576 groups = "spdif_out_h";
577 function = "spdif_out";
583 compatible = "mdio-mux-mmioreg", "mdio-mux";
584 #address-cells = <1>;
586 reg = <0x0 0x55c 0x0 0x4>;
587 mux-mask = <0xffffffff>;
588 mdio-parent-bus = <&mdio0>;
590 internal_mdio: mdio@e40908ff {
592 #address-cells = <1>;
595 internal_phy: ethernet-phy@8 {
596 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
597 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
603 external_mdio: mdio@2009087f {
605 #address-cells = <1>;
612 resets = <&reset RESET_VIU>,
614 <&reset RESET_VCBUS>,
615 <&reset RESET_BT656>,
616 <&reset RESET_DVIN_RESET>,
618 <&reset RESET_VENCI>,
619 <&reset RESET_VENCP>,
622 <&reset RESET_VENCL>,
623 <&reset RESET_VID_LOCK>;
624 clocks = <&clkc CLKID_VPU>,
626 clock-names = "vpu", "vapb";
628 * VPU clocking is provided by two identical clock paths
629 * VPU_0 and VPU_1 muxed to a single clock by a glitch
630 * free mux to safely change frequency while running.
631 * Same for VAPB but with a final gate after the glitch free mux.
633 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
635 <&clkc CLKID_VPU>, /* Glitch free mux */
636 <&clkc CLKID_VAPB_0_SEL>,
637 <&clkc CLKID_VAPB_0>,
638 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
639 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
640 <0>, /* Do Nothing */
642 <&clkc CLKID_FCLK_DIV4>,
643 <0>, /* Do Nothing */
644 <&clkc CLKID_VAPB_0>;
645 assigned-clock-rates = <0>, /* Do Nothing */
647 <0>, /* Do Nothing */
648 <0>, /* Do Nothing */
650 <0>; /* Do Nothing */
654 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
656 <&clkc CLKID_SAR_ADC>,
657 <&clkc CLKID_SAR_ADC_CLK>,
658 <&clkc CLKID_SAR_ADC_SEL>;
659 clock-names = "clkin", "core", "adc_clk", "adc_sel";
663 clocks = <&clkc CLKID_SD_EMMC_A>,
664 <&clkc CLKID_SD_EMMC_A_CLK0>,
665 <&clkc CLKID_FCLK_DIV2>;
666 clock-names = "core", "clkin0", "clkin1";
670 clocks = <&clkc CLKID_SD_EMMC_B>,
671 <&clkc CLKID_SD_EMMC_B_CLK0>,
672 <&clkc CLKID_FCLK_DIV2>;
673 clock-names = "core", "clkin0", "clkin1";
677 clocks = <&clkc CLKID_SD_EMMC_C>,
678 <&clkc CLKID_SD_EMMC_C_CLK0>,
679 <&clkc CLKID_FCLK_DIV2>;
680 clock-names = "core", "clkin0", "clkin1";
684 clocks = <&clkc CLKID_SPICC>;
685 clock-names = "core";
686 resets = <&reset RESET_PERIPHS_SPICC>;
691 clocks = <&clkc CLKID_SPI>;
695 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
696 clock-names = "xtal", "pclk", "baud";
700 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
701 clock-names = "xtal", "pclk", "baud";
705 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
706 clock-names = "xtal", "pclk", "baud";
710 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
711 clock-names = "xtal", "pclk", "baud";
715 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
716 clock-names = "xtal", "pclk", "baud";
720 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
721 power-domains = <&pwrc_vpu>;