arm64: dts: qcom: sc7180: Add iommus property to QUP0 and QUP1
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Fri, 10 Jan 2020 10:18:02 +0000 (15:48 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 12 Feb 2020 06:14:10 +0000 (22:14 -0800)
Define iommus property for QUP0 and QUP1 with the proper SID
and mask. Below SMMU global faults are seen without this during
boot and when using i2c touchscreen.

QUP0:
arm-smmu 15000000.iommu: Unexpected global fault, this could be serious
arm-smmu 15000000.iommu: GFSR 0x00000002, GFSYNR0 0x00000002, GFSYNR1 0x00000043, GFSYNR2 0x00000000

QUP1:
arm-smmu 15000000.iommu: Unexpected global fault, this could be serious
arm-smmu 15000000.iommu: GFSR 0x00000002, GFSYNR0 0x00000002, GFSYNR1 0x000004c3, GFSYNR2 0x00000000

Fixes: ba3fc6496366 ("arm64: dts: sc7180: Add qupv3_0 and qupv3_1")
Tested-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Link: https://lore.kernel.org/r/20200110101802.4491-1-saiprakash.ranjan@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sc7180.dtsi

index 8011c5fe2a31a7b292aa2fb5c2798fd80a438b91..01e431f49c18e7c56305518a30e42d9aac8779ea 100644 (file)
                        #address-cells = <2>;
                        #size-cells = <2>;
                        ranges;
+                       iommus = <&apps_smmu 0x43 0x0>;
                        status = "disabled";
 
                        i2c0: i2c@880000 {
                        #address-cells = <2>;
                        #size-cells = <2>;
                        ranges;
+                       iommus = <&apps_smmu 0x4c3 0x0>;
                        status = "disabled";
 
                        i2c6: i2c@a80000 {