diff --git a/bindings/sound/qcom-audio-dev.txt b/bindings/sound/qcom-audio-dev.txt index 52f415032020..5842a462546d 100644 --- a/bindings/sound/qcom-audio-dev.txt +++ b/bindings/sound/qcom-audio-dev.txt @@ -943,6 +943,16 @@ Example: qcom,smmu-enabled; }; +* msm-audio-ion-cma + +Required properties: + - compatible : "qcom,msm-audio-ion-cma" + +Example: + qcom,msm-audio-ion-cma { + compatible = "qcom,msm-audio-ion-cma"; + }; + * msm-dai-tdm [First Level Nodes] diff --git a/qcom/lahaina-audio.dtsi b/qcom/lahaina-audio.dtsi index 7aa1ca59b32a..c891c458f208 100644 --- a/qcom/lahaina-audio.dtsi +++ b/qcom/lahaina-audio.dtsi @@ -7,6 +7,10 @@ }; &audio_apr { + msm_audio_ion_cma: qcom,msm-audio-ion-cma { + compatible = "qcom,msm-audio-ion-cma"; + }; + q6core: qcom,q6core-audio { compatible = "qcom,q6core-audio"; #address-cells = <1>; diff --git a/qcom/lahaina-ion.dtsi b/qcom/lahaina-ion.dtsi index a530be30f411..eaf915b9caac 100644 --- a/qcom/lahaina-ion.dtsi +++ b/qcom/lahaina-ion.dtsi @@ -61,5 +61,11 @@ qcom,ion-heap-type = "HYP_CMA"; }; + qcom,ion-heap@5 { /* AUDIO ML HEAP */ + reg = ; + memory-region = <&audio_cma_mem>; + qcom,ion-heap-type = "DMA"; + }; + }; }; diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 7172f0bee189..361d8a966219 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -499,6 +499,14 @@ size = <0x0 0x1000000>; }; + audio_cma_mem: audio_cma_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0x1C00000>; + }; + splash_memory:splash_region { reg = <0x0 0xe1000000 0x0 0x02300000>; label = "cont_splash_region";