Skip to content

Commit 625e540

Browse files
dnltznmenon
authored andcommitted
arm64: dts: ti: k3-am62x-phyboard-lyra-gpio-fan: Update cooling maps
Rename 'main0_thermal_trip0' to a more descriptive name that includes 'fan', as the current name is too generic for a fan control trip point. Move the fan to a new cooling map to avoid overwriting the passive trip point used for CPU frequency throttling when this overlay is enabled. Also, add the fan to the existing cooling map. Signed-off-by: Daniel Schultz <[email protected]> Reviewed-by: Wadim Egorov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 8785b57 commit 625e540

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

arch/arm64/boot/dts/ti/k3-am62x-phyboard-lyra-gpio-fan.dtso

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
&thermal_zones {
3434
main0_thermal: main0-thermal {
3535
trips {
36-
main0_thermal_trip0: main0-thermal-trip {
36+
main0_fan: main0-fan {
3737
temperature = <65000>; /* millicelsius */
3838
hysteresis = <2000>; /* millicelsius */
3939
type = "active";
@@ -42,7 +42,17 @@
4242

4343
cooling-maps {
4444
map0 {
45-
trip = <&main0_thermal_trip0>;
45+
trip = <&main0_alert>;
46+
cooling-device =
47+
<&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
48+
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
49+
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
50+
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
51+
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
52+
};
53+
54+
map1 {
55+
trip = <&main0_fan>;
4656
cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
4757
};
4858
};

0 commit comments

Comments
 (0)