From ad2a8bc60334cd568cf3e08fad6b88a5e4879097 Mon Sep 17 00:00:00 2001 From: Anirudh Raghavendra Date: Wed, 23 Aug 2023 10:39:32 -0700 Subject: [PATCH] ARM: dts: msm: Define adsp_mem_heap region Define adsp mem heap region for adsp-mem device. Also add documentation for the same. Change-Id: Icce88b87c28797ff51ba5b0d885706d3a903eee3 Signed-off-by: Anirudh Raghavendra --- bindings/qdsp/msm-fastrpc.yaml | 33 +++++++++++++++++++++++++++++++++ qcom/sun.dtsi | 14 ++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 bindings/qdsp/msm-fastrpc.yaml diff --git a/bindings/qdsp/msm-fastrpc.yaml b/bindings/qdsp/msm-fastrpc.yaml new file mode 100644 index 00000000..0850a469 --- /dev/null +++ b/bindings/qdsp/msm-fastrpc.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/qdsp/msm-fastrpc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ADSP remote heap region + +description: + Defines the ADSP remote heap region. Device used for CMA allocations + and mappings for both secure and non-secure usecases. + +maintainers: + - Anirudh Raghavendra + +properties: + compatible: + const: qcom,adsprpc-mem + +required: + - compatible + - memory-region + - restrict-access + +additionalProperties: false + +examples: + - | + qcom,adsprpc-mem { + compatible = "qcom,msm-adsprpc-mem-region"; + memory-region = <&adsp_mem>; + restrict-access; + }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 26b69a4e..475c5940 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1120,6 +1120,12 @@ }; msm_gpu: qcom,kgsl-3d0@3d00000 { }; + + qcom,msm-adsprpc-mem { + compatible = "qcom,msm-adsprpc-mem-region"; + memory-region = <&adsp_mem_heap>; + restrict-access; + }; }; &reserved_memory { @@ -1365,6 +1371,14 @@ alignment = <0x0 0x400000>; size = <0x0 0x400000>; }; + + adsp_mem_heap: adsp_heap_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0xC00000>; + }; }; #include "sun-dma-heaps.dtsi"