I found problem similar with this post post with this solution is only working with kernel 5 refer to this pwm-fan source version 5.10 that based on this orange pi 5 plus wiki the pwm-fan structure like this
fan: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
pwms = <&pwm3 0 50000 0>;
cooling-levels = <0 50 100 150 200 255>;
rockchip,temp-trips = <
50000 1
55000 2
60000 3
65000 4
70000 5
>;
status = "okay";
};
But nowdays the kernel is upgraded to version 6, and the pwm-fan structure in dtb files has been changed, the latest found in the source tree is 6.1 and the structure become like this:
`pwm-fan { `
compatible = "pwm-fan";
cooling-levels = <0x00 0x46 0x4b 0x50 0x64>;
fan-supply = <0x30>;
#cooling-cells = <0x02>;
pwms = <0x13d 0x00 0xc350 0x00>;
phandle = <0xe9>;
};
I am very newbie, would you like to tell me how to implement temp-trips in the new version kernel?
Thanks
Warm Regards