blob: 6ce03f34cf821506504701ffd5d6838e33c537f9 [file] [log] [blame]
Jim Liu147c0002022-09-27 16:45:15 +08001// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2021 Nuvoton Technology tomer.maimon@nuvoton.com
3
4#include "nuvoton-common-npcm8xx.dtsi"
5#include "nuvoton-npcm8xx-u-boot.dtsi"
6
7/ {
8 #address-cells = <2>;
9 #size-cells = <2>;
10
11 cpus {
12 #address-cells = <2>;
13 #size-cells = <0>;
14
15 cpu0: cpu@0 {
16 device_type = "cpu";
17 compatible = "arm,cortex-a35";
18 clocks = <&clk NPCM8XX_CLK_CPU>;
19 reg = <0x0 0x0>;
20 next-level-cache = <&l2>;
21 enable-method = "psci";
22 };
23
24 cpu1: cpu@1 {
25 device_type = "cpu";
26 compatible = "arm,cortex-a35";
27 clocks = <&clk NPCM8XX_CLK_CPU>;
28 reg = <0x0 0x1>;
29 next-level-cache = <&l2>;
30 enable-method = "psci";
31 };
32
33 cpu2: cpu@2 {
34 device_type = "cpu";
35 compatible = "arm,cortex-a35";
36 clocks = <&clk NPCM8XX_CLK_CPU>;
37 reg = <0x0 0x2>;
38 next-level-cache = <&l2>;
39 enable-method = "psci";
40 };
41
42 cpu3: cpu@3 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a35";
45 clocks = <&clk NPCM8XX_CLK_CPU>;
46 reg = <0x0 0x3>;
47 next-level-cache = <&l2>;
48 enable-method = "psci";
49 };
50
51 l2: l2-cache {
52 compatible = "cache";
53 };
54 };
55
56 arm-pmu {
57 compatible = "arm,cortex-a35-pmu";
58 interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>,
59 <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>,
60 <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
61 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
62 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
63 };
64
65 psci {
66 compatible = "arm,psci-1.0";
67 method = "smc";
68 };
69
70 timer {
71 compatible = "arm,armv8-timer";
72 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
73 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
74 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
75 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
76 };
77};