#include &soc { kgsl_smmu: arm,smmu-kgsl@5040000 { status = "ok"; compatible = "qcom,smmu-v2"; reg = <0x5040000 0x10000>; #iommu-cells = <1>; qcom,dynamic; qcom,use-3-lvl-tables; qcom,disable-atos; #global-interrupts = <2>; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cx_gdsc>; interrupts = , , , , , , , , , ; clock-names = "gcc_gpu_memnoc_gfx_clk"; clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>; attach-impl-defs = <0x6000 0x2378>, <0x6060 0x1055>, <0x678c 0x8>, <0x6794 0x28>, <0x6800 0x6>, <0x6900 0x3ff>, <0x6924 0x204>, <0x6928 0x11000>, <0x6930 0x800>, <0x6960 0xffffffff>, <0x6b64 0x1a5551>, <0x6b68 0x9a82a382>; }; apps_smmu: apps-smmu@0x15000000 { compatible = "qcom,qsmmu-v500"; reg = <0x15000000 0x80000>, <0x150c2000 0x18>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,use-3-lvl-tables; qcom,handoff-smrs = <0x0880 0x408>; qcom,no-asid-retention; qcom,disable-atos; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; qcom,active-only; anoc_1_tbu: anoc_1_tbu@0x150c5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150c5000 0x1000>, <0x150c2200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_aggre_noc_mmu_tbu1_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; anoc_2_tbu: anoc_2_tbu@0x150c9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150c9000 0x1000>, <0x150c2208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_aggre_noc_mmu_tbu2_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; mnoc_hf_0_tbu: mnoc_hf_0_tbu@0x150cd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150cd000 0x1000>, <0x150c2210 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x800 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; mnoc_hf_1_tbu: mnoc_hf_1_tbu@0x150d1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150d1000 0x1000>, <0x150c2218 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0xc00 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; mnoc_sf_0_tbu: mnoc_sf_0_tbu@0x150d5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150d5000 0x1000>, <0x150c2220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; compute_dsp_tbu: compute_dsp_tbu@0x150d9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150d9000 0x1000>, <0x150c2228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; qcom,active-only; qcom,iova-width = <36>; }; adsp_tbu: adsp_tbu@0x150dd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150dd000 0x1000>, <0x150c2230 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1800 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc>; qcom,active-only; qcom,iova-width = <36>; }; }; dma_dev@0x0 { compatible = "qcom,iommu-dma"; memory-region = <&system_cma>; }; iommu_test_device { compatible = "qcom,iommu-debug-test"; usecase0_apps { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x20 0xf>; }; usecase1_apps_fastmap { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x20 0xf>; qcom,iommu-dma = "fastmap"; }; usecase2_apps_atomic { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x20 0xf>; qcom,iommu-dma = "atomic"; }; usecase3_apps_dma { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x20 0xf>; dma-coherent; }; usecase4_kgsl { compatible = "qcom,iommu-debug-usecase"; iommus = <&kgsl_smmu 0x7 0x0>; }; }; }; &apps_smmu { qcom,actlr = /* HF and SF TBUs: +3 deep PF */ <0x0800 0x7ff 0x103>, <0x1000 0x3ff 0x103>; };