arm64: dts: qcom: sm6125: Add apps_smmu with streamID to SDHCI 1/2 nodes
authorMarijn Suijten <marijn.suijten@somainline.org>
Thu, 22 Dec 2022 19:32:53 +0000 (20:32 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 29 Dec 2022 17:07:58 +0000 (11:07 -0600)
When enabling the APPS SMMU the mainline driver reconfigures the SMMU
from its bootloader configuration, losing the stream mapping for (among
which) the SDHCI hardware and breaking its ADMA feature.  This feature
can be disabled with:

    sdhci.debug_quirks=0x40

But it is of course desired to have this feature enabled and working
through the SMMU.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Martin Botka <martin.botka@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221222193254.126925-4-marijn.suijten@somainline.org
arch/arm64/boot/dts/qcom/sm6125.dtsi

index 7d02e1d..5b1687e 100644 (file)
                                 <&gcc GCC_SDCC1_APPS_CLK>,
                                 <&xo_board>;
                        clock-names = "iface", "core", "xo";
+                       iommus = <&apps_smmu 0x160 0x0>;
 
                        power-domains = <&rpmpd SM6125_VDDCX>;
 
                                 <&gcc GCC_SDCC2_APPS_CLK>,
                                 <&xo_board>;
                        clock-names = "iface", "core", "xo";
+                       iommus = <&apps_smmu 0x180 0x0>;
 
                        pinctrl-0 = <&sdc2_on_state>;
                        pinctrl-1 = <&sdc2_off_state>;