From 6ca87df01f1a575535428af36c2fd02154b59303 Mon Sep 17 00:00:00 2001 From: Manoj Prabhu B Date: Thu, 11 Mar 2021 17:34:57 +0530 Subject: [PATCH] ARM: dts: msm: Add memshare for yupik Memshare driver allocates and share the memory with the modem clients for their use. The device tree information for memshare driver on yupik are added to specify client details. Change-Id: Iabb9036668e36bb7d0fe1bc937e5a86935642712 --- qcom/yupik.dtsi | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index 5822ed605940..2661de21cfdf 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -517,6 +517,19 @@ label = "dfps_data_memory"; }; + memshare_mem: memshare_region { + compatible = "shared-dma-pool"; + no-map; + /* + * Memory shared with modem needs to be outside of + * the CLADE address space, which begins at + * 0xE0000000 and spans 512 MB. + */ + alloc-ranges = <0x0 0x00000000 0x0 0xdfffffff>; + alignment = <0x0 0x100000>; + size = <0x0 0x800000>; + }; + cnss_wlan_mem: cnss_wlan_region { compatible = "shared-dma-pool"; alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; @@ -942,6 +955,34 @@ status = "ok"; }; + 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>; + memory-region = <&memshare_mem>; + qcom,client-id = <1>; + qcom,allocate-on-request; + label = "modem"; + }; + }; + clocks { xo_board: xo-board { compatible = "fixed-clock";