summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLey Foon Tan <leyfoon.tan@starfivetech.com>2023-12-27 13:07:53 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2024-01-08 10:49:12 +0300
commit3caa144e48bece6f35f849c5cafdbb1e6457abfc (patch)
treeb96f4c21cbb281d370243e72a042fb63c07e2eb8
parentdff4cc9f812560e25b74fb6db134a2ee76565de2 (diff)
downloadlinux-3caa144e48bece6f35f849c5cafdbb1e6457abfc.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/Makefile1
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe80.dtsi34
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe80_fpga.dts5
3 files changed, 40 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile
index bb15e3672dfe..a8a97301e8fa 100644
--- a/arch/riscv/boot/dts/starfive/Makefile
+++ b/arch/riscv/boot/dts/starfive/Makefile
@@ -13,3 +13,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += dubhe90_fpga.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += dubhe90_fpga_dual.dtb
+dtb-$(CONFIG_ARCH_STARFIVE) += dubhe80_fpga.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..32bef3345bd6
--- /dev/null
+++ b/arch/riscv/boot/dts/starfive/dubhe80.dtsi
@@ -0,0 +1,34 @@
+// 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>;
+};
+
+&l2_cache {
+ compatible = "starfive,dubhe-cache", "cache";
+};
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"