2 * Copyright (C) 2015 Marvell Technology Group Ltd.
4 * Author: Jisheng Zhang <jszhang@marvell.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPLv2 or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
48 compatible = "marvell,berlin4ct", "marvell,berlin";
49 interrupt-parent = <&gic>;
58 compatible = "arm,psci-1.0", "arm,psci-0.2";
67 compatible = "arm,cortex-a53", "arm,armv8";
70 enable-method = "psci";
71 cpu-idle-states = <&CPU_SLEEP_0>;
75 compatible = "arm,cortex-a53", "arm,armv8";
78 enable-method = "psci";
79 cpu-idle-states = <&CPU_SLEEP_0>;
83 compatible = "arm,cortex-a53", "arm,armv8";
86 enable-method = "psci";
87 cpu-idle-states = <&CPU_SLEEP_0>;
91 compatible = "arm,cortex-a53", "arm,armv8";
94 enable-method = "psci";
95 cpu-idle-states = <&CPU_SLEEP_0>;
99 entry-method = "psci";
100 CPU_SLEEP_0: cpu-sleep-0 {
101 compatible = "arm,idle-state";
103 arm,psci-suspend-param = <0x0010000>;
104 entry-latency-us = <75>;
105 exit-latency-us = <155>;
106 min-residency-us = <1000>;
112 compatible = "fixed-clock";
114 clock-frequency = <25000000>;
118 compatible = "arm,armv8-pmuv3";
119 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
120 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
121 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
122 <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
123 interrupt-affinity = <&cpu0>,
130 compatible = "arm,armv8-timer";
131 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
132 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
133 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
134 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
138 compatible = "simple-bus";
139 #address-cells = <1>;
141 ranges = <0 0 0xf7000000 0x1000000>;
143 gic: interrupt-controller@901000 {
144 compatible = "arm,gic-400";
145 #interrupt-cells = <3>;
146 interrupt-controller;
147 reg = <0x901000 0x1000>,
151 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
155 compatible = "simple-bus";
156 #address-cells = <1>;
159 ranges = <0 0xe80000 0x10000>;
160 interrupt-parent = <&aic>;
163 compatible = "snps,dw-apb-gpio";
164 reg = <0x0400 0x400>;
165 #address-cells = <1>;
169 compatible = "snps,dw-apb-gpio-port";
172 snps,nr-gpios = <32>;
174 interrupt-controller;
175 #interrupt-cells = <2>;
181 compatible = "snps,dw-apb-gpio";
182 reg = <0x0800 0x400>;
183 #address-cells = <1>;
187 compatible = "snps,dw-apb-gpio-port";
190 snps,nr-gpios = <32>;
192 interrupt-controller;
193 #interrupt-cells = <2>;
199 compatible = "snps,dw-apb-gpio";
200 reg = <0x0c00 0x400>;
201 #address-cells = <1>;
205 compatible = "snps,dw-apb-gpio-port";
208 snps,nr-gpios = <32>;
210 interrupt-controller;
211 #interrupt-cells = <2>;
217 compatible = "snps,dw-apb-gpio";
218 reg = <0x1000 0x400>;
219 #address-cells = <1>;
223 compatible = "snps,dw-apb-gpio-port";
226 snps,nr-gpios = <32>;
228 interrupt-controller;
229 #interrupt-cells = <2>;
234 aic: interrupt-controller@3800 {
235 compatible = "snps,dw-apb-ictl";
237 interrupt-controller;
238 #interrupt-cells = <1>;
239 interrupt-parent = <&gic>;
240 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
244 soc_pinctrl: pin-controller@ea8000 {
245 compatible = "marvell,berlin4ct-soc-pinctrl";
246 reg = <0xea8000 0x14>;
249 avio_pinctrl: pin-controller@ea8400 {
250 compatible = "marvell,berlin4ct-avio-pinctrl";
251 reg = <0xea8400 0x8>;
255 compatible = "simple-bus";
256 #address-cells = <1>;
258 ranges = <0 0xfc0000 0x10000>;
259 interrupt-parent = <&sic>;
261 sic: interrupt-controller@1000 {
262 compatible = "snps,dw-apb-ictl";
264 interrupt-controller;
265 #interrupt-cells = <1>;
266 interrupt-parent = <&gic>;
267 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
270 wdt0: watchdog@3000 {
271 compatible = "snps,dw-wdt";
272 reg = <0x3000 0x100>;
277 wdt1: watchdog@4000 {
278 compatible = "snps,dw-wdt";
279 reg = <0x4000 0x100>;
285 wdt2: watchdog@5000 {
286 compatible = "snps,dw-wdt";
287 reg = <0x5000 0x100>;
293 sm_gpio0: gpio@8000 {
294 compatible = "snps,dw-apb-gpio";
295 reg = <0x8000 0x400>;
296 #address-cells = <1>;
300 compatible = "snps,dw-apb-gpio-port";
303 snps,nr-gpios = <32>;
308 sm_gpio1: gpio@9000 {
309 compatible = "snps,dw-apb-gpio";
310 reg = <0x9000 0x400>;
311 #address-cells = <1>;
315 compatible = "snps,dw-apb-gpio-port";
318 snps,nr-gpios = <32>;
324 compatible = "snps,dw-apb-uart";
325 reg = <0xd000 0x100>;
330 pinctrl-0 = <&uart0_pmux>;
331 pinctrl-names = "default";
335 system_pinctrl: pin-controller@fe2200 {
336 compatible = "marvell,berlin4ct-system-pinctrl";
337 reg = <0xfe2200 0xc>;
339 uart0_pmux: uart0-pmux {
340 groups = "SM_URT0_TXD", "SM_URT0_RXD";