From bcefc0bb6c36903f15554a1bf511f6815fd8fb09 Mon Sep 17 00:00:00 2001 From: Prakash Gupta Date: Fri, 24 Apr 2020 12:33:38 +0530 Subject: [PATCH 1/2] ARM: dts: msm: initial arm smmu DT for holi Initial arm smmu DT for apps and gfx smmu for holi. Change-Id: If5c8e8c5cbae25f4543048b1396de0e3a18a3576 --- qcom/holi.dtsi | 1 + qcom/msm-arm-smmu-holi.dtsi | 177 ++++++++++++++++++++++++++++++++++++ 2 files changed, 178 insertions(+) create mode 100644 qcom/msm-arm-smmu-holi.dtsi diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 065d8c16ae4b..efcd06777cb1 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -943,6 +943,7 @@ #include "holi-regulators.dtsi" #include "holi-gdsc.dtsi" #include "holi-ion.dtsi" +#include "msm-arm-smmu-holi.dtsi" #include "holi-usb.dtsi" #include "holi-pm.dtsi" diff --git a/qcom/msm-arm-smmu-holi.dtsi b/qcom/msm-arm-smmu-holi.dtsi new file mode 100644 index 000000000000..3baf018ddb2c --- /dev/null +++ b/qcom/msm-arm-smmu-holi.dtsi @@ -0,0 +1,177 @@ +#include + +&soc { + kgsl_smmu: arm,smmu-kgsl@5940000 { + compatible = "qcom,smmu-v2"; + reg = <0x5940000 0x10000>; + #iommu-cells = <1>; + qcom,use-3-lvl-tables; + #global-interrupts = <2>; + qcom,regulator-names = "vdd"; + vdd-supply = <&gpu_cx_gdsc>; + clock-names = "gcc_gpu_memnoc_gfx_clk"; + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>; + interrupts = , + , + , + , + , + , + , + , + , + ; + attach-impl-defs = + <0x6000 0x2378>, + <0x6060 0x1055>, + <0x678c 0x8>, + <0x6794 0x28>, + <0x6800 0x6>, + <0x6900 0x3ff>, + <0x6924 0x204>, + <0x6928 0x11000>, + <0x6930 0x800>, + <0x6960 0xffffffff>, + <0x6b64 0x1a5551>, + <0x6b68 0x9a82a382>; + }; + + apps_smmu: apps-smmu@0c600000 { + compatible = "qcom,qsmmu-v500"; + reg = <0x0c600000 0x100000>, + <0x0c702000 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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + qcom,active-only; + + anoc_1_tbu: anoc_1_tbu@0c705000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0x0c705000 0x1000>, + <0x0c702200 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0x0 0x400>; + qcom,active-only; + }; + + anoc_2_tbu: anoc_2_tbu@0c709000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0x0c709000 0x1000>, + <0x0c702208 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0x400 0x400>; + qcom,active-only; + }; + + mm_rt_tbu: mm_rt_tbu@0c70d000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0x0c70d000 0x1000>, + <0x0c702210 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0x800 0x400>; + qcom,active-only; + }; + + mm_nrt_tbu: mm_nrt_tbu@0c711000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0x0c711000 0x1000>, + <0x0c702218 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0xc00 0x400>; + qcom,active-only; + }; + + compute_dsp_tbu: compute_dsp_0_tbu@0c715000 { + compatible = "qcom,qsmmuv500-tbu"; + reg = <0x0c715000 0x1000>, + <0x0c702220 0x8>; + reg-names = "base", "status-reg"; + qcom,stream-id-range = <0x1000 0x400>; + qcom,active-only; + }; + }; + + kgsl_iommu_test_device { + compatible = "iommu-debug-test"; + iommus = <&kgsl_smmu 0x7 0>; + qcom,iommu-dma = "disabled"; + }; + + apps_iommu_test_device { + compatible = "iommu-debug-test"; + iommus = <&apps_smmu 0x100 0>; + qcom,iommu-dma = "disabled"; + }; +}; From 6c4c214ead28c59aa011bc915e5aab86823a20f6 Mon Sep 17 00:00:00 2001 From: Prakash Gupta Date: Fri, 1 May 2020 22:58:35 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add SMMU actlr configuration for holi Add ACTLR configuration for SMMU for holi Change-Id: I04903cf99409a377918cd082b21ac82a58f03bb6 --- qcom/msm-arm-smmu-holi.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/msm-arm-smmu-holi.dtsi b/qcom/msm-arm-smmu-holi.dtsi index 3baf018ddb2c..b3735c15a66c 100644 --- a/qcom/msm-arm-smmu-holi.dtsi +++ b/qcom/msm-arm-smmu-holi.dtsi @@ -117,6 +117,12 @@ qcom,active-only; + qcom,actlr = + /* For rt TBU +3 deep PF */ + <0x800 0x3ff 0x103>, + /* For nrt TBU +3 deep PF */ + <0xc00 0x3ff 0x103>; + anoc_1_tbu: anoc_1_tbu@0c705000 { compatible = "qcom,qsmmuv500-tbu"; reg = <0x0c705000 0x1000>,