riscv: dts: sophgo: add initial CV1812H SoC device tree
authorInochi Amaoto <inochiama@outlook.com>
Wed, 18 Oct 2023 23:18:53 +0000 (07:18 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 30 Nov 2023 12:40:36 +0000 (12:40 +0000)
Add initial device tree for the CV1812H RISC-V SoC by SOPHGO.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Acked-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/sophgo/cv1812h.dtsi [new file with mode: 0644]

diff --git a/arch/riscv/boot/dts/sophgo/cv1812h.dtsi b/arch/riscv/boot/dts/sophgo/cv1812h.dtsi
new file mode 100644 (file)
index 0000000..3e7a942
--- /dev/null
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Inochi Amaoto <inochiama@outlook.com>
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include "cv18xx.dtsi"
+
+/ {
+       compatible = "sophgo,cv1812h";
+
+       memory@80000000 {
+               device_type = "memory";
+               reg = <0x80000000 0x10000000>;
+       };
+};
+
+&plic {
+       compatible = "sophgo,cv1812h-plic", "thead,c900-plic";
+};
+
+&clint {
+       compatible = "sophgo,cv1812h-clint", "thead,c900-clint";
+};