Commit 1d2f1411 authored by Neil Armstrong's avatar Neil Armstrong
Browse files

arm64: dts: amlogic: meson-sm1-odroid-hc4: fix active fan thermal trip



Add an active trip tied to the on-board fan cooling device, which is better
than describing it along the passive cooling maps.

Fixes: 33b14f66 ("arm64: dts: meson: add initial device-tree for ODROID-HC4")
Reported-by: default avatarRicardo Pardini <ricardo@pardini.net>
Link: https://lore.kernel.org/r/20230124-topic-odroid-hc4-upstream-fix-fan-trip-v1-1-b0c6aa355d93@linaro.org


Tested-by: default avatarRicardo Pardini <ricardo@pardini.net>
[narmstrong: added Ricardo's tested-by from off-list chat]
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
parent 7e01e14e
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -76,9 +76,17 @@ sound {
};

&cpu_thermal {
	trips {
		cpu_active: cpu-active {
			temperature = <60000>; /* millicelsius */
			hysteresis = <2000>; /* millicelsius */
			type = "active";
		};
	};

	cooling-maps {
		map {
			trip = <&cpu_passive>;
			trip = <&cpu_active>;
			cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
		};
	};