From 028423859929c9428bafd4ee9f08643a20ba7790 Mon Sep 17 00:00:00 2001 From: Manoj Prabhu B Date: Wed, 29 Dec 2021 14:59:17 +0530 Subject: [PATCH] ARM: dts: msm: Add memshare for diwali Memshare driver allocates and share the memory with the modem clients for their use. The device tree information for memshare driver on diwali are added to specify client details. Change-Id: I87c1451d8e760395e9dfb3170f924759dde643ea --- qcom/diwali.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/diwali.dtsi b/qcom/diwali.dtsi index b980dd34..5ae379a8 100644 --- a/qcom/diwali.dtsi +++ b/qcom/diwali.dtsi @@ -1601,6 +1601,33 @@ }; }; + 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,secure-buffer { compatible = "qcom,secure-buffer"; qcom,vmid-cp-camera-preview-ro;