summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLey Foon Tan <leyfoon.tan@starfivetech.com>2023-10-25 10:01:11 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2023-12-04 06:00:16 +0300
commitdc6cbaed2c74437a775a9e0da926501e5ca1fa1e (patch)
tree9f3e55238a10a00f941ce3784864af678969ce3c
parentb572b4842c9e37c61aca56806d6baec2e098d6b9 (diff)
downloadlinux-dc6cbaed2c74437a775a9e0da926501e5ca1fa1e.tar.xz
riscv: dts: starfive: dubhe: Add Dubhe 80 support
Add Dubhe 80 DT support. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
-rw-r--r--arch/riscv/boot/dts/starfive/Makefile2
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe80.dtsi30
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe80_fpga.dts5
3 files changed, 36 insertions, 1 deletions
diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile
index fb2208c09d9b..24f832581815 100644
--- a/arch/riscv/boot/dts/starfive/Makefile
+++ b/arch/riscv/boot/dts/starfive/Makefile
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight.dtb
-dtb-$(CONFIG_SOC_STARFIVE_DUBHE) += dubhe90_fpga.dtb dubhe90_fpga_dual.dtb
+dtb-$(CONFIG_SOC_STARFIVE_DUBHE) += dubhe80_fpga.dtb dubhe90_fpga.dtb dubhe90_fpga_dual.dtb
diff --git a/arch/riscv/boot/dts/starfive/dubhe80.dtsi b/arch/riscv/boot/dts/starfive/dubhe80.dtsi
new file mode 100644
index 000000000000..b6dfb850e870
--- /dev/null
+++ b/arch/riscv/boot/dts/starfive/dubhe80.dtsi
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/* Copyright (c) 2023 StarFive Technology Co., Ltd. */
+
+#include "dubhe.dtsi"
+
+&cpu0 {
+ d-cache-block-size = <64>;
+ d-cache-sets = <512>;
+ d-cache-size = <32768>;
+ d-tlb-sets = <1>;
+ d-tlb-size = <48>;
+ i-cache-block-size = <64>;
+ i-cache-sets = <512>;
+ i-cache-size = <32768>;
+ i-tlb-sets = <1>;
+ i-tlb-size = <48>;
+};
+
+&cpu1 {
+ d-cache-block-size = <64>;
+ d-cache-sets = <512>;
+ d-cache-size = <32768>;
+ d-tlb-sets = <1>;
+ d-tlb-size = <48>;
+ i-cache-block-size = <64>;
+ i-cache-sets = <512>;
+ i-cache-size = <32768>;
+ i-tlb-sets = <1>;
+ i-tlb-size = <48>;
+};
diff --git a/arch/riscv/boot/dts/starfive/dubhe80_fpga.dts b/arch/riscv/boot/dts/starfive/dubhe80_fpga.dts
new file mode 100644
index 000000000000..5248de0ae31e
--- /dev/null
+++ b/arch/riscv/boot/dts/starfive/dubhe80_fpga.dts
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/* Copyright (c) 2023 StarFive Technology Co., Ltd. */
+
+#include "dubhe80.dtsi"
+#include "dubhe_fpga_common.dtsi"