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";
137 marvell,odmi-frames = <4>;
138 reg = <0x300000 0x4000>,
142 marvell,spi-base = <128>, <136>, <144>, <152>;
146 compatible = "marvell,ap806-gicp";
147 reg = <0x3f0040 0x10>;
148 marvell,spi-ranges = <64 64>, <288 64>;
152 pic: interrupt-controller@3f0100 {
153 compatible = "marvell,armada-8k-pic";
154 reg = <0x3f0100 0x10>;
155 #interrupt-cells = <1>;
156 interrupt-controller;
157 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
160 sei: interrupt-controller@3f0200 {
161 compatible = "marvell,ap806-sei";
162 reg = <0x3f0200 0x40>;
163 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
164 #interrupt-cells = <1>;
165 interrupt-controller;
170 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
171 reg = <0x400000 0x1000>,
173 msi-parent = <&gic_v2m0>;
174 clocks = <&ap_clk 3>;
179 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
180 reg = <0x420000 0x1000>,
182 msi-parent = <&gic_v2m0>;
183 clocks = <&ap_clk 3>;
188 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
189 reg = <0x440000 0x1000>,
191 msi-parent = <&gic_v2m0>;
192 clocks = <&ap_clk 3>;
197 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
198 reg = <0x460000 0x1000>,
200 msi-parent = <&gic_v2m0>;
201 clocks = <&ap_clk 3>;
206 compatible = "marvell,armada-380-spi";
207 reg = <0x510600 0x50>;
208 #address-cells = <1>;
210 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
211 clocks = <&ap_clk 3>;
216 compatible = "marvell,mv78230-i2c";
217 reg = <0x511000 0x20>;
218 #address-cells = <1>;
220 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
221 clocks = <&ap_clk 3>;
225 uart0: serial@512000 {
226 compatible = "snps,dw-apb-uart";
227 reg = <0x512000 0x100>;
229 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
231 clocks = <&ap_clk 3>;
235 uart1: serial@512100 {
236 compatible = "snps,dw-apb-uart";
237 reg = <0x512100 0x100>;
239 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&ap_clk 3>;
246 watchdog: watchdog@610000 {
247 compatible = "arm,sbsa-gwdt";
248 reg = <0x610000 0x1000>, <0x600000 0x1000>;
249 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
252 ap_sdhci0: mmc@6e0000 {
253 compatible = "marvell,armada-ap806-sdhci";
254 reg = <0x6e0000 0x300>;
255 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
256 clock-names = "core";
257 clocks = <&ap_clk 4>;
259 marvell,xenon-phy-slow-mode;
263 ap_syscon0: system-controller@6f4000 {
264 compatible = "syscon", "simple-mfd";
265 reg = <0x6f4000 0x2000>;
267 ap_pinctrl: pinctrl {
268 compatible = "marvell,ap806-pinctrl";
270 uart0_pins: uart0-pins {
271 marvell,pins = "mpp11", "mpp19";
272 marvell,function = "uart0";
277 compatible = "marvell,armada-8k-gpio";
282 gpio-ranges = <&ap_pinctrl 0 0 20>;
283 marvell,pwm-offset = <0x10c0>;
285 clocks = <&ap_clk 3>;
289 ap_syscon1: system-controller@6f8000 {
290 compatible = "syscon", "simple-mfd";
291 reg = <0x6f8000 0x1000>;
292 #address-cells = <1>;
295 ap_thermal: thermal-sensor@80 {
296 compatible = "marvell,armada-ap806-thermal";
298 interrupt-parent = <&sei>;
300 #thermal-sensor-cells = <1>;
307 * The thermal IP features one internal sensor plus, if applicable, one
308 * remote channel wired to one sensor per CPU.
310 * Only one thermal zone per AP/CP may trigger interrupts at a time, the
311 * first one that will have a critical trip point will be chosen.
314 ap_thermal_ic: ap-thermal-ic {
315 polling-delay-passive = <0>; /* Interrupt driven */
316 polling-delay = <0>; /* Interrupt driven */
318 thermal-sensors = <&ap_thermal 0>;
322 temperature = <100000>; /* mC degrees */
323 hysteresis = <2000>; /* mC degrees */
331 ap_thermal_cpu0: ap-thermal-cpu0 {
332 polling-delay-passive = <1000>;
333 polling-delay = <1000>;
335 thermal-sensors = <&ap_thermal 1>;
339 temperature = <85000>;
343 cpu0_emerg: cpu0-emerg {
344 temperature = <95000>;
353 cooling-device = <&cpu0 1 2>,
356 map0_emerg: map0-ermerg {
357 trip = <&cpu0_emerg>;
358 cooling-device = <&cpu0 3 3>,
364 ap_thermal_cpu1: ap-thermal-cpu1 {
365 polling-delay-passive = <1000>;
366 polling-delay = <1000>;
368 thermal-sensors = <&ap_thermal 2>;
372 temperature = <85000>;
376 cpu1_emerg: cpu1-emerg {
377 temperature = <95000>;
386 cooling-device = <&cpu0 1 2>,
389 map1_emerg: map1-emerg {
390 trip = <&cpu1_emerg>;
391 cooling-device = <&cpu0 3 3>,
397 ap_thermal_cpu2: ap-thermal-cpu2 {
398 polling-delay-passive = <1000>;
399 polling-delay = <1000>;
401 thermal-sensors = <&ap_thermal 3>;
405 temperature = <85000>;
409 cpu2_emerg: cpu2-emerg {
410 temperature = <95000>;
419 cooling-device = <&cpu2 1 2>,
422 map2_emerg: map2-emerg {
423 trip = <&cpu2_emerg>;
424 cooling-device = <&cpu2 3 3>,
430 ap_thermal_cpu3: ap-thermal-cpu3 {
431 polling-delay-passive = <1000>;
432 polling-delay = <1000>;
434 thermal-sensors = <&ap_thermal 4>;
438 temperature = <85000>;
442 cpu3_emerg: cpu3-emerg {
443 temperature = <95000>;
450 map3_hot: map3-bhot {
452 cooling-device = <&cpu2 1 2>,
455 map3_emerg: map3-emerg {
456 trip = <&cpu3_emerg>;
457 cooling-device = <&cpu2 3 3>,