aboutsummaryrefslogtreecommitdiffstats
path: root/roms/opensbi/platform/kendryte/k210/k210.dts
diff options
context:
space:
mode:
Diffstat (limited to 'roms/opensbi/platform/kendryte/k210/k210.dts')
-rw-r--r--roms/opensbi/platform/kendryte/k210/k210.dts70
1 files changed, 70 insertions, 0 deletions
diff --git a/roms/opensbi/platform/kendryte/k210/k210.dts b/roms/opensbi/platform/kendryte/k210/k210.dts
new file mode 100644
index 000000000..bcd075bf5
--- /dev/null
+++ b/roms/opensbi/platform/kendryte/k210/k210.dts
@@ -0,0 +1,70 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ * Damien Le Moal <damien.lemoal@wdc.com>
+ */
+
+/dts-v1/;
+/ {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "kendryte,k210";
+
+ chosen {
+ bootargs = "console=hvc0 earlycon=sbi";
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ clock-frequency = <390000000>;
+ i-cache-size = <32768>;
+ d-cache-size = <32768>;
+ mmu-type = "none";
+ reg = <0>;
+ riscv,isa = "rv64imafdc";
+ status = "okay";
+ cpu0_intc: interrupt-controller {
+ #interrupt-cells = <1>;
+ compatible = "riscv,cpu-intc";
+ interrupt-controller;
+ };
+ };
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ clock-frequency = <390000000>;
+ d-cache-size = <32768>;
+ i-cache-size = <32768>;
+ mmu-type = "none";
+ reg = <1>;
+ riscv,isa = "rv64imafdc";
+ status = "okay";
+ cpu1_intc: interrupt-controller {
+ #interrupt-cells = <1>;
+ compatible = "riscv,cpu-intc";
+ interrupt-controller;
+ };
+ };
+ };
+
+ memory@80000000 {
+ /* Bank 0: 4 MB, Bank 1: 2 MB, AI chip SRAM: 2MB */
+ device_type = "memory";
+ reg = <0x00000000 0x80000000 0x00000000 0x00800000>;
+ };
+
+ plic0: interrupt-controller@C000000 {
+ #interrupt-cells = <1>;
+ compatible = "riscv,plic0";
+ interrupt-controller;
+ interrupts-extended =
+ <&cpu0_intc 11 &cpu0_intc 9
+ &cpu1_intc 11 &cpu1_intc 9>;
+ reg = <0x0 0xc000000 0x0 0x4000000>;
+ };
+};