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_I2C>;
296 clocks = <&clkc CLKID_AO_I2C>;
300 clocks = <&clkc CLKID_I2C>;
304 clocks = <&clkc CLKID_I2C>;
308 pinctrl_periphs: pinctrl@4b0 {
309 compatible = "amlogic,meson-gxl-periphs-pinctrl";
310 #address-cells = <2>;
315 reg = <0x0 0x004b0 0x0 0x28>,
316 <0x0 0x004e8 0x0 0x14>,
317 <0x0 0x00520 0x0 0x14>,
318 <0x0 0x00430 0x0 0x40>;
319 reg-names = "mux", "pull", "pull-enable", "gpio";
322 gpio-ranges = <&pinctrl_periphs 0 0 100>;
327 groups = "emmc_nand_d07",
340 emmc_ds_pins: emmc-ds {
348 emmc_clk_gate_pins: emmc_clk_gate {
351 function = "gpio_periphs";
377 spi_ss0_pins: spi-ss0 {
385 sdcard_pins: sdcard {
387 groups = "sdcard_d0",
397 groups = "sdcard_clk";
403 sdcard_clk_gate_pins: sdcard_clk_gate {
406 function = "gpio_periphs";
429 sdio_clk_gate_pins: sdio_clk_gate {
432 function = "gpio_periphs";
437 sdio_irq_pins: sdio_irq {
445 uart_a_pins: uart_a {
447 groups = "uart_tx_a",
454 uart_a_cts_rts_pins: uart_a_cts_rts {
456 groups = "uart_cts_a",
463 uart_b_pins: uart_b {
465 groups = "uart_tx_b",
472 uart_b_cts_rts_pins: uart_b_cts_rts {
474 groups = "uart_cts_b",
481 uart_c_pins: uart_c {
483 groups = "uart_tx_c",
490 uart_c_cts_rts_pins: uart_c_cts_rts {
492 groups = "uart_cts_c",
501 groups = "i2c_sck_a",
510 groups = "i2c_sck_b",
519 groups = "i2c_sck_c",
547 eth_link_led_pins: eth_link_led {
549 groups = "eth_link_led";
550 function = "eth_led";
555 eth_act_led_pins: eth_act_led {
557 groups = "eth_act_led";
558 function = "eth_led";
602 pwm_f_clk_pins: pwm_f_clk {
604 groups = "pwm_f_clk";
610 pwm_f_x_pins: pwm_f_x {
618 hdmi_hpd_pins: hdmi_hpd {
621 function = "hdmi_hpd";
626 hdmi_i2c_pins: hdmi_i2c {
628 groups = "hdmi_sda", "hdmi_scl";
629 function = "hdmi_i2c";
634 i2s_am_clk_pins: i2s_am_clk {
636 groups = "i2s_am_clk";
637 function = "i2s_out";
642 i2s_out_ao_clk_pins: i2s_out_ao_clk {
644 groups = "i2s_out_ao_clk";
645 function = "i2s_out";
650 i2s_out_lr_clk_pins: i2s_out_lr_clk {
652 groups = "i2s_out_lr_clk";
653 function = "i2s_out";
658 i2s_out_ch01_pins: i2s_out_ch01 {
660 groups = "i2s_out_ch01";
661 function = "i2s_out";
665 i2sout_ch23_z_pins: i2sout_ch23_z {
667 groups = "i2sout_ch23_z";
668 function = "i2s_out";
673 i2sout_ch45_z_pins: i2sout_ch45_z {
675 groups = "i2sout_ch45_z";
676 function = "i2s_out";
681 i2sout_ch67_z_pins: i2sout_ch67_z {
683 groups = "i2sout_ch67_z";
684 function = "i2s_out";
689 spdif_out_h_pins: spdif_out_ao_h {
691 groups = "spdif_out_h";
692 function = "spdif_out";
699 compatible = "mdio-mux-mmioreg", "mdio-mux";
700 #address-cells = <1>;
702 reg = <0x0 0x55c 0x0 0x4>;
703 mux-mask = <0xffffffff>;
704 mdio-parent-bus = <&mdio0>;
706 internal_mdio: mdio@e40908ff {
708 #address-cells = <1>;
711 internal_phy: ethernet-phy@8 {
712 compatible = "ethernet-phy-id0181.4400";
713 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
719 external_mdio: mdio@2009087f {
721 #address-cells = <1>;
728 resets = <&reset RESET_VIU>,
730 <&reset RESET_VCBUS>,
731 <&reset RESET_BT656>,
732 <&reset RESET_DVIN_RESET>,
734 <&reset RESET_VENCI>,
735 <&reset RESET_VENCP>,
738 <&reset RESET_VENCL>,
739 <&reset RESET_VID_LOCK>;
740 clocks = <&clkc CLKID_VPU>,
742 clock-names = "vpu", "vapb";
744 * VPU clocking is provided by two identical clock paths
745 * VPU_0 and VPU_1 muxed to a single clock by a glitch
746 * free mux to safely change frequency while running.
747 * Same for VAPB but with a final gate after the glitch free mux.
749 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
751 <&clkc CLKID_VPU>, /* Glitch free mux */
752 <&clkc CLKID_VAPB_0_SEL>,
753 <&clkc CLKID_VAPB_0>,
754 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
755 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
756 <0>, /* Do Nothing */
758 <&clkc CLKID_FCLK_DIV4>,
759 <0>, /* Do Nothing */
760 <&clkc CLKID_VAPB_0>;
761 assigned-clock-rates = <0>, /* Do Nothing */
763 <0>, /* Do Nothing */
764 <0>, /* Do Nothing */
766 <0>; /* Do Nothing */
770 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
772 <&clkc CLKID_SAR_ADC>,
773 <&clkc CLKID_SAR_ADC_CLK>,
774 <&clkc CLKID_SAR_ADC_SEL>;
775 clock-names = "clkin", "core", "adc_clk", "adc_sel";
779 clocks = <&clkc CLKID_SD_EMMC_A>,
780 <&clkc CLKID_SD_EMMC_A_CLK0>,
781 <&clkc CLKID_FCLK_DIV2>;
782 clock-names = "core", "clkin0", "clkin1";
783 resets = <&reset RESET_SD_EMMC_A>;
787 clocks = <&clkc CLKID_SD_EMMC_B>,
788 <&clkc CLKID_SD_EMMC_B_CLK0>,
789 <&clkc CLKID_FCLK_DIV2>;
790 clock-names = "core", "clkin0", "clkin1";
791 resets = <&reset RESET_SD_EMMC_B>;
795 clocks = <&clkc CLKID_SD_EMMC_C>,
796 <&clkc CLKID_SD_EMMC_C_CLK0>,
797 <&clkc CLKID_FCLK_DIV2>;
798 clock-names = "core", "clkin0", "clkin1";
799 resets = <&reset RESET_SD_EMMC_C>;
803 clocks = <&clkc CLKID_HDMI_PCLK>,
805 <&clkc CLKID_GCLK_VENCI_INT0>;
809 clocks = <&clkc CLKID_SPICC>;
810 clock-names = "core";
811 resets = <&reset RESET_PERIPHS_SPICC>;
816 clocks = <&clkc CLKID_SPI>;
820 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
821 clock-names = "xtal", "pclk", "baud";
825 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
826 clock-names = "xtal", "pclk", "baud";
830 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
831 clock-names = "xtal", "pclk", "baud";
835 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
836 clock-names = "xtal", "pclk", "baud";
840 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
841 clock-names = "xtal", "pclk", "baud";
845 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
846 power-domains = <&pwrc_vpu>;
850 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
851 clocks = <&clkc CLKID_DOS_PARSER>,
853 <&clkc CLKID_VDEC_1>,
854 <&clkc CLKID_VDEC_HEVC>;
855 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
856 resets = <&reset RESET_PARSER>;
857 reset-names = "esparser";