Update 20220626
Armbian has disabled the pwm patch from legacy kernel: https://github.com/armbian/build/pull/3928. To make our pwm fan overlay work, there should be some modification: https://github.com/armbian/build/pull/3935. We have to replace the active to default. So the pwm fan overlay file should be like:
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rk3568";
fragment@0 {
target = <&pwm8>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pwm8m0_pins>;
};
};
};