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";
19 compatible = "amlogic,meson-gxl-dwc3";
24 clocks = <&clkc CLKID_USB>;
25 clock-names = "usb_general";
26 resets = <&reset RESET_USB_OTG>;
27 reset-names = "usb_otg";
30 compatible = "snps,dwc3";
31 reg = <0x0 0xc9000000 0x0 0x100000>;
32 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
34 maximum-speed = "high-speed";
35 snps,dis_u2_susphy_quirk;
36 phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>;
43 usb2_phy0: phy@78000 {
44 compatible = "amlogic,meson-gxl-usb2-phy";
46 reg = <0x0 0x78000 0x0 0x20>;
47 clocks = <&clkc CLKID_USB>;
49 resets = <&reset RESET_USB_OTG>;
54 usb2_phy1: phy@78020 {
55 compatible = "amlogic,meson-gxl-usb2-phy";
57 reg = <0x0 0x78020 0x0 0x20>;
58 clocks = <&clkc CLKID_USB>;
60 resets = <&reset RESET_USB_OTG>;
66 compatible = "amlogic,meson-gxl-usb3-phy";
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";
79 clocks = <&clkc CLKID_EFUSE>;
83 clocks = <&clkc CLKID_ETH>,
84 <&clkc CLKID_FCLK_DIV2>,
86 clock-names = "stmmaceth", "clkin0", "clkin1";
91 compatible = "snps,dwmac-mdio";
96 pinctrl_aobus: pinctrl@14 {
97 compatible = "amlogic,meson-gxl-aobus-pinctrl";
103 reg = <0x0 0x00014 0x0 0x8>,
104 <0x0 0x0002c 0x0 0x4>,
105 <0x0 0x00024 0x0 0x8>;
106 reg-names = "mux", "pull", "gpio";
109 gpio-ranges = <&pinctrl_aobus 0 0 14>;
112 uart_ao_a_pins: uart_ao_a {
114 groups = "uart_tx_ao_a", "uart_rx_ao_a";
115 function = "uart_ao";
120 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
122 groups = "uart_cts_ao_a",
124 function = "uart_ao";
129 uart_ao_b_pins: uart_ao_b {
131 groups = "uart_tx_ao_b", "uart_rx_ao_b";
132 function = "uart_ao_b";
137 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
139 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
140 function = "uart_ao_b";
145 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
147 groups = "uart_cts_ao_b",
149 function = "uart_ao_b";
154 remote_input_ao_pins: remote_input_ao {
156 groups = "remote_input_ao";
157 function = "remote_input_ao";
162 i2c_ao_pins: i2c_ao {
164 groups = "i2c_sck_ao",
171 pwm_ao_a_3_pins: pwm_ao_a_3 {
173 groups = "pwm_ao_a_3";
174 function = "pwm_ao_a";
179 pwm_ao_a_8_pins: pwm_ao_a_8 {
181 groups = "pwm_ao_a_8";
182 function = "pwm_ao_a";
187 pwm_ao_b_pins: pwm_ao_b {
190 function = "pwm_ao_b";
195 pwm_ao_b_6_pins: pwm_ao_b_6 {
197 groups = "pwm_ao_b_6";
198 function = "pwm_ao_b";
203 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
205 groups = "i2s_out_ch23_ao";
206 function = "i2s_out_ao";
211 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
213 groups = "i2s_out_ch45_ao";
214 function = "i2s_out_ao";
219 spdif_out_ao_6_pins: spdif_out_ao_6 {
221 groups = "spdif_out_ao_6";
222 function = "spdif_out_ao";
227 spdif_out_ao_9_pins: spdif_out_ao_9 {
229 groups = "spdif_out_ao_9";
230 function = "spdif_out_ao";
235 ao_cec_pins: ao_cec {
243 ee_cec_pins: ee_cec {
254 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
255 clock-names = "core";
259 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
260 clocks = <&xtal>, <&clkc CLKID_CLK81>;
261 clock-names = "xtal", "mpeg-clk";
265 compatible = "amlogic,meson-gpio-intc",
266 "amlogic,meson-gxl-gpio-intc";
271 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
272 resets = <&reset RESET_HDMITX_CAPB3>,
273 <&reset RESET_HDMI_SYSTEM_RESET>,
274 <&reset RESET_HDMI_TX>;
275 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
276 clocks = <&clkc CLKID_HDMI_PCLK>,
278 <&clkc CLKID_GCLK_VENCI_INT0>;
279 clock-names = "isfr", "iahb", "venci";
283 clkc: clock-controller {
284 compatible = "amlogic,gxl-clkc";
287 clock-names = "xtal";
292 clocks = <&clkc CLKID_RNG0>;
293 clock-names = "core";
297 clocks = <&clkc CLKID_I2C>;
301 clocks = <&clkc CLKID_AO_I2C>;
305 clocks = <&clkc CLKID_I2C>;
309 clocks = <&clkc CLKID_I2C>;
313 pinctrl_periphs: pinctrl@4b0 {
314 compatible = "amlogic,meson-gxl-periphs-pinctrl";
315 #address-cells = <2>;
320 reg = <0x0 0x004b0 0x0 0x28>,
321 <0x0 0x004e8 0x0 0x14>,
322 <0x0 0x00520 0x0 0x14>,
323 <0x0 0x00430 0x0 0x40>;
324 reg-names = "mux", "pull", "pull-enable", "gpio";
327 gpio-ranges = <&pinctrl_periphs 0 0 100>;
332 groups = "emmc_nand_d07",
345 emmc_ds_pins: emmc-ds {
353 emmc_clk_gate_pins: emmc_clk_gate {
356 function = "gpio_periphs";
382 spi_ss0_pins: spi-ss0 {
390 sdcard_pins: sdcard {
392 groups = "sdcard_d0",
402 groups = "sdcard_clk";
408 sdcard_clk_gate_pins: sdcard_clk_gate {
411 function = "gpio_periphs";
434 sdio_clk_gate_pins: sdio_clk_gate {
437 function = "gpio_periphs";
442 sdio_irq_pins: sdio_irq {
450 uart_a_pins: uart_a {
452 groups = "uart_tx_a",
459 uart_a_cts_rts_pins: uart_a_cts_rts {
461 groups = "uart_cts_a",
468 uart_b_pins: uart_b {
470 groups = "uart_tx_b",
477 uart_b_cts_rts_pins: uart_b_cts_rts {
479 groups = "uart_cts_b",
486 uart_c_pins: uart_c {
488 groups = "uart_tx_c",
495 uart_c_cts_rts_pins: uart_c_cts_rts {
497 groups = "uart_cts_c",
506 groups = "i2c_sck_a",
515 groups = "i2c_sck_b",
524 groups = "i2c_sck_c",
552 eth_link_led_pins: eth_link_led {
554 groups = "eth_link_led";
555 function = "eth_led";
560 eth_act_led_pins: eth_act_led {
562 groups = "eth_act_led";
563 function = "eth_led";
607 pwm_f_clk_pins: pwm_f_clk {
609 groups = "pwm_f_clk";
615 pwm_f_x_pins: pwm_f_x {
623 hdmi_hpd_pins: hdmi_hpd {
626 function = "hdmi_hpd";
631 hdmi_i2c_pins: hdmi_i2c {
633 groups = "hdmi_sda", "hdmi_scl";
634 function = "hdmi_i2c";
639 i2s_am_clk_pins: i2s_am_clk {
641 groups = "i2s_am_clk";
642 function = "i2s_out";
647 i2s_out_ao_clk_pins: i2s_out_ao_clk {
649 groups = "i2s_out_ao_clk";
650 function = "i2s_out";
655 i2s_out_lr_clk_pins: i2s_out_lr_clk {
657 groups = "i2s_out_lr_clk";
658 function = "i2s_out";
663 i2s_out_ch01_pins: i2s_out_ch01 {
665 groups = "i2s_out_ch01";
666 function = "i2s_out";
670 i2sout_ch23_z_pins: i2sout_ch23_z {
672 groups = "i2sout_ch23_z";
673 function = "i2s_out";
678 i2sout_ch45_z_pins: i2sout_ch45_z {
680 groups = "i2sout_ch45_z";
681 function = "i2s_out";
686 i2sout_ch67_z_pins: i2sout_ch67_z {
688 groups = "i2sout_ch67_z";
689 function = "i2s_out";
694 spdif_out_h_pins: spdif_out_ao_h {
696 groups = "spdif_out_h";
697 function = "spdif_out";
704 compatible = "mdio-mux-mmioreg", "mdio-mux";
705 #address-cells = <1>;
707 reg = <0x0 0x55c 0x0 0x4>;
708 mux-mask = <0xffffffff>;
709 mdio-parent-bus = <&mdio0>;
711 internal_mdio: mdio@e40908ff {
713 #address-cells = <1>;
716 internal_phy: ethernet-phy@8 {
717 compatible = "ethernet-phy-id0181.4400";
718 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
724 external_mdio: mdio@2009087f {
726 #address-cells = <1>;
733 resets = <&reset RESET_VIU>,
735 <&reset RESET_VCBUS>,
736 <&reset RESET_BT656>,
737 <&reset RESET_DVIN_RESET>,
739 <&reset RESET_VENCI>,
740 <&reset RESET_VENCP>,
743 <&reset RESET_VENCL>,
744 <&reset RESET_VID_LOCK>;
745 clocks = <&clkc CLKID_VPU>,
747 clock-names = "vpu", "vapb";
749 * VPU clocking is provided by two identical clock paths
750 * VPU_0 and VPU_1 muxed to a single clock by a glitch
751 * free mux to safely change frequency while running.
752 * Same for VAPB but with a final gate after the glitch free mux.
754 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
756 <&clkc CLKID_VPU>, /* Glitch free mux */
757 <&clkc CLKID_VAPB_0_SEL>,
758 <&clkc CLKID_VAPB_0>,
759 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
760 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
761 <0>, /* Do Nothing */
763 <&clkc CLKID_FCLK_DIV4>,
764 <0>, /* Do Nothing */
765 <&clkc CLKID_VAPB_0>;
766 assigned-clock-rates = <0>, /* Do Nothing */
768 <0>, /* Do Nothing */
769 <0>, /* Do Nothing */
771 <0>; /* Do Nothing */
775 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
777 <&clkc CLKID_SAR_ADC>,
778 <&clkc CLKID_SAR_ADC_CLK>,
779 <&clkc CLKID_SAR_ADC_SEL>;
780 clock-names = "clkin", "core", "adc_clk", "adc_sel";
784 clocks = <&clkc CLKID_SD_EMMC_A>,
785 <&clkc CLKID_SD_EMMC_A_CLK0>,
786 <&clkc CLKID_FCLK_DIV2>;
787 clock-names = "core", "clkin0", "clkin1";
788 resets = <&reset RESET_SD_EMMC_A>;
792 clocks = <&clkc CLKID_SD_EMMC_B>,
793 <&clkc CLKID_SD_EMMC_B_CLK0>,
794 <&clkc CLKID_FCLK_DIV2>;
795 clock-names = "core", "clkin0", "clkin1";
796 resets = <&reset RESET_SD_EMMC_B>;
800 clocks = <&clkc CLKID_SD_EMMC_C>,
801 <&clkc CLKID_SD_EMMC_C_CLK0>,
802 <&clkc CLKID_FCLK_DIV2>;
803 clock-names = "core", "clkin0", "clkin1";
804 resets = <&reset RESET_SD_EMMC_C>;
808 clocks = <&clkc CLKID_HDMI_PCLK>,
810 <&clkc CLKID_GCLK_VENCI_INT0>;
814 clocks = <&clkc CLKID_SPICC>;
815 clock-names = "core";
816 resets = <&reset RESET_PERIPHS_SPICC>;
821 clocks = <&clkc CLKID_SPI>;
825 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
826 clock-names = "xtal", "pclk", "baud";
830 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
831 clock-names = "xtal", "pclk", "baud";
835 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
836 clock-names = "xtal", "pclk", "baud";
840 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
841 clock-names = "xtal", "pclk", "baud";
845 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
846 clock-names = "xtal", "pclk", "baud";
850 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
851 power-domains = <&pwrc_vpu>;
855 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
856 clocks = <&clkc CLKID_DOS_PARSER>,
858 <&clkc CLKID_VDEC_1>,
859 <&clkc CLKID_VDEC_HEVC>;
860 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
861 resets = <&reset RESET_PARSER>;
862 reset-names = "esparser";