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";
197 pinctrl_periphs: pinctrl@4b0 {
198 compatible = "amlogic,meson-gxl-periphs-pinctrl";
199 #address-cells = <2>;
204 reg = <0x0 0x004b0 0x0 0x28>,
205 <0x0 0x004e8 0x0 0x14>,
206 <0x0 0x00120 0x0 0x14>,
207 <0x0 0x00430 0x0 0x40>;
208 reg-names = "mux", "pull", "pull-enable", "gpio";
211 gpio-ranges = <&pinctrl_periphs 0 14 101>;
216 groups = "emmc_nand_d07",
234 sdcard_pins: sdcard {
236 groups = "sdcard_d0",
258 sdio_irq_pins: sdio_irq {
265 uart_a_pins: uart_a {
267 groups = "uart_tx_a",
273 uart_a_cts_rts_pins: uart_a_cts_rts {
275 groups = "uart_cts_a",
281 uart_b_pins: uart_b {
283 groups = "uart_tx_b",
289 uart_b_cts_rts_pins: uart_b_cts_rts {
291 groups = "uart_cts_b",
297 uart_c_pins: uart_c {
299 groups = "uart_tx_c",
305 uart_c_cts_rts_pins: uart_c_cts_rts {
307 groups = "uart_cts_c",
315 groups = "i2c_sck_a",
323 groups = "i2c_sck_b",
331 groups = "i2c_sck_c",
392 pwm_f_clk_pins: pwm_f_clk {
394 groups = "pwm_f_clk";
399 pwm_f_x_pins: pwm_f_x {
406 hdmi_hpd_pins: hdmi_hpd {
409 function = "hdmi_hpd";
413 hdmi_i2c_pins: hdmi_i2c {
415 groups = "hdmi_sda", "hdmi_scl";
416 function = "hdmi_i2c";
420 i2s_am_clk_pins: i2s_am_clk {
422 groups = "i2s_am_clk";
423 function = "i2s_out";
427 i2s_out_ao_clk_pins: i2s_out_ao_clk {
429 groups = "i2s_out_ao_clk";
430 function = "i2s_out";
434 i2s_out_lr_clk_pins: i2s_out_lr_clk {
436 groups = "i2s_out_lr_clk";
437 function = "i2s_out";
441 i2s_out_ch01_pins: i2s_out_ch01 {
443 groups = "i2s_out_ch01";
444 function = "i2s_out";
447 i2sout_ch23_z_pins: i2sout_ch23_z {
449 groups = "i2sout_ch23_z";
450 function = "i2s_out";
454 i2sout_ch45_z_pins: i2sout_ch45_z {
456 groups = "i2sout_ch45_z";
457 function = "i2s_out";
461 i2sout_ch67_z_pins: i2sout_ch67_z {
463 groups = "i2sout_ch67_z";
464 function = "i2s_out";
468 spdif_out_h_pins: spdif_out_ao_h {
470 groups = "spdif_out_h";
471 function = "spdif_out";
477 compatible = "mdio-mux-mmioreg", "mdio-mux";
478 #address-cells = <1>;
480 reg = <0x0 0x55c 0x0 0x4>;
481 mux-mask = <0xffffffff>;
482 mdio-parent-bus = <&mdio0>;
484 internal_mdio: mdio@e40908ff {
486 #address-cells = <1>;
489 internal_phy: ethernet-phy@8 {
490 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
496 external_mdio: mdio@2009087f {
498 #address-cells = <1>;
505 clkc: clock-controller@0 {
506 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
508 reg = <0x0 0x0 0x0 0x3db>;
513 clocks = <&clkc CLKID_I2C>;
517 clocks = <&clkc CLKID_AO_I2C>;
521 clocks = <&clkc CLKID_I2C>;
525 clocks = <&clkc CLKID_I2C>;
529 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
531 <&clkc CLKID_SAR_ADC>,
533 <&clkc CLKID_SAR_ADC_CLK>,
534 <&clkc CLKID_SAR_ADC_SEL>;
535 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
539 clocks = <&clkc CLKID_SD_EMMC_A>,
541 <&clkc CLKID_FCLK_DIV2>;
542 clock-names = "core", "clkin0", "clkin1";
546 clocks = <&clkc CLKID_SD_EMMC_B>,
548 <&clkc CLKID_FCLK_DIV2>;
549 clock-names = "core", "clkin0", "clkin1";
553 clocks = <&clkc CLKID_SD_EMMC_C>,
555 <&clkc CLKID_FCLK_DIV2>;
556 clock-names = "core", "clkin0", "clkin1";
560 clocks = <&clkc CLKID_SPI>;
564 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
568 compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
569 resets = <&reset RESET_HDMITX_CAPB3>,
570 <&reset RESET_HDMI_SYSTEM_RESET>,
571 <&reset RESET_HDMI_TX>;
572 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
573 clocks = <&clkc CLKID_HDMI_PCLK>,
575 <&clkc CLKID_GCLK_VENCI_INT0>;
576 clock-names = "isfr", "iahb", "venci";