2 * Copyright 2015 Endless Mobile, 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.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
47 #include <dt-bindings/clock/meson8b-clkc.h>
48 #include <dt-bindings/gpio/meson8b-gpio.h>
49 #include <dt-bindings/reset/amlogic,meson8b-reset.h>
50 #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
60 compatible = "arm,cortex-a5";
61 next-level-cache = <&L2>;
63 enable-method = "amlogic,meson8b-smp";
64 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
69 compatible = "arm,cortex-a5";
70 next-level-cache = <&L2>;
72 enable-method = "amlogic,meson8b-smp";
73 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
78 compatible = "arm,cortex-a5";
79 next-level-cache = <&L2>;
81 enable-method = "amlogic,meson8b-smp";
82 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
87 compatible = "arm,cortex-a5";
88 next-level-cache = <&L2>;
90 enable-method = "amlogic,meson8b-smp";
91 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
96 compatible = "arm,cortex-a5-pmu";
97 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
98 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
99 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
100 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
101 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
105 #address-cells = <1>;
109 /* 2 MiB reserved for Hardware ROM Firmware? */
111 reg = <0x0 0x200000>;
117 compatible = "arm,cortex-a5-scu";
118 reg = <0xc4300000 0x100>;
124 compatible = "amlogic,meson8b-pmu", "syscon";
128 pinctrl_aobus: pinctrl@84 {
129 compatible = "amlogic,meson8b-aobus-pinctrl";
131 #address-cells = <1>;
135 gpio_ao: ao-bank@14 {
139 reg-names = "mux", "pull", "gpio";
142 gpio-ranges = <&pinctrl_aobus 0 0 16>;
145 uart_ao_a_pins: uart_ao_a {
147 groups = "uart_tx_ao_a", "uart_rx_ao_a";
148 function = "uart_ao";
153 ir_recv_pins: remote {
155 groups = "remote_input";
164 clkc: clock-controller@4000 {
167 compatible = "amlogic,meson8b-clkc";
168 reg = <0x8000 0x4>, <0x4000 0x400>;
171 reset: reset-controller@4404 {
172 compatible = "amlogic,meson8b-reset";
177 analog_top: analog-top@81a8 {
178 compatible = "amlogic,meson8b-analog-top", "syscon";
183 compatible = "amlogic,meson8b-pwm";
189 pinctrl_cbus: pinctrl@9880 {
190 compatible = "amlogic,meson8b-cbus-pinctrl";
192 #address-cells = <1>;
201 reg-names = "mux", "pull", "pull-enable", "gpio";
204 gpio-ranges = <&pinctrl_cbus 0 0 83>;
207 eth_rgmii_pins: eth-rgmii {
209 groups = "eth_tx_clk",
224 function = "ethernet";
229 eth_rmii_pins: eth-rmii {
231 groups = "eth_tx_en",
240 function = "ethernet";
247 groups = "i2c_sda_a", "i2c_sck_a";
255 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
256 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
262 pwm_c1_pins: pwm-c1 {
270 uart_b0_pins: uart-b0 {
272 groups = "uart_tx_b0",
279 uart_b0_cts_rts_pins: uart-b0-cts-rts {
281 groups = "uart_cts_b0",
292 compatible = "amlogic,meson8b-smp-sram";
299 compatible = "amlogic,meson8b-efuse";
300 clocks = <&clkc CLKID_EFUSE>;
301 clock-names = "core";
305 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
307 reg = <0xc9410000 0x10000
310 clocks = <&clkc CLKID_ETH>,
313 clock-names = "stmmaceth", "clkin0", "clkin1";
315 resets = <&reset RESET_ETHERNET>;
316 reset-names = "stmmaceth";
320 compatible = "amlogic,meson-gpio-intc",
321 "amlogic,meson8b-gpio-intc";
326 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
327 clocks = <&clkc CLKID_RNG0>;
328 clock-names = "core";
332 clocks = <&clkc CLKID_CLK81>;
336 clocks = <&clkc CLKID_I2C>;
340 clocks = <&clkc CLKID_I2C>;
344 arm,data-latency = <3 3 3>;
345 arm,tag-latency = <2 2 2>;
346 arm,filter-ranges = <0x100000 0xc0000000>;
348 prefetch-instr = <1>;
353 compatible = "amlogic,meson8b-pwm";
357 compatible = "amlogic,meson8b-pwm";
361 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
362 clocks = <&clkc CLKID_XTAL>,
363 <&clkc CLKID_SAR_ADC>;
364 clock-names = "clkin", "core";
368 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
369 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
370 clock-names = "core", "clkin";
374 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
375 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
376 clock-names = "baud", "xtal", "pclk";
380 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
381 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>;
382 clock-names = "baud", "xtal", "pclk";
386 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
387 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>;
388 clock-names = "baud", "xtal", "pclk";
392 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
393 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
394 clock-names = "baud", "xtal", "pclk";
398 compatible = "amlogic,meson8b-usb", "snps,dwc2";
399 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
404 compatible = "amlogic,meson8b-usb", "snps,dwc2";
405 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
410 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
411 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
412 clock-names = "usb_general", "usb";
413 resets = <&reset RESET_USB_OTG>;
417 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
418 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
419 clock-names = "usb_general", "usb";
420 resets = <&reset RESET_USB_OTG>;
424 compatible = "amlogic,meson8b-wdt";