1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
6 #include "meson-gx.dtsi"
7 #include "meson-gx-mali450.dtsi"
8 #include <dt-bindings/gpio/meson-gxbb-gpio.h>
9 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
10 #include <dt-bindings/clock/gxbb-clkc.h>
11 #include <dt-bindings/clock/gxbb-aoclkc.h>
12 #include <dt-bindings/reset/gxbb-aoclkc.h>
15 compatible = "amlogic,meson-gxbb";
18 usb0_phy: phy@c0000000 {
19 compatible = "amlogic,meson-gxbb-usb2-phy";
21 reg = <0x0 0xc0000000 0x0 0x20>;
22 resets = <&reset RESET_USB_OTG>;
23 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
24 clock-names = "usb_general", "usb";
28 usb1_phy: phy@c0000020 {
29 compatible = "amlogic,meson-gxbb-usb2-phy";
31 reg = <0x0 0xc0000020 0x0 0x20>;
32 resets = <&reset RESET_USB_OTG>;
33 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
34 clock-names = "usb_general", "usb";
39 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
40 reg = <0x0 0xc9000000 0x0 0x40000>;
41 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
42 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
45 phy-names = "usb2-phy";
51 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
52 reg = <0x0 0xc9100000 0x0 0x40000>;
53 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
54 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
57 phy-names = "usb2-phy";
65 compatible = "amlogic,aiu-gxbb", "amlogic,aiu";
66 clocks = <&clkc CLKID_AIU_GLUE>,
67 <&clkc CLKID_I2S_OUT>,
68 <&clkc CLKID_AOCLK_GATE>,
69 <&clkc CLKID_CTS_AMCLK>,
70 <&clkc CLKID_MIXER_IFACE>,
72 <&clkc CLKID_IEC958_GATE>,
73 <&clkc CLKID_CTS_MCLK_I958>,
74 <&clkc CLKID_CTS_I958>;
84 resets = <&reset RESET_AIU>;
88 pinctrl_aobus: pinctrl@14 {
89 compatible = "amlogic,meson-gxbb-aobus-pinctrl";
95 reg = <0x0 0x00014 0x0 0x8>,
96 <0x0 0x0002c 0x0 0x4>,
97 <0x0 0x00024 0x0 0x8>;
98 reg-names = "mux", "pull", "gpio";
101 gpio-ranges = <&pinctrl_aobus 0 0 14>;
104 uart_ao_a_pins: uart_ao_a {
106 groups = "uart_tx_ao_a", "uart_rx_ao_a";
107 function = "uart_ao";
112 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
114 groups = "uart_cts_ao_a",
116 function = "uart_ao";
121 uart_ao_b_pins: uart_ao_b {
123 groups = "uart_tx_ao_b", "uart_rx_ao_b";
124 function = "uart_ao_b";
129 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
131 groups = "uart_cts_ao_b",
133 function = "uart_ao_b";
138 remote_input_ao_pins: remote_input_ao {
140 groups = "remote_input_ao";
141 function = "remote_input_ao";
146 i2c_ao_pins: i2c_ao {
148 groups = "i2c_sck_ao",
155 pwm_ao_a_3_pins: pwm_ao_a_3 {
157 groups = "pwm_ao_a_3";
158 function = "pwm_ao_a_3";
163 pwm_ao_a_6_pins: pwm_ao_a_6 {
165 groups = "pwm_ao_a_6";
166 function = "pwm_ao_a_6";
171 pwm_ao_a_12_pins: pwm_ao_a_12 {
173 groups = "pwm_ao_a_12";
174 function = "pwm_ao_a_12";
179 pwm_ao_b_pins: pwm_ao_b {
182 function = "pwm_ao_b";
187 i2s_am_clk_pins: i2s_am_clk {
189 groups = "i2s_am_clk";
190 function = "i2s_out_ao";
195 i2s_out_ao_clk_pins: i2s_out_ao_clk {
197 groups = "i2s_out_ao_clk";
198 function = "i2s_out_ao";
203 i2s_out_lr_clk_pins: i2s_out_lr_clk {
205 groups = "i2s_out_lr_clk";
206 function = "i2s_out_ao";
211 i2s_out_ch01_ao_pins: i2s_out_ch01_ao {
213 groups = "i2s_out_ch01_ao";
214 function = "i2s_out_ao";
219 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
221 groups = "i2s_out_ch23_ao";
222 function = "i2s_out_ao";
227 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
229 groups = "i2s_out_ch45_ao";
230 function = "i2s_out_ao";
235 spdif_out_ao_6_pins: spdif_out_ao_6 {
237 groups = "spdif_out_ao_6";
238 function = "spdif_out_ao";
242 spdif_out_ao_13_pins: spdif_out_ao_13 {
244 groups = "spdif_out_ao_13";
245 function = "spdif_out_ao";
250 ao_cec_pins: ao_cec {
258 ee_cec_pins: ee_cec {
270 compatible = "amlogic,meson-gxbb-spifc";
271 reg = <0x0 0x08c80 0x0 0x80>;
272 #address-cells = <1>;
274 clocks = <&clkc CLKID_SPI>;
280 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
281 clock-names = "core";
285 compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";
286 clocks = <&xtal>, <&clkc CLKID_CLK81>;
287 clock-names = "xtal", "mpeg-clk";
291 clocks = <&clkc CLKID_EFUSE>;
295 clocks = <&clkc CLKID_ETH>,
296 <&clkc CLKID_FCLK_DIV2>,
298 <&clkc CLKID_FCLK_DIV2>;
299 clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
303 compatible = "amlogic,meson-gpio-intc",
304 "amlogic,meson-gxbb-gpio-intc";
309 compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
310 resets = <&reset RESET_HDMITX_CAPB3>,
311 <&reset RESET_HDMI_SYSTEM_RESET>,
312 <&reset RESET_HDMI_TX>;
313 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
314 clocks = <&clkc CLKID_HDMI_PCLK>,
316 <&clkc CLKID_GCLK_VENCI_INT0>;
317 clock-names = "isfr", "iahb", "venci";
321 clkc: clock-controller {
322 compatible = "amlogic,gxbb-clkc";
325 clock-names = "xtal";
330 clocks = <&clkc CLKID_RNG0>;
331 clock-names = "core";
335 clocks = <&clkc CLKID_I2C>;
339 clocks = <&clkc CLKID_AO_I2C>;
343 clocks = <&clkc CLKID_I2C>;
347 clocks = <&clkc CLKID_I2C>;
351 compatible = "amlogic,meson-gxbb-mali", "arm,mali-450";
353 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
354 clock-names = "bus", "core";
356 assigned-clocks = <&clkc CLKID_GP0_PLL>;
357 assigned-clock-rates = <744000000>;
361 pinctrl_periphs: pinctrl@4b0 {
362 compatible = "amlogic,meson-gxbb-periphs-pinctrl";
363 #address-cells = <2>;
368 reg = <0x0 0x004b0 0x0 0x28>,
369 <0x0 0x004e8 0x0 0x14>,
370 <0x0 0x00520 0x0 0x14>,
371 <0x0 0x00430 0x0 0x40>;
372 reg-names = "mux", "pull", "pull-enable", "gpio";
375 gpio-ranges = <&pinctrl_periphs 0 0 119>;
380 groups = "emmc_nand_d07",
393 emmc_ds_pins: emmc-ds {
401 emmc_clk_gate_pins: emmc_clk_gate {
404 function = "gpio_periphs";
430 spi_ss0_pins: spi-ss0 {
438 sdcard_pins: sdcard {
440 groups = "sdcard_d0",
450 groups = "sdcard_clk";
456 sdcard_clk_gate_pins: sdcard_clk_gate {
459 function = "gpio_periphs";
482 sdio_clk_gate_pins: sdio_clk_gate {
485 function = "gpio_periphs";
490 sdio_irq_pins: sdio_irq {
498 uart_a_pins: uart_a {
500 groups = "uart_tx_a",
507 uart_a_cts_rts_pins: uart_a_cts_rts {
509 groups = "uart_cts_a",
516 uart_b_pins: uart_b {
518 groups = "uart_tx_b",
525 uart_b_cts_rts_pins: uart_b_cts_rts {
527 groups = "uart_cts_b",
534 uart_c_pins: uart_c {
536 groups = "uart_tx_c",
543 uart_c_cts_rts_pins: uart_c_cts_rts {
545 groups = "uart_cts_c",
554 groups = "i2c_sck_a",
563 groups = "i2c_sck_b",
572 groups = "i2c_sck_c",
579 eth_rgmii_pins: eth-rgmii {
600 eth_rmii_pins: eth-rmii {
616 pwm_a_x_pins: pwm_a_x {
619 function = "pwm_a_x";
624 pwm_a_y_pins: pwm_a_y {
627 function = "pwm_a_y";
656 pwm_f_x_pins: pwm_f_x {
659 function = "pwm_f_x";
664 pwm_f_y_pins: pwm_f_y {
667 function = "pwm_f_y";
672 hdmi_hpd_pins: hdmi_hpd {
675 function = "hdmi_hpd";
680 hdmi_i2c_pins: hdmi_i2c {
682 groups = "hdmi_sda", "hdmi_scl";
683 function = "hdmi_i2c";
688 i2sout_ch23_y_pins: i2sout_ch23_y {
690 groups = "i2sout_ch23_y";
691 function = "i2s_out";
696 i2sout_ch45_y_pins: i2sout_ch45_y {
698 groups = "i2sout_ch45_y";
699 function = "i2s_out";
704 i2sout_ch67_y_pins: i2sout_ch67_y {
706 groups = "i2sout_ch67_y";
707 function = "i2s_out";
712 spdif_out_y_pins: spdif_out_y {
714 groups = "spdif_out_y";
715 function = "spdif_out";
723 resets = <&reset RESET_VIU>,
725 <&reset RESET_VCBUS>,
726 <&reset RESET_BT656>,
727 <&reset RESET_DVIN_RESET>,
729 <&reset RESET_VENCI>,
730 <&reset RESET_VENCP>,
733 <&reset RESET_VENCL>,
734 <&reset RESET_VID_LOCK>;
735 reset-names = "viu", "venc", "vcbus", "bt656",
736 "dvin", "rdma", "venci", "vencp",
737 "vdac", "vdi6", "vencl", "vid_lock";
738 clocks = <&clkc CLKID_VPU>,
740 clock-names = "vpu", "vapb";
742 * VPU clocking is provided by two identical clock paths
743 * VPU_0 and VPU_1 muxed to a single clock by a glitch
744 * free mux to safely change frequency while running.
745 * Same for VAPB but with a final gate after the glitch free mux.
747 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
749 <&clkc CLKID_VPU>, /* Glitch free mux */
750 <&clkc CLKID_VAPB_0_SEL>,
751 <&clkc CLKID_VAPB_0>,
752 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
753 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
754 <0>, /* Do Nothing */
756 <&clkc CLKID_FCLK_DIV4>,
757 <0>, /* Do Nothing */
758 <&clkc CLKID_VAPB_0>;
759 assigned-clock-rates = <0>, /* Do Nothing */
761 <0>, /* Do Nothing */
762 <0>, /* Do Nothing */
764 <0>; /* Do Nothing */
768 compatible = "amlogic,meson-gxbb-saradc", "amlogic,meson-saradc";
770 <&clkc CLKID_SAR_ADC>,
771 <&clkc CLKID_SAR_ADC_CLK>,
772 <&clkc CLKID_SAR_ADC_SEL>;
773 clock-names = "clkin", "core", "adc_clk", "adc_sel";
777 clocks = <&clkc CLKID_SD_EMMC_A>,
778 <&clkc CLKID_SD_EMMC_A_CLK0>,
779 <&clkc CLKID_FCLK_DIV2>;
780 clock-names = "core", "clkin0", "clkin1";
781 resets = <&reset RESET_SD_EMMC_A>;
785 clocks = <&clkc CLKID_SD_EMMC_B>,
786 <&clkc CLKID_SD_EMMC_B_CLK0>,
787 <&clkc CLKID_FCLK_DIV2>;
788 clock-names = "core", "clkin0", "clkin1";
789 resets = <&reset RESET_SD_EMMC_B>;
793 clocks = <&clkc CLKID_SD_EMMC_C>,
794 <&clkc CLKID_SD_EMMC_C_CLK0>,
795 <&clkc CLKID_FCLK_DIV2>;
796 clock-names = "core", "clkin0", "clkin1";
797 resets = <&reset RESET_SD_EMMC_C>;
801 clocks = <&clkc CLKID_HDMI_PCLK>,
803 <&clkc CLKID_GCLK_VENCI_INT0>;
807 clocks = <&clkc CLKID_SPICC>;
808 clock-names = "core";
809 resets = <&reset RESET_PERIPHS_SPICC>;
814 clocks = <&clkc CLKID_SPI>;
818 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
819 clock-names = "xtal", "pclk", "baud";
823 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
824 clock-names = "xtal", "pclk", "baud";
828 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
829 clock-names = "xtal", "pclk", "baud";
833 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
834 clock-names = "xtal", "pclk", "baud";
838 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
839 clock-names = "xtal", "pclk", "baud";
843 compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";
844 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
848 compatible = "amlogic,gxbb-vdec", "amlogic,gx-vdec";
849 clocks = <&clkc CLKID_DOS_PARSER>,
851 <&clkc CLKID_VDEC_1>,
852 <&clkc CLKID_VDEC_HEVC>;
853 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
854 resets = <&reset RESET_PARSER>;
855 reset-names = "esparser";