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 889a56fb..032ba826 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1330,6 +1330,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 { @@ -1575,6 +1581,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"