#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; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; dma-coherent; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cc_cx_gdsc>; clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>, <&clock_gpucc GPU_CC_HUB_CX_INT_CLK>, <&clock_gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, <&clock_gcc GCC_GPU_SNOC_DVM_GFX_CLK>, <&clock_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>, <0x151ce000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,use-3-lvl-tables; qcom,context-fault-retry; qcom,handoff-smrs = <3>; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; dma-coherent; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; /* Autogenerated */ qcom,actlr = <0x0001 0x24e0 0x00000001>, <0x0001 0x0ce0 0x00000001>, <0x0001 0x1420 0x00000303>, <0x0002 0x3420 0x00000303>, <0x0004 0x3560 0x00000303>, <0x0005 0x3420 0x00000303>, <0x0006 0x3560 0x00000303>, <0x0007 0x3560 0x00000303>, <0x0008 0x3560 0x00000303>, <0x0009 0x3560 0x00000303>, <0x000c 0x3560 0x00000303>, <0x000d 0x3560 0x00000303>, <0x000e 0x3560 0x00000303>, <0x000f 0x3560 0x00000303>, <0x0121 0x2c80 0x00000001>, <0x0165 0x2400 0x00000303>, <0x0800 0x0460 0x00000001>, <0x0880 0x0400 0x00000001>, <0x1000 0x0400 0x00000303>, <0x1003 0x2520 0x00000303>, <0x100a 0x0400 0x00000303>, <0x100b 0x0420 0x00000303>, <0x2000 0x0420 0x00000001>, <0x2002 0x0500 0x00000001>, <0x2003 0x0560 0x00000303>, <0x2040 0x0420 0x00000001>, <0x2042 0x1520 0x00000303>, <0x206b 0x1500 0x00000303>, <0x2080 0x0400 0x00000001>, <0x20a0 0x0400 0x00000001>, <0x20c0 0x0400 0x00000001>, <0x20e0 0x0400 0x00000001>, <0x2100 0x0420 0x00000001>, <0x2101 0x0400 0x00000001>, <0x2161 0x0400 0x00000303>, <0x2180 0x0400 0x00000103>, <0x2181 0x0404 0x00000103>, <0x2182 0x0400 0x00000103>, <0x2183 0x0400 0x00000103>, <0x2184 0x0400 0x00000103>, <0x2187 0x0400 0x00000103>, <0x2800 0x0402 0x00000001>, <0x2801 0x0000 0x00000001>, <0x2803 0x0000 0x00000001>, <0x2806 0x0400 0x00000001>, <0x2c01 0x0000 0x00000001>, <0x2c03 0x0000 0x00000001>; anoc_1_tbu: anoc_1_tbu@151d1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151d1000 0x1000>, <0x151ce200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; qcom,micro-idle; qcom,iova-width = <36>; }; anoc_2_tbu: anoc_2_tbu@151d5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151d5000 0x1000>, <0x151ce208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; qcom,micro-idle; qcom,iova-width = <36>; }; cam_0_tbu: cam_0_tbu@151d9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151d9000 0x1000>, <0x151ce210 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x800 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; cam_1_tbu: cam_1_tbu@151dd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151dd000 0x1000>, <0x151ce218 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0xc00 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; compute_1_tbu: compute_1_tbu@151e1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e1000 0x1000>, <0x151ce220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; compute_0_tbu: compute_0_tbu@151e5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e5000 0x1000>, <0x151ce228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; lpass_tbu: lpass_tbu@151e9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151e9000 0x1000>, <0x151ce230 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1800 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; pcie_tbu: pcie_tbu@151ed000 { status = "disabled"; compatible = "qcom,qsmmuv500-tbu"; reg = <0x151ed000 0x1000>, <0x151ce238 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1c00 0x400>; qcom,micro-idle; qcom,iova-width = <36>; }; sf_0_tbu: sf_0_tbu@151f1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f1000 0x1000>, <0x151ce240 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2000 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; sf_1_tbu: sf_1_tbu@151f5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f5000 0x1000>, <0x151ce248 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2400 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; mdp_0_tbu: mdp_0_tbu@151f9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151f9000 0x1000>, <0x151ce250 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2800 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; mdp_1_tbu: mdp_1_tbu@151fd000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151fd000 0x1000>, <0x151ce258 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x2c00 0x400>; qcom,micro-idle; qcom,iova-width = <32>; }; }; 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; }; }; };