/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include &soc { kgsl_smmu: kgsl-smmu@0x50a0000 { compatible = "qcom,qsmmu-v500"; reg = <0x50a0000 0x10000>, <0x50c2000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,dynamic; qcom,skip-init; qcom,use-3-lvl-tables; qcom,disable-atos; #global-interrupts = <1>; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cx_gdsc>; clocks = <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, <&clock_gcc GCC_GPU_SNOC_DVM_GFX_CLK>, <&clock_gpucc GPU_CC_AHB_CLK>, <&clock_gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>; clock-names = "gcc_gpu_memnoc_gfx_clk", "gcc_gpu_snoc_dvm_gfx_clk", "gpu_cc_ahb_clk", "gpu_cc_hlos1_vote_gpu_smmu_clk"; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , ; gfx_0_tbu: gfx_0_tbu@0x50c5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x50c5000 0x1000>, <0x50c2200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; }; gfx_1_tbu: gfx_1_tbu@0x50c9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x50c9000 0x1000>, <0x50c2208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; }; }; apps_smmu: apps-smmu@0x15000000 { compatible = "qcom,qsmmu-v500"; reg = <0x15000000 0x80000>, <0x150c2000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,use-3-lvl-tables; qcom,disable-atos; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; qcom,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; 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,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; 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,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; 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,msm-bus,name = "mnoc_hf_0_tbu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; mnoc_sf_0_tbu: mnoc_sf_0_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_sf_gdsc>; qcom,msm-bus,name = "mnoc_sf_0_tbu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; compute_dsp_tbu: compute_dsp_tbu@0x150d5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150d5000 0x1000>, <0x150c2220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; /* No GDSC */ qcom,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; adsp_tbu: adsp_tbu@0x150d9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x150d9000 0x1000>, <0x150c2228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc>; qcom,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; }; kgsl_iommu_test_device { compatible = "iommu-debug-test"; iommus = <&kgsl_smmu 0x7 0>; }; kgsl_iommu_coherent_test_device { compatible = "iommu-debug-test"; iommus = <&kgsl_smmu 0x9 0>; dma-coherent; }; apps_iommu_test_device { compatible = "iommu-debug-test"; iommus = <&apps_smmu 0x21 0>; }; apps_iommu_coherent_test_device { compatible = "iommu-debug-test"; iommus = <&apps_smmu 0x23 0>; dma-coherent; }; }; &kgsl_smmu { qcom,actlr = /* All CBs of GFX: +15 deep PF */ <0x0 0x7ff 0x303>; }; &apps_smmu { qcom,actlr = /* HF and SF TBUs: +3 deep PF */ <0x800 0x7ff 0x103>; };