ARM: dts: qcom: apq8084: Change tsens definition to new style
authorVicthor Foster <victhor.foster@ufpe.br>
Sun, 22 Dec 2019 23:37:03 +0000 (20:37 -0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 29 Dec 2019 02:50:38 +0000 (18:50 -0800)
This patch changes the tsens peripheral definition to the new style,
which fixes a kernel panic caused by a change in the tsens driver,
introduced by commit 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b.  There
was a patch submitted recently to this list that should fix this problem
with old device trees and the new driver, so it may be redundant at this
point, in terms of fixing the kernel panic, but this should align the
APQ8084 device tree with the others.

Signed-off by: Victhor Foster <victhor.foster@ufpe.br>
Link: https://lore.kernel.org/r/108381142.9510389.1577057823350.JavaMail.zimbra@ufpe.br
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm/boot/dts/qcom-apq8084.dtsi

index 0a0fb147ebb93e61fd68a13303c03db256c6a984..26d79ff2af2234d4c3a5cdff885cbea1a29d0bfe 100644 (file)
 
                tsens: thermal-sensor@fc4a8000 {
                        compatible = "qcom,msm8974-tsens";
-                       reg = <0xfc4a8000 0x2000>;
+                       reg = <0xfc4a9000 0x1000>, /* TM */
+                             <0xfc4a8000 0x1000>; /* SROT */
                        nvmem-cells = <&tsens_calib>, <&tsens_backup>;
                        nvmem-cell-names = "calib", "calib_backup";
+                       #qcom,sensors = <11>;
                        #thermal-sensor-cells = <1>;
                };