1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
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
..
airoha kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
apm821xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
archs38 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
armsr armsr: don't limit kmods to armsr armv8 subtarget 2024-10-29 00:07:55 +01:00
at91 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
ath79 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
bcm27xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
bcm47xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
bcm53xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
bcm4908 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
bmips kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
d1 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
gemini kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
generic generic: add CONFIG_FB_INTEL 2024-11-28 18:47:58 +00:00
imx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
ipq40xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
ipq806x kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
ixp4xx kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
kirkwood kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
lantiq kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
layerscape kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
loongarch64 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
malta kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
mediatek mediatek: fix pwn fan settings for sinovoip bpi-r3 2024-11-28 18:48:12 +00:00
mpc85xx mpc85xx: p2020: add missing symbols 2024-11-28 18:48:10 +00:00
mvebu kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
mxs kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
octeon kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
omap kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
pistachio kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
qoriq kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
qualcommax kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
ramips kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
realtek realtek: align kernel config with upstream 2024-11-28 18:47:31 +00:00
rockchip kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
sifiveu kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
siflower kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
starfive kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
sunxi kernel: bump 6.6 to 6.6.61 2024-11-24 22:46:21 +01:00
tegra kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
zynq kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00