2 * Copyright (c) 2016 Endless Computers, Inc.
3 * Author: Carlo Caione <carlo@endlessm.com>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "meson-gx.dtsi"
45 #include <dt-bindings/clock/gxbb-clkc.h>
46 #include <dt-bindings/gpio/meson-gxl-gpio.h>
47 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
50 compatible = "amlogic,meson-gxl";
54 reg = <0x0 0xc9410000 0x0 0x10000
55 0x0 0xc8834540 0x0 0x4>;
57 clocks = <&clkc CLKID_ETH>,
58 <&clkc CLKID_FCLK_DIV2>,
60 clock-names = "stmmaceth", "clkin0", "clkin1";
65 compatible = "snps,dwmac-mdio";
70 pinctrl_aobus: pinctrl@14 {
71 compatible = "amlogic,meson-gxl-aobus-pinctrl";
77 reg = <0x0 0x00014 0x0 0x8>,
78 <0x0 0x0002c 0x0 0x4>,
79 <0x0 0x00024 0x0 0x8>;
80 reg-names = "mux", "pull", "gpio";
83 gpio-ranges = <&pinctrl_aobus 0 0 14>;
86 uart_ao_a_pins: uart_ao_a {
88 groups = "uart_tx_ao_a", "uart_rx_ao_a";
93 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
95 groups = "uart_cts_ao_a",
101 uart_ao_b_pins: uart_ao_b {
103 groups = "uart_tx_ao_b", "uart_rx_ao_b";
104 function = "uart_ao_b";
108 uart_ao_b_0_1_pins: uart_ao_b_0_1 {
110 groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
111 function = "uart_ao_b";
115 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
117 groups = "uart_cts_ao_b",
119 function = "uart_ao_b";
123 remote_input_ao_pins: remote_input_ao {
125 groups = "remote_input_ao";
126 function = "remote_input_ao";
130 i2c_ao_pins: i2c_ao {
132 groups = "i2c_sck_ao",
138 pwm_ao_a_3_pins: pwm_ao_a_3 {
140 groups = "pwm_ao_a_3";
141 function = "pwm_ao_a";
145 pwm_ao_a_8_pins: pwm_ao_a_8 {
147 groups = "pwm_ao_a_8";
148 function = "pwm_ao_a";
152 pwm_ao_b_pins: pwm_ao_b {
155 function = "pwm_ao_b";
159 pwm_ao_b_6_pins: pwm_ao_b_6 {
161 groups = "pwm_ao_b_6";
162 function = "pwm_ao_b";
166 i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
168 groups = "i2s_out_ch23_ao";
169 function = "i2s_out_ao";
173 i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
175 groups = "i2s_out_ch45_ao";
176 function = "i2s_out_ao";
180 spdif_out_ao_6_pins: spdif_out_ao_6 {
182 groups = "spdif_out_ao_6";
183 function = "spdif_out_ao";
187 spdif_out_ao_9_pins: spdif_out_ao_9 {
189 groups = "spdif_out_ao_9";
190 function = "spdif_out_ao";
194 ao_cec_pins: ao_cec {
201 ee_cec_pins: ee_cec {
211 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
215 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
216 resets = <&reset RESET_HDMITX_CAPB3>,
217 <&reset RESET_HDMI_SYSTEM_RESET>,
218 <&reset RESET_HDMI_TX>;
219 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
220 clocks = <&clkc CLKID_HDMI_PCLK>,
222 <&clkc CLKID_GCLK_VENCI_INT0>;
223 clock-names = "isfr", "iahb", "venci";
227 clkc: clock-controller@0 {
228 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
230 reg = <0x0 0x0 0x0 0x3db>;
235 clocks = <&clkc CLKID_I2C>;
239 clocks = <&clkc CLKID_AO_I2C>;
243 clocks = <&clkc CLKID_I2C>;
247 clocks = <&clkc CLKID_I2C>;
251 pinctrl_periphs: pinctrl@4b0 {
252 compatible = "amlogic,meson-gxl-periphs-pinctrl";
253 #address-cells = <2>;
258 reg = <0x0 0x004b0 0x0 0x28>,
259 <0x0 0x004e8 0x0 0x14>,
260 <0x0 0x00520 0x0 0x14>,
261 <0x0 0x00430 0x0 0x40>;
262 reg-names = "mux", "pull", "pull-enable", "gpio";
265 gpio-ranges = <&pinctrl_periphs 0 10 101>;
270 groups = "emmc_nand_d07",
297 spi_ss0_pins: spi-ss0 {
304 sdcard_pins: sdcard {
306 groups = "sdcard_d0",
328 sdio_irq_pins: sdio_irq {
335 uart_a_pins: uart_a {
337 groups = "uart_tx_a",
343 uart_a_cts_rts_pins: uart_a_cts_rts {
345 groups = "uart_cts_a",
351 uart_b_pins: uart_b {
353 groups = "uart_tx_b",
359 uart_b_cts_rts_pins: uart_b_cts_rts {
361 groups = "uart_cts_b",
367 uart_c_pins: uart_c {
369 groups = "uart_tx_c",
375 uart_c_cts_rts_pins: uart_c_cts_rts {
377 groups = "uart_cts_c",
385 groups = "i2c_sck_a",
393 groups = "i2c_sck_b",
401 groups = "i2c_sck_c",
427 eth_link_led_pins: eth_link_led {
429 groups = "eth_link_led";
430 function = "eth_led";
434 eth_act_led_pins: eth_act_led {
436 groups = "eth_act_led";
437 function = "eth_led";
476 pwm_f_clk_pins: pwm_f_clk {
478 groups = "pwm_f_clk";
483 pwm_f_x_pins: pwm_f_x {
490 hdmi_hpd_pins: hdmi_hpd {
493 function = "hdmi_hpd";
497 hdmi_i2c_pins: hdmi_i2c {
499 groups = "hdmi_sda", "hdmi_scl";
500 function = "hdmi_i2c";
504 i2s_am_clk_pins: i2s_am_clk {
506 groups = "i2s_am_clk";
507 function = "i2s_out";
511 i2s_out_ao_clk_pins: i2s_out_ao_clk {
513 groups = "i2s_out_ao_clk";
514 function = "i2s_out";
518 i2s_out_lr_clk_pins: i2s_out_lr_clk {
520 groups = "i2s_out_lr_clk";
521 function = "i2s_out";
525 i2s_out_ch01_pins: i2s_out_ch01 {
527 groups = "i2s_out_ch01";
528 function = "i2s_out";
531 i2sout_ch23_z_pins: i2sout_ch23_z {
533 groups = "i2sout_ch23_z";
534 function = "i2s_out";
538 i2sout_ch45_z_pins: i2sout_ch45_z {
540 groups = "i2sout_ch45_z";
541 function = "i2s_out";
545 i2sout_ch67_z_pins: i2sout_ch67_z {
547 groups = "i2sout_ch67_z";
548 function = "i2s_out";
552 spdif_out_h_pins: spdif_out_ao_h {
554 groups = "spdif_out_h";
555 function = "spdif_out";
561 compatible = "mdio-mux-mmioreg", "mdio-mux";
562 #address-cells = <1>;
564 reg = <0x0 0x55c 0x0 0x4>;
565 mux-mask = <0xffffffff>;
566 mdio-parent-bus = <&mdio0>;
568 internal_mdio: mdio@e40908ff {
570 #address-cells = <1>;
573 internal_phy: ethernet-phy@8 {
574 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
580 external_mdio: mdio@2009087f {
582 #address-cells = <1>;
589 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
591 <&clkc CLKID_SAR_ADC>,
593 <&clkc CLKID_SAR_ADC_CLK>,
594 <&clkc CLKID_SAR_ADC_SEL>;
595 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
599 clocks = <&clkc CLKID_SD_EMMC_A>,
601 <&clkc CLKID_FCLK_DIV2>;
602 clock-names = "core", "clkin0", "clkin1";
606 clocks = <&clkc CLKID_SD_EMMC_B>,
608 <&clkc CLKID_FCLK_DIV2>;
609 clock-names = "core", "clkin0", "clkin1";
613 clocks = <&clkc CLKID_SD_EMMC_C>,
615 <&clkc CLKID_FCLK_DIV2>;
616 clock-names = "core", "clkin0", "clkin1";
620 clocks = <&clkc CLKID_SPICC>;
621 clock-names = "core";
622 resets = <&reset RESET_PERIPHS_SPICC>;
627 clocks = <&clkc CLKID_SPI>;
631 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
632 clock-names = "xtal", "core", "baud";
636 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
637 clock-names = "xtal", "pclk", "baud";
641 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
642 clock-names = "xtal", "pclk", "baud";
646 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
647 clock-names = "xtal", "core", "baud";
651 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
652 clock-names = "xtal", "core", "baud";
656 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";