From b3aca64a1416246c8167b1078cf13a6526d67a10 Mon Sep 17 00:00:00 2001 From: Manish Pandey Date: Thu, 23 May 2024 21:37:29 +0530 Subject: [PATCH] ARM: dts: qcom: Enable UFS MCQ on Pineapple platforms Enable the UFS MCQ feature on the Pineapple platforms. Change-Id: I205f0c0444d5579333cac28a504a89985b95b469 Signed-off-by: Manish Pandey --- qcom/pineapple.dtsi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/qcom/pineapple.dtsi b/qcom/pineapple.dtsi index df5c84db..5b41ab58 100644 --- a/qcom/pineapple.dtsi +++ b/qcom/pineapple.dtsi @@ -1479,11 +1479,20 @@ }; }; + ufshc_dma_resv: ufshc_dma_resv_region { + /* + * Restrict IOVA mappings for UFSHC buffers to the 3 GB region + * from 0x1000 - 0xffffffff. + */ + iommu-addresses = <&ufshc_mem 0x0 0x1000>; + }; + ufshc_mem: ufshc@1d84000 { compatible = "qcom,ufshc"; reg = <0x1d84000 0x3000>, - <0x1d88000 0x18000>; - reg-names = "ufs_mem", "ice"; + <0x1d88000 0x18000>, + <0x1da5000 0x2000>, <0x1da4000 0x10>; + reg-names = "ufs_mem", "ice", "mcq_sqd", "mcq_vs"; interrupts = ; phys = <&ufsphy_mem>; phy-names = "ufsphy"; @@ -1492,7 +1501,7 @@ qcom,ice-use-hwkm; qcom,prime-mask = <0x80>; qcom,silver-mask = <0x0f>; - qcom,esi-affinity-mask = <0xf0>; + qcom,esi-affinity-mask = <0xe0>; lanes-per-direction = <2>; dev-ref-clk-freq = <0>; /* 19.2 MHz */ @@ -1594,11 +1603,17 @@ iommus = <&apps_smmu 0x60 0x0>; qcom,iommu-dma = "fastmap"; + qcom,iommu-msi-size = <0x1000>; + memory-region = <&ufshc_dma_resv>; shared-ice-cfg = <&ice_cfg>; dma-coherent; qcom,bypass-pbl-rst-wa; + msi-parent = <&gic_its 0x60>; + qcom,max-cpus = <8>; + qcom,broken-ahit-wa; + status = "disabled"; qos0 {