// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include &soc { kgsl_smmu: kgsl-smmu@3da0000 { compatible = "qcom,qsmmu-v500", "qcom,adreno-smmu"; reg = <0x3da0000 0x40000>, <0x3de6000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,use-3-lvl-tables; qcom,num-context-banks-override = <0x6>; qcom,num-smr-override = <0x6>; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; dma-coherent; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cc_cx_gdsc>; clocks = <&gpucc GPU_CC_CX_GMU_CLK>, <&gpucc GPU_CC_HUB_CX_INT_CLK>, <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, <&gcc GCC_GPU_MEMNOC_GFX_CLK>, <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, <&gpucc GPU_CC_AHB_CLK>; clock-names = "gpu_cc_cx_gmu", "gpu_cc_hub_cx_int", "gpu_cc_hlos1_vote_gpu_smmu", "gcc_gpu_memnoc_gfx", "gcc_gpu_snoc_dvm_gfx", "gpu_cc_ahb"; qcom,actlr = /* All CBs of GFX: +15 deep PF */ <0x000 0x7ff 0x32B>; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , ; gfx_0_tbu: gfx_0_tbu@3de9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x3de9000 0x1000>, <0x3de6200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; qcom,iova-width = <49>; }; gfx_1_tbu: gfx_1_tbu@3ded000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x3ded000 0x1000>, <0x3de6208 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>, <0x151da000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,use-3-lvl-tables; qcom,num-context-banks-override = <0x4e>; qcom,num-smr-override = <0x78>; qcom,handoff-smrs = <0x800 0x402>; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; dma-coherent; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; qcom,actlr = /* Camera clients, +0 PF */ <0x8A0 0x4A0 0x1>, <0xcA0 0x4A0 0x1>, <0x2000 0xE0 0x1>, <0x2100 0x60 0x1>, /* For Display clients, +3 PF */ <0x800 0x407 0x103>, <0xc00 0x407 0x103>, /* For video clients, +0 PF */ <0x2180 0x27 0x1>, /* NSP clients, +15PF */ <0x1000 0x7ff 0x303>; interconnects = <&gem_noc MASTER_APPSS_PROC &cnoc3 SLAVE_TCU>; qcom,active-only; anoc_1_tbu: anoc_1_tbu@151dd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151dd000 0x1000>, <0x151da200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; qcom,iova-width = <36>; qcom,micro-idle; interconnects = <&gem_noc MASTER_APPSS_PROC &cnoc3 SLAVE_IMEM>; qcom,active-only; }; anoc_2_tbu: anoc_2_tbu@151e1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e1000 0x1000>, <0x151da208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; qcom,iova-width = <36>; qcom,micro-idle; interconnects = <&gem_noc MASTER_APPSS_PROC &cnoc3 SLAVE_IMEM>; qcom,active-only; }; mnoc_hf_0_tbu: mnoc_hf_0_tbu@151e5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e5000 0x1000>, <0x151da210 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x800 0x400>; qcom,iova-width = <32>; qcom,micro-idle; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc>; interconnects = <&mmss_noc MASTER_CAMNOC_HF &mc_virt SLAVE_EBI1>; qcom,active-only; }; mnoc_hf_1_tbu: mnoc_hf_1_tbu@151e9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e9000 0x1000>, <0x151da218 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0xc00 0x400>; qcom,iova-width = <32>; qcom,micro-idle; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc>; interconnects = <&mmss_noc MASTER_CAMNOC_HF &mc_virt SLAVE_EBI1>; qcom,active-only; }; compute_1_tbu: compute_1_tbu@151ed000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151ed000 0x1000>, <0x151da220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; qcom,iova-width = <32>; qcom,micro-idle; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_turing_mmu_tbu1_gdsc>; interconnects = <&nsp_noc MASTER_CDSP_PROC &mc_virt SLAVE_EBI1>; qcom,active-only; }; compute_0_tbu: compute_0_tbu@151f1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f1000 0x1000>, <0x151da228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; qcom,iova-width = <32>; qcom,micro-idle; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_turing_mmu_tbu0_gdsc>; interconnects = <&nsp_noc MASTER_CDSP_PROC &mc_virt SLAVE_EBI1>; qcom,active-only; }; lpass_tbu: lpass_tbu@151f5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f5000 0x1000>, <0x151da230 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1800 0x400>; qcom,iova-width = <32>; qcom,micro-idle; interconnects = <&lpass_ag_noc MASTER_LPASS_PROC &mc_virt SLAVE_EBI1>; qcom,active-only; }; pcie_tbu: pcie_tbu@151f9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f9000 0x1000>, <0x151da238 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1c00 0x400>; qcom,iova-width = <36>; qcom,micro-idle; interconnects = <&pcie_noc MASTER_PCIE_0 &mc_virt SLAVE_EBI1>; qcom,active-only; }; sf_0_tbu: sf_0_tbu@151fd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151fd000 0x1000>, <0x151da240 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2000 0x400>; qcom,iova-width = <32>; qcom,micro-idle; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc>; interconnects = <&mmss_noc MASTER_CAMNOC_SF &mc_virt SLAVE_EBI1>; qcom,active-only; }; }; 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 0x7e0 0>; }; usecase1_apps_fastmap { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x7e0 0>; qcom,iommu-dma = "fastmap"; }; usecase2_apps_atomic { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x7e0 0>; qcom,iommu-dma = "atomic"; }; usecase3_apps_dma { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x7e1 0>; dma-coherent; }; usecase4_apps_secure { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x7e0 0>; qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */ }; usecase5_kgsl { compatible = "qcom,iommu-debug-usecase"; iommus = <&kgsl_smmu 0x7 0x400>; }; usecase6_kgsl_dma { compatible = "qcom,iommu-debug-usecase"; iommus = <&kgsl_smmu 0x407 0x400>; dma-coherent; }; }; };