arm64: dts: rockchip: Enable automatic fan control on Turing RK1

This patch adds thermal trip points and cooling maps to the Turing RK1
in order to enable automatic control of the external PWM fan. The fan is
not active below 45C, as the heatsink alone can generally keep the chip
in this temperature region at idle load. This cooling profile errs on
the side of quietness, since the RK1 is commonly deployed in a Turing
Pi 2 clusterboard alongside three others, with additional cooling
provided at the chassis level.

Helped-by: soxrok2212 <soxrok2212@gmail.com>
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Link: https://lore.kernel.org/r/20240912025034.180233-4-CFSworks@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
Sam Edwards 2024-09-11 19:50:32 -07:00 committed by Heiko Stuebner
parent 3d50680fcb
commit 7c8ec5e6b9

View File

@ -208,6 +208,59 @@ rgmii_phy: ethernet-phy@1 {
};
};
&package_thermal {
trips {
package_active1: trip-active1 {
temperature = <45000>;
hysteresis = <5000>;
type = "active";
};
package_active2: trip-active2 {
temperature = <50000>;
hysteresis = <5000>;
type = "active";
};
package_active3: trip-active3 {
temperature = <60000>;
hysteresis = <5000>;
type = "active";
};
package_active4: trip-active4 {
temperature = <70000>;
hysteresis = <5000>;
type = "active";
};
package_active5: trip-active5 {
temperature = <80000>;
hysteresis = <5000>;
type = "active";
};
};
cooling-maps {
map1 {
trip = <&package_active1>;
cooling-device = <&fan 1 1>;
};
map2 {
trip = <&package_active2>;
cooling-device = <&fan 2 2>;
};
map3 {
trip = <&package_active3>;
cooling-device = <&fan 3 3>;
};
map4 {
trip = <&package_active4>;
cooling-device = <&fan 4 4>;
};
map5 {
trip = <&package_active5>;
cooling-device = <&fan 5 5>;
};
};
};
&pcie2x1l1 {
linux,pci-domain = <1>;
pinctrl-names = "default";