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";
17 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
18 secmon_reserved_alt: secmon@5000000 {
19 reg = <0x0 0x05000000 0x0 0x300000>;
27 compatible = "amlogic,meson-gxl-dwc3";
32 clocks = <&clkc CLKID_USB>;
33 clock-names = "usb_general";
34 resets = <&reset RESET_USB_OTG>;
35 reset-names = "usb_otg";
38 compatible = "snps,dwc3";
39 reg = <0x0 0xc9000000 0x0 0x100000>;
40 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
42 maximum-speed = "high-speed";
43 snps,dis_u2_susphy_quirk;
44 phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>;
51 usb2_phy0: phy@78000 {
52 compatible = "amlogic,meson-gxl-usb2-phy";
54 reg = <0x0 0x78000 0x0 0x20>;
55 clocks = <&clkc CLKID_USB>;
57 resets = <&reset RESET_USB_OTG>;
62 usb2_phy1: phy@78020 {
63 compatible = "amlogic,meson-gxl-usb2-phy";
65 reg = <0x0 0x78020 0x0 0x20>;
66 clocks = <&clkc CLKID_USB>;
68 resets = <&reset RESET_USB_OTG>;
74 compatible = "amlogic,meson-gxl-usb3-phy";
76 reg = <0x0 0x78080 0x0 0x20>;
77 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
78 clocks = <&clkc CLKID_USB>, <&clkc_AO CLKID_AO_CEC_32K>;
79 clock-names = "phy", "peripheral";
80 resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>;
81 reset-names = "phy", "peripheral";
87 reg = <0x0 0xc9410000 0x0 0x10000
88 0x0 0xc8834540 0x0 0x4>;
90 clocks = <&clkc CLKID_ETH>,
91 <&clkc CLKID_FCLK_DIV2>,
93 clock-names = "stmmaceth", "clkin0", "clkin1";
98 compatible = "snps,dwmac-mdio";
103 pinctrl_aobus: pinctrl@14 {
104 compatible = "amlogic,meson-gxl-aobus-pinctrl";
105 #address-cells = <2>;
110 reg = <0x0 0x00014 0x0 0x8>,
111 <0x0 0x0002c 0x0 0x4>,
112 <0x0 0x00024 0x0 0x8>;
113 reg-names = "mux", "pull", "gpio";
116 gpio-ranges = <&pinctrl_aobus 0 0 14>;
119 uart_ao_a_pins: uart_ao_a {
121 groups = "uart_tx_ao_a", "uart_rx_ao_a";
122 function = "uart_ao";
126 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
128 groups = "uart_cts_ao_a",
130 function = "uart_ao";
134 uart_ao_b_pins: uart_ao_b {
136 groups = "uart_tx_ao_b", "uart_rx_ao_b";
137 function = "uart_ao_b";
141 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
143 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
144 function = "uart_ao_b";
148 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
150 groups = "uart_cts_ao_b",
152 function = "uart_ao_b";
156 remote_input_ao_pins: remote_input_ao {
158 groups = "remote_input_ao";
159 function = "remote_input_ao";
163 i2c_ao_pins: i2c_ao {
165 groups = "i2c_sck_ao",
171 pwm_ao_a_3_pins: pwm_ao_a_3 {
173 groups = "pwm_ao_a_3";
174 function = "pwm_ao_a";
178 pwm_ao_a_8_pins: pwm_ao_a_8 {
180 groups = "pwm_ao_a_8";
181 function = "pwm_ao_a";
185 pwm_ao_b_pins: pwm_ao_b {
188 function = "pwm_ao_b";
192 pwm_ao_b_6_pins: pwm_ao_b_6 {
194 groups = "pwm_ao_b_6";
195 function = "pwm_ao_b";
199 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
201 groups = "i2s_out_ch23_ao";
202 function = "i2s_out_ao";
206 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
208 groups = "i2s_out_ch45_ao";
209 function = "i2s_out_ao";
213 spdif_out_ao_6_pins: spdif_out_ao_6 {
215 groups = "spdif_out_ao_6";
216 function = "spdif_out_ao";
220 spdif_out_ao_9_pins: spdif_out_ao_9 {
222 groups = "spdif_out_ao_9";
223 function = "spdif_out_ao";
227 ao_cec_pins: ao_cec {
234 ee_cec_pins: ee_cec {
244 clocks = <&clkc_AO CLKID_AO_CEC_32K>;
245 clock-names = "core";
249 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
253 compatible = "amlogic,meson-gpio-intc",
254 "amlogic,meson-gxl-gpio-intc";
259 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
260 resets = <&reset RESET_HDMITX_CAPB3>,
261 <&reset RESET_HDMI_SYSTEM_RESET>,
262 <&reset RESET_HDMI_TX>;
263 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
264 clocks = <&clkc CLKID_HDMI_PCLK>,
266 <&clkc CLKID_GCLK_VENCI_INT0>;
267 clock-names = "isfr", "iahb", "venci";
271 clkc: clock-controller@0 {
272 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
274 reg = <0x0 0x0 0x0 0x3db>;
279 clocks = <&clkc CLKID_I2C>;
283 clocks = <&clkc CLKID_AO_I2C>;
287 clocks = <&clkc CLKID_I2C>;
291 clocks = <&clkc CLKID_I2C>;
295 pinctrl_periphs: pinctrl@4b0 {
296 compatible = "amlogic,meson-gxl-periphs-pinctrl";
297 #address-cells = <2>;
302 reg = <0x0 0x004b0 0x0 0x28>,
303 <0x0 0x004e8 0x0 0x14>,
304 <0x0 0x00520 0x0 0x14>,
305 <0x0 0x00430 0x0 0x40>;
306 reg-names = "mux", "pull", "pull-enable", "gpio";
309 gpio-ranges = <&pinctrl_periphs 0 0 100>;
314 groups = "emmc_nand_d07",
321 emmc_ds_pins: emmc-ds {
328 emmc_clk_gate_pins: emmc_clk_gate {
331 function = "gpio_periphs";
358 spi_ss0_pins: spi-ss0 {
365 sdcard_pins: sdcard {
367 groups = "sdcard_d0",
377 sdcard_clk_gate_pins: sdcard_clk_gate {
380 function = "gpio_periphs";
400 sdio_clk_gate_pins: sdio_clk_gate {
403 function = "gpio_periphs";
411 sdio_irq_pins: sdio_irq {
418 uart_a_pins: uart_a {
420 groups = "uart_tx_a",
426 uart_a_cts_rts_pins: uart_a_cts_rts {
428 groups = "uart_cts_a",
434 uart_b_pins: uart_b {
436 groups = "uart_tx_b",
442 uart_b_cts_rts_pins: uart_b_cts_rts {
444 groups = "uart_cts_b",
450 uart_c_pins: uart_c {
452 groups = "uart_tx_c",
458 uart_c_cts_rts_pins: uart_c_cts_rts {
460 groups = "uart_cts_c",
468 groups = "i2c_sck_a",
476 groups = "i2c_sck_b",
484 groups = "i2c_sck_c",
510 eth_link_led_pins: eth_link_led {
512 groups = "eth_link_led";
513 function = "eth_led";
517 eth_act_led_pins: eth_act_led {
519 groups = "eth_act_led";
520 function = "eth_led";
559 pwm_f_clk_pins: pwm_f_clk {
561 groups = "pwm_f_clk";
566 pwm_f_x_pins: pwm_f_x {
573 hdmi_hpd_pins: hdmi_hpd {
576 function = "hdmi_hpd";
580 hdmi_i2c_pins: hdmi_i2c {
582 groups = "hdmi_sda", "hdmi_scl";
583 function = "hdmi_i2c";
587 i2s_am_clk_pins: i2s_am_clk {
589 groups = "i2s_am_clk";
590 function = "i2s_out";
594 i2s_out_ao_clk_pins: i2s_out_ao_clk {
596 groups = "i2s_out_ao_clk";
597 function = "i2s_out";
601 i2s_out_lr_clk_pins: i2s_out_lr_clk {
603 groups = "i2s_out_lr_clk";
604 function = "i2s_out";
608 i2s_out_ch01_pins: i2s_out_ch01 {
610 groups = "i2s_out_ch01";
611 function = "i2s_out";
614 i2sout_ch23_z_pins: i2sout_ch23_z {
616 groups = "i2sout_ch23_z";
617 function = "i2s_out";
621 i2sout_ch45_z_pins: i2sout_ch45_z {
623 groups = "i2sout_ch45_z";
624 function = "i2s_out";
628 i2sout_ch67_z_pins: i2sout_ch67_z {
630 groups = "i2sout_ch67_z";
631 function = "i2s_out";
635 spdif_out_h_pins: spdif_out_ao_h {
637 groups = "spdif_out_h";
638 function = "spdif_out";
644 compatible = "mdio-mux-mmioreg", "mdio-mux";
645 #address-cells = <1>;
647 reg = <0x0 0x55c 0x0 0x4>;
648 mux-mask = <0xffffffff>;
649 mdio-parent-bus = <&mdio0>;
651 internal_mdio: mdio@e40908ff {
653 #address-cells = <1>;
656 internal_phy: ethernet-phy@8 {
657 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
658 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
664 external_mdio: mdio@2009087f {
666 #address-cells = <1>;
673 resets = <&reset RESET_VIU>,
675 <&reset RESET_VCBUS>,
676 <&reset RESET_BT656>,
677 <&reset RESET_DVIN_RESET>,
679 <&reset RESET_VENCI>,
680 <&reset RESET_VENCP>,
683 <&reset RESET_VENCL>,
684 <&reset RESET_VID_LOCK>;
685 clocks = <&clkc CLKID_VPU>,
687 clock-names = "vpu", "vapb";
689 * VPU clocking is provided by two identical clock paths
690 * VPU_0 and VPU_1 muxed to a single clock by a glitch
691 * free mux to safely change frequency while running.
692 * Same for VAPB but with a final gate after the glitch free mux.
694 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
696 <&clkc CLKID_VPU>, /* Glitch free mux */
697 <&clkc CLKID_VAPB_0_SEL>,
698 <&clkc CLKID_VAPB_0>,
699 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
700 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
701 <0>, /* Do Nothing */
703 <&clkc CLKID_FCLK_DIV4>,
704 <0>, /* Do Nothing */
705 <&clkc CLKID_VAPB_0>;
706 assigned-clock-rates = <0>, /* Do Nothing */
708 <0>, /* Do Nothing */
709 <0>, /* Do Nothing */
711 <0>; /* Do Nothing */
715 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
717 <&clkc CLKID_SAR_ADC>,
718 <&clkc CLKID_SAR_ADC_CLK>,
719 <&clkc CLKID_SAR_ADC_SEL>;
720 clock-names = "clkin", "core", "adc_clk", "adc_sel";
724 clocks = <&clkc CLKID_SD_EMMC_A>,
725 <&clkc CLKID_SD_EMMC_A_CLK0>,
726 <&clkc CLKID_FCLK_DIV2>;
727 clock-names = "core", "clkin0", "clkin1";
731 clocks = <&clkc CLKID_SD_EMMC_B>,
732 <&clkc CLKID_SD_EMMC_B_CLK0>,
733 <&clkc CLKID_FCLK_DIV2>;
734 clock-names = "core", "clkin0", "clkin1";
738 clocks = <&clkc CLKID_SD_EMMC_C>,
739 <&clkc CLKID_SD_EMMC_C_CLK0>,
740 <&clkc CLKID_FCLK_DIV2>;
741 clock-names = "core", "clkin0", "clkin1";
745 clocks = <&clkc CLKID_SPICC>;
746 clock-names = "core";
747 resets = <&reset RESET_PERIPHS_SPICC>;
752 clocks = <&clkc CLKID_SPI>;
756 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
757 clock-names = "xtal", "pclk", "baud";
761 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
762 clock-names = "xtal", "pclk", "baud";
766 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
767 clock-names = "xtal", "pclk", "baud";
771 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
772 clock-names = "xtal", "pclk", "baud";
776 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
777 clock-names = "xtal", "pclk", "baud";
781 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
782 power-domains = <&pwrc_vpu>;