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-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
212 resets = <&reset RESET_HDMITX_CAPB3>,
213 <&reset RESET_HDMI_SYSTEM_RESET>,
214 <&reset RESET_HDMI_TX>;
215 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
216 clocks = <&clkc CLKID_HDMI_PCLK>,
218 <&clkc CLKID_GCLK_VENCI_INT0>;
219 clock-names = "isfr", "iahb", "venci";
223 clkc: clock-controller@0 {
224 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
226 reg = <0x0 0x0 0x0 0x3db>;
231 clocks = <&clkc CLKID_I2C>;
235 clocks = <&clkc CLKID_AO_I2C>;
239 clocks = <&clkc CLKID_I2C>;
243 clocks = <&clkc CLKID_I2C>;
247 pinctrl_periphs: pinctrl@4b0 {
248 compatible = "amlogic,meson-gxl-periphs-pinctrl";
249 #address-cells = <2>;
254 reg = <0x0 0x004b0 0x0 0x28>,
255 <0x0 0x004e8 0x0 0x14>,
256 <0x0 0x00520 0x0 0x14>,
257 <0x0 0x00430 0x0 0x40>;
258 reg-names = "mux", "pull", "pull-enable", "gpio";
261 gpio-ranges = <&pinctrl_periphs 0 10 101>;
266 groups = "emmc_nand_d07",
293 spi_ss0_pins: spi-ss0 {
300 sdcard_pins: sdcard {
302 groups = "sdcard_d0",
324 sdio_irq_pins: sdio_irq {
331 uart_a_pins: uart_a {
333 groups = "uart_tx_a",
339 uart_a_cts_rts_pins: uart_a_cts_rts {
341 groups = "uart_cts_a",
347 uart_b_pins: uart_b {
349 groups = "uart_tx_b",
355 uart_b_cts_rts_pins: uart_b_cts_rts {
357 groups = "uart_cts_b",
363 uart_c_pins: uart_c {
365 groups = "uart_tx_c",
371 uart_c_cts_rts_pins: uart_c_cts_rts {
373 groups = "uart_cts_c",
381 groups = "i2c_sck_a",
389 groups = "i2c_sck_b",
397 groups = "i2c_sck_c",
423 eth_link_led_pins: eth_link_led {
425 groups = "eth_link_led";
426 function = "eth_led";
430 eth_act_led_pins: eth_act_led {
432 groups = "eth_act_led";
433 function = "eth_led";
472 pwm_f_clk_pins: pwm_f_clk {
474 groups = "pwm_f_clk";
479 pwm_f_x_pins: pwm_f_x {
486 hdmi_hpd_pins: hdmi_hpd {
489 function = "hdmi_hpd";
493 hdmi_i2c_pins: hdmi_i2c {
495 groups = "hdmi_sda", "hdmi_scl";
496 function = "hdmi_i2c";
500 i2s_am_clk_pins: i2s_am_clk {
502 groups = "i2s_am_clk";
503 function = "i2s_out";
507 i2s_out_ao_clk_pins: i2s_out_ao_clk {
509 groups = "i2s_out_ao_clk";
510 function = "i2s_out";
514 i2s_out_lr_clk_pins: i2s_out_lr_clk {
516 groups = "i2s_out_lr_clk";
517 function = "i2s_out";
521 i2s_out_ch01_pins: i2s_out_ch01 {
523 groups = "i2s_out_ch01";
524 function = "i2s_out";
527 i2sout_ch23_z_pins: i2sout_ch23_z {
529 groups = "i2sout_ch23_z";
530 function = "i2s_out";
534 i2sout_ch45_z_pins: i2sout_ch45_z {
536 groups = "i2sout_ch45_z";
537 function = "i2s_out";
541 i2sout_ch67_z_pins: i2sout_ch67_z {
543 groups = "i2sout_ch67_z";
544 function = "i2s_out";
548 spdif_out_h_pins: spdif_out_ao_h {
550 groups = "spdif_out_h";
551 function = "spdif_out";
557 compatible = "mdio-mux-mmioreg", "mdio-mux";
558 #address-cells = <1>;
560 reg = <0x0 0x55c 0x0 0x4>;
561 mux-mask = <0xffffffff>;
562 mdio-parent-bus = <&mdio0>;
564 internal_mdio: mdio@e40908ff {
566 #address-cells = <1>;
569 internal_phy: ethernet-phy@8 {
570 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
576 external_mdio: mdio@2009087f {
578 #address-cells = <1>;
585 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
587 <&clkc CLKID_SAR_ADC>,
589 <&clkc CLKID_SAR_ADC_CLK>,
590 <&clkc CLKID_SAR_ADC_SEL>;
591 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
595 clocks = <&clkc CLKID_SD_EMMC_A>,
597 <&clkc CLKID_FCLK_DIV2>;
598 clock-names = "core", "clkin0", "clkin1";
602 clocks = <&clkc CLKID_SD_EMMC_B>,
604 <&clkc CLKID_FCLK_DIV2>;
605 clock-names = "core", "clkin0", "clkin1";
609 clocks = <&clkc CLKID_SD_EMMC_C>,
611 <&clkc CLKID_FCLK_DIV2>;
612 clock-names = "core", "clkin0", "clkin1";
616 clocks = <&clkc CLKID_SPICC>;
617 clock-names = "core";
618 resets = <&reset RESET_PERIPHS_SPICC>;
623 clocks = <&clkc CLKID_SPI>;
627 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";