From 0b7cc56210e0a6d019532890b9ced1c7f7486847 Mon Sep 17 00:00:00 2001 From: Tony Truong Date: Thu, 7 Dec 2023 15:05:46 -0800 Subject: [PATCH] ARM: dts: msm: Add memshare for sun Add memshare nodes for client ids 5 and 6 which will be used for the qmc use case. One of these nodes will allocate memory from a reserved memory range while the other allocates from system cma. Change-Id: I9deda5ba526c9d7e44e639fd97ca0825a1de357f Signed-off-by: Tony Truong --- qcom/sun.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index c0f38d90..c7efa399 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1291,6 +1291,29 @@ power-domains = <&CLUSTER_PD2>; }; + qcom,memshare { + compatible = "qcom,memshare"; + + qcom,client_4 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x1000000>; + qcom,client-id = <5>; + qcom,allocate-on-request; + qcom,shared; + memory-region = <&qmc_dma_mem>; + label = "modem"; + }; + + qcom,client_5 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x400000>; + qcom,client-id = <6>; + qcom,allocate-on-request; + qcom,shared; + label = "modem"; + }; + }; + /* PIL spss node - for loading Secure Processor */ spss_pas: remoteproc-spss@1880000 { compatible = "qcom,sun-spss-pas";