@g2t - the overlay you posted wasn't compatible with my 6.1.99-vendor-rk35xx kernel, so I changed it a bit until it started to work.
/dts-v1/;
/plugin/;
/ {
/* Add new thermal trip points for active cooling */
fragment@0 {
target-path = "/thermal-zones/bigcore0-thermal/trips";
__overlay__ {
bigcore0-active1 {
/* 55 degree with hysteresis of 5 deg */
temperature = <55000>;
hysteresis = <5000>;
type = "active";
phandle = <0x1001>;
};
bigcore0-active2 {
/* 60 degree with hysteresis of 2 deg */
temperature = <60000>;
hysteresis = <2000>;
type = "active";
phandle = <0x1002>;
};
};
};
/* Set polling delay for active cooling */
fragment@1 {
target-path = "/thermal-zones/bigcore0-thermal";
__overlay__ {
/* for active cooling, in milliseconds */
polling-delay = <2000>;
};
};
/* Enable PWM fan and adjust cooling levels */
fragment@2 {
target-path = "/pwm-fan";
__overlay__ {
status = "okay";
cooling-levels = <0 45 80 120 160 255>;
};
};
/* Add cooling maps to associate thermal trips with fan cooling levels */
fragment@3 {
target-path = "/thermal-zones/bigcore0-thermal";
__overlay__ {
cooling-maps {
map1 {
trip = <0x1001>;
cooling-device = <&fan 0 1>;
};
map2 {
trip = <0x1002>;
cooling-device = <&fan 2 5>;
};
};
};
};
__symbols__ {
fan = "/pwm-fan";
};
};