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";
55 compatible = "amlogic,meson-gxbb-sm";
60 compatible = "amlogic,meson-gxbb-efuse";
78 usb0_phy: phy@c0000000 {
79 compatible = "amlogic,meson-gxbb-usb2-phy";
81 reg = <0x0 0xc0000000 0x0 0x20>;
82 resets = <&reset RESET_USB_OTG>;
83 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
84 clock-names = "usb_general", "usb";
88 usb1_phy: phy@c0000020 {
89 compatible = "amlogic,meson-gxbb-usb2-phy";
91 reg = <0x0 0xc0000020 0x0 0x20>;
92 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
93 clock-names = "usb_general", "usb";
98 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
99 reg = <0x0 0xc9000000 0x0 0x40000>;
100 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
101 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
104 phy-names = "usb2-phy";
110 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
111 reg = <0x0 0xc9100000 0x0 0x40000>;
112 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
113 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
116 phy-names = "usb2-phy";
121 ethmac: ethernet@c9410000 {
122 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
123 reg = <0x0 0xc9410000 0x0 0x10000
124 0x0 0xc8834540 0x0 0x4>;
125 interrupts = <0 8 1>;
126 interrupt-names = "macirq";
127 clocks = <&clkc CLKID_ETH>,
128 <&clkc CLKID_FCLK_DIV2>,
130 clock-names = "stmmaceth", "clkin0", "clkin1";
138 reset: reset-controller@4404 {
139 compatible = "amlogic,meson-gxbb-reset";
140 reg = <0x0 0x04404 0x0 0x20>;
144 uart_B: serial@84dc {
145 compatible = "amlogic,meson-uart";
146 reg = <0x0 0x84dc 0x0 0x14>;
147 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
153 compatible = "amlogic,meson-gxbb-pwm";
154 reg = <0x0 0x08550 0x0 0x10>;
160 compatible = "amlogic,meson-gxbb-pwm";
161 reg = <0x0 0x08650 0x0 0x10>;
167 compatible = "amlogic,meson-gxbb-pwm";
168 reg = <0x0 0x086c0 0x0 0x10>;
173 uart_C: serial@8700 {
174 compatible = "amlogic,meson-uart";
175 reg = <0x0 0x8700 0x0 0x14>;
176 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
182 compatible = "amlogic,meson-gxbb-wdt";
183 reg = <0x0 0x098d0 0x0 0x10>;
188 compatible = "amlogic,meson-gxbb-spifc";
189 reg = <0x0 0x08c80 0x0 0x80>;
190 #address-cells = <1>;
192 clocks = <&clkc CLKID_SPI>;
197 compatible = "amlogic,meson-gxbb-i2c";
198 reg = <0x0 0x08500 0x0 0x20>;
199 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
200 clocks = <&clkc CLKID_I2C>;
201 #address-cells = <1>;
207 compatible = "amlogic,meson-gxbb-i2c";
208 reg = <0x0 0x087c0 0x0 0x20>;
209 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
210 clocks = <&clkc CLKID_I2C>;
211 #address-cells = <1>;
217 compatible = "amlogic,meson-gxbb-i2c";
218 reg = <0x0 0x087e0 0x0 0x20>;
219 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
220 clocks = <&clkc CLKID_I2C>;
221 #address-cells = <1>;
228 pinctrl_aobus: pinctrl@14 {
229 compatible = "amlogic,meson-gxbb-aobus-pinctrl";
230 #address-cells = <2>;
235 reg = <0x0 0x00014 0x0 0x8>,
236 <0x0 0x0002c 0x0 0x4>,
237 <0x0 0x00024 0x0 0x8>;
238 reg-names = "mux", "pull", "gpio";
243 uart_ao_a_pins: uart_ao_a {
245 groups = "uart_tx_ao_a", "uart_rx_ao_a";
246 function = "uart_ao";
250 remote_input_ao_pins: remote_input_ao {
252 groups = "remote_input_ao";
253 function = "remote_input_ao";
257 i2c_ao_pins: i2c_ao {
259 groups = "i2c_sck_ao",
265 pwm_ao_a_3_pins: pwm_ao_a_3 {
267 groups = "pwm_ao_a_3";
268 function = "pwm_ao_a_3";
272 pwm_ao_a_6_pins: pwm_ao_a_6 {
274 groups = "pwm_ao_a_6";
275 function = "pwm_ao_a_6";
279 pwm_ao_a_12_pins: pwm_ao_a_12 {
281 groups = "pwm_ao_a_12";
282 function = "pwm_ao_a_12";
286 pwm_ao_b_pins: pwm_ao_b {
289 function = "pwm_ao_b";
294 clkc_AO: clock-controller@040 {
295 compatible = "amlogic,gxbb-aoclkc";
296 reg = <0x0 0x00040 0x0 0x4>;
302 compatible = "amlogic,meson-gxbb-ir";
303 reg = <0x0 0x00580 0x0 0x40>;
304 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
309 compatible = "amlogic,meson-gxbb-pwm";
310 reg = <0x0 0x0550 0x0 0x10>;
316 compatible = "amlogic,meson-gxbb-i2c";
317 reg = <0x0 0x500 0x0 0x20>;
318 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
319 clocks = <&clkc CLKID_AO_I2C>;
320 #address-cells = <1>;
328 compatible = "amlogic,meson-rng";
329 reg = <0x0 0x0 0x0 0x4>;
332 pinctrl_periphs: pinctrl@4b0 {
333 compatible = "amlogic,meson-gxbb-periphs-pinctrl";
334 #address-cells = <2>;
339 reg = <0x0 0x004b0 0x0 0x28>,
340 <0x0 0x004e8 0x0 0x14>,
341 <0x0 0x00120 0x0 0x14>,
342 <0x0 0x00430 0x0 0x40>;
343 reg-names = "mux", "pull", "pull-enable", "gpio";
350 groups = "emmc_nand_d07",
367 sdcard_pins: sdcard {
369 groups = "sdcard_d0",
391 sdio_irq_pins: sdio_irq {
398 uart_a_pins: uart_a {
400 groups = "uart_tx_a",
406 uart_b_pins: uart_b {
408 groups = "uart_tx_b",
414 uart_c_pins: uart_c {
416 groups = "uart_tx_c",
424 groups = "i2c_sck_a",
432 groups = "i2c_sck_b",
440 groups = "i2c_sck_c",
466 pwm_a_x_pins: pwm_a_x {
469 function = "pwm_a_x";
473 pwm_a_y_pins: pwm_a_y {
476 function = "pwm_a_y";
501 pwm_f_x_pins: pwm_f_x {
504 function = "pwm_f_x";
508 pwm_f_y_pins: pwm_f_y {
511 function = "pwm_f_y";
518 clkc: clock-controller@0 {
519 compatible = "amlogic,gxbb-clkc";
521 reg = <0x0 0x0 0x0 0x3db>;
524 mailbox: mailbox@404 {
525 compatible = "amlogic,meson-gxbb-mhu";
526 reg = <0 0x404 0 0x4c>;
527 interrupts = <0 208 IRQ_TYPE_EDGE_RISING>,
528 <0 209 IRQ_TYPE_EDGE_RISING>,
529 <0 210 IRQ_TYPE_EDGE_RISING>;