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";
18 compatible = "amlogic,meson-gxl-usb-ctrl";
19 reg = <0x0 0xd0078080 0x0 0x20>;
20 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
25 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
26 clock-names = "usb_ctrl", "ddr";
27 resets = <&reset RESET_USB_OTG>;
31 phys = <&usb2_phy0>, <&usb2_phy1>;
32 phy-names = "usb2-phy0", "usb2-phy1";
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>;
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>;
48 compatible = "snps,dwc3";
49 reg = <0x0 0xc9000000 0x0 0x100000>;
50 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
52 maximum-speed = "high-speed";
53 snps,dis_u2_susphy_quirk;
57 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>;
64 resets = <&reset RESET_ACODEC>;
68 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";
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>,
88 <&clkc CLKID_IEC958_GATE>,
89 <&clkc CLKID_CTS_MCLK_I958>,
90 <&clkc CLKID_CTS_I958>;
100 resets = <&reset RESET_AIU>;
104 usb2_phy0: phy@78000 {
105 compatible = "amlogic,meson-gxl-usb2-phy";
107 reg = <0x0 0x78000 0x0 0x20>;
108 clocks = <&clkc CLKID_USB>;
110 resets = <&reset RESET_USB_OTG>;
115 usb2_phy1: phy@78020 {
116 compatible = "amlogic,meson-gxl-usb2-phy";
118 reg = <0x0 0x78020 0x0 0x20>;
119 clocks = <&clkc CLKID_USB>;
121 resets = <&reset RESET_USB_OTG>;
128 clocks = <&clkc CLKID_EFUSE>;
132 clocks = <&clkc CLKID_ETH>,
133 <&clkc CLKID_FCLK_DIV2>,
135 <&clkc CLKID_FCLK_DIV2>;
136 clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
139 #address-cells = <1>;
141 compatible = "snps,dwmac-mdio";
146 pinctrl_aobus: pinctrl@14 {
147 compatible = "amlogic,meson-gxl-aobus-pinctrl";
148 #address-cells = <2>;
153 reg = <0x0 0x00014 0x0 0x8>,
154 <0x0 0x0002c 0x0 0x4>,
155 <0x0 0x00024 0x0 0x8>;
156 reg-names = "mux", "pull", "gpio";
159 gpio-ranges = <&pinctrl_aobus 0 0 14>;
162 uart_ao_a_pins: uart_ao_a {
164 groups = "uart_tx_ao_a", "uart_rx_ao_a";
165 function = "uart_ao";
170 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
172 groups = "uart_cts_ao_a",
174 function = "uart_ao";
179 uart_ao_b_pins: uart_ao_b {
181 groups = "uart_tx_ao_b", "uart_rx_ao_b";
182 function = "uart_ao_b";
187 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
189 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
190 function = "uart_ao_b";
195 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
197 groups = "uart_cts_ao_b",
199 function = "uart_ao_b";
204 remote_input_ao_pins: remote_input_ao {
206 groups = "remote_input_ao";
207 function = "remote_input_ao";
212 i2c_ao_pins: i2c_ao {
214 groups = "i2c_sck_ao",
221 pwm_ao_a_3_pins: pwm_ao_a_3 {
223 groups = "pwm_ao_a_3";
224 function = "pwm_ao_a";
229 pwm_ao_a_8_pins: pwm_ao_a_8 {
231 groups = "pwm_ao_a_8";
232 function = "pwm_ao_a";
237 pwm_ao_b_pins: pwm_ao_b {
240 function = "pwm_ao_b";
245 pwm_ao_b_6_pins: pwm_ao_b_6 {
247 groups = "pwm_ao_b_6";
248 function = "pwm_ao_b";
253 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
255 groups = "i2s_out_ch23_ao";
256 function = "i2s_out_ao";
261 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
263 groups = "i2s_out_ch45_ao";
264 function = "i2s_out_ao";
269 spdif_out_ao_6_pins: spdif_out_ao_6 {
271 groups = "spdif_out_ao_6";
272 function = "spdif_out_ao";
277 spdif_out_ao_9_pins: spdif_out_ao_9 {
279 groups = "spdif_out_ao_9";
280 function = "spdif_out_ao";
285 ao_cec_pins: ao_cec {
293 ee_cec_pins: ee_cec {
304 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
305 clock-names = "core";
309 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
310 clocks = <&xtal>, <&clkc CLKID_CLK81>;
311 clock-names = "xtal", "mpeg-clk";
315 compatible = "amlogic,meson-gpio-intc",
316 "amlogic,meson-gxl-gpio-intc";
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>,
328 <&clkc CLKID_GCLK_VENCI_INT0>;
329 clock-names = "isfr", "iahb", "venci";
333 clkc: clock-controller {
334 compatible = "amlogic,gxl-clkc";
337 clock-names = "xtal";
342 clocks = <&clkc CLKID_RNG0>;
343 clock-names = "core";
347 clocks = <&clkc CLKID_I2C>;
351 clocks = <&clkc CLKID_AO_I2C>;
355 clocks = <&clkc CLKID_I2C>;
359 clocks = <&clkc CLKID_I2C>;
363 pinctrl_periphs: pinctrl@4b0 {
364 compatible = "amlogic,meson-gxl-periphs-pinctrl";
365 #address-cells = <2>;
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";
377 gpio-ranges = <&pinctrl_periphs 0 0 100>;
382 groups = "emmc_nand_d07",
395 emmc_ds_pins: emmc-ds {
403 emmc_clk_gate_pins: emmc_clk_gate {
406 function = "gpio_periphs";
432 spi_ss0_pins: spi-ss0 {
440 sdcard_pins: sdcard {
442 groups = "sdcard_d0",
452 groups = "sdcard_clk";
458 sdcard_clk_gate_pins: sdcard_clk_gate {
461 function = "gpio_periphs";
484 sdio_clk_gate_pins: sdio_clk_gate {
487 function = "gpio_periphs";
492 sdio_irq_pins: sdio_irq {
500 uart_a_pins: uart_a {
502 groups = "uart_tx_a",
509 uart_a_cts_rts_pins: uart_a_cts_rts {
511 groups = "uart_cts_a",
518 uart_b_pins: uart_b {
520 groups = "uart_tx_b",
527 uart_b_cts_rts_pins: uart_b_cts_rts {
529 groups = "uart_cts_b",
536 uart_c_pins: uart_c {
538 groups = "uart_tx_c",
545 uart_c_cts_rts_pins: uart_c_cts_rts {
547 groups = "uart_cts_c",
556 groups = "i2c_sck_a",
565 groups = "i2c_sck_b",
574 groups = "i2c_sck_c",
581 i2c_c_dv18_pins: i2c_c_dv18 {
583 groups = "i2c_sck_c_dv19",
611 eth_link_led_pins: eth_link_led {
613 groups = "eth_link_led";
614 function = "eth_led";
619 eth_act_led_pins: eth_act_led {
621 groups = "eth_act_led";
622 function = "eth_led";
666 pwm_f_clk_pins: pwm_f_clk {
668 groups = "pwm_f_clk";
674 pwm_f_x_pins: pwm_f_x {
682 hdmi_hpd_pins: hdmi_hpd {
685 function = "hdmi_hpd";
690 hdmi_i2c_pins: hdmi_i2c {
692 groups = "hdmi_sda", "hdmi_scl";
693 function = "hdmi_i2c";
698 i2s_am_clk_pins: i2s_am_clk {
700 groups = "i2s_am_clk";
701 function = "i2s_out";
706 i2s_out_ao_clk_pins: i2s_out_ao_clk {
708 groups = "i2s_out_ao_clk";
709 function = "i2s_out";
714 i2s_out_lr_clk_pins: i2s_out_lr_clk {
716 groups = "i2s_out_lr_clk";
717 function = "i2s_out";
722 i2s_out_ch01_pins: i2s_out_ch01 {
724 groups = "i2s_out_ch01";
725 function = "i2s_out";
729 i2sout_ch23_z_pins: i2sout_ch23_z {
731 groups = "i2sout_ch23_z";
732 function = "i2s_out";
737 i2sout_ch45_z_pins: i2sout_ch45_z {
739 groups = "i2sout_ch45_z";
740 function = "i2s_out";
745 i2sout_ch67_z_pins: i2sout_ch67_z {
747 groups = "i2sout_ch67_z";
748 function = "i2s_out";
753 spdif_out_h_pins: spdif_out_ao_h {
755 groups = "spdif_out_h";
756 function = "spdif_out";
763 compatible = "mdio-mux-mmioreg", "mdio-mux";
764 #address-cells = <1>;
766 reg = <0x0 0x55c 0x0 0x4>;
767 mux-mask = <0xffffffff>;
768 mdio-parent-bus = <&mdio0>;
770 internal_mdio: mdio@e40908ff {
772 #address-cells = <1>;
775 internal_phy: ethernet-phy@8 {
776 compatible = "ethernet-phy-id0181.4400";
777 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
783 external_mdio: mdio@2009087f {
785 #address-cells = <1>;
792 resets = <&reset RESET_VIU>,
794 <&reset RESET_VCBUS>,
795 <&reset RESET_BT656>,
796 <&reset RESET_DVIN_RESET>,
798 <&reset RESET_VENCI>,
799 <&reset RESET_VENCP>,
802 <&reset RESET_VENCL>,
803 <&reset RESET_VID_LOCK>;
804 reset-names = "viu", "venc", "vcbus", "bt656",
805 "dvin", "rdma", "venci", "vencp",
806 "vdac", "vdi6", "vencl", "vid_lock";
807 clocks = <&clkc CLKID_VPU>,
809 clock-names = "vpu", "vapb";
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.
816 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
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 */
825 <&clkc CLKID_FCLK_DIV4>,
826 <0>, /* Do Nothing */
827 <&clkc CLKID_VAPB_0>;
828 assigned-clock-rates = <0>, /* Do Nothing */
830 <0>, /* Do Nothing */
831 <0>, /* Do Nothing */
833 <0>; /* Do Nothing */
837 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
839 <&clkc CLKID_SAR_ADC>,
840 <&clkc CLKID_SAR_ADC_CLK>,
841 <&clkc CLKID_SAR_ADC_SEL>;
842 clock-names = "clkin", "core", "adc_clk", "adc_sel";
846 clocks = <&clkc CLKID_SD_EMMC_A>,
847 <&clkc CLKID_SD_EMMC_A_CLK0>,
848 <&clkc CLKID_FCLK_DIV2>;
849 clock-names = "core", "clkin0", "clkin1";
850 resets = <&reset RESET_SD_EMMC_A>;
854 clocks = <&clkc CLKID_SD_EMMC_B>,
855 <&clkc CLKID_SD_EMMC_B_CLK0>,
856 <&clkc CLKID_FCLK_DIV2>;
857 clock-names = "core", "clkin0", "clkin1";
858 resets = <&reset RESET_SD_EMMC_B>;
862 clocks = <&clkc CLKID_SD_EMMC_C>,
863 <&clkc CLKID_SD_EMMC_C_CLK0>,
864 <&clkc CLKID_FCLK_DIV2>;
865 clock-names = "core", "clkin0", "clkin1";
866 resets = <&reset RESET_SD_EMMC_C>;
870 clocks = <&clkc CLKID_HDMI_PCLK>,
872 <&clkc CLKID_GCLK_VENCI_INT0>;
876 clocks = <&clkc CLKID_SPICC>;
877 clock-names = "core";
878 resets = <&reset RESET_PERIPHS_SPICC>;
883 clocks = <&clkc CLKID_SPI>;
887 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
888 clock-names = "xtal", "pclk", "baud";
892 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
893 clock-names = "xtal", "pclk", "baud";
897 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
898 clock-names = "xtal", "pclk", "baud";
902 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
903 clock-names = "xtal", "pclk", "baud";
907 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
908 clock-names = "xtal", "pclk", "baud";
912 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
913 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
917 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
918 clocks = <&clkc CLKID_DOS_PARSER>,
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";