From 215c835038b5a9fa0e9db5bb049da0bb0ca203c4 Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Wed, 25 Sep 2024 09:16:58 +0530 Subject: [PATCH] ARM: dts: msm: Add arm-smmu device on tuna-vm Describe the register, interrupts, and settings of the arm-smmu device. Change-Id: I8876e31db9cd232963987599c40d0d1b37e35f08 Signed-off-by: Vijayanand Jitta --- qcom/msm-arm-smmu-tuna-vm.dtsi | 62 ++++++++++++++++++++++++++++++++++ qcom/tuna-vm.dtsi | 2 ++ 2 files changed, 64 insertions(+) create mode 100644 qcom/msm-arm-smmu-tuna-vm.dtsi diff --git a/qcom/msm-arm-smmu-tuna-vm.dtsi b/qcom/msm-arm-smmu-tuna-vm.dtsi new file mode 100644 index 00000000..f9dabb87 --- /dev/null +++ b/qcom/msm-arm-smmu-tuna-vm.dtsi @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +/ { + vm-config { + vdevices { + vsmmu@15000000 { + vdevice-type = "vsmmu-v2"; + smmu-handle = <0x15000000>; + num-cbs = <0x7>; + 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 IPE*/ + <0x1808 0x0020 0x00000001>, + + /* SF:Camera CDM IPE/IFE/OFE*/ + <0x1841 0x0000 0x00000001>, + <0x1861 0x0000 0x00000001>, + <0x1881 0x0000 0x00000001>, + + /* SF:Camera ICP*/ + <0x18c2 0x0000 0x00000001>, + <0x1982 0x0000 0x00000001>, + + /* SF:Camera CRE*/ + <0x18e8 0x0000 0x00000103>, + + /* SF:EVA */ + <0x1901 0x0020 0x00000103>, + <0x1925 0x0000 0x00000103>; + }; +}; diff --git a/qcom/tuna-vm.dtsi b/qcom/tuna-vm.dtsi index b2f4335d..2fcee9f5 100644 --- a/qcom/tuna-vm.dtsi +++ b/qcom/tuna-vm.dtsi @@ -331,3 +331,5 @@ qcom,support-hypervisor; }; }; + +#include "msm-arm-smmu-tuna-vm.dtsi"