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 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
55 mboxes = <&mailbox 1 &mailbox 2>;
56 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
59 compatible = "arm,scpi-clocks";
61 scpi_dvfs: scpi_clocks@0 {
62 compatible = "arm,scpi-dvfs-clocks";
65 clock-output-names = "vcpu";
69 scpi_sensors: sensors {
70 compatible = "arm,scpi-sensors";
71 #thermal-sensor-cells = <1>;
76 usb0_phy: phy@c0000000 {
77 compatible = "amlogic,meson-gxbb-usb2-phy";
79 reg = <0x0 0xc0000000 0x0 0x20>;
80 resets = <&reset RESET_USB_OTG>;
81 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
82 clock-names = "usb_general", "usb";
86 usb1_phy: phy@c0000020 {
87 compatible = "amlogic,meson-gxbb-usb2-phy";
89 reg = <0x0 0xc0000020 0x0 0x20>;
90 resets = <&reset RESET_USB_OTG>;
91 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
92 clock-names = "usb_general", "usb";
97 compatible = "amlogic,meson-gxbb-sram", "mmio-sram";
98 reg = <0x0 0xc8000000 0x0 0x14000>;
100 #address-cells = <1>;
102 ranges = <0 0x0 0xc8000000 0x14000>;
104 cpu_scp_lpri: scp-shmem@0 {
105 compatible = "amlogic,meson-gxbb-scp-shmem";
106 reg = <0x13000 0x400>;
109 cpu_scp_hpri: scp-shmem@200 {
110 compatible = "amlogic,meson-gxbb-scp-shmem";
111 reg = <0x13400 0x400>;
116 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
117 reg = <0x0 0xc9000000 0x0 0x40000>;
118 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
119 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
122 phy-names = "usb2-phy";
128 compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
129 reg = <0x0 0xc9100000 0x0 0x40000>;
130 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
131 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
134 phy-names = "usb2-phy";
142 clocks = <&scpi_dvfs 0>;
146 clocks = <&scpi_dvfs 0>;
150 clocks = <&scpi_dvfs 0>;
154 clocks = <&scpi_dvfs 0>;
159 compatible = "amlogic,meson-gxbb-spifc";
160 reg = <0x0 0x08c80 0x0 0x80>;
161 #address-cells = <1>;
163 clocks = <&clkc CLKID_SPI>;
169 clocks = <&clkc CLKID_ETH>,
170 <&clkc CLKID_FCLK_DIV2>,
172 clock-names = "stmmaceth", "clkin0", "clkin1";
176 pinctrl_aobus: pinctrl@14 {
177 compatible = "amlogic,meson-gxbb-aobus-pinctrl";
178 #address-cells = <2>;
183 reg = <0x0 0x00014 0x0 0x8>,
184 <0x0 0x0002c 0x0 0x4>,
185 <0x0 0x00024 0x0 0x8>;
186 reg-names = "mux", "pull", "gpio";
191 uart_ao_a_pins: uart_ao_a {
193 groups = "uart_tx_ao_a", "uart_rx_ao_a";
194 function = "uart_ao";
198 remote_input_ao_pins: remote_input_ao {
200 groups = "remote_input_ao";
201 function = "remote_input_ao";
205 i2c_ao_pins: i2c_ao {
207 groups = "i2c_sck_ao",
213 pwm_ao_a_3_pins: pwm_ao_a_3 {
215 groups = "pwm_ao_a_3";
216 function = "pwm_ao_a_3";
220 pwm_ao_a_6_pins: pwm_ao_a_6 {
222 groups = "pwm_ao_a_6";
223 function = "pwm_ao_a_6";
227 pwm_ao_a_12_pins: pwm_ao_a_12 {
229 groups = "pwm_ao_a_12";
230 function = "pwm_ao_a_12";
234 pwm_ao_b_pins: pwm_ao_b {
237 function = "pwm_ao_b";
242 clkc_AO: clock-controller@040 {
243 compatible = "amlogic,gxbb-aoclkc";
244 reg = <0x0 0x00040 0x0 0x4>;
250 compatible = "amlogic,meson-gxbb-pwm";
251 reg = <0x0 0x0550 0x0 0x10>;
257 compatible = "amlogic,meson-gxbb-i2c";
258 reg = <0x0 0x500 0x0 0x20>;
259 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
260 clocks = <&clkc CLKID_AO_I2C>;
261 #address-cells = <1>;
268 pinctrl_periphs: pinctrl@4b0 {
269 compatible = "amlogic,meson-gxbb-periphs-pinctrl";
270 #address-cells = <2>;
275 reg = <0x0 0x004b0 0x0 0x28>,
276 <0x0 0x004e8 0x0 0x14>,
277 <0x0 0x00120 0x0 0x14>,
278 <0x0 0x00430 0x0 0x40>;
279 reg-names = "mux", "pull", "pull-enable", "gpio";
286 groups = "emmc_nand_d07",
304 sdcard_pins: sdcard {
306 groups = "sdcard_d0",
328 sdio_irq_pins: sdio_irq {
335 uart_a_pins: uart_a {
337 groups = "uart_tx_a",
343 uart_b_pins: uart_b {
345 groups = "uart_tx_b",
351 uart_c_pins: uart_c {
353 groups = "uart_tx_c",
361 groups = "i2c_sck_a",
369 groups = "i2c_sck_b",
377 groups = "i2c_sck_c",
383 eth_rgmii_pins: eth-rgmii {
403 eth_rmii_pins: eth-rmii {
418 pwm_a_x_pins: pwm_a_x {
421 function = "pwm_a_x";
425 pwm_a_y_pins: pwm_a_y {
428 function = "pwm_a_y";
453 pwm_f_x_pins: pwm_f_x {
456 function = "pwm_f_x";
460 pwm_f_y_pins: pwm_f_y {
463 function = "pwm_f_y";
470 clkc: clock-controller@0 {
471 compatible = "amlogic,gxbb-clkc";
473 reg = <0x0 0x0 0x0 0x3db>;
478 clocks = <&clkc CLKID_I2C>;
482 clocks = <&clkc CLKID_I2C>;
486 clocks = <&clkc CLKID_I2C>;
490 clocks = <&clkc CLKID_SD_EMMC_A>,
492 <&clkc CLKID_FCLK_DIV2>;
493 clock-names = "core", "clkin0", "clkin1";
497 clocks = <&clkc CLKID_SD_EMMC_B>,
499 <&clkc CLKID_FCLK_DIV2>;
500 clock-names = "core", "clkin0", "clkin1";
504 clocks = <&clkc CLKID_SD_EMMC_C>,
506 <&clkc CLKID_FCLK_DIV2>;
507 clock-names = "core", "clkin0", "clkin1";
511 compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";