Skip to content

Commit 1fcda8c

Browse files
frank-wAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mt7986: change cooling trips
Add Critical and hot trips for emergency system shutdown and limiting system load. Change passive trip to active to make sure fan is activated on the lowest trip. Cc: stable@vger.kernel.org Fixes: 1f5be05 ("arm64: dts: mt7986: add thermal-zones") Fixes: c26f779 ("arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts") Suggested-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20231025170832.78727-4-linux@fw-web.de Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 6413cbc commit 1fcda8c

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@
152152
trip = <&cpu_trip_active_high>;
153153
};
154154

155-
cpu-active-low {
155+
cpu-active-med {
156156
/* active: set fan to cooling level 1 */
157157
cooling-device = <&fan 1 1>;
158-
trip = <&cpu_trip_active_low>;
158+
trip = <&cpu_trip_active_med>;
159159
};
160160

161-
cpu-passive {
162-
/* passive: set fan to cooling level 0 */
161+
cpu-active-low {
162+
/* active: set fan to cooling level 0 */
163163
cooling-device = <&fan 0 0>;
164-
trip = <&cpu_trip_passive>;
164+
trip = <&cpu_trip_active_low>;
165165
};
166166
};
167167
};

arch/arm64/boot/dts/mediatek/mt7986a.dtsi

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,22 +614,34 @@
614614
thermal-sensors = <&thermal 0>;
615615

616616
trips {
617+
cpu_trip_crit: crit {
618+
temperature = <125000>;
619+
hysteresis = <2000>;
620+
type = "critical";
621+
};
622+
623+
cpu_trip_hot: hot {
624+
temperature = <120000>;
625+
hysteresis = <2000>;
626+
type = "hot";
627+
};
628+
617629
cpu_trip_active_high: active-high {
618630
temperature = <115000>;
619631
hysteresis = <2000>;
620632
type = "active";
621633
};
622634

623-
cpu_trip_active_low: active-low {
635+
cpu_trip_active_med: active-med {
624636
temperature = <85000>;
625637
hysteresis = <2000>;
626638
type = "active";
627639
};
628640

629-
cpu_trip_passive: passive {
630-
temperature = <40000>;
641+
cpu_trip_active_low: active-low {
642+
temperature = <60000>;
631643
hysteresis = <2000>;
632-
type = "passive";
644+
type = "active";
633645
};
634646
};
635647
};

0 commit comments

Comments
 (0)