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>;
40 crypto: crypto@c883e000 {
41 compatible = "amlogic,gxl-crypto";
42 reg = <0x0 0xc883e000 0x0 0x36>;
43 interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>,
44 <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
45 clocks = <&clkc CLKID_BLKMV>;
46 clock-names = "blkmv";
53 usb2_phy0: phy@78000 {
54 compatible = "amlogic,meson-gxl-usb2-phy";
56 reg = <0x0 0x78000 0x0 0x20>;
57 clocks = <&clkc CLKID_USB>;
59 resets = <&reset RESET_USB_OTG>;
64 usb2_phy1: phy@78020 {
65 compatible = "amlogic,meson-gxl-usb2-phy";
67 reg = <0x0 0x78020 0x0 0x20>;
68 clocks = <&clkc CLKID_USB>;
70 resets = <&reset RESET_USB_OTG>;
76 compatible = "amlogic,meson-gxl-usb3-phy";
78 reg = <0x0 0x78080 0x0 0x20>;
79 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
80 clocks = <&clkc CLKID_USB>, <&clkc_AO CLKID_AO_CEC_32K>;
81 clock-names = "phy", "peripheral";
82 resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>;
83 reset-names = "phy", "peripheral";
89 clocks = <&clkc CLKID_EFUSE>;
93 clocks = <&clkc CLKID_ETH>,
94 <&clkc CLKID_FCLK_DIV2>,
96 clock-names = "stmmaceth", "clkin0", "clkin1";
101 compatible = "snps,dwmac-mdio";
106 pinctrl_aobus: pinctrl@14 {
107 compatible = "amlogic,meson-gxl-aobus-pinctrl";
108 #address-cells = <2>;
113 reg = <0x0 0x00014 0x0 0x8>,
114 <0x0 0x0002c 0x0 0x4>,
115 <0x0 0x00024 0x0 0x8>;
116 reg-names = "mux", "pull", "gpio";
119 gpio-ranges = <&pinctrl_aobus 0 0 14>;
122 uart_ao_a_pins: uart_ao_a {
124 groups = "uart_tx_ao_a", "uart_rx_ao_a";
125 function = "uart_ao";
130 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
132 groups = "uart_cts_ao_a",
134 function = "uart_ao";
139 uart_ao_b_pins: uart_ao_b {
141 groups = "uart_tx_ao_b", "uart_rx_ao_b";
142 function = "uart_ao_b";
147 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
149 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
150 function = "uart_ao_b";
155 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
157 groups = "uart_cts_ao_b",
159 function = "uart_ao_b";
164 remote_input_ao_pins: remote_input_ao {
166 groups = "remote_input_ao";
167 function = "remote_input_ao";
172 i2c_ao_pins: i2c_ao {
174 groups = "i2c_sck_ao",
181 pwm_ao_a_3_pins: pwm_ao_a_3 {
183 groups = "pwm_ao_a_3";
184 function = "pwm_ao_a";
189 pwm_ao_a_8_pins: pwm_ao_a_8 {
191 groups = "pwm_ao_a_8";
192 function = "pwm_ao_a";
197 pwm_ao_b_pins: pwm_ao_b {
200 function = "pwm_ao_b";
205 pwm_ao_b_6_pins: pwm_ao_b_6 {
207 groups = "pwm_ao_b_6";
208 function = "pwm_ao_b";
213 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
215 groups = "i2s_out_ch23_ao";
216 function = "i2s_out_ao";
221 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
223 groups = "i2s_out_ch45_ao";
224 function = "i2s_out_ao";
229 spdif_out_ao_6_pins: spdif_out_ao_6 {
231 groups = "spdif_out_ao_6";
232 function = "spdif_out_ao";
237 spdif_out_ao_9_pins: spdif_out_ao_9 {
239 groups = "spdif_out_ao_9";
240 function = "spdif_out_ao";
245 ao_cec_pins: ao_cec {
253 ee_cec_pins: ee_cec {
264 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
265 clock-names = "core";
269 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
270 clocks = <&xtal>, <&clkc CLKID_CLK81>;
271 clock-names = "xtal", "mpeg-clk";
275 compatible = "amlogic,meson-gpio-intc",
276 "amlogic,meson-gxl-gpio-intc";
281 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
282 resets = <&reset RESET_HDMITX_CAPB3>,
283 <&reset RESET_HDMI_SYSTEM_RESET>,
284 <&reset RESET_HDMI_TX>;
285 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
286 clocks = <&clkc CLKID_HDMI_PCLK>,
288 <&clkc CLKID_GCLK_VENCI_INT0>;
289 clock-names = "isfr", "iahb", "venci";
293 clkc: clock-controller {
294 compatible = "amlogic,gxl-clkc";
297 clock-names = "xtal";
302 clocks = <&clkc CLKID_I2C>;
306 clocks = <&clkc CLKID_AO_I2C>;
310 clocks = <&clkc CLKID_I2C>;
314 clocks = <&clkc CLKID_I2C>;
318 pinctrl_periphs: pinctrl@4b0 {
319 compatible = "amlogic,meson-gxl-periphs-pinctrl";
320 #address-cells = <2>;
325 reg = <0x0 0x004b0 0x0 0x28>,
326 <0x0 0x004e8 0x0 0x14>,
327 <0x0 0x00520 0x0 0x14>,
328 <0x0 0x00430 0x0 0x40>;
329 reg-names = "mux", "pull", "pull-enable", "gpio";
332 gpio-ranges = <&pinctrl_periphs 0 0 100>;
337 groups = "emmc_nand_d07",
350 emmc_ds_pins: emmc-ds {
358 emmc_clk_gate_pins: emmc_clk_gate {
361 function = "gpio_periphs";
387 spi_ss0_pins: spi-ss0 {
395 sdcard_pins: sdcard {
397 groups = "sdcard_d0",
407 groups = "sdcard_clk";
413 sdcard_clk_gate_pins: sdcard_clk_gate {
416 function = "gpio_periphs";
439 sdio_clk_gate_pins: sdio_clk_gate {
442 function = "gpio_periphs";
447 sdio_irq_pins: sdio_irq {
455 uart_a_pins: uart_a {
457 groups = "uart_tx_a",
464 uart_a_cts_rts_pins: uart_a_cts_rts {
466 groups = "uart_cts_a",
473 uart_b_pins: uart_b {
475 groups = "uart_tx_b",
482 uart_b_cts_rts_pins: uart_b_cts_rts {
484 groups = "uart_cts_b",
491 uart_c_pins: uart_c {
493 groups = "uart_tx_c",
500 uart_c_cts_rts_pins: uart_c_cts_rts {
502 groups = "uart_cts_c",
511 groups = "i2c_sck_a",
520 groups = "i2c_sck_b",
529 groups = "i2c_sck_c",
536 i2c_c_dv18_pins: i2c_c_dv18 {
538 groups = "i2c_sck_c_dv19",
566 eth_link_led_pins: eth_link_led {
568 groups = "eth_link_led";
569 function = "eth_led";
574 eth_act_led_pins: eth_act_led {
576 groups = "eth_act_led";
577 function = "eth_led";
621 pwm_f_clk_pins: pwm_f_clk {
623 groups = "pwm_f_clk";
629 pwm_f_x_pins: pwm_f_x {
637 hdmi_hpd_pins: hdmi_hpd {
640 function = "hdmi_hpd";
645 hdmi_i2c_pins: hdmi_i2c {
647 groups = "hdmi_sda", "hdmi_scl";
648 function = "hdmi_i2c";
653 i2s_am_clk_pins: i2s_am_clk {
655 groups = "i2s_am_clk";
656 function = "i2s_out";
661 i2s_out_ao_clk_pins: i2s_out_ao_clk {
663 groups = "i2s_out_ao_clk";
664 function = "i2s_out";
669 i2s_out_lr_clk_pins: i2s_out_lr_clk {
671 groups = "i2s_out_lr_clk";
672 function = "i2s_out";
677 i2s_out_ch01_pins: i2s_out_ch01 {
679 groups = "i2s_out_ch01";
680 function = "i2s_out";
684 i2sout_ch23_z_pins: i2sout_ch23_z {
686 groups = "i2sout_ch23_z";
687 function = "i2s_out";
692 i2sout_ch45_z_pins: i2sout_ch45_z {
694 groups = "i2sout_ch45_z";
695 function = "i2s_out";
700 i2sout_ch67_z_pins: i2sout_ch67_z {
702 groups = "i2sout_ch67_z";
703 function = "i2s_out";
708 spdif_out_h_pins: spdif_out_ao_h {
710 groups = "spdif_out_h";
711 function = "spdif_out";
718 compatible = "mdio-mux-mmioreg", "mdio-mux";
719 #address-cells = <1>;
721 reg = <0x0 0x55c 0x0 0x4>;
722 mux-mask = <0xffffffff>;
723 mdio-parent-bus = <&mdio0>;
725 internal_mdio: mdio@e40908ff {
727 #address-cells = <1>;
730 internal_phy: ethernet-phy@8 {
731 compatible = "ethernet-phy-id0181.4400";
732 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
738 external_mdio: mdio@2009087f {
740 #address-cells = <1>;
747 resets = <&reset RESET_VIU>,
749 <&reset RESET_VCBUS>,
750 <&reset RESET_BT656>,
751 <&reset RESET_DVIN_RESET>,
753 <&reset RESET_VENCI>,
754 <&reset RESET_VENCP>,
757 <&reset RESET_VENCL>,
758 <&reset RESET_VID_LOCK>;
759 clocks = <&clkc CLKID_VPU>,
761 clock-names = "vpu", "vapb";
763 * VPU clocking is provided by two identical clock paths
764 * VPU_0 and VPU_1 muxed to a single clock by a glitch
765 * free mux to safely change frequency while running.
766 * Same for VAPB but with a final gate after the glitch free mux.
768 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
770 <&clkc CLKID_VPU>, /* Glitch free mux */
771 <&clkc CLKID_VAPB_0_SEL>,
772 <&clkc CLKID_VAPB_0>,
773 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
774 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
775 <0>, /* Do Nothing */
777 <&clkc CLKID_FCLK_DIV4>,
778 <0>, /* Do Nothing */
779 <&clkc CLKID_VAPB_0>;
780 assigned-clock-rates = <0>, /* Do Nothing */
782 <0>, /* Do Nothing */
783 <0>, /* Do Nothing */
785 <0>; /* Do Nothing */
789 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
791 <&clkc CLKID_SAR_ADC>,
792 <&clkc CLKID_SAR_ADC_CLK>,
793 <&clkc CLKID_SAR_ADC_SEL>;
794 clock-names = "clkin", "core", "adc_clk", "adc_sel";
798 clocks = <&clkc CLKID_SD_EMMC_A>,
799 <&clkc CLKID_SD_EMMC_A_CLK0>,
800 <&clkc CLKID_FCLK_DIV2>;
801 clock-names = "core", "clkin0", "clkin1";
802 resets = <&reset RESET_SD_EMMC_A>;
806 clocks = <&clkc CLKID_SD_EMMC_B>,
807 <&clkc CLKID_SD_EMMC_B_CLK0>,
808 <&clkc CLKID_FCLK_DIV2>;
809 clock-names = "core", "clkin0", "clkin1";
810 resets = <&reset RESET_SD_EMMC_B>;
814 clocks = <&clkc CLKID_SD_EMMC_C>,
815 <&clkc CLKID_SD_EMMC_C_CLK0>,
816 <&clkc CLKID_FCLK_DIV2>;
817 clock-names = "core", "clkin0", "clkin1";
818 resets = <&reset RESET_SD_EMMC_C>;
822 clocks = <&clkc CLKID_HDMI_PCLK>,
824 <&clkc CLKID_GCLK_VENCI_INT0>;
828 clocks = <&clkc CLKID_SPICC>;
829 clock-names = "core";
830 resets = <&reset RESET_PERIPHS_SPICC>;
835 clocks = <&clkc CLKID_SPI>;
839 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
840 clock-names = "xtal", "pclk", "baud";
844 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
845 clock-names = "xtal", "pclk", "baud";
849 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
850 clock-names = "xtal", "pclk", "baud";
854 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
855 clock-names = "xtal", "pclk", "baud";
859 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
860 clock-names = "xtal", "pclk", "baud";
864 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
865 power-domains = <&pwrc_vpu>;
869 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
870 clocks = <&clkc CLKID_DOS_PARSER>,
872 <&clkc CLKID_VDEC_1>,
873 <&clkc CLKID_VDEC_HEVC>;
874 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
875 resets = <&reset RESET_PARSER>;
876 reset-names = "esparser";