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>
49 compatible = "amlogic,meson-gxl";
53 reg = <0x0 0xc9410000 0x0 0x10000
54 0x0 0xc8834540 0x0 0x4>;
56 clocks = <&clkc CLKID_ETH>,
57 <&clkc CLKID_FCLK_DIV2>,
59 clock-names = "stmmaceth", "clkin0", "clkin1";
64 compatible = "snps,dwmac-mdio";
69 pinctrl_aobus: pinctrl@14 {
70 compatible = "amlogic,meson-gxl-aobus-pinctrl";
76 reg = <0x0 0x00014 0x0 0x8>,
77 <0x0 0x0002c 0x0 0x4>,
78 <0x0 0x00024 0x0 0x8>;
79 reg-names = "mux", "pull", "gpio";
84 uart_ao_a_pins: uart_ao_a {
86 groups = "uart_tx_ao_a", "uart_rx_ao_a";
91 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
93 groups = "uart_cts_ao_a",
99 uart_ao_b_pins: uart_ao_b {
101 groups = "uart_tx_ao_b", "uart_rx_ao_b";
102 function = "uart_ao_b";
106 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
108 groups = "uart_cts_ao_b",
110 function = "uart_ao_b";
114 remote_input_ao_pins: remote_input_ao {
116 groups = "remote_input_ao";
117 function = "remote_input_ao";
121 pwm_ao_b_pins: pwm_ao_b {
124 function = "pwm_ao_b";
131 pinctrl_periphs: pinctrl@4b0 {
132 compatible = "amlogic,meson-gxl-periphs-pinctrl";
133 #address-cells = <2>;
138 reg = <0x0 0x004b0 0x0 0x28>,
139 <0x0 0x004e8 0x0 0x14>,
140 <0x0 0x00120 0x0 0x14>,
141 <0x0 0x00430 0x0 0x40>;
142 reg-names = "mux", "pull", "pull-enable", "gpio";
149 groups = "emmc_nand_d07",
157 sdcard_pins: sdcard {
159 groups = "sdcard_d0",
181 sdio_irq_pins: sdio_irq {
188 uart_a_pins: uart_a {
190 groups = "uart_tx_a",
196 uart_a_cts_rts_pins: uart_a_cts_rts {
198 groups = "uart_cts_a",
204 uart_b_pins: uart_b {
206 groups = "uart_tx_b",
212 uart_b_cts_rts_pins: uart_b_cts_rts {
214 groups = "uart_cts_b",
220 uart_c_pins: uart_c {
222 groups = "uart_tx_c",
228 uart_c_cts_rts_pins: uart_c_cts_rts {
230 groups = "uart_cts_c",
238 groups = "i2c_sck_a",
246 groups = "i2c_sck_b",
254 groups = "i2c_sck_c",
287 hdmi_hpd_pins: hdmi_hpd {
290 function = "hdmi_hpd";
294 hdmi_i2c_pins: hdmi_i2c {
296 groups = "hdmi_sda", "hdmi_scl";
297 function = "hdmi_i2c";
303 compatible = "mdio-mux-mmioreg", "mdio-mux";
304 #address-cells = <1>;
306 reg = <0x0 0x55c 0x0 0x4>;
307 mux-mask = <0xffffffff>;
308 mdio-parent-bus = <&mdio0>;
310 internal_mdio: mdio@e40908ff {
312 #address-cells = <1>;
315 internal_phy: ethernet-phy@8 {
316 compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
322 external_mdio: mdio@2009087f {
324 #address-cells = <1>;
331 clkc: clock-controller@0 {
332 compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
334 reg = <0x0 0x0 0x0 0x3db>;
339 clocks = <&clkc CLKID_I2C>;
343 clocks = <&clkc CLKID_I2C>;
347 clocks = <&clkc CLKID_I2C>;
351 clocks = <&clkc CLKID_SD_EMMC_A>,
353 <&clkc CLKID_FCLK_DIV2>;
354 clock-names = "core", "clkin0", "clkin1";
358 clocks = <&clkc CLKID_SD_EMMC_B>,
360 <&clkc CLKID_FCLK_DIV2>;
361 clock-names = "core", "clkin0", "clkin1";
365 clocks = <&clkc CLKID_SD_EMMC_C>,
367 <&clkc CLKID_FCLK_DIV2>;
368 clock-names = "core", "clkin0", "clkin1";
372 compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";