[RFC v1 11/14] arm64: dts: mediatek: mt7988: add thermal-zone
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Wed Nov 27 05:34:48 PST 2024
Il 29/10/24 11:39, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w at public-files.de>
>
> Add basic thermal-zone node.
>
> Signed-off-by: Frank Wunderlich <frank-w at public-files.de>
> ---
> arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 39 +++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> index de9a9ff2edd8..a3a7deda35a5 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> @@ -379,6 +379,45 @@ clock-controller at 15031000 {
> };
> };
>
> + thermal-zones {
> + cpu_thermal: cpu-thermal {
> + polling-delay-passive = <1000>;
> + polling-delay = <1000>;
> + thermal-sensors = <&lvts 0>;
> + trips {
> + cpu_trip_crit: crit {
> + temperature = <125000>;
> + hysteresis = <2000>;
> + type = "critical";
> + };
No, please just add "crit" - as that is the one that is used to not let the
SoC to reach Tj.
All of the others are board specific, so the trips down there (hot->low) are
to be added to your board dts instead.
Cheers,
Angelo
> +
> + cpu_trip_hot: hot {
> + temperature = <120000>;
> + hysteresis = <2000>;
> + type = "hot";
> + };
> +
> + cpu_trip_active_high: active-high {
> + temperature = <115000>;
> + hysteresis = <2000>;
> + type = "active";
> + };
> +
> + cpu_trip_active_med: active-med {
> + temperature = <85000>;
> + hysteresis = <2000>;
> + type = "active";
> + };
> +
> + cpu_trip_active_low: active-low {
> + temperature = <40000>;
> + hysteresis = <2000>;
> + type = "active";
> + };
> + };
> + };
> + };
> +
> timer {
> compatible = "arm,armv8-timer";
> interrupt-parent = <&gic>;
More information about the Linux-mediatek
mailing list