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 <quic_araghave@quicinc.com>
This commit is contained in:
Anirudh Raghavendra
2023-08-23 10:39:32 -07:00
parent 6e5cf08b54
commit ad2a8bc603
2 changed files with 47 additions and 0 deletions

View File

@@ -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 <quic_araghave@quicinc.com>
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;
};

View File

@@ -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"