Skip to content

Commit

Permalink
ARM: dts: ux500: Add trips to battery thermal zones
Browse files Browse the repository at this point in the history
[ Upstream commit cd73adc ]

Recent changes to the thermal framework has made the trip
points (trips) for thermal zones compulsory, which made
the Ux500 DTS files break validation and also stopped
probing because of similar changes to the code.

Fix this by adding an "outer bounding box": battery thermal
zones should not get warmer than 70 degress, then we will
shut down.

Fixes: 8c59632 ("dt-bindings: thermal: Fix missing required property")
Fixes: 3fd6d6e ("thermal/of: Rework the thermal device tree initialization")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-pm@vger.kernel.org
Link: https://lore.kernel.org/r/20221030210854.346662-1-linus.walleij@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
linusw authored and gregkh committed Nov 10, 2022
1 parent 2dc97e1 commit 55ccedc
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-href.dtsi
Expand Up @@ -24,6 +24,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-snowball.dts
Expand Up @@ -28,6 +28,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-codina-tmo.dts
Expand Up @@ -44,6 +44,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-codina.dts
Expand Up @@ -57,6 +57,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-gavini.dts
Expand Up @@ -30,6 +30,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-golden.dts
Expand Up @@ -35,6 +35,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-janice.dts
Expand Up @@ -30,6 +30,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-kyle.dts
Expand Up @@ -34,6 +34,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/ste-ux500-samsung-skomer.dts
Expand Up @@ -30,6 +30,14 @@
polling-delay = <0>;
polling-delay-passive = <0>;
thermal-sensors = <&bat_therm>;

trips {
battery-crit-hi {
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};

Expand Down

0 comments on commit 55ccedc

Please sign in to comment.