Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RockPro64 pwmfan0 on NetBSD10.0_BETA couldn't get 'cooling-levels' property



joelp%sdf.org@localhost wrote:
> I'm running NetBSD10.0_BETA daily (June 7th) on a RockPro64. In my dmesg:
>
> [     1.000004] pwmfan0 at simplebus0autoconfiguration error: : couldn't
> get 'cooling-levels' property
>
> In src/sys/dev/fdt/pwm_fan.c
>
>    levels = fdtbus_get_prop(phandle, "cooling-levels", &len);
>    if (len < 4) {
>        aprint_error(": couldn't get 'cooling-levels' property\n");
>        return;
>    }
>
> This leaves the CPU cooling fan off, unfortunately. I did have the fan
> running on NetBSD9.3.
>
> Any options to get at least the fan running at some constant speed?

Try this:

Index: rk3399-rockpro64.dts
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/dts/rk3399-rockpro64.dts,v
retrieving revision 1.14
diff -u -r1.14 rk3399-rockpro64.dts
--- rk3399-rockpro64.dts        7 Nov 2021 17:11:43 -0000       1.14
+++ rk3399-rockpro64.dts        9 Jun 2023 18:39:55 -0000
@@ -113,6 +113,10 @@
                };
        };
 
+       fan: pwm-fan {
+               cooling-levels = <0 100 150 200 255>;
+       };
+
 #if 0
        edp@ff970000 {
                status = "okay";


Home | Main Index | Thread Index | Old Index