From a18a95850c3597f350a206110ce257afce6a9796 Mon Sep 17 00:00:00 2001 From: Zou Shunxiang Date: Tue, 1 Nov 2022 18:02:07 +0800 Subject: [PATCH] ARM: dts: qcom: Add the APSS SMMU nodes for direwolf GVM Add the APSS SMMU nodes for the direwolf GVM platform to enable IOMMU control from the VM. Change-Id: Id08d765e4d47cbe0b115d71d8673d9b54ed696ac --- qcom/direwolf-vm.dtsi | 153 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/qcom/direwolf-vm.dtsi b/qcom/direwolf-vm.dtsi index 82a270b1..6a792010 100644 --- a/qcom/direwolf-vm.dtsi +++ b/qcom/direwolf-vm.dtsi @@ -6,6 +6,159 @@ qcom,msm-id = <460 0x10000>; }; +&soc { + apps_smmu: apps-smmu@15000000 { + compatible = "qcom,qsmmu-v500"; + reg = <0x15000000 0x100000>, + <0x15182000 0x20>; + reg-names = "base", "tcu-base"; + #iommu-cells = <2>; + qcom,skip-init; + qcom,use-3-lvl-tables; + qcom,handoff-smrs = <0xffff 0x0>; + qcom,multi-match-handoff-smr; + #global-interrupts = <2>; + #size-cells = <1>; + #address-cells = <1>; + ranges; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + + dma_dev@0x0 { + compatible = "qcom,iommu-dma"; + memory-region = <&system_cma>; + }; +}; + ®ulator { virt_regulator { compatible = "virtio,device31";