From e436ec070a8c6dec99b5febe76ac617438f1fca5 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Mon, 25 Sep 2023 17:36:14 -0700 Subject: [PATCH] ARM: dts: msm: Snapshot of pineapple vm smmu Pineapple smmu devicetree snapshot from qcom-6.1 branch commit 8ef379040bee ("bindings: interrupt-controller: Add bindings for mpm irqchip for pitti"). Change-Id: Ieebd69268aa04a48cc9a6977b6c4b70fd3035834 Signed-off-by: Patrick Daly --- qcom/msm-arm-smmu-pineapple-vm.dtsi | 56 +++++++++++++++++++++++++++++ qcom/pineapple-vm.dtsi | 2 ++ 2 files changed, 58 insertions(+) create mode 100644 qcom/msm-arm-smmu-pineapple-vm.dtsi diff --git a/qcom/msm-arm-smmu-pineapple-vm.dtsi b/qcom/msm-arm-smmu-pineapple-vm.dtsi new file mode 100644 index 00000000..7e5f7b63 --- /dev/null +++ b/qcom/msm-arm-smmu-pineapple-vm.dtsi @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +/ { + 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 = + /* Camera SBI*/ + <0x0848 0x0000 0x00000103>, + + /* Camera IFE, SFE, IPE, BPS, CDM IPE, CDM IFE, CDM BPS, ICP */ + <0x0808 0x1020 0x00000001>, + <0x1841 0x0000 0x00000001>, + <0x1861 0x0000 0x00000001>, + <0x1881 0x0000 0x00000001>, + <0x18c2 0x0000 0x00000001>, + + /* Camera CRE */ + <0x18e8 0x0000 0x00000103>, + + /* Compute */ + <0x0c0b 0x0000 0x00000303>, + + /* Display */ + <0x1c03 0x0000 0x00000001>, + <0x1c04 0x0002 0x00000001>, + + /* EVA */ + <0x1920 0x0000 0x00000103>; + }; +}; diff --git a/qcom/pineapple-vm.dtsi b/qcom/pineapple-vm.dtsi index 29ae0de1..ed8ea84d 100644 --- a/qcom/pineapple-vm.dtsi +++ b/qcom/pineapple-vm.dtsi @@ -271,3 +271,5 @@ }; }; + +#include "msm-arm-smmu-pineapple-vm.dtsi"