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>;
65 operating-points-v2 = <&cpu_opp_table>;
66 clocks = <&clkc CLKID_CPUCLK>;
71 compatible = "arm,cortex-a5";
72 next-level-cache = <&L2>;
74 enable-method = "amlogic,meson8b-smp";
75 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
76 operating-points-v2 = <&cpu_opp_table>;
77 clocks = <&clkc CLKID_CPUCLK>;
82 compatible = "arm,cortex-a5";
83 next-level-cache = <&L2>;
85 enable-method = "amlogic,meson8b-smp";
86 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
87 operating-points-v2 = <&cpu_opp_table>;
88 clocks = <&clkc CLKID_CPUCLK>;
93 compatible = "arm,cortex-a5";
94 next-level-cache = <&L2>;
96 enable-method = "amlogic,meson8b-smp";
97 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
98 operating-points-v2 = <&cpu_opp_table>;
99 clocks = <&clkc CLKID_CPUCLK>;
103 cpu_opp_table: opp-table {
104 compatible = "operating-points-v2";
108 opp-hz = /bits/ 64 <96000000>;
109 opp-microvolt = <860000>;
112 opp-hz = /bits/ 64 <192000000>;
113 opp-microvolt = <860000>;
116 opp-hz = /bits/ 64 <312000000>;
117 opp-microvolt = <860000>;
120 opp-hz = /bits/ 64 <408000000>;
121 opp-microvolt = <860000>;
124 opp-hz = /bits/ 64 <504000000>;
125 opp-microvolt = <860000>;
128 opp-hz = /bits/ 64 <600000000>;
129 opp-microvolt = <860000>;
132 opp-hz = /bits/ 64 <720000000>;
133 opp-microvolt = <860000>;
136 opp-hz = /bits/ 64 <816000000>;
137 opp-microvolt = <900000>;
140 opp-hz = /bits/ 64 <1008000000>;
141 opp-microvolt = <1140000>;
144 opp-hz = /bits/ 64 <1200000000>;
145 opp-microvolt = <1140000>;
148 opp-hz = /bits/ 64 <1320000000>;
149 opp-microvolt = <1140000>;
152 opp-hz = /bits/ 64 <1488000000>;
153 opp-microvolt = <1140000>;
156 opp-hz = /bits/ 64 <1536000000>;
157 opp-microvolt = <1140000>;
161 gpu_opp_table: gpu-opp-table {
162 compatible = "operating-points-v2";
165 opp-hz = /bits/ 64 <255000000>;
166 opp-microvolt = <1100000>;
169 opp-hz = /bits/ 64 <364300000>;
170 opp-microvolt = <1100000>;
173 opp-hz = /bits/ 64 <425000000>;
174 opp-microvolt = <1100000>;
177 opp-hz = /bits/ 64 <510000000>;
178 opp-microvolt = <1100000>;
181 opp-hz = /bits/ 64 <637500000>;
182 opp-microvolt = <1100000>;
188 compatible = "arm,cortex-a5-pmu";
189 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
190 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
191 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
192 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
193 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
197 #address-cells = <1>;
201 /* 2 MiB reserved for Hardware ROM Firmware? */
203 reg = <0x0 0x200000>;
209 compatible = "simple-bus";
210 reg = <0xd0000000 0x200000>;
211 #address-cells = <1>;
213 ranges = <0x0 0xd0000000 0x200000>;
216 compatible = "amlogic,meson8b-mali", "arm,mali-450";
217 reg = <0xc0000 0x40000>;
218 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
219 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
220 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
221 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
222 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
223 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
224 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
225 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
226 interrupt-names = "gp", "gpmmu", "pp", "pmu",
227 "pp0", "ppmmu0", "pp1", "ppmmu1";
228 resets = <&reset RESET_MALI>;
229 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
230 clock-names = "bus", "core";
231 operating-points-v2 = <&gpu_opp_table>;
238 compatible = "amlogic,meson8b-pmu", "syscon";
242 pinctrl_aobus: pinctrl@84 {
243 compatible = "amlogic,meson8b-aobus-pinctrl";
245 #address-cells = <1>;
249 gpio_ao: ao-bank@14 {
253 reg-names = "mux", "pull", "gpio";
256 gpio-ranges = <&pinctrl_aobus 0 0 16>;
259 uart_ao_a_pins: uart_ao_a {
261 groups = "uart_tx_ao_a", "uart_rx_ao_a";
262 function = "uart_ao";
267 ir_recv_pins: remote {
269 groups = "remote_input";
278 reset: reset-controller@4404 {
279 compatible = "amlogic,meson8b-reset";
284 analog_top: analog-top@81a8 {
285 compatible = "amlogic,meson8b-analog-top", "syscon";
290 compatible = "amlogic,meson8b-pwm";
297 compatible = "amlogic,meson8b-clk-measure";
301 pinctrl_cbus: pinctrl@9880 {
302 compatible = "amlogic,meson8b-cbus-pinctrl";
304 #address-cells = <1>;
313 reg-names = "mux", "pull", "pull-enable", "gpio";
316 gpio-ranges = <&pinctrl_cbus 0 0 83>;
319 eth_rgmii_pins: eth-rgmii {
321 groups = "eth_tx_clk",
336 function = "ethernet";
341 eth_rmii_pins: eth-rmii {
343 groups = "eth_tx_en",
352 function = "ethernet";
359 groups = "i2c_sda_a", "i2c_sck_a";
367 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
368 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
374 pwm_c1_pins: pwm-c1 {
382 uart_b0_pins: uart-b0 {
384 groups = "uart_tx_b0",
391 uart_b0_cts_rts_pins: uart-b0-cts-rts {
393 groups = "uart_cts_b0",
404 compatible = "amlogic,meson8b-smp-sram";
411 compatible = "amlogic,meson8b-efuse";
412 clocks = <&clkc CLKID_EFUSE>;
413 clock-names = "core";
415 temperature_calib: calib@1f4 {
416 /* only the upper two bytes are relevant */
422 compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac";
424 reg = <0xc9410000 0x10000
427 clocks = <&clkc CLKID_ETH>,
430 clock-names = "stmmaceth", "clkin0", "clkin1";
432 resets = <&reset RESET_ETHERNET>;
433 reset-names = "stmmaceth";
437 compatible = "amlogic,meson-gpio-intc",
438 "amlogic,meson8b-gpio-intc";
443 clkc: clock-controller {
444 compatible = "amlogic,meson8-clkc";
451 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
452 clocks = <&clkc CLKID_RNG0>;
453 clock-names = "core";
457 clocks = <&clkc CLKID_CLK81>;
461 clocks = <&clkc CLKID_I2C>;
465 clocks = <&clkc CLKID_I2C>;
469 arm,data-latency = <3 3 3>;
470 arm,tag-latency = <2 2 2>;
471 arm,filter-ranges = <0x100000 0xc0000000>;
473 prefetch-instr = <1>;
479 compatible = "arm,cortex-a5-scu";
484 compatible = "arm,cortex-a5-global-timer";
486 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
487 clocks = <&clkc CLKID_PERIPH>;
490 * the arm_global_timer driver currently does not handle clock
491 * rate changes. Keep it disabled for now.
497 compatible = "arm,cortex-a5-twd-timer";
499 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
500 clocks = <&clkc CLKID_PERIPH>;
505 compatible = "amlogic,meson8b-pwm";
509 compatible = "amlogic,meson8b-pwm";
513 compatible = "amlogic,meson8b-rtc";
514 resets = <&reset RESET_RTC>;
518 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
519 clocks = <&clkc CLKID_XTAL>,
520 <&clkc CLKID_SAR_ADC>;
521 clock-names = "clkin", "core";
522 amlogic,hhi-sysctrl = <&hhi>;
523 nvmem-cells = <&temperature_calib>;
524 nvmem-cell-names = "temperature_calib";
528 compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio";
529 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
530 clock-names = "core", "clkin";
534 clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
535 clock-names = "xtal", "pclk";
539 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
540 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
541 clock-names = "baud", "xtal", "pclk";
545 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
546 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>;
547 clock-names = "baud", "xtal", "pclk";
551 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
552 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>;
553 clock-names = "baud", "xtal", "pclk";
557 compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
558 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
559 clock-names = "baud", "xtal", "pclk";
563 compatible = "amlogic,meson8b-usb", "snps,dwc2";
564 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
569 compatible = "amlogic,meson8b-usb", "snps,dwc2";
570 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
575 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
576 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
577 clock-names = "usb_general", "usb";
578 resets = <&reset RESET_USB_OTG>;
582 compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy";
583 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
584 clock-names = "usb_general", "usb";
585 resets = <&reset RESET_USB_OTG>;
589 compatible = "amlogic,meson8b-wdt";