blob: 20f1a38b708d9d830c9d3b55a58e462a41645f89 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
&soc {
kgsl_smmu: kgsl-smmu@3da0000 {
compatible = "qcom,qsmmu-v500";
reg = <0x3DA0000 0x10000>,
<0x3DC2000 0x20>;
reg-names = "base", "tcu-base";
#iommu-cells = <2>;
qcom,dynamic;
qcom,skip-init;
qcom,use-3-lvl-tables;
qcom,no-dynamic-asid;
#global-interrupts = <2>;
#size-cells = <1>;
#address-cells = <1>;
ranges;
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-names = "gcc_gpu_memnoc_gfx",
"gcc_gpu_snoc_dvm_gfx",
"gpu_cc_ahb";
interrupts = <GIC_SPI 672 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 673 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 678 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 679 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 680 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 681 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 682 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 683 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 684 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 685 IRQ_TYPE_LEVEL_HIGH>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GPU_TCU>,
<MSM_BUS_SLAVE_EBI_CH0>,
<0 0>,
<MSM_BUS_MASTER_GPU_TCU>,
<MSM_BUS_SLAVE_EBI_CH0>,
<0 1000>;
qcom,actlr =
/* All CBs of GFX: +15 deep PF */
<0x2 0x400 0x303>,
<0x4 0x400 0x303>,
<0x5 0x400 0x303>,
<0x7 0x400 0x303>,
<0x0 0x401 0x303>;
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>;
};
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>;
};
};
apps_smmu: apps-smmu@15000000 {
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 = <2>;
#size-cells = <1>;
#address-cells = <1>;
ranges;
interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 110 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x103>,
/* 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>;
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 =
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_NPU>,
<MSM_BUS_SLAVE_CDSP_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_NPU>,
<MSM_BUS_SLAVE_CDSP_MEM_NOC>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_NPU>,
<MSM_BUS_SLAVE_CDSP_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_NPU>,
<MSM_BUS_SLAVE_CDSP_MEM_NOC>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
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 = <&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 =
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GEM_NOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
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>;
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 =
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 1000>;
};
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>;
qcom,msm-bus,name = "mnoc_sf_1_tbu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 1000>;
};
};
kgsl_iommu_test_device {
compatible = "iommu-debug-test";
iommus = <&kgsl_smmu 0x7 0>;
qcom,iommu-dma = "disabled";
};
kgsl_iommu_coherent_test_device {
status = "disabled";
compatible = "iommu-debug-test";
iommus = <&kgsl_smmu 0x9 0>;
qcom,iommu-dma = "disabled";
dma-coherent;
};
apps_iommu_test_device {
compatible = "iommu-debug-test";
iommus = <&apps_smmu 0x21 0>;
qcom,iommu-dma = "disabled";
};
apps_iommu_coherent_test_device {
compatible = "iommu-debug-test";
iommus = <&apps_smmu 0x23 0>;
qcom,iommu-dma = "disabled";
dma-coherent;
};
};