dts: nanhu: initial version added

Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Yixun Lan
2025-11-11 12:01:20 +08:00
parent 6fb6569f65
commit 5a9b9f04cb
35 changed files with 4116 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
subdir-y += allwinner
subdir-y += andes
subdir-y += bosc
subdir-y += canaan
subdir-y += eswin
subdir-y += microchip
@@ -10,3 +11,5 @@ subdir-y += sophgo
subdir-y += spacemit
subdir-y += starfive
subdir-y += thead
obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_SOURCE))
+36
View File
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0
# kunminghu-v2 has the H externsion, kmh-v1 don't have
dtb-$(CONFIG_SOC_XIANGSHAN) += \
kmh-v1.dtb \
nanhu-v2.dtb \
nanhu-v3.dtb \
nanhu-v3a.dtb \
nanhu-v3-1core.dtb \
nemu-platform.dtb \
nemu-platform-initramfs.dtb \
emu.dtb \
kmh-v2-1core.dtb \
kmh-v2-2core.dtb \
kmh-v2-4core.dtb \
kmh-v2-8core.dtb \
kmh-v2-16core.dtb \
kmh-v2-1core-uartlite.dtb \
kmh-v2-2core-uartlite.dtb \
kmh-v2-4core-uartlite.dtb \
kmh-v2-8core-uartlite.dtb \
kmh-v2-16core-uartlite.dtb \
kmh-v2-nemu.dtb \
nanhu-v5-1core.dtb \
nanhu-v5-2core.dtb \
nanhu-v5-4core.dtb \
nanhu-v5-8core.dtb \
nanhu-v5-16core.dtb \
nanhu-v5-1core-uartlite.dtb \
nanhu-v5-2core-uartlite.dtb \
nanhu-v5-4core-uartlite.dtb \
nanhu-v5-8core-uartlite.dtb \
nanhu-v5-16core-uartlite.dtb
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
+126
View File
@@ -0,0 +1,126 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nemu";
model = "bosc,nemu";
aliases {
serial0 = &uart0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <500000>;//50Khz
cpu@0 {
clock-frequency = <1000000>;
compatible = "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x0>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//50Khz
tlb-split;
intc_cpu0: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu@1 {
clock-frequency = <0>;
compatible = "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x1>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//50Khz
tlb-split;
intc_cpu1: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "simple-bus";
ranges;
clint@38000000 {
compatible = "riscv,clint0";
interrupts-extended = <&intc_cpu0 3 &intc_cpu0 7 &intc_cpu1 3 &intc_cpu1 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <25>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
interrupts-extended = <&intc_cpu0 0xb &intc_cpu0 0x9 &intc_cpu1 0xb &intc_cpu1 0x9>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
uart0: serial@310B0000 {
compatible = "ns16550a";
reg = <0x0 0x310B0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <40>;
clock-frequency = <50000000>;
status = "okay";
};
};
chosen {
bootargs = "console=ttyS0,115200 earlycon";
stdout-path = "serial0:115200n8";
};
memory: memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};
};
+312
View File
@@ -0,0 +1,312 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v1-dev";
model = "bosc,kmh-v1";
aliases {
serial0 = &uart0;
};
L19: cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <500000>;//50Khz
L6: cpu@0 {
clock-frequency = <1000000>;
compatible = "bosc,kmh-v1", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&L11>;
reg = <0x0>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//50Khz
tlb-split;
L4: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
L7: cpu@1 {
clock-frequency = <0>;
compatible = "bosc,kmh-v1", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&L11>;
reg = <0x1>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//50Khz
tlb-split;
L5: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
L18: soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v1-soc", "simple-bus";
ranges;
L3: debug-controller@0 {
compatible = "sifive,debug-013", "riscv,debug-013";
interrupts-extended = <&L4 65535>;
reg = <0x0 0x0 0x0 0x1000>;
reg-names = "control";
};
L2: clint@38000000 {
compatible = "riscv,clint0";
interrupts-extended = <&L4 3 &L4 7 &L5 3 &L5 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <25>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
interrupts-extended = <&L4 0xb &L4 0x9 &L5 0xb &L5 0x9>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
clkc: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <25000000>;
compatible = "fixed-clock";
};
wdt_clkc: wdt_clock{
#clock-cells = <0>;
clock-frequency = <50000000>;
compatible = "fixed-clock";
};
ethernet1: ethernet@31010000 {
compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
reg = <0 0x31010000 0 0x10000>;
reg-names = "stmmaceth";
interrupt-parent = <&PLIC>;
interrupts = <3 2 1>;
interrupt-names = "eth_lpi", "macirq", "eth_wake_irq";
clock-names = "stmmaceth";
clocks = <&clkc>;
snps,pbl = <2>;
snps,mixed-burst;
phy-mode = "rgmii";
// stmmac driver can not find phy if add this node
//
phy-handle = <&phy>;
mdio {
#address-cells = <0x1>;
#size-cells = <0x0>;
phyaddr = <0x7>;
compatible = "snps,dwmac-mdio";
phy: phy@7 {
//phyaddr = <0x7>;
//compatible = "marvell,88e1116r";
//device_type = "ethernet-phy";
reg = <0x7>;
};
};
};
xdma_0: pcie@48000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_0 1>,
<0x0 0 0 2 &pcie_intc_0 2>,
<0x0 0 0 3 &pcie_intc_0 3>,
<0x0 0 0 4 &pcie_intc_0 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <53 52 51>;
//bus-range = <0x00 0xff>;
ranges = <0x02000000 0x00000000 0x20000000 0x0 0x40000000 0x00000000 0x8000000>;
reg = <0x00000000 0x48000000 0x0 0x2000000>;
pcie_intc_0: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
xdma_1: pcie@4c000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_1 1>,
<0x0 0 0 2 &pcie_intc_1 2>,
<0x0 0 0 3 &pcie_intc_1 3>,
<0x0 0 0 4 &pcie_intc_1 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <59 58 57>;
//bus-range = <0x00 0xff>;
ranges = <0x02000000 0x0 0x40000000 0x0 0x60000000 0x00000000 0x20000000>;
reg = <0x00000000 0x4c000000 0x0 0x4000000>;
pcie_intc_1:interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller;
};
};
uart0: serial@310B0000 {
compatible = "ns16550a";
reg = <0x0 0x310B0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <40>;
clock-frequency = <50000000>;
status = "okay";
};
qspi: spi@31000000 {
compatible = "cdns,qspi-nor";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x31000000 0x0 0x1000>,
<0x0 0x10000000 0x0 0x10000000>;
interrupt-parent = <&PLIC>;
interrupts = <44>;
cdns,fifo-depth = <128>;
cdns,fifo-width = <4>;
cdns,trigger-address = <0x10000000>;
clocks = <&clkc>;
status = "okay";
flash0: mt25qu512a@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "micron,mt25qu512a", "jedec,spi-nor";
reg = <0>; /* chip select */
spi-max-frequency = <10000000>;
m25p,fast-read;
cdns,page-size = <256>;
cdns,block-size = <16>;
cdns,read-delay = <0>;
cdns,tshsl-ns = <0>;
cdns,tsd2d-ns = <0>;
cdns,tchsh-ns = <0>;
cdns,tslch-ns = <0>;
};
};
sdhci2: sdhci@30050000 {
compatible = "snps,dwcmshc-sdhci";
reg = <0 0x30050000 0 0x10000>;
interrupt-parent = <&PLIC>;
interrupts = <55 56>;
clocks = <&clkc>;
clock-names = "core";
//sd-uhs-sdr12;
no-1-8-v;
disable-wp;
bus-width = <4>;
max_req_size = <4096>;
status = "disabled";
};
gpio0: gpio@31110000 {
compatible = "snps,dw-apb-gpio";
reg = <0 0x31110000 0 0x10000>;
#address-cells = <1>;
#size-cells = <0>;
porta: gpio-controller@0 {
compatible = "snps,dw-apb-gpio-port";
reg = <0>;
gpio-controller;
#gpio-cells = <2>;
snps,nr-gpios = <32>;
interrupt-controller;
interrupt-parent = <&PLIC>;
interrupts =
<5 6 7 8 9 10 11 12
13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36>;
};
};
watchdog@31130000 {
compatible = "snps,dw-wdt";
reg = <0x0 0x31130000 0x0 0x10000>;
interrupt-parent = <&PLIC>;
interrupts = <46>;
clocks = <&wdt_clkc>;
snps,watchdog-tops =
<0x0001000 0x0002000 0x0004000 0x0008000
0x0010000 0x0020000 0x0040000 0x0080000
0x0100000 0x0200000 0x0400000 0x0800000
0x1000000 0x2000000 0x4000000 0x8000000>;
};
};
chosen {
bootargs = "root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyS0 earlycon noinitrd";
stdout-path = "serial0:115200n8";
};
L11: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};
};
@@ -0,0 +1,148 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-16core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&cpu8 {
status = "okay";
};
&cpu9 {
status = "okay";
};
&cpu10 {
status = "okay";
};
&cpu11 {
status = "okay";
};
&cpu12 {
status = "okay";
};
&cpu13 {
status = "okay";
};
&cpu14 {
status = "okay";
};
&cpu15 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>,
<&intc_cpu4 3>, <&intc_cpu4 7>,
<&intc_cpu5 3>, <&intc_cpu5 7>,
<&intc_cpu6 3>, <&intc_cpu6 7>,
<&intc_cpu7 3>, <&intc_cpu7 7>,
<&intc_cpu8 3>, <&intc_cpu8 7>,
<&intc_cpu9 3>, <&intc_cpu9 7>,
<&intc_cpu10 3>, <&intc_cpu10 7>,
<&intc_cpu11 3>, <&intc_cpu11 7>,
<&intc_cpu12 3>, <&intc_cpu12 7>,
<&intc_cpu13 3>, <&intc_cpu13 7>,
<&intc_cpu14 3>, <&intc_cpu14 7>,
<&intc_cpu15 3>, <&intc_cpu15 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>,
<&intc_cpu4 0x0b>,
<&intc_cpu5 0x0b>,
<&intc_cpu6 0x0b>,
<&intc_cpu7 0x0b>,
<&intc_cpu8 0x0b>,
<&intc_cpu9 0x0b>,
<&intc_cpu10 0x0b>,
<&intc_cpu11 0x0b>,
<&intc_cpu12 0x0b>,
<&intc_cpu13 0x0b>,
<&intc_cpu14 0x0b>,
<&intc_cpu15 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>,
<&intc_cpu4 0x09>,
<&intc_cpu5 0x09>,
<&intc_cpu6 0x09>,
<&intc_cpu7 0x09>,
<&intc_cpu8 0x09>,
<&intc_cpu9 0x09>,
<&intc_cpu10 0x09>,
<&intc_cpu11 0x09>,
<&intc_cpu12 0x09>,
<&intc_cpu13 0x09>,
<&intc_cpu14 0x09>,
<&intc_cpu15 0x09>;
};
+154
View File
@@ -0,0 +1,154 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-16core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon loglevel=8 drm.debug=0x2 amdgpu.cik=1 amdgpu.si=1 amdgpu.dpm=0 pcie_aspm=off pcie_port_pm=off amdgpu.vm_update_mode=3 root=/dev/sda1 rw ";
stdout-path = "serial0:115200n8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart0 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&cpu8 {
status = "okay";
};
&cpu9 {
status = "okay";
};
&cpu10 {
status = "okay";
};
&cpu11 {
status = "okay";
};
&cpu12 {
status = "okay";
};
&cpu13 {
status = "okay";
};
&cpu14 {
status = "okay";
};
&cpu15 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>,
<&intc_cpu4 3>, <&intc_cpu4 7>,
<&intc_cpu5 3>, <&intc_cpu5 7>,
<&intc_cpu6 3>, <&intc_cpu6 7>,
<&intc_cpu7 3>, <&intc_cpu7 7>,
<&intc_cpu8 3>, <&intc_cpu8 7>,
<&intc_cpu9 3>, <&intc_cpu9 7>,
<&intc_cpu10 3>, <&intc_cpu10 7>,
<&intc_cpu11 3>, <&intc_cpu11 7>,
<&intc_cpu12 3>, <&intc_cpu12 7>,
<&intc_cpu13 3>, <&intc_cpu13 7>,
<&intc_cpu14 3>, <&intc_cpu14 7>,
<&intc_cpu15 3>, <&intc_cpu15 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>,
<&intc_cpu4 0x0b>,
<&intc_cpu5 0x0b>,
<&intc_cpu6 0x0b>,
<&intc_cpu7 0x0b>,
<&intc_cpu8 0x0b>,
<&intc_cpu9 0x0b>,
<&intc_cpu10 0x0b>,
<&intc_cpu11 0x0b>,
<&intc_cpu12 0x0b>,
<&intc_cpu13 0x0b>,
<&intc_cpu14 0x0b>,
<&intc_cpu15 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>,
<&intc_cpu4 0x09>,
<&intc_cpu5 0x09>,
<&intc_cpu6 0x09>,
<&intc_cpu7 0x09>,
<&intc_cpu8 0x09>,
<&intc_cpu9 0x09>,
<&intc_cpu10 0x09>,
<&intc_cpu11 0x09>,
<&intc_cpu12 0x09>,
<&intc_cpu13 0x09>,
<&intc_cpu14 0x09>,
<&intc_cpu15 0x09>;
};
@@ -0,0 +1,43 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-1core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&uart1 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>;
};
+48
View File
@@ -0,0 +1,48 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-1core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon loglevel=8 drm.debug=0x2 amdgpu.cik=1 amdgpu.si=1 amdgpu.dpm=0 pcie_aspm=off pcie_port_pm=off amdgpu.vm_update_mode=3 root=/dev/sda1 rw ";
stdout-path = "serial0:115200n8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&uart0 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>;
};
@@ -0,0 +1,50 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-2core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>;
};
+56
View File
@@ -0,0 +1,56 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-2core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon loglevel=8 drm.debug=0x2 amdgpu.cik=1 amdgpu.si=1 amdgpu.dpm=0 pcie_aspm=off pcie_port_pm=off amdgpu.vm_update_mode=3 root=/dev/sda1 rw ";
stdout-path = "serial0:115200n8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&uart0 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>;
};
@@ -0,0 +1,64 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-4core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>;
};
+69
View File
@@ -0,0 +1,69 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-4core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon loglevel=8 drm.debug=0x2 amdgpu.cik=1 amdgpu.si=1 amdgpu.dpm=0 pcie_aspm=off pcie_port_pm=off amdgpu.vm_update_mode=3 root=/dev/sda1 rw ";
stdout-path = "serial0:115200n8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart0 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>;
};
@@ -0,0 +1,92 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-8core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>,
<&intc_cpu4 3>, <&intc_cpu4 7>,
<&intc_cpu5 3>, <&intc_cpu5 7>,
<&intc_cpu6 3>, <&intc_cpu6 7>,
<&intc_cpu7 3>, <&intc_cpu7 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>,
<&intc_cpu4 0x0b>,
<&intc_cpu5 0x0b>,
<&intc_cpu6 0x0b>,
<&intc_cpu7 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>,
<&intc_cpu4 0x09>,
<&intc_cpu5 0x09>,
<&intc_cpu6 0x09>,
<&intc_cpu7 0x09>;
};
+97
View File
@@ -0,0 +1,97 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-8core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon loglevel=8 drm.debug=0x2 amdgpu.cik=1 amdgpu.si=1 amdgpu.dpm=0 pcie_aspm=off pcie_port_pm=off amdgpu.vm_update_mode=3 root=/dev/sda1 rw ";
stdout-path = "serial0:115200n8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart0 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&clint {
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>,
<&intc_cpu4 3>, <&intc_cpu4 7>,
<&intc_cpu5 3>, <&intc_cpu5 7>,
<&intc_cpu6 3>, <&intc_cpu6 7>,
<&intc_cpu7 3>, <&intc_cpu7 7>;
};
&imsics_m {
interrupts-extended =
<&intc_cpu0 0x0b>,
<&intc_cpu1 0x0b>,
<&intc_cpu2 0x0b>,
<&intc_cpu3 0x0b>,
<&intc_cpu4 0x0b>,
<&intc_cpu5 0x0b>,
<&intc_cpu6 0x0b>,
<&intc_cpu7 0x0b>;
};
&imsics_s {
interrupts-extended =
<&intc_cpu0 0x09>,
<&intc_cpu1 0x09>,
<&intc_cpu2 0x09>,
<&intc_cpu3 0x09>,
<&intc_cpu4 0x09>,
<&intc_cpu5 0x09>,
<&intc_cpu6 0x09>,
<&intc_cpu7 0x09>;
};
+38
View File
@@ -0,0 +1,38 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2024-2025 BOSC */
/dts-v1/;
#include "kmh-v2.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-dev";
model = "bosc,kmh-v2-nemu";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8 drm.debug=0x2";
};
};
&cpu0 {
riscv,isa = "rv64imafdcvh_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
status = "okay";
};
&imsics_m {
status = "disabled";
};
&imsics_s {
status = "disabled";
};
&aplic_s {
status = "disabled";
};
&aplic_m {
status = "disabled";
};
&uart1 {
status = "okay";
};
+701
View File
@@ -0,0 +1,701 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "bosc,kmh-v2-dev";
#address-cells = <2>;
#size-cells = <2>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <1000000>; /* 1Mhz */
cpu0: cpu@0 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x0>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu0: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x1>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu1: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu2: cpu@2 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x2>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu2: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu3: cpu@3 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x3>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu3: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu4: cpu@4 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x4>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu4: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu5: cpu@5 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x5>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu5: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu6: cpu@6 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x6>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu6: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu7: cpu@7 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x7>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu7: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu8: cpu@8 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x8>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu8: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu9: cpu@9 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0x9>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu9: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu10: cpu@10 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xa>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu10: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu11: cpu@11 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xb>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu11: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu12: cpu@12 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xc>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu12: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu13: cpu@13 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xd>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu13: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu14: cpu@14 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xe>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu14: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu15: cpu@15 {
compatible = "bosc,kmh-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <256>;
d-cache-size = <65536>;
d-tlb-sets = <1>;
d-tlb-size = <48>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <256>;
i-cache-size = <65536>;
i-tlb-sets = <1>;
i-tlb-size = <48>;
mmu-type = "riscv,sv48";
reg = <0xf>;
riscv,isa = "rv64imafdcvh_smaia_smstateen_sscofpmf_sstc_zicntr_zihpm_zicboz_zicbom_svpbmt_sdtrig_smcsrind_sscsrind_svade";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "h", "sdtrig", "sha", "shcounterenw", "shgatpa", "shlcofideleg", "shtvala", "shvsatpa", "shvstvala", "shvstvecd", "smaia", "smcsrind", "smdbltrp", "smmpm", "smnpm", "smrnmi", "smstateen", "ss1p13", "ssaia", "ssccptr", "sscofpmf", "sscounterenw", "sscsrind", "ssdbltrp", "ssnpm", "sspm", "ssstateen", "ssstrict", "sstc", "sstvala", "sstvecd", "ssu64xl", "supm", "sv39", "sv48", "svade", "svbare", "svinval", "svnapot", "svpbmt", "za64rs", "zacas", "zawrs", "zba", "zbb", "zbc", "zbkb", "zbkc", "zbkx", "zbs", "zcb", "zcmop", "zfa", "zfh", "zfhmin", "zic64b", "zicbom", "zicbop", "zicboz", "ziccamoa", "ziccif", "zicclsm", "ziccrse", "zicntr", "zicond", "zicsr", "zifencei", "zihintntl", "zihintpause", "zihpm", "zimop", "zkn", "zknd", "zkne", "zknh", "zksed", "zksh", "zkt", "zvbb", "zvfh", "zvfhmin", "zvkt", "zvl128b", "zvl32b", "zvl64b";
riscv,cbom-block-size = <0x40>;
riscv,cboz-block-size = <0x40>;
status = "disabled";
next-level-cache = <&l2_cache>;
tlb-split;
intc_cpu15: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
l2_cache: l2-cache {
compatible = "cache";
cache-block-size = <64>;
cache-level = <2>;
cache-size = <1048576>; /* 1MiB */
cache-unified;
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,kmh-v2-soc", "simple-bus";
ranges;
clint: timer@38000000 {
compatible = "riscv,clint0";
reg = <0x0 0x38000000 0x0 0x10000>;
};
imsics_m: imsics@3a800000 {
riscv,num-ids = <0xff>;
reg = <0x0 0x3a800000 0x0 0x10000>;
msi-controller;
interrupt-controller;
#interrupt-cells = <0x00>;
compatible = "riscv,imsics";
};
imsics_s: imsics@3b000000 {
riscv,num-ids = <0xff>;
reg = <0x0 0x3b000000 0x0 0x80000>;
msi-controller;
interrupt-controller;
#interrupt-cells = <0x00>;
compatible = "riscv,imsics";
riscv,guest-index-bits = <0x03>;
no-imsic-ipi;
};
aplic_s: aplic@31120000 {
riscv,num-sources = <0x60>;
reg = <0x0 0x31120000 0x0 0x8000>;
msi-parent = <&imsics_s>;
interrupt-controller;
#interrupt-cells = <0x02>;
compatible = "riscv,aplic";
};
aplic_m: aplic@31100000 {
riscv,delegate = <&aplic_s 0x01 0x60>;
riscv,children = <&aplic_s>;
riscv,num-sources = <0x60>;
reg = <0x0 0x31100000 0x0 0x8000>;
msi-parent = <&imsics_m>;
interrupt-controller;
#interrupt-cells = <0x02>;
compatible = "riscv,aplic";
};
uart0: serial@310b0000 {
compatible = "ns16550a";
reg = <0x0 0x310b0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
clock-frequency = <50000000>;
current-speed = <115200>;
status = "disabled";
};
uart1: serial@40600000 {
compatible = "xlnx,xps-uartlite-1.00.a";
current-speed = <115200>;
reg = <0x0 0x40600000 0x0 0x1000>;
reg-names = "control";
status = "disabled";
};
synps_pcie0: pcie_synps@48000000 {
compatible = "snps,dw-pcie";
reg = <0x0 0x48000000 0x0 0x8000000>,
<0x0 0x6fff0000 0x0 0x0010000>;
reg-names = "dbi", "config";
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
bus-range = <0x00 0xff>;
ranges = <0x02000000 0x00000000 0x40000000 0x00000000 0x60000000 0x00000000 0xfff0000>,
<0x03000000 0x00000040 0x00000000 0x00000040 0x00000000 0x00000002 0x0000000>;
num-ib-windows = <1>;
dma-ranges = <0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x80000000>;
#interrupt-cells = <1>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-parent = <&aplic_s>;
msi-parent = <&imsics_s>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>, <13 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "msi", "hp";
num-lanes = <1>;
status = "disabled";
};
synps_pcie1: pcie_synps@50000000 {
compatible = "snps,dw-pcie";
reg = <0x0 0x50000000 0x0 0x00080000>,
<0x0 0x7fff0000 0x0 0x0010000>;
reg-names = "dbi", "config";
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
bus-range = <0x00 0xff>;
ranges = <0x02000000 0x00000000 0x40000000 0x00000000 0x70000000 0x00000000 0xfff0000>,
<0x03000000 0x00000060 0x00000000 0x00000060 0x00000000 0x0000002 0x0>;
num-ib-windows = <1>;
dma-ranges = <0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x80000000>;
#interrupt-cells = <1>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-parent = <&aplic_s>;
msi-parent = <&imsics_s>;
interrupts = <15 IRQ_TYPE_EDGE_RISING>, <16 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "msi", "hp";
num-lanes = <1>;
status = "disabled";
};
xdma_clkc: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <10000000>;
compatible = "fixed-clock";
};
xdma_0: pcie_xdma@48000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&xdma_clkc>, <&xdma_clkc>;
compatible = "xlnx,xdma-host-3.00", "xlnx,axi-pcie-host-1.00.a";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_0 1>,
<0x0 0 0 2 &pcie_intc_0 2>,
<0x0 0 0 3 &pcie_intc_0 3>,
<0x0 0 0 4 &pcie_intc_0 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&aplic_s>;
interrupts = <14 IRQ_TYPE_EDGE_RISING>, <13 IRQ_TYPE_EDGE_RISING>, <12 IRQ_TYPE_EDGE_RISING>;
msi-parent = <&imsics_s>;
bus-range = <0x00 0xff>;
ranges = <0x02000000 0x0000000 0x60000000 0x00000000 0x60000000 0x0000000 0x10000000>, // MEM resource Bit32
<0x03000000 0x00000040 0x00000000 0x00000040 0x00000000 0x0000020 0x00000000>; // MEM resrouce Bit64 Prefetch
reg = <0x00000000 0x48000000 0x0 0x8000000>;
status = "disabled";
pcie_intc_0: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
xdma_1: pcie_xdma@50000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&xdma_clkc>, <&xdma_clkc>;
compatible = "xlnx,xdma-host-3.00", "xlnx,axi-pcie-host-1.00.a";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_1 1>,
<0x0 0 0 2 &pcie_intc_1 2>,
<0x0 0 0 3 &pcie_intc_1 3>,
<0x0 0 0 4 &pcie_intc_1 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&aplic_s>;
interrupts = <17 IRQ_TYPE_EDGE_RISING>, <16 IRQ_TYPE_EDGE_RISING>, <15 IRQ_TYPE_EDGE_RISING>;
msi-parent = <&imsics_s>;
bus-range = <0x00 0xff>;
ranges = <0x02000000 0x0000000 0x70000000 0x00000000 0x70000000 0x0000000 0x10000000>, // MEM resource Bit32
<0x03000000 0x00000060 0x00000000 0x00000060 0x00000000 0x0000020 0x00000000>; // MEM resrouce Bit64 Prefetch
reg = <0x00000000 0x50000000 0x0 0x10000000>;
status = "disabled";
pcie_intc_1: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
};
chosen {
rng-seed = <0xc8518d39 0x6bde432f 0x4d998c79 0xaa192096 0xdbcf36f3 0x532f3ab3 0x965240fe 0xac379c0e>;
};
memory: memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x04 0x0>;
};
};
+288
View File
@@ -0,0 +1,288 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2020-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v2-dev";
model = "bosc,nanhu-v2";
aliases {
serial0 = &uart0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <500000>;//500Khz
cpu0: cpu@0 {
clock-frequency = <1000000>;
compatible = "bosc,nanhu-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x0>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//500Khz
tlb-split;
cpu0_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
clock-frequency = <0>;
compatible = "bosc,nanhu-v2", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x1>;
riscv,isa = "rv64imafdc";
status = "okay";
timebase-frequency = <500000>;//500Khz
tlb-split;
cpu1_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v2-soc", "simple-bus";
ranges;
debug_controller0: debug-controller@0 {
compatible = "sifive,debug-013", "riscv,debug-013";
interrupts-extended = <&cpu0_intc 65535>;
reg = <0x0 0x0 0x0 0x1000>;
reg-names = "control";
};
clint0: clint@38000000 {
compatible = "riscv,clint0";
interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <25>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
//interrupts-extended = <&cpu0_intc 9 &cpu0_intc 11 &cpu1_intc 9 &cpu1_intc 11>;
interrupts-extended = <&cpu0_intc 0xb &cpu0_intc 0x9 &cpu1_intc 0xb &cpu1_intc 0x9>;
//reg = <0 0xc000000 0 0x4000000>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
clkc: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <25000000>;
compatible = "fixed-clock";
};
wdt_clkc: wdt_clock{
#clock-cells = <0>;
clock-frequency = <50000000>;
compatible = "fixed-clock";
};
ethernet1: ethernet@31010000 {
compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
reg = <0 0x31010000 0 0x10000>;
reg-names = "stmmaceth";
interrupt-parent = <&PLIC>;
interrupts = <3 2 1>;
interrupt-names = "eth_lpi", "macirq", "eth_wake_irq";
clock-names = "stmmaceth";
clocks = <&clkc>;
//st,syscon = <&syscfg 0x4>;
snps,pbl = <2>;
snps,mixed-burst;
phy-mode = "rgmii";
// stmmac driver can not find phy if add this node
//
phy-handle = <&phy>;
mdio {
#address-cells = <0x1>;
#size-cells = <0x0>;
phyaddr = <0x7>;
compatible = "snps,dwmac-mdio";
phy: phy@7 {
//phyaddr = <0x7>;
//compatible = "marvell,88e1116r";
//device_type = "ethernet-phy";
reg = <0x7>;
};
};
};
xdma_0: pcie@40000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_0 1>,
<0x0 0 0 2 &pcie_intc_0 2>,
<0x0 0 0 3 &pcie_intc_0 3>,
<0x0 0 0 4 &pcie_intc_0 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <53 52 51>;
ranges = <0x02000000 0x00000000 0x60000000 0x0 0x60000000 0x00000000 0x20000000>;
reg = <0x00000000 0x40000000 0x0 0x20000000>;
pcie_intc_0: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
uart0: serial@310B0000 {
compatible = "ns16550a";
reg = <0x0 0x310B0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <40>;
clock-frequency = <50000000>;
status = "okay";
};
qspi: spi@31000000 {
compatible = "cdns,qspi-nor";
#address-cells = <1>;
#size-cells = <0>;
reg =
<0x0 0x31000000 0x0 0x1000>,
<0x0 0x10000000 0x0 0x10000000>;
interrupt-parent = <&PLIC>;
interrupts = <44>;
cdns,fifo-depth = <128>;
cdns,fifo-width = <4>;
cdns,trigger-address = <0x10000000>;
clocks = <&clkc>;
status = "okay";
flash0: mt25qu512a@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "micron,mt25qu512a", "jedec,spi-nor";
reg = <0>; /* chip select */
spi-max-frequency = <10000000>;
m25p,fast-read;
cdns,page-size = <256>;
cdns,block-size = <16>;
cdns,read-delay = <0>;
cdns,tshsl-ns = <0>;
cdns,tsd2d-ns = <0>;
cdns,tchsh-ns = <0>;
cdns,tslch-ns = <0>;
};
};
sdhci2: sdhci@30050000 {
compatible = "snps,dwcmshc-sdhci";
reg = <0 0x30050000 0 0x10000>;
interrupt-parent = <&PLIC>;
interrupts = <55 56>;
clocks = <&clkc>;
clock-names = "core";
//sd-uhs-sdr12;
no-1-8-v;
disable-wp;
bus-width = <4>;
max_req_size = <4096>;
status = "disabled";
};
gpio0: gpio@31110000 {
compatible = "snps,dw-apb-gpio";
reg = <0 0x31110000 0 0x10000>;
#address-cells = <1>;
#size-cells = <0>;
porta: gpio-controller@0 {
compatible = "snps,dw-apb-gpio-port";
reg = <0>;
gpio-controller;
#gpio-cells = <2>;
snps,nr-gpios = <32>;
interrupt-controller;
interrupt-parent = <&PLIC>;
interrupts = <5 6 7 8 9 10 11 12
13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36>;
};
};
watchdog@31130000 {
compatible = "snps,dw-wdt";
reg = <0x0 0x31130000 0x0 0x10000>;
interrupt-parent = <&PLIC>;
interrupts = <46>;
clocks = <&wdt_clkc>;
snps,watchdog-tops = <0x0001000 0x0002000 0x0004000 0x0008000
0x0010000 0x0020000 0x0040000 0x0080000
0x0100000 0x0200000 0x0400000 0x0800000
0x1000000 0x2000000 0x4000000 0x8000000>;
};
};
chosen {
bootargs = "root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyS0,115200n8 earlycon noinitrd";
stdout-path = "serial0:115200n8";
};
memory: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x2 0x00000000>;
};
};
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
#include "nanhu-v3.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3-dev-1core", "bosc,nanhu-v3";
model = "bosc,nanhu-v3-1core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyS0,115200n8 earlycon noinitrd";
};
};
&cpu0 {
status = "okay";
};
&uart0 {
clock-frequency = <50000000>;
};
+38
View File
@@ -0,0 +1,38 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
#include "nanhu-v3.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3-dev", "bosc,nanhu-v3";
model = "bosc,nanhu-v3";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "root=/dev/nvme0n1p2 rootfstype=ext4 rw rootwait console=ttyS0 earlycon noinitrd";
stdout-path = "serial0:9600n8";
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
+244
View File
@@ -0,0 +1,244 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3";
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <1000000>;//rtc is 1M
cpu0: cpu@0 {
clock-frequency = <1000000>;
compatible = "bosc,nanhu-v3", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x0>;
riscv,isa = "rv64imafdc";
status = "disabled";
timebase-frequency = <1000000>;//rtc is 1M
tlb-split;
cpu0_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
clock-frequency = <0>;
compatible = "bosc,nanhu-v3", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x1>;
riscv,isa = "rv64imafdc";
status = "disabled";
timebase-frequency = <1000000>;//rtc is 1M
tlb-split;
cpu1_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu2: cpu@2 {
clock-frequency = <0>;
compatible = "bosc,nanhu-v3", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x2>;
riscv,isa = "rv64imafdc";
status = "disabled";
timebase-frequency = <1000000>;//rtc is 1M
tlb-split;
cpu2_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu3: cpu@3 {
clock-frequency = <0>;
compatible = "bosc,nanhu-v3", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x3>;
riscv,isa = "rv64imafdc";
status = "disabled";
timebase-frequency = <1000000>;//rtc is 1M
tlb-split;
cpu3_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3-soc", "simple-bus";
ranges;
debug_controller0: debug-controller@0 {
compatible = "sifive,debug-013", "riscv,debug-013";
interrupts-extended = <&cpu0_intc 65535>;
reg = <0x0 0x0 0x0 0x1000>;
reg-names = "control";
};
clint0: clint@38000000 {
compatible = "riscv,clint0";
interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7 &cpu2_intc 3 &cpu2_intc 7 &cpu3_intc 3 &cpu3_intc 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <10>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
interrupts-extended = <&cpu0_intc 0xb &cpu0_intc 0x9 &cpu1_intc 0xb &cpu1_intc 0x9 &cpu2_intc 0xb &cpu2_intc 0x9 &cpu3_intc 0xb &cpu3_intc 0x9>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
clkc: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <10000000>;
compatible = "fixed-clock";
};
xdma_0: pcie@48000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_0 1>,
<0x0 0 0 2 &pcie_intc_0 2>,
<0x0 0 0 3 &pcie_intc_0 3>,
<0x0 0 0 4 &pcie_intc_0 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <53 52 51>;
//bus-range = <0x00 0xff>;
ranges = <0x02000000 0x00000000 0x20000000 0x0 0x40000000 0x00000000 0x8000000>;
reg = <0x00000000 0x48000000 0x0 0x2000000>;
pcie_intc_0: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
xdma_1: pcie@4c000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_1 1>,
<0x0 0 0 2 &pcie_intc_1 2>,
<0x0 0 0 3 &pcie_intc_1 3>,
<0x0 0 0 4 &pcie_intc_1 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <59 58 57>;
//bus-range = <0x00 0xff>;
ranges = <0x02000000 0x0 0x40000000 0x0 0x60000000 0x00000000 0x20000000>;
reg = <0x00000000 0x4c000000 0x0 0x4000000>;
pcie_intc_1: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
uart0: serial@310B0000 {
compatible = "ns16550a";
reg = <0x0 0x310B0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <40>;
clock-frequency = <10000000>;
status = "okay";
};
};
chosen {
rng-seed = <0xc8518d39 0x6bde432f 0x4d998c79 0xaa192096 0xdbcf36f3 0x532f3ab3 0x965240fe 0xac379c0e>;
};
memory: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};
};
+231
View File
@@ -0,0 +1,231 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2023-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3a";
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <24000000>;
cpu0: cpu@0 {
clock-frequency = <100000000>;
compatible = "bosc,nanhu-v3a", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x0>;
riscv,isa = "rv64imafdcv";
status = "okay";
timebase-frequency = <24000000>;
tlb-split;
cpu0_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
clock-frequency = <0>;
compatible = "bosc,nanhu-v3a", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&memory>;
reg = <0x1>;
riscv,isa = "rv64imafdcv";
status = "okay";
timebase-frequency = <24000000>;
tlb-split;
cpu1_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v3a-soc", "simple-bus";
ranges;
clint0: clint@38000000 {
compatible = "riscv,clint0";
interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <10>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
interrupts-extended = <&cpu0_intc 0xb &cpu0_intc 0x9 &cpu1_intc 0xb &cpu1_intc 0x9>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <128>;
};
clkc: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <100000000>;
compatible = "fixed-clock";
};
clkb: misc_clk_1 {
#clock-cells = <0>;
clock-frequency = <25000000>;
compatible = "fixed-clock";
};
ethernet0: ethernet@190000 {
compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
reg = <0 0x190000 0 0x10000>;
reg-names = "stmmaceth";
interrupt-parent = <&PLIC>;
interrupts = <76 75 74>;
interrupt-names = "eth_lpi", "macirq", "eth_wake_irq";
clock-names = "stmmaceth";
clocks = <&clkc>;
snps,pbl = <2>;
snps,mixed-burst;
phy-mode = "rgmii";
phy-handle = <&phy0>;
mdio0: midi-bus@0 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "snps,dwmac-mdio";
phy0: phy@0 {
phyaddr = <0x0>;
compatible = "marvell,88E1510";
device_type = "ethernet-phy";
reg = <0x0>;
};
phy1: phy@1 {
phyaddr = <0x1>;
compatible = "marvell,88E1510";
device_type = "ethernet-phy";
reg = <0x1>;
};
};
};
ethernet1: ethernet@1a0000 {
compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
reg = <0 0x1a0000 0 0x10000>;
reg-names = "stmmaceth1";
interrupt-parent = <&PLIC>;
interrupts = <73 72 71>;
interrupt-names = "eth_lpi", "macirq", "eth_wake_irq";
clock-names = "stmmaceth";
clocks = <&clkc>;
snps,pbl = <2>;
snps,mixed-burst;
phy-mode = "rgmii";
fixed-link{
speed = <1000>;
full-duplex;
pause;
asym-pause;
};
};
sdhci2: sdhci@1200000 {
compatible = "snps,dwcmshc-sdhci";
reg = <0 0x1200000 0 0x20000>;
interrupt-parent = <&PLIC>;
interrupts = <77 78>;
clocks = <&clkb>;
clock-names = "core";
no-1-8-v;
disable-wp;
bus-width = <4>;
max_req_size = <4096>;
status = "okay";
};
i2c0_clock: i2c0_clck {
#clock-cells = <0>;
clock-frequency = <100000000>;
compatible = "fixed-clock";
};
i2c@70000 {
compatible = "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x70000 0x0 0x10000>;
interrupts = <66>;
interrupt-parent = <&PLIC>;
clock-frequency = <100000>;
clocks = <&i2c0_clock>;
status = "okay";
};
i2c@80000 {
compatible = "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x80000 0x0 0x10000>;
interrupts = <65>;
interrupt-parent = <&PLIC>;
clock-frequency = <100000>;
clocks = <&i2c0_clock>;
status = "okay";
};
uart0: serial@50000 {
compatible = "ns16550a";
reg = <0x0 0x50000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <68>;
clock-frequency = <100000000>;
status = "okay";
};
};
memory: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x2 0x00000000>;
};
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon";
stdout-path = "serial0:115200n8";
};
};
@@ -0,0 +1,117 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-16core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&cpu8 {
status = "okay";
};
&cpu9 {
status = "okay";
};
&cpu10 {
status = "okay";
};
&cpu11 {
status = "okay";
};
&cpu12 {
status = "okay";
};
&cpu13 {
status = "okay";
};
&cpu14 {
status = "okay";
};
&cpu15 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>,
<&intc_cpu4 0xb>, <&intc_cpu4 9>,
<&intc_cpu5 0xb>, <&intc_cpu5 9>,
<&intc_cpu6 0xb>, <&intc_cpu6 9>,
<&intc_cpu7 0xb>, <&intc_cpu7 9>,
<&intc_cpu8 0xb>, <&intc_cpu8 9>,
<&intc_cpu9 0xb>, <&intc_cpu9 9>,
<&intc_cpu10 0xb>, <&intc_cpu10 9>,
<&intc_cpu11 0xb>, <&intc_cpu11 9>,
<&intc_cpu12 0xb>, <&intc_cpu12 9>,
<&intc_cpu13 0xb>, <&intc_cpu13 9>,
<&intc_cpu14 0xb>, <&intc_cpu14 9>,
<&intc_cpu15 0xb>, <&intc_cpu15 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,117 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-16core";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&cpu8 {
status = "okay";
};
&cpu9 {
status = "okay";
};
&cpu10 {
status = "okay";
};
&cpu11 {
status = "okay";
};
&cpu12 {
status = "okay";
};
&cpu13 {
status = "okay";
};
&cpu14 {
status = "okay";
};
&cpu15 {
status = "okay";
};
&uart0 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>,
<&intc_cpu4 0xb>, <&intc_cpu4 9>,
<&intc_cpu5 0xb>, <&intc_cpu5 9>,
<&intc_cpu6 0xb>, <&intc_cpu6 9>,
<&intc_cpu7 0xb>, <&intc_cpu7 9>,
<&intc_cpu8 0xb>, <&intc_cpu8 9>,
<&intc_cpu9 0xb>, <&intc_cpu9 9>,
<&intc_cpu10 0xb>, <&intc_cpu10 9>,
<&intc_cpu11 0xb>, <&intc_cpu11 9>,
<&intc_cpu12 0xb>, <&intc_cpu12 9>,
<&intc_cpu13 0xb>, <&intc_cpu13 9>,
<&intc_cpu14 0xb>, <&intc_cpu14 9>,
<&intc_cpu15 0xb>, <&intc_cpu15 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-1core-uartlite";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&PLIC {
interrupts-extended = <&intc_cpu0 0xb>, <&intc_cpu0 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-1core";
aliases {
serial0 = &uart0;
};
chosen {
bootargs = "console=ttyS0,115200 earlycon=sbi loglevel=8 root=/dev/nvme0n1p1 rootwait rw";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&uart0 {
status = "okay";
};
&PLIC {
interrupts-extended = <&intc_cpu0 0xb>, <&intc_cpu0 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,44 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-2core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,44 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-2core";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&uart0 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,54 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-4core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,54 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-4core";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&uart0 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,74 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-8core-uartlite";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&uart1 {
status = "okay";
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>,
<&intc_cpu4 0xb>, <&intc_cpu4 9>,
<&intc_cpu5 0xb>, <&intc_cpu5 9>,
<&intc_cpu6 0xb>, <&intc_cpu6 9>,
<&intc_cpu7 0xb>, <&intc_cpu7 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
@@ -0,0 +1,74 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include "nanhu-v5.dtsi"
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-dev";
model = "bosc,nanhu-v5-8core";
chosen {
bootargs = "console=hvc0 earlycon=sbi loglevel=8";
opensbi-config {
compatible = "opensbi,config";
cold-boot-harts = <&cpu0>;
};
};
};
&cpu0 {
status = "okay";
};
&cpu1 {
status = "okay";
};
&cpu2 {
status = "okay";
};
&cpu3 {
status = "okay";
};
&cpu4 {
status = "okay";
};
&cpu5 {
status = "okay";
};
&cpu6 {
status = "okay";
};
&cpu7 {
status = "okay";
};
&uart0 {
status = "okay";
};
&PLIC {
interrupts-extended =
<&intc_cpu0 0xb>, <&intc_cpu0 9>,
<&intc_cpu1 0xb>, <&intc_cpu1 9>,
<&intc_cpu2 0xb>, <&intc_cpu2 9>,
<&intc_cpu3 0xb>, <&intc_cpu3 9>,
<&intc_cpu4 0xb>, <&intc_cpu4 9>,
<&intc_cpu5 0xb>, <&intc_cpu5 9>,
<&intc_cpu6 0xb>, <&intc_cpu6 9>,
<&intc_cpu7 0xb>, <&intc_cpu7 9>;
};
&xdma_0 {
status = "disabled";
};
&xdma_1 {
status = "disabled";
};
+447
View File
@@ -0,0 +1,447 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2025 BOSC */
/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "bosc,nanhu-v5-dev";
#address-cells = <2>;
#size-cells = <2>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <1000000>; /* 1Mhz */
cpu0: cpu@0 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv39";
reg = <0x0>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu0: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x1>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu1: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu2: cpu@2 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x2>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu2: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu3: cpu@3 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x3>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu3: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu4: cpu@4 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x4>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu4: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu5: cpu@5 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x5>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu5: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu6: cpu@6 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x6>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu6: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu7: cpu@7 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x7>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu7: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu8: cpu@8 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x8>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu8: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu9: cpu@9 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0x9>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu9: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu10: cpu@10 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xa>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu10: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu11: cpu@11 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xb>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu11: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu12: cpu@12 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xc>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu12: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu13: cpu@13 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xd>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu13: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu14: cpu@14 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xe>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu14: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu15: cpu@15 {
compatible = "bosc,nanhu-v5", "riscv";
device_type = "cpu";
mmu-type = "riscv,sv48";
reg = <0xf>;
riscv,isa = "rv64imafdc";
riscv,isa-base = "rv64i";
riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
"sstc";
status = "disabled";
intc_cpu15: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nanhu-v5-soc", "simple-bus";
ranges;
clint: timer@38000000 {
compatible = "riscv,clint0";
reg = <0x0 0x38000000 0x0 0x10000>;
interrupts-extended =
<&intc_cpu0 3>, <&intc_cpu0 7>,
<&intc_cpu1 3>, <&intc_cpu1 7>,
<&intc_cpu2 3>, <&intc_cpu2 7>,
<&intc_cpu3 3>, <&intc_cpu3 7>,
<&intc_cpu4 3>, <&intc_cpu4 7>,
<&intc_cpu5 3>, <&intc_cpu5 7>,
<&intc_cpu6 3>, <&intc_cpu6 7>,
<&intc_cpu7 3>, <&intc_cpu7 7>,
<&intc_cpu8 3>, <&intc_cpu8 7>,
<&intc_cpu9 3>, <&intc_cpu9 7>,
<&intc_cpu10 3>, <&intc_cpu10 7>,
<&intc_cpu11 3>, <&intc_cpu11 7>,
<&intc_cpu12 3>, <&intc_cpu12 7>,
<&intc_cpu13 3>, <&intc_cpu13 7>,
<&intc_cpu14 3>, <&intc_cpu14 7>,
<&intc_cpu15 3>, <&intc_cpu15 7>;
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
uart0: serial@310b0000 {
compatible = "ns16550a";
reg = <0x0 0x310b0000 0x0 0x10000>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
interrupt-parent = <&PLIC>;
interrupts = <40>;
clock-frequency = <50000000>;
current-speed = <115200>;
status = "disabled";
};
uart1: serial@40600000 {
compatible = "xlnx,xps-uartlite-1.00.a";
current-speed = <115200>;
reg = <0x0 0x40600000 0x0 0x1000>;
reg-names = "control";
status = "disabled";
};
clkc: misc_clk_xdma {
#clock-cells = <0>;
clock-frequency = <10000000>;
compatible = "fixed-clock";
};
xdma_0: pcie@48000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_0 1>,
<0x0 0 0 2 &pcie_intc_0 2>,
<0x0 0 0 3 &pcie_intc_0 3>,
<0x0 0 0 4 &pcie_intc_0 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <53 IRQ_TYPE_EDGE_RISING>, <52 IRQ_TYPE_EDGE_RISING>, <51 IRQ_TYPE_EDGE_RISING>;
ranges = <0x02000000 0x00000000 0x20000000 0x0 0x40000000 0x0 0x10000000>;
reg = <0x00000000 0x48000000 0x0 0x1000000>;
status = "disabled";
pcie_intc_0: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
xdma_1: pcie@4c000000 {
#address-cells = <3>;
#interrupt-cells = <1>;
#size-cells = <2>;
clock-names = "sys_clk", "sys_clk_gt";
clocks = <&clkc>, <&clkc>;
compatible = "xlnx,xdma-host-3.00";
device_type = "pci";
interrupt-map = <0x0 0 0 1 &pcie_intc_1 1>,
<0x0 0 0 2 &pcie_intc_1 2>,
<0x0 0 0 3 &pcie_intc_1 3>,
<0x0 0 0 4 &pcie_intc_1 4>;
interrupt-map-mask = <0x0 0 0 7>;
interrupt-names = "misc", "msi0", "msi1";
interrupt-parent = <&PLIC>;
interrupts = <59 IRQ_TYPE_EDGE_RISING>, <58 IRQ_TYPE_EDGE_RISING>, <57 IRQ_TYPE_EDGE_RISING>;
ranges = <0x02000000 0x0 0x40000000 0x0 0x60000000 0x00000000 0x20000000>;
reg = <0x00000000 0x4c000000 0x0 0x4000000>;
status = "disabled";
pcie_intc_1: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller ;
};
};
};
chosen {
rng-seed = <0xc8518d39 0x6bde432f 0x4d998c79 0xaa192096 0xdbcf36f3 0x532f3ab3 0x965240fe 0xac379c0e>;
};
memory: memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x04 0x0>;
};
};
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2020-2024 BOSC */
/dts-v1/;
/include/ "xiangshan-nemu.dtsi"
/ {
L18: soc {
sdhci: mmc {
compatible = "nemu-sdhost";
reg = <0x0 0x40002000 0x0 0x1000>;
no-sd;
no-sdio;
};
};
chosen {
bootargs = "console=hvc0 earlycon=sbi";
};
};
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2020-2024 BOSC */
/dts-v1/;
/include/ "xiangshan-nemu.dtsi"
/ {
L18: soc {
sdhci: mmc {
compatible = "nemu-sdhost";
reg = <0x0 0x40002000 0x0 0x1000>;
no-sd;
no-sdio;
};
};
chosen {
bootargs = "root=/dev/mmcblk0 rootfstype=ext4 rw rootwait console=hvc0 earlycon=sbi";
};
};
@@ -0,0 +1,100 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Copyright (c) 2020-2024 BOSC */
/dts-v1/;
/ {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nemu";
model = "bosc,nemu";
L19: cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <1000000>;
L6: cpu@0 {
clock-frequency = <0>;
compatible = "UCAS,COOSCA1.0", "riscv";
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <16384>;
d-tlb-sets = <1>;
d-tlb-size = <32>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <32>;
mmu-type = "riscv,sv39";
next-level-cache = <&L11>;
reg = <0x0>;
riscv,isa = "rv64imafdch";
riscv,pmpregions = <16>;
riscv,pmpgranularity = <4096>;
status = "okay";
timebase-frequency = <1000000>;
tlb-split;
L4: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
PLIC: interrupt-controller@3c000000 {
#interrupt-cells = <1>;
compatible = "riscv,plic0";
interrupt-controller;
interrupts-extended = <&L4 9 &L4 11>;
//reg = <0 0xc000000 0 0x4000000>;
reg = <0 0x3c000000 0 0x4000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
};
L18: soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "bosc,nemu-soc", "simple-bus";
ranges;
L2: clint@2000000 {
compatible = "riscv,clint0";
interrupts-extended = <&L4 3 &L4 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <500>;
};
uart0: serial@60000000 {
compatible = "xlnx,xps-uartlite-1.00.a";
interrupt-parent = <&PLIC>;
interrupts = <3>;
current-speed = <115200>;
reg = <0x0 0x40600000 0x0 0x1000>;
reg-names = "control";
};
L3: debug-controller@0 {
compatible = "sifive,debug-013", "riscv,debug-013";
interrupts-extended = <&L4 65535>;
reg = <0x0 0x0 0x0 0x1000>;
reg-names = "control";
};
};
chosen {
rng-seed = <0xc8518d39 0x6bde432f 0x4d998c79 0xaa192096 0xdbcf36f3 0x532f3ab3 0x965240fe 0xac379c0e>;
};
L11: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x2 0x0000000>;
};
};