summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinda Chen <minda.chen@starfivetech.com>2023-11-27 11:24:18 +0300
committerMinda Chen <minda.chen@starfivetech.com>2023-12-22 06:27:41 +0300
commit94166f27692781809eac28dfcdbf62c2eb38f4d5 (patch)
tree9a4d65a0bbcee28bfe1d242dfa87348ed90ee472
parenta8dbb49963602baec1936badf60e6f506ed12d96 (diff)
downloadlinux-rtthread_AMP.tar.xz
dts: add rpmsg share mem configsJH7110-RTThread-AMP-v0.1.0rtthread_AMP
Add rpmsg share memory config. 4M share memory and 20M RT-thread. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
-rw-r--r--arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi13
-rw-r--r--arch/riscv/boot/dts/starfive/jh7110.dtsi4
2 files changed, 15 insertions, 2 deletions
diff --git a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi
index b0aed338088d..ee1d9e28ba2c 100644
--- a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi
@@ -71,8 +71,12 @@
reg = <0x0 0x69c00000 0x0 0x03001000>;
};
- rtthread_reserved: rt@6e400000 {
- reg = <0x0 0x6e400000 0x0 0x1c00000>;
+ rpmsg_share_mem: rpmsg-shmem {
+ reg = <0x0 0x6e400000 0x0 0x400000>;
+ };
+
+ rtthread_reserved: rt@6e800000 {
+ reg = <0x0 0x6e800000 0x0 0x1800000>;
};
};
@@ -396,6 +400,11 @@
};
};
+&rpmsg {
+ status = "okay";
+ memory-region = <&rpmsg_share_mem>;
+};
+
&uart0 {
status = "okay";
};
diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi
index 8511ae22ce78..23bd019e3298 100644
--- a/arch/riscv/boot/dts/starfive/jh7110.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi
@@ -282,6 +282,10 @@
reg = <0x0 0x13030000 0x0 0x1000>;
};
+ rpmsg: rpmsg@0 {
+ compatible = "starfive,amp-virtio-rpmsg";
+ };
+
clint: clint@2000000 {
compatible = "riscv,clint0";
reg = <0x0 0x2000000 0x0 0x10000>;