Merge "ARM: dts: msm: Add dma-buf heaps for sun-vm"

This commit is contained in:
qctecmdr
2023-10-31 16:15:14 -07:00
committed by Gerrit - the friendly Code Review server
3 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
/ {
vm-config {
vdevices {
vsmmu@15000000 {
vdevice-type = "vsmmu-v2";
smmu-handle = <0x15000000>;
num-cbs = <0x6>;
num-smrs = <0xe>;
patch = "/soc/apps-smmu@15000000";
};
};
};
};
&soc {
apps_smmu: apps-smmu@15000000 {
/*
* reg, #global-interrupts & interrupts properties will
* be added dynamically by bootloader.
*/
compatible = "qcom,qsmmu-v500", "qcom,virt-smmu";
#iommu-cells = <2>;
qcom,use-3-lvl-tables;
dma-coherent;
qcom,actlr =
/* CAM_HF:Camera */
<0x1c08 0x0000 0x00000001>,
/* Mnoc_HF_23:Display */
<0x0804 0x0002 0x00000001>,
/* NSP:Compute */
<0x0c0b 0x0000 0x00000303>,
/* SF:Camera */
<0x1808 0x0020 0x00000001>,
<0x1841 0x0000 0x00000103>,
<0x1861 0x0000 0x00000001>,
<0x1881 0x0000 0x00000103>,
<0x18c2 0x0000 0x00000103>,
<0x18e8 0x0000 0x00000001>,
<0x1982 0x0000 0x00000103>,
/* SF:EVA */
<0x1901 0x0020 0x00000103>,
<0x1925 0x0000 0x00000103>;
};
};

View File

@@ -0,0 +1,35 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/arm/msm/qcom_dma_heap_dt_constants.h>
&soc {
qcom,dma-heaps {
compatible = "qcom,dma-heaps";
qcom,tui {
qcom,dma-heap-name = "qcom,tui";
qcom,dma-heap-type = <HEAP_TYPE_TUI_CARVEOUT>;
qcom,dynamic-heap;
};
qcom,ms1 {
qcom,dma-heap-name = "qcom,ms1";
qcom,dma-heap-type = <HEAP_TYPE_TUI_CARVEOUT>;
qcom,dynamic-heap;
};
qcom,ms2 {
qcom,dma-heap-name = "qcom,ms2";
qcom,dma-heap-type = <HEAP_TYPE_TUI_CARVEOUT>;
qcom,dynamic-heap;
};
qcom,ms3 {
qcom,dma-heap-name = "qcom,ms3";
qcom,dma-heap-type = <HEAP_TYPE_TUI_CARVEOUT>;
qcom,dynamic-heap;
};
};
};

View File

@@ -223,3 +223,6 @@
clock-frequency = <19200000>;
};
};
#include "msm-arm-smmu-sun-vm.dtsi"
#include "sun-vm-dma-heaps.dtsi"