#include &soc { kgsl_smmu: kgsl-smmu@3da0000 { compatible = "qcom,qsmmu-v500", "qcom,adreno-smmu"; reg = <0x3DA0000 0x10000>, <0x3DC2000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,use-3-lvl-tables; qcom,num-context-banks-override = <0x05>; qcom,num-smr-override = <0x06>; qcom,no-dynamic-asid; #global-interrupts = <2>; #size-cells = <1>; #address-cells = <1>; ranges; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cx_gdsc>; clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, <&gpucc GPU_CC_AHB_CLK>; clock-names = "gcc_gpu_memnoc_gfx", "gcc_gpu_snoc_dvm_gfx", "gpu_cc_ahb"; interrupts = , , , , , , , , , ; qcom,actlr = /* All CBs of GFX: +15 deep PF */ <0x2 0x400 0x32B>, <0x4 0x400 0x32B>, <0x5 0x400 0x32B>, <0x7 0x400 0x32B>, <0x0 0x401 0x32B>; gfx_0_tbu: gfx_0_tbu@3dc5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x3DC5000 0x1000>, <0x3DC2200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; qcom,iova-width = <49>; }; gfx_1_tbu: gfx_1_tbu@3dc9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x3DC9000 0x1000>, <0x3DC2208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; qcom,iova-width = <49>; }; }; apps_smmu: apps-smmu@15000000 { compatible = "qcom,qsmmu-v500"; reg = <0x15000000 0x100000>, <0x15182000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,use-3-lvl-tables; qcom,num-context-banks-override = <0x4a>; qcom,handoff-smrs = <0x820 0x402>; qcom,num-smr-override = <0x57>; #global-interrupts = <2>; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; interconnects = <&system_noc MASTER_GEM_NOC_SNOC &config_noc SLAVE_IMEM_CFG>; qcom,active-only; qcom,actlr = /* For HF-0 TBU +3 deep PF */ <0x800 0x3ff 0x103>, /* For HF-1 TBU +3 deep PF */ <0xC00 0x3ff 0x103>, /* For SF-0 TBU +3 deep PF */ <0x2000 0x3ff 0x103>, /* For SF-1 TBU +3 deep PF */ <0x2400 0x3ff 0x103>, /* For NPU +3 deep PF */ <0x1081 0x400 0x103>, <0x1082 0x400 0x103>, <0x1085 0x400 0x103>, <0x10a1 0x400 0x103>, <0x10a2 0x400 0x103>, <0x10a5 0x400 0x103>; anoc_1_tbu: anoc_1_tbu@15185000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15185000 0x1000>, <0x15182200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; interconnects = <&system_noc MASTER_GEM_NOC_SNOC &config_noc SLAVE_IMEM_CFG>; qcom,active-only; qcom,iova-width = <36>; }; anoc_2_tbu: anoc_2_tbu@15189000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15189000 0x1000>, <0x15182208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; interconnects = <&system_noc MASTER_GEM_NOC_SNOC &config_noc SLAVE_IMEM_CFG>; qcom,active-only; qcom,iova-width = <36>; }; mnoc_hf_0_tbu: mnoc_hf_0_tbu@1518d000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x1518D000 0x1000>, <0x15182210 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>; interconnects = <&mmss_noc MASTER_MDP0 &mmss_noc SLAVE_MNOC_HF_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; mnoc_hf_1_tbu: mnoc_hf_1_tbu@15191000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15191000 0x1000>, <0x15182218 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>; interconnects = <&mmss_noc MASTER_MDP0 &mmss_noc SLAVE_MNOC_HF_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; compute_dsp_1_tbu: compute_dsp_1_tbu@15195000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15195000 0x1000>, <0x15182220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; interconnects = <&compute_noc MASTER_NPU &compute_noc SLAVE_CDSP_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; compute_dsp_0_tbu: compute_dsp_0_tbu@15199000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15199000 0x1000>, <0x15182228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; interconnects = <&compute_noc MASTER_NPU &compute_noc SLAVE_CDSP_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; adsp_tbu: adsp_tbu@1519d000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x1519D000 0x1000>, <0x15182230 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1800 0x400>; interconnects = <&system_noc MASTER_GEM_NOC_SNOC &config_noc SLAVE_IMEM_CFG>; qcom,active-only; qcom,iova-width = <32>; }; anoc_1_pcie_tbu: anoc_1_pcie_tbu@151a1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151A1000 0x1000>, <0x15182238 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1c00 0x400>; clock-names = "gcc_aggre_noc_pcie_tbu_clk"; clocks = <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>; interconnects = <&system_noc MASTER_GEM_NOC_SNOC &config_noc SLAVE_IMEM_CFG>; qcom,active-only; qcom,iova-width = <36>; }; mnoc_sf_0_tbu: mnoc_sf_0_tbu@151a5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151A5000 0x1000>, <0x15182240 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2000 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc>; interconnects = <&mmss_noc MASTER_CAMNOC_SF &mmss_noc SLAVE_MNOC_SF_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; mnoc_sf_1_tbu: mnoc_sf_1_tbu@151a9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151A9000 0x1000>, <0x15182248 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2400 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc>; interconnects = <&mmss_noc MASTER_CAMNOC_SF &mmss_noc SLAVE_MNOC_SF_MEM_NOC>; qcom,active-only; qcom,iova-width = <32>; }; }; dma_dev { 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 0x23 0x0>; }; usecase1_apps_fastmap { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x23 0x0>; qcom,iommu-dma = "fastmap"; }; usecase2_apps_atomic { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x23 0x0>; qcom,iommu-dma = "atomic"; }; usecase3_apps_dma { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x23 0x0>; dma-coherent; }; usecase4_apps_secure { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x23 0x0>; qcom,iommu-vmid = <0xa>; /* VMID_CP_PIXEL */ }; usecase5_kgsl { compatible = "qcom,iommu-debug-usecase"; iommus = <&kgsl_smmu 0x7 0x0>; }; }; };