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",
557 eth_link_led_pins: eth_link_led {
559 groups = "eth_link_led";
560 function = "eth_led";
565 eth_act_led_pins: eth_act_led {
567 groups = "eth_act_led";
568 function = "eth_led";
612 pwm_f_clk_pins: pwm_f_clk {
614 groups = "pwm_f_clk";
620 pwm_f_x_pins: pwm_f_x {
628 hdmi_hpd_pins: hdmi_hpd {
631 function = "hdmi_hpd";
636 hdmi_i2c_pins: hdmi_i2c {
638 groups = "hdmi_sda", "hdmi_scl";
639 function = "hdmi_i2c";
644 i2s_am_clk_pins: i2s_am_clk {
646 groups = "i2s_am_clk";
647 function = "i2s_out";
652 i2s_out_ao_clk_pins: i2s_out_ao_clk {
654 groups = "i2s_out_ao_clk";
655 function = "i2s_out";
660 i2s_out_lr_clk_pins: i2s_out_lr_clk {
662 groups = "i2s_out_lr_clk";
663 function = "i2s_out";
668 i2s_out_ch01_pins: i2s_out_ch01 {
670 groups = "i2s_out_ch01";
671 function = "i2s_out";
675 i2sout_ch23_z_pins: i2sout_ch23_z {
677 groups = "i2sout_ch23_z";
678 function = "i2s_out";
683 i2sout_ch45_z_pins: i2sout_ch45_z {
685 groups = "i2sout_ch45_z";
686 function = "i2s_out";
691 i2sout_ch67_z_pins: i2sout_ch67_z {
693 groups = "i2sout_ch67_z";
694 function = "i2s_out";
699 spdif_out_h_pins: spdif_out_ao_h {
701 groups = "spdif_out_h";
702 function = "spdif_out";
709 compatible = "mdio-mux-mmioreg", "mdio-mux";
710 #address-cells = <1>;
712 reg = <0x0 0x55c 0x0 0x4>;
713 mux-mask = <0xffffffff>;
714 mdio-parent-bus = <&mdio0>;
716 internal_mdio: mdio@e40908ff {
718 #address-cells = <1>;
721 internal_phy: ethernet-phy@8 {
722 compatible = "ethernet-phy-id0181.4400";
723 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
729 external_mdio: mdio@2009087f {
731 #address-cells = <1>;
738 resets = <&reset RESET_VIU>,
740 <&reset RESET_VCBUS>,
741 <&reset RESET_BT656>,
742 <&reset RESET_DVIN_RESET>,
744 <&reset RESET_VENCI>,
745 <&reset RESET_VENCP>,
748 <&reset RESET_VENCL>,
749 <&reset RESET_VID_LOCK>;
750 clocks = <&clkc CLKID_VPU>,
752 clock-names = "vpu", "vapb";
754 * VPU clocking is provided by two identical clock paths
755 * VPU_0 and VPU_1 muxed to a single clock by a glitch
756 * free mux to safely change frequency while running.
757 * Same for VAPB but with a final gate after the glitch free mux.
759 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
761 <&clkc CLKID_VPU>, /* Glitch free mux */
762 <&clkc CLKID_VAPB_0_SEL>,
763 <&clkc CLKID_VAPB_0>,
764 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
765 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
766 <0>, /* Do Nothing */
768 <&clkc CLKID_FCLK_DIV4>,
769 <0>, /* Do Nothing */
770 <&clkc CLKID_VAPB_0>;
771 assigned-clock-rates = <0>, /* Do Nothing */
773 <0>, /* Do Nothing */
774 <0>, /* Do Nothing */
776 <0>; /* Do Nothing */
780 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
782 <&clkc CLKID_SAR_ADC>,
783 <&clkc CLKID_SAR_ADC_CLK>,
784 <&clkc CLKID_SAR_ADC_SEL>;
785 clock-names = "clkin", "core", "adc_clk", "adc_sel";
789 clocks = <&clkc CLKID_SD_EMMC_A>,
790 <&clkc CLKID_SD_EMMC_A_CLK0>,
791 <&clkc CLKID_FCLK_DIV2>;
792 clock-names = "core", "clkin0", "clkin1";
793 resets = <&reset RESET_SD_EMMC_A>;
797 clocks = <&clkc CLKID_SD_EMMC_B>,
798 <&clkc CLKID_SD_EMMC_B_CLK0>,
799 <&clkc CLKID_FCLK_DIV2>;
800 clock-names = "core", "clkin0", "clkin1";
801 resets = <&reset RESET_SD_EMMC_B>;
805 clocks = <&clkc CLKID_SD_EMMC_C>,
806 <&clkc CLKID_SD_EMMC_C_CLK0>,
807 <&clkc CLKID_FCLK_DIV2>;
808 clock-names = "core", "clkin0", "clkin1";
809 resets = <&reset RESET_SD_EMMC_C>;
813 clocks = <&clkc CLKID_HDMI_PCLK>,
815 <&clkc CLKID_GCLK_VENCI_INT0>;
819 clocks = <&clkc CLKID_SPICC>;
820 clock-names = "core";
821 resets = <&reset RESET_PERIPHS_SPICC>;
826 clocks = <&clkc CLKID_SPI>;
830 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
831 clock-names = "xtal", "pclk", "baud";
835 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
836 clock-names = "xtal", "pclk", "baud";
840 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
841 clock-names = "xtal", "pclk", "baud";
845 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
846 clock-names = "xtal", "pclk", "baud";
850 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
851 clock-names = "xtal", "pclk", "baud";
855 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
856 power-domains = <&pwrc_vpu>;
860 compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
861 clocks = <&clkc CLKID_DOS_PARSER>,
863 <&clkc CLKID_VDEC_1>,
864 <&clkc CLKID_VDEC_HEVC>;
865 clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
866 resets = <&reset RESET_PARSER>;
867 reset-names = "esparser";