openwrt/target/linux/mediatek
Mikhail Kshevetskiy f93bba30d7
mediatek: fix pwn fan settings for sinovoip bpi-r3
Popular bpi-r3 pwm fans like this one

  https://www.amazon.com/youyeetoo-Barebone-Fan-BPI-R3-Integrated/dp/B0CCCTY8PS

will not work properly with current openwrt-23.05/24.10 firmware.
Trying different pwm setting

  echo $value > /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1

I found:

  pwm1 value     fan rotation speed   cpu temperature     notes
  -----------------------------------------------------------------
    0            maximal              31.5 Celsius        too noisy
   40            optimal              35.2 Celsius        no noise hearable
   95            minimal
   above 95      does not rotate      55.5 Celsius
  -----------------------------------------------------------------

At the moment we have following cooling levels:

  cooling-levels = <255 96 0>;

for cpu-active-high, cpu-active-medium and cpu-active-low modes correspondingly.
Thus only cpu-active-high and cpu-active-low are usable. I think this is wrong.

This patch fixes cpu-active-medium settings for bpi-r3 board.

PS: I know, the patch is not ideal as it can break pwm fan for some users.
    There are some peoples that use handmade cooling solutions, but:
      * discussed cooler is the only 'official' pwm cooler for bpi-r3
        available on the market.
      * most peoples will use passive cooling available on the market or
        the discussed cooler.
      * the pwm-fan dts section was added before the official cooler
        appears on the market.
    Thus it should not be a lot of harm from this fix.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16974
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 3467ea905b)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2024-11-28 18:48:12 +00:00
..
base-files mediatek: mt7622: add Adtran SmartRG SDG-841t6 device 2024-10-15 17:55:05 +01:00
dts mediatek: filogic: add support for GatoNetworks GDSP 2024-11-28 18:47:13 +00:00
files/drivers treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
files-6.6 mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan 2024-11-05 13:30:21 +01:00
filogic kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
image mediatek: filogic: add support for GatoNetworks GDSP 2024-11-28 18:47:13 +00:00
mt7622 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
mt7623 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
mt7629 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
patches-5.15 mediatek: fix pwn fan settings for sinovoip bpi-r3 2024-11-28 18:48:12 +00:00
patches-6.6 kernel: bump 6.6 to 6.6.61 2024-11-24 22:46:21 +01:00
Makefile mediatek: change the the default SUBTARGET to filogic 2024-10-02 15:12:18 +02:00
modules.mk mediatek: mt7623: build mt6577_auxadc driver into kernel 2022-12-05 23:14:36 +00:00