2 * Copyright (c) 2016 Andreas Färber
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include "meson-gx.dtsi"
44 #include <dt-bindings/gpio/meson-gxbb-gpio.h>
45 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
46 #include <dt-bindings/clock/gxbb-clkc.h>
47 #include <dt-bindings/clock/gxbb-aoclkc.h>
48 #include <dt-bindings/reset/gxbb-aoclkc.h>
51 compatible = "amlogic,meson-gxbb";
54 usb0_phy: phy@c0000000 {
55 compatible = "amlogic,meson-gxbb-usb2-phy";
57 reg = <0x0 0xc0000000 0x0 0x20>;
58 resets = <&reset RESET_USB_OTG>;
59 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
60 clock-names = "usb_general", "usb";
64 usb1_phy: phy@c0000020 {
65 compatible = "amlogic,meson-gxbb-usb2-phy";
67 reg = <0x0 0xc0000020 0x0 0x20>;
68 resets = <&reset RESET_USB_OTG>;
69 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
70 clock-names = "usb_general", "usb";
75 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
76 reg = <0x0 0xc9000000 0x0 0x40000>;
77 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
78 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
81 phy-names = "usb2-phy";
87 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
88 reg = <0x0 0xc9100000 0x0 0x40000>;
89 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
93 phy-names = "usb2-phy";
102 compatible = "amlogic,meson-gxbb-spifc";
103 reg = <0x0 0x08c80 0x0 0x80>;
104 #address-cells = <1>;
106 clocks = <&clkc CLKID_SPI>;
112 clocks = <&clkc CLKID_ETH>,
113 <&clkc CLKID_FCLK_DIV2>,
115 clock-names = "stmmaceth", "clkin0", "clkin1";
119 pinctrl_aobus: pinctrl@14 {
120 compatible = "amlogic,meson-gxbb-aobus-pinctrl";
121 #address-cells = <2>;
126 reg = <0x0 0x00014 0x0 0x8>,
127 <0x0 0x0002c 0x0 0x4>,
128 <0x0 0x00024 0x0 0x8>;
129 reg-names = "mux", "pull", "gpio";
134 uart_ao_a_pins: uart_ao_a {
136 groups = "uart_tx_ao_a", "uart_rx_ao_a";
137 function = "uart_ao";
141 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
143 groups = "uart_cts_ao_a",
145 function = "uart_ao";
149 uart_ao_b_pins: uart_ao_b {
151 groups = "uart_tx_ao_b", "uart_rx_ao_b";
152 function = "uart_ao_b";
156 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
158 groups = "uart_cts_ao_b",
160 function = "uart_ao_b";
164 remote_input_ao_pins: remote_input_ao {
166 groups = "remote_input_ao";
167 function = "remote_input_ao";
171 i2c_ao_pins: i2c_ao {
173 groups = "i2c_sck_ao",
179 pwm_ao_a_3_pins: pwm_ao_a_3 {
181 groups = "pwm_ao_a_3";
182 function = "pwm_ao_a_3";
186 pwm_ao_a_6_pins: pwm_ao_a_6 {
188 groups = "pwm_ao_a_6";
189 function = "pwm_ao_a_6";
193 pwm_ao_a_12_pins: pwm_ao_a_12 {
195 groups = "pwm_ao_a_12";
196 function = "pwm_ao_a_12";
200 pwm_ao_b_pins: pwm_ao_b {
203 function = "pwm_ao_b";
208 clkc_AO: clock-controller@040 {
209 compatible = "amlogic,gxbb-aoclkc";
210 reg = <0x0 0x00040 0x0 0x4>;
216 compatible = "amlogic,meson-gxbb-pwm";
217 reg = <0x0 0x0550 0x0 0x10>;
223 compatible = "amlogic,meson-gxbb-i2c";
224 reg = <0x0 0x500 0x0 0x20>;
225 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
226 clocks = <&clkc CLKID_AO_I2C>;
227 #address-cells = <1>;
234 pinctrl_periphs: pinctrl@4b0 {
235 compatible = "amlogic,meson-gxbb-periphs-pinctrl";
236 #address-cells = <2>;
241 reg = <0x0 0x004b0 0x0 0x28>,
242 <0x0 0x004e8 0x0 0x14>,
243 <0x0 0x00120 0x0 0x14>,
244 <0x0 0x00430 0x0 0x40>;
245 reg-names = "mux", "pull", "pull-enable", "gpio";
252 groups = "emmc_nand_d07",
270 sdcard_pins: sdcard {
272 groups = "sdcard_d0",
294 sdio_irq_pins: sdio_irq {
301 uart_a_pins: uart_a {
303 groups = "uart_tx_a",
309 uart_a_cts_rts_pins: uart_a_cts_rts {
311 groups = "uart_cts_a",
317 uart_b_pins: uart_b {
319 groups = "uart_tx_b",
325 uart_b_cts_rts_pins: uart_b_cts_rts {
327 groups = "uart_cts_b",
333 uart_c_pins: uart_c {
335 groups = "uart_tx_c",
341 uart_c_cts_rts_pins: uart_c_cts_rts {
343 groups = "uart_cts_c",
351 groups = "i2c_sck_a",
359 groups = "i2c_sck_b",
367 groups = "i2c_sck_c",
373 eth_rgmii_pins: eth-rgmii {
393 eth_rmii_pins: eth-rmii {
408 pwm_a_x_pins: pwm_a_x {
411 function = "pwm_a_x";
415 pwm_a_y_pins: pwm_a_y {
418 function = "pwm_a_y";
443 pwm_f_x_pins: pwm_f_x {
446 function = "pwm_f_x";
450 pwm_f_y_pins: pwm_f_y {
453 function = "pwm_f_y";
457 hdmi_hpd_pins: hdmi_hpd {
460 function = "hdmi_hpd";
464 hdmi_i2c_pins: hdmi_i2c {
466 groups = "hdmi_sda", "hdmi_scl";
467 function = "hdmi_i2c";
474 clkc: clock-controller@0 {
475 compatible = "amlogic,gxbb-clkc";
477 reg = <0x0 0x0 0x0 0x3db>;
482 clocks = <&clkc CLKID_I2C>;
486 clocks = <&clkc CLKID_I2C>;
490 clocks = <&clkc CLKID_I2C>;
494 compatible = "amlogic,meson-gxbb-saradc", "amlogic,meson-saradc";
496 <&clkc CLKID_SAR_ADC>,
498 <&clkc CLKID_SAR_ADC_CLK>,
499 <&clkc CLKID_SAR_ADC_SEL>;
500 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
504 clocks = <&clkc CLKID_SD_EMMC_A>,
506 <&clkc CLKID_FCLK_DIV2>;
507 clock-names = "core", "clkin0", "clkin1";
511 clocks = <&clkc CLKID_SD_EMMC_B>,
513 <&clkc CLKID_FCLK_DIV2>;
514 clock-names = "core", "clkin0", "clkin1";
518 clocks = <&clkc CLKID_SD_EMMC_C>,
520 <&clkc CLKID_FCLK_DIV2>;
521 clock-names = "core", "clkin0", "clkin1";
525 compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";