| 1 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
/* |
| 3 |
* Device Tree Source for the RZ/Five SoC |
| 4 |
* |
| 5 |
* Copyright (C) 2022 Renesas Electronics Corp. |
| 6 |
*/ |
| 7 |
|
| 8 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 9 |
|
| 10 |
#define SOC_PERIPHERAL_IRQ(nr) (nr + 32) |
| 11 |
|
| 12 |
#include <arm64/renesas/r9a07g043.dtsi> |
| 13 |
|
| 14 |
/ { |
| 15 |
interrupt-parent = <&plic>; |
| 16 |
|
| 17 |
cpus { |
| 18 |
#address-cells = <1>; |
| 19 |
#size-cells = <0>; |
| 20 |
timebase-frequency = <12000000>; |
| 21 |
|
| 22 |
cpu0: cpu@0 { |
| 23 |
compatible = "andestech,ax45mp", "riscv"; |
| 24 |
device_type = "cpu"; |
| 25 |
#cooling-cells = <2>; |
| 26 |
reg = <0x0>; |
| 27 |
status = "okay"; |
| 28 |
riscv,isa = "rv64imafdc"; |
| 29 |
riscv,isa-base = "rv64i"; |
| 30 |
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", |
| 31 |
"zicntr", "zicsr", "zifencei", |
| 32 |
"zihpm", "xandespmu"; |
| 33 |
mmu-type = "riscv,sv39"; |
| 34 |
i-cache-size = <0x8000>; |
| 35 |
i-cache-line-size = <0x40>; |
| 36 |
d-cache-size = <0x8000>; |
| 37 |
d-cache-line-size = <0x40>; |
| 38 |
next-level-cache = <&l2cache>; |
| 39 |
clocks = <&cpg CPG_CORE R9A07G043_CLK_I>; |
| 40 |
operating-points-v2 = <&cluster0_opp>; |
| 41 |
|
| 42 |
cpu0_intc: interrupt-controller { |
| 43 |
#interrupt-cells = <1>; |
| 44 |
compatible = "andestech,cpu-intc", "riscv,cpu-intc"; |
| 45 |
interrupt-controller; |
| 46 |
}; |
| 47 |
}; |
| 48 |
}; |
| 49 |
}; |
| 50 |
|
| 51 |
&pinctrl { |
| 52 |
gpio-ranges = <&pinctrl 0 0 232>; |
| 53 |
}; |
| 54 |
|
| 55 |
&soc { |
| 56 |
dma-noncoherent; |
| 57 |
|
| 58 |
irqc: interrupt-controller@110a0000 { |
| 59 |
compatible = "renesas,r9a07g043f-irqc"; |
| 60 |
reg = <0 0x110a0000 0 0x20000>; |
| 61 |
#interrupt-cells = <2>; |
| 62 |
#address-cells = <0>; |
| 63 |
interrupt-controller; |
| 64 |
interrupts = <32 IRQ_TYPE_LEVEL_HIGH>, |
| 65 |
<33 IRQ_TYPE_LEVEL_HIGH>, |
| 66 |
<34 IRQ_TYPE_LEVEL_HIGH>, |
| 67 |
<35 IRQ_TYPE_LEVEL_HIGH>, |
| 68 |
<36 IRQ_TYPE_LEVEL_HIGH>, |
| 69 |
<37 IRQ_TYPE_LEVEL_HIGH>, |
| 70 |
<38 IRQ_TYPE_LEVEL_HIGH>, |
| 71 |
<39 IRQ_TYPE_LEVEL_HIGH>, |
| 72 |
<40 IRQ_TYPE_LEVEL_HIGH>, |
| 73 |
<476 IRQ_TYPE_LEVEL_HIGH>, |
| 74 |
<477 IRQ_TYPE_LEVEL_HIGH>, |
| 75 |
<478 IRQ_TYPE_LEVEL_HIGH>, |
| 76 |
<479 IRQ_TYPE_LEVEL_HIGH>, |
| 77 |
<480 IRQ_TYPE_LEVEL_HIGH>, |
| 78 |
<481 IRQ_TYPE_LEVEL_HIGH>, |
| 79 |
<482 IRQ_TYPE_LEVEL_HIGH>, |
| 80 |
<483 IRQ_TYPE_LEVEL_HIGH>, |
| 81 |
<484 IRQ_TYPE_LEVEL_HIGH>, |
| 82 |
<485 IRQ_TYPE_LEVEL_HIGH>, |
| 83 |
<486 IRQ_TYPE_LEVEL_HIGH>, |
| 84 |
<487 IRQ_TYPE_LEVEL_HIGH>, |
| 85 |
<488 IRQ_TYPE_LEVEL_HIGH>, |
| 86 |
<489 IRQ_TYPE_LEVEL_HIGH>, |
| 87 |
<490 IRQ_TYPE_LEVEL_HIGH>, |
| 88 |
<491 IRQ_TYPE_LEVEL_HIGH>, |
| 89 |
<492 IRQ_TYPE_LEVEL_HIGH>, |
| 90 |
<493 IRQ_TYPE_LEVEL_HIGH>, |
| 91 |
<494 IRQ_TYPE_LEVEL_HIGH>, |
| 92 |
<495 IRQ_TYPE_LEVEL_HIGH>, |
| 93 |
<496 IRQ_TYPE_LEVEL_HIGH>, |
| 94 |
<497 IRQ_TYPE_LEVEL_HIGH>, |
| 95 |
<498 IRQ_TYPE_LEVEL_HIGH>, |
| 96 |
<499 IRQ_TYPE_LEVEL_HIGH>, |
| 97 |
<500 IRQ_TYPE_LEVEL_HIGH>, |
| 98 |
<501 IRQ_TYPE_LEVEL_HIGH>, |
| 99 |
<502 IRQ_TYPE_LEVEL_HIGH>, |
| 100 |
<503 IRQ_TYPE_LEVEL_HIGH>, |
| 101 |
<504 IRQ_TYPE_LEVEL_HIGH>, |
| 102 |
<505 IRQ_TYPE_LEVEL_HIGH>, |
| 103 |
<506 IRQ_TYPE_LEVEL_HIGH>, |
| 104 |
<507 IRQ_TYPE_LEVEL_HIGH>, |
| 105 |
<57 IRQ_TYPE_LEVEL_HIGH>, |
| 106 |
<66 IRQ_TYPE_EDGE_RISING>, |
| 107 |
<67 IRQ_TYPE_EDGE_RISING>, |
| 108 |
<68 IRQ_TYPE_EDGE_RISING>, |
| 109 |
<69 IRQ_TYPE_EDGE_RISING>, |
| 110 |
<70 IRQ_TYPE_EDGE_RISING>, |
| 111 |
<71 IRQ_TYPE_EDGE_RISING>; |
| 112 |
interrupt-names = "nmi", |
| 113 |
"irq0", "irq1", "irq2", "irq3", |
| 114 |
"irq4", "irq5", "irq6", "irq7", |
| 115 |
"tint0", "tint1", "tint2", "tint3", |
| 116 |
"tint4", "tint5", "tint6", "tint7", |
| 117 |
"tint8", "tint9", "tint10", "tint11", |
| 118 |
"tint12", "tint13", "tint14", "tint15", |
| 119 |
"tint16", "tint17", "tint18", "tint19", |
| 120 |
"tint20", "tint21", "tint22", "tint23", |
| 121 |
"tint24", "tint25", "tint26", "tint27", |
| 122 |
"tint28", "tint29", "tint30", "tint31", |
| 123 |
"bus-err", "ec7tie1-0", "ec7tie2-0", |
| 124 |
"ec7tiovf-0", "ec7tie1-1", "ec7tie2-1", |
| 125 |
"ec7tiovf-1"; |
| 126 |
clocks = <&cpg CPG_MOD R9A07G043_IAX45_CLK>, |
| 127 |
<&cpg CPG_MOD R9A07G043_IAX45_PCLK>; |
| 128 |
clock-names = "clk", "pclk"; |
| 129 |
power-domains = <&cpg>; |
| 130 |
resets = <&cpg R9A07G043_IAX45_RESETN>; |
| 131 |
}; |
| 132 |
|
| 133 |
plic: interrupt-controller@12c00000 { |
| 134 |
compatible = "renesas,r9a07g043-plic", "andestech,nceplic100"; |
| 135 |
#interrupt-cells = <2>; |
| 136 |
#address-cells = <0>; |
| 137 |
riscv,ndev = <511>; |
| 138 |
interrupt-controller; |
| 139 |
reg = <0x0 0x12c00000 0 0x400000>; |
| 140 |
clocks = <&cpg CPG_MOD R9A07G043_NCEPLIC_ACLK>; |
| 141 |
power-domains = <&cpg>; |
| 142 |
resets = <&cpg R9A07G043_NCEPLIC_ARESETN>; |
| 143 |
interrupts-extended = <&cpu0_intc 11 &cpu0_intc 9>; |
| 144 |
}; |
| 145 |
|
| 146 |
l2cache: cache-controller@13400000 { |
| 147 |
compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache", |
| 148 |
"cache"; |
| 149 |
reg = <0x0 0x13400000 0x0 0x100000>; |
| 150 |
interrupts = <SOC_PERIPHERAL_IRQ(476) IRQ_TYPE_LEVEL_HIGH>; |
| 151 |
cache-size = <0x40000>; |
| 152 |
cache-line-size = <64>; |
| 153 |
cache-sets = <1024>; |
| 154 |
cache-unified; |
| 155 |
cache-level = <2>; |
| 156 |
}; |
| 157 |
}; |