ARM: dts: msm8974: thermal: split address space into two
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 6 Sep 2018 09:54:12 +0000 (15:24 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 17:30:20 +0000 (09:30 -0800)
We've earlier added support to split the register address space into TM
and SROT regions. Split up the regmap address space into two for msm8974
that has a similar register layout.

Since tsens-common.c/init_common() currently only registers one address
space, the order is important (TM before SROT).  This is OK since the
code doesn't really use the SROT functionality yet.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-msm8974.dtsi

index aba159d..35d3d52 100644 (file)
                        };
                };
 
-               tsens: thermal-sensor@fc4a8000 {
+               tsens: thermal-sensor@fc4a9000 {
                        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";
                        #thermal-sensor-cells = <1>;