From 133de4ce4ef30df383df5d724e5d45063b9dd1dc Mon Sep 17 00:00:00 2001 From: Manoj Prabhu B Date: Fri, 24 Jul 2020 13:09:25 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add memshare for shima Memshare driver allocates and share the memory with the modem clients for their use. The device tree information for memshare driver on shima are added to specify client details. Change-Id: Ia252c3b353f2f30354f0a53489ecbc3fb2e3252b --- qcom/shima.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 9f55f95df385..26a043976cf9 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -576,6 +576,33 @@ compatible = "qcom,secure-buffer"; }; + 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,msm-imem@146aa000 { compatible = "qcom,msm-imem"; reg = <0x146aa000 0x1000>; From 19bd95a82b102f987e4acd0cb23021de07fb78ef Mon Sep 17 00:00:00 2001 From: Manoj Prabhu B Date: Fri, 24 Jul 2020 13:14:26 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add memshare for holi Memshare driver allocates and share the memory with the modem clients for their use. The device tree information for memshare driver on holi are added to specify client details. Change-Id: Id12ee52a8a8f4614e95cf1f8b1f05dd50cc2aa1b --- qcom/holi.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 30b9a08dc5a3..097f89fec0dc 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -935,6 +935,33 @@ status = "disabled"; }; + 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"; + }; + }; + clocks { xo_board: xo-board { compatible = "fixed-clock";