1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2019 Marvell Technology Group Ltd.
5 * Device Tree file for Marvell Armada AP80x.
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/thermal/thermal.h>
25 compatible = "arm,psci-0.2";
35 * This area matches the mapping done with a
36 * mainline U-Boot, and should be updated by the
41 reg = <0x0 0x4000000 0x0 0x200000>;
49 compatible = "simple-bus";
50 interrupt-parent = <&gic>;
53 config-space@f0000000 {
56 compatible = "simple-bus";
57 ranges = <0x0 0x0 0xf0000000 0x1000000>;
60 compatible = "marvell,ap806-smmu-500", "arm,mmu-500";
61 reg = <0x100000 0x100000>;
64 #global-interrupts = <1>;
65 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
66 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
67 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
68 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
69 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
70 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
71 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
72 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
73 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
77 gic: interrupt-controller@210000 {
78 compatible = "arm,gic-400";
79 #interrupt-cells = <3>;
84 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
85 reg = <0x210000 0x10000>,
90 gic_v2m0: v2m@280000 {
91 compatible = "arm,gic-v2m-frame";
93 reg = <0x280000 0x1000>;
94 arm,msi-base-spi = <160>;
95 arm,msi-num-spis = <32>;
97 gic_v2m1: v2m@290000 {
98 compatible = "arm,gic-v2m-frame";
100 reg = <0x290000 0x1000>;
101 arm,msi-base-spi = <192>;
102 arm,msi-num-spis = <32>;
104 gic_v2m2: v2m@2a0000 {
105 compatible = "arm,gic-v2m-frame";
107 reg = <0x2a0000 0x1000>;
108 arm,msi-base-spi = <224>;
109 arm,msi-num-spis = <32>;
111 gic_v2m3: v2m@2b0000 {
112 compatible = "arm,gic-v2m-frame";
114 reg = <0x2b0000 0x1000>;
115 arm,msi-base-spi = <256>;
116 arm,msi-num-spis = <32>;
121 compatible = "arm,armv8-timer";
122 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
123 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
124 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
125 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
129 compatible = "arm,cortex-a72-pmu";
130 interrupt-parent = <&pic>;
135 compatible = "marvell,odmi-controller";
136 interrupt-controller;
138 marvell,odmi-frames = <4>;
139 reg = <0x300000 0x4000>,
143 marvell,spi-base = <128>, <136>, <144>, <152>;
147 compatible = "marvell,ap806-gicp";
148 reg = <0x3f0040 0x10>;
149 marvell,spi-ranges = <64 64>, <288 64>;
153 pic: interrupt-controller@3f0100 {
154 compatible = "marvell,armada-8k-pic";
155 reg = <0x3f0100 0x10>;
156 #interrupt-cells = <1>;
157 interrupt-controller;
158 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
161 sei: interrupt-controller@3f0200 {
162 compatible = "marvell,ap806-sei";
163 reg = <0x3f0200 0x40>;
164 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
165 #interrupt-cells = <1>;
166 interrupt-controller;
171 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
172 reg = <0x400000 0x1000>,
174 msi-parent = <&gic_v2m0>;
175 clocks = <&ap_clk 3>;
180 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
181 reg = <0x420000 0x1000>,
183 msi-parent = <&gic_v2m0>;
184 clocks = <&ap_clk 3>;
189 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
190 reg = <0x440000 0x1000>,
192 msi-parent = <&gic_v2m0>;
193 clocks = <&ap_clk 3>;
198 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
199 reg = <0x460000 0x1000>,
201 msi-parent = <&gic_v2m0>;
202 clocks = <&ap_clk 3>;
207 compatible = "marvell,armada-380-spi";
208 reg = <0x510600 0x50>;
209 #address-cells = <1>;
211 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
212 clocks = <&ap_clk 3>;
217 compatible = "marvell,mv78230-i2c";
218 reg = <0x511000 0x20>;
219 #address-cells = <1>;
221 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
222 clocks = <&ap_clk 3>;
226 uart0: serial@512000 {
227 compatible = "snps,dw-apb-uart";
228 reg = <0x512000 0x100>;
230 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
232 clocks = <&ap_clk 3>;
236 uart1: serial@512100 {
237 compatible = "snps,dw-apb-uart";
238 reg = <0x512100 0x100>;
240 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
242 clocks = <&ap_clk 3>;
247 watchdog: watchdog@610000 {
248 compatible = "arm,sbsa-gwdt";
249 reg = <0x610000 0x1000>, <0x600000 0x1000>;
250 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
253 ap_sdhci0: sdhci@6e0000 {
254 compatible = "marvell,armada-ap806-sdhci";
255 reg = <0x6e0000 0x300>;
256 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
257 clock-names = "core";
258 clocks = <&ap_clk 4>;
260 marvell,xenon-phy-slow-mode;
264 ap_syscon0: system-controller@6f4000 {
265 compatible = "syscon", "simple-mfd";
266 reg = <0x6f4000 0x2000>;
268 ap_pinctrl: pinctrl {
269 compatible = "marvell,ap806-pinctrl";
271 uart0_pins: uart0-pins {
272 marvell,pins = "mpp11", "mpp19";
273 marvell,function = "uart0";
278 compatible = "marvell,armada-8k-gpio";
283 gpio-ranges = <&ap_pinctrl 0 0 20>;
287 ap_syscon1: system-controller@6f8000 {
288 compatible = "syscon", "simple-mfd";
289 reg = <0x6f8000 0x1000>;
290 #address-cells = <1>;
293 ap_thermal: thermal-sensor@80 {
294 compatible = "marvell,armada-ap806-thermal";
296 interrupt-parent = <&sei>;
298 #thermal-sensor-cells = <1>;
305 * The thermal IP features one internal sensor plus, if applicable, one
306 * remote channel wired to one sensor per CPU.
308 * Only one thermal zone per AP/CP may trigger interrupts at a time, the
309 * first one that will have a critical trip point will be chosen.
312 ap_thermal_ic: ap-thermal-ic {
313 polling-delay-passive = <0>; /* Interrupt driven */
314 polling-delay = <0>; /* Interrupt driven */
316 thermal-sensors = <&ap_thermal 0>;
320 temperature = <100000>; /* mC degrees */
321 hysteresis = <2000>; /* mC degrees */
329 ap_thermal_cpu0: ap-thermal-cpu0 {
330 polling-delay-passive = <1000>;
331 polling-delay = <1000>;
333 thermal-sensors = <&ap_thermal 1>;
337 temperature = <85000>;
341 cpu0_emerg: cpu0-emerg {
342 temperature = <95000>;
351 cooling-device = <&cpu0 1 2>,
354 map0_emerg: map0-ermerg {
355 trip = <&cpu0_emerg>;
356 cooling-device = <&cpu0 3 3>,
362 ap_thermal_cpu1: ap-thermal-cpu1 {
363 polling-delay-passive = <1000>;
364 polling-delay = <1000>;
366 thermal-sensors = <&ap_thermal 2>;
370 temperature = <85000>;
374 cpu1_emerg: cpu1-emerg {
375 temperature = <95000>;
384 cooling-device = <&cpu0 1 2>,
387 map1_emerg: map1-emerg {
388 trip = <&cpu1_emerg>;
389 cooling-device = <&cpu0 3 3>,
395 ap_thermal_cpu2: ap-thermal-cpu2 {
396 polling-delay-passive = <1000>;
397 polling-delay = <1000>;
399 thermal-sensors = <&ap_thermal 3>;
403 temperature = <85000>;
407 cpu2_emerg: cpu2-emerg {
408 temperature = <95000>;
417 cooling-device = <&cpu2 1 2>,
420 map2_emerg: map2-emerg {
421 trip = <&cpu2_emerg>;
422 cooling-device = <&cpu2 3 3>,
428 ap_thermal_cpu3: ap-thermal-cpu3 {
429 polling-delay-passive = <1000>;
430 polling-delay = <1000>;
432 thermal-sensors = <&ap_thermal 4>;
436 temperature = <85000>;
440 cpu3_emerg: cpu3-emerg {
441 temperature = <95000>;
448 map3_hot: map3-bhot {
450 cooling-device = <&cpu2 1 2>,
453 map3_emerg: map3-emerg {
454 trip = <&cpu3_emerg>;
455 cooling-device = <&cpu2 3 3>,