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-gxbb-gpio-intc",
304 "amlogic,meson-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_idle_high_pins: spi-idle-high-pins {
437 spi_idle_low_pins: spi-idle-low-pins {
444 spi_ss0_pins: spi-ss0 {
452 sdcard_pins: sdcard {
454 groups = "sdcard_d0",
464 groups = "sdcard_clk";
470 sdcard_clk_gate_pins: sdcard_clk_gate {
473 function = "gpio_periphs";
496 sdio_clk_gate_pins: sdio_clk_gate {
499 function = "gpio_periphs";
504 sdio_irq_pins: sdio_irq {
512 uart_a_pins: uart_a {
514 groups = "uart_tx_a",
521 uart_a_cts_rts_pins: uart_a_cts_rts {
523 groups = "uart_cts_a",
530 uart_b_pins: uart_b {
532 groups = "uart_tx_b",
539 uart_b_cts_rts_pins: uart_b_cts_rts {
541 groups = "uart_cts_b",
548 uart_c_pins: uart_c {
550 groups = "uart_tx_c",
557 uart_c_cts_rts_pins: uart_c_cts_rts {
559 groups = "uart_cts_c",
568 groups = "i2c_sck_a",
577 groups = "i2c_sck_b",
586 groups = "i2c_sck_c",
593 eth_rgmii_pins: eth-rgmii {
614 eth_rmii_pins: eth-rmii {
630 pwm_a_x_pins: pwm_a_x {
633 function = "pwm_a_x";
638 pwm_a_y_pins: pwm_a_y {
641 function = "pwm_a_y";
670 pwm_f_x_pins: pwm_f_x {
673 function = "pwm_f_x";
678 pwm_f_y_pins: pwm_f_y {
681 function = "pwm_f_y";
686 hdmi_hpd_pins: hdmi_hpd {
689 function = "hdmi_hpd";
694 hdmi_i2c_pins: hdmi_i2c {
696 groups = "hdmi_sda", "hdmi_scl";
697 function = "hdmi_i2c";
702 i2sout_ch23_y_pins: i2sout_ch23_y {
704 groups = "i2sout_ch23_y";
705 function = "i2s_out";
710 i2sout_ch45_y_pins: i2sout_ch45_y {
712 groups = "i2sout_ch45_y";
713 function = "i2s_out";
718 i2sout_ch67_y_pins: i2sout_ch67_y {
720 groups = "i2sout_ch67_y";
721 function = "i2s_out";
726 spdif_out_y_pins: spdif_out_y {
728 groups = "spdif_out_y";
729 function = "spdif_out";
737 resets = <&reset RESET_VIU>,
739 <&reset RESET_VCBUS>,
740 <&reset RESET_BT656>,
741 <&reset RESET_DVIN_RESET>,
743 <&reset RESET_VENCI>,
744 <&reset RESET_VENCP>,
747 <&reset RESET_VENCL>,
748 <&reset RESET_VID_LOCK>;
749 reset-names = "viu", "venc", "vcbus", "bt656",
750 "dvin", "rdma", "venci", "vencp",
751 "vdac", "vdi6", "vencl", "vid_lock";
752 clocks = <&clkc CLKID_VPU>,
754 clock-names = "vpu", "vapb";
756 * VPU clocking is provided by two identical clock paths
757 * VPU_0 and VPU_1 muxed to a single clock by a glitch
758 * free mux to safely change frequency while running.
759 * Same for VAPB but with a final gate after the glitch free mux.
761 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
763 <&clkc CLKID_VPU>, /* Glitch free mux */
764 <&clkc CLKID_VAPB_0_SEL>,
765 <&clkc CLKID_VAPB_0>,
766 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
767 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
768 <0>, /* Do Nothing */
770 <&clkc CLKID_FCLK_DIV4>,
771 <0>, /* Do Nothing */
772 <&clkc CLKID_VAPB_0>;
773 assigned-clock-rates = <0>, /* Do Nothing */
775 <0>, /* Do Nothing */
776 <0>, /* Do Nothing */
778 <0>; /* Do Nothing */
782 compatible = "amlogic,meson-gxbb-saradc", "amlogic,meson-saradc";
784 <&clkc CLKID_SAR_ADC>,
785 <&clkc CLKID_SAR_ADC_CLK>,
786 <&clkc CLKID_SAR_ADC_SEL>;
787 clock-names = "clkin", "core", "adc_clk", "adc_sel";
791 clocks = <&clkc CLKID_SD_EMMC_A>,
792 <&clkc CLKID_SD_EMMC_A_CLK0>,
793 <&clkc CLKID_FCLK_DIV2>;
794 clock-names = "core", "clkin0", "clkin1";
795 resets = <&reset RESET_SD_EMMC_A>;
799 clocks = <&clkc CLKID_SD_EMMC_B>,
800 <&clkc CLKID_SD_EMMC_B_CLK0>,
801 <&clkc CLKID_FCLK_DIV2>;
802 clock-names = "core", "clkin0", "clkin1";
803 resets = <&reset RESET_SD_EMMC_B>;
807 clocks = <&clkc CLKID_SD_EMMC_C>,
808 <&clkc CLKID_SD_EMMC_C_CLK0>,
809 <&clkc CLKID_FCLK_DIV2>;
810 clock-names = "core", "clkin0", "clkin1";
811 resets = <&reset RESET_SD_EMMC_C>;
815 clocks = <&clkc CLKID_HDMI_PCLK>,
817 <&clkc CLKID_GCLK_VENCI_INT0>;
821 clocks = <&clkc CLKID_SPICC>;
822 clock-names = "core";
823 resets = <&reset RESET_PERIPHS_SPICC>;
828 clocks = <&clkc CLKID_SPI>;
832 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
833 clock-names = "xtal", "pclk", "baud";
837 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
838 clock-names = "xtal", "pclk", "baud";
842 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
843 clock-names = "xtal", "pclk", "baud";
847 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
848 clock-names = "xtal", "pclk", "baud";
852 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
853 clock-names = "xtal", "pclk", "baud";
857 compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";
858 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
862 compatible = "amlogic,gxbb-vdec", "amlogic,gx-vdec";
863 clocks = <&clkc CLKID_DOS_PARSER>,
865 <&clkc CLKID_VDEC_1>,
866 <&clkc CLKID_VDEC_HEVC>;
867 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
868 resets = <&reset RESET_PARSER>;
869 reset-names = "esparser";