arm64: dts: mediatek: mt8183: Change iospaces for thermal and svs
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 21 Nov 2023 12:50:25 +0000 (13:50 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 Dec 2023 10:29:31 +0000 (11:29 +0100)
The SVS iospace starts at 0x1100bc00 and not at 0x1100b000 as the
latter is the thermal sensor iospace instead.

Change the iospaces for both as following:
 - Thermal: 0x1100b000, length 0xc00
 - SVS: 0x1100bc00, length 0x400

Please note that while this would be a breaking change for SVS (but
not for thermal sensors), it doesn't matter because the svs driver
never worked anyway because of the missing trips in tzts2, causing
that thermal zone to never actually register, hence the SVS driver
to fail probing anyway.

Link: https://lore.kernel.org/r/20231121125044.78642-2-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index 41654530e165a0fb82922fdadd5036b6d4292d7a..980ff3e8c1c5ba8f59ff413fcdc4382d11528a90 100644 (file)
                        status = "disabled";
                };
 
-               svs: svs@1100b000 {
-                       compatible = "mediatek,mt8183-svs";
-                       reg = <0 0x1100b000 0 0x1000>;
-                       interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
-                       clocks = <&infracfg CLK_INFRA_THERM>;
-                       clock-names = "main";
-                       nvmem-cells = <&svs_calibration>,
-                                     <&thermal_calibration>;
-                       nvmem-cell-names = "svs-calibration-data",
-                                          "t-calibration-data";
-               };
-
                thermal: thermal@1100b000 {
                        #thermal-sensor-cells = <1>;
                        compatible = "mediatek,mt8183-thermal";
-                       reg = <0 0x1100b000 0 0x1000>;
+                       reg = <0 0x1100b000 0 0xc00>;
                        clocks = <&infracfg CLK_INFRA_THERM>,
                                 <&infracfg CLK_INFRA_AUXADC>;
                        clock-names = "therm", "auxadc";
                        nvmem-cell-names = "calibration-data";
                };
 
+               svs: svs@1100bc00 {
+                       compatible = "mediatek,mt8183-svs";
+                       reg = <0 0x1100bc00 0 0x400>;
+                       interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
+                       clocks = <&infracfg CLK_INFRA_THERM>;
+                       clock-names = "main";
+                       nvmem-cells = <&svs_calibration>,
+                                     <&thermal_calibration>;
+                       nvmem-cell-names = "svs-calibration-data",
+                                          "t-calibration-data";
+               };
+
                thermal_zones: thermal-zones {
                        cpu_thermal: cpu-thermal {
                                polling-delay-passive = <100>;