/* Copyright (c) 2018-2020, 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@0x02CA0000 { compatible = "qcom,qsmmu-v500"; reg = <0x02CA0000 0x10000>, <0x2CC2000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,dynamic; qcom,use-3-lvl-tables; #global-interrupts = <2>; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cx_gdsc>; clock-names = "gcc_gpu_memnoc_gfx_clk", "gcc_gpu_snoc_dvm_gfx_clk", "gpu_cc_ahb_clk"; clocks = <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, <&clock_gcc GCC_GPU_SNOC_DVM_GFX_CLK>, <&clock_gpucc GPU_CC_AHB_CLK>; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , , ; gfx_0_tbu: gfx_0_tbu@0x2CC5000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x2CC5000 0x1000>, <0x2CC2200 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x0 0x400>; }; gfx_1_tbu: gfx_1_tbu@0x2CC9000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x2CC9000 0x1000>, <0x2CC2208 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x400 0x400>; }; gfx_2_tbu: gfx_2_tbu@0x2CCD000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x2CCD000 0x1000>, <0x2CC2210 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x800 0x400>; }; gfx_3_tbu: gfx_3_tbu@0x2CD1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x2CD1000 0x1000>, <0x2CC2218 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0xC00 0x400>; }; }; apps_smmu: apps-smmu@0x15000000 { compatible = "qcom,qsmmu-v500"; reg = <0x15000000 0x100000>, <0x15182000 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; 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@0x15185000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15185000 0x1000>, <0x15182200 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@0x15189000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15189000 0x1000>, <0x15182208 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@0x1518D000 { 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>; 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_hf_1_tbu: mnoc_hf_1_tbu@0x15191000 { 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>; qcom,msm-bus,name = "mnoc_hf_1_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_1_tbu: compute_dsp_1_tbu@0x15195000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15195000 0x1000>, <0x15182220 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1000 0x400>; 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>; }; compute_dsp_0_tbu: compute_dsp_0_tbu@0x15199000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x15199000 0x1000>, <0x15182228 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1400 0x400>; 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@0x1519D000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x1519D000 0x1000>, <0x15182230 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,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_pcie: anoc_pcie@151A1000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x151A1000 0x1000>, <0x15182238 0x8>; reg-names = "base", "status-reg"; qcom,stream-id-range = <0x1c00 0x400>; qcom,regulator-names = "vdd"; vdd-supply = <&hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc>; clock-names = "gcc_aggre_noc_pcie_tbu_clk"; clocks = <&clock_gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>; 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_sf_0_tbu: mnoc_sf_0_tbu@0x151A5000 { 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_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>; }; }; 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 0x3ff 0x303>, <0x400 0x3ff 0x303>, <0x800 0x3ff 0x303>, <0xc00 0x3ff 0x303>; }; &apps_smmu { qcom,actlr = /* HF0/1, SF TBU +3 PF */ <0x800 0x3ff 0x103>, <0xc00 0x3ff 0x103>, <0x2000 0x3ff 0x103>, /* NPU SIDs: +15 deep PF */ <0x1480 0x7 0x303>, <0x1080 0x7 0x303>; };