From ac6533ddb4c1098f034750970dfdde30f3ec1627 Mon Sep 17 00:00:00 2001 From: Nishant Pandey Date: Wed, 14 Sep 2022 06:00:33 -0700 Subject: [PATCH] ARM: dts: msm: Add smmu dt nodes for sa410m Add smmu devicetree nodes for sa410m. Change-Id: I2e7e6ef8a3e2d515c138688de78c80ebe68ceae8 --- qcom/msm-arm-smmu-sa410m.dtsi | 129 ++++++++++++++++++++++++++++++++++ qcom/sa410m.dtsi | 2 + 2 files changed, 131 insertions(+) create mode 100644 qcom/msm-arm-smmu-sa410m.dtsi diff --git a/qcom/msm-arm-smmu-sa410m.dtsi b/qcom/msm-arm-smmu-sa410m.dtsi new file mode 100644 index 00000000..195737e6 --- /dev/null +++ b/qcom/msm-arm-smmu-sa410m.dtsi @@ -0,0 +1,129 @@ +#include + +&soc { + + apps_smmu: apps-smmu@0xc600000 { + status = "okay"; + compatible = "qcom,qsmmu-v500"; + reg = <0xc600000 0x80000>, + <0xc782000 0x20>; + reg-names = "base", "tcu-base"; + #iommu-cells = <2>; + qcom,skip-init; + qcom,use-3-lvl-tables; + #global-interrupts = <1>; + #size-cells = <1>; + #address-cells = <1>; + ranges; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + interconnects = <&bimc_noc MASTER_AMPSS_M0 + &sys_noc SLAVE_QDSS_STM>; + + qcom,active-only; + qcom,actlr = + /* For rt TBU +3 deep PF */ + <0x400 0x3ff 0x103>, + /* For nrt TBU +3 deep PF */ + <0x800 0x3ff 0x103>; + + anoc_1_tbu: anoc_1_tbu@0xc785000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0xc785000 0x1000>, + <0xc782200 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0x0 0x400>; + interconnects = <&bimc_noc MASTER_AMPSS_M0 + &config_noc SLAVE_IMEM_CFG>, + <&bimc_noc MASTER_AMPSS_M0 + &sys_noc SLAVE_QDSS_STM>; + qcom,iova-width = <36>; + }; + + + }; + + dma_dev@0x0 { + compatible = "qcom,iommu-dma"; + memory-region = <&system_cma>; + }; + + iommu_test_device { + compatible = "qcom,iommu-debug-test"; + apps_iommu_test_device { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x1E0 0>; + }; + + apps_iommu_coherent_test_device { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x1E1 0>; + dma-coherent; + }; + }; + +}; diff --git a/qcom/sa410m.dtsi b/qcom/sa410m.dtsi index 4a9bd33b..a63415f2 100644 --- a/qcom/sa410m.dtsi +++ b/qcom/sa410m.dtsi @@ -446,3 +446,5 @@ }; }; }; + +#include "msm-arm-smmu-sa410m.dtsi"