From 71b8a2ffafd6ed8a263dc57a707b8be0f93cf906 Mon Sep 17 00:00:00 2001 From: Fenil Panwala Date: Thu, 28 Nov 2024 14:11:08 +0530 Subject: [PATCH] ARM: dts: msm: Add memshare for tuna Memshare driver allocates and share the memory with the modem clients for their use. The device tree information for memshare driver on tuna is added to specify client details. Change-Id: I586040870c763494c18b273692d578b9b1a0bc10 Signed-off-by: Fenil Panwala --- qcom/tuna.dtsi | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 7989917a..e3bb0ab8 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -2048,6 +2048,51 @@ }; }; + qcom,memshare { + compatible = "qcom,memshare"; + + qcom,client_1 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x0>; + qcom,client-id = <0>; + qcom,allocate-boot-time; + label = "modem"; + }; + + qcom,client_2 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x0>; + qcom,client-id = <2>; + label = "modem"; + }; + + qcom,client_3 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x500000>; + qcom,client-id = <1>; + qcom,allocate-on-request; + label = "modem"; + }; + + qcom,client_ims_1 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x100000>; + qcom,client-id = <7>; + qcom,allocate-on-request; + qcom,shared; + label = "modem"; + }; + + qcom,client_ims_2 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x100000>; + qcom,client-id = <8>; + qcom,allocate-on-request; + qcom,shared; + label = "modem"; + }; + }; + google,debug-kinfo { compatible = "google,debug-kinfo"; memory-region = <&kinfo_mem>;