openwrt-mirror/target/linux
Mikhail Kshevetskiy 3467ea905b 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>
2024-11-21 22:04:14 +01:00
..
airoha airoha: an7581: sync patch with upstream version and tag them 2024-11-18 15:01:07 +01:00
apm821xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
archs38 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01: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-17 14:55:16 +01:00
ath79 ath79: lzma-loader: fix syntax error 2024-11-17 16:26:41 +01:00
bcm27xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
bcm47xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
bcm53xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
bcm4908 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
bmips kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
d1 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
gemini kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
generic net: phy: broadcom: update dependency condition 2024-11-18 23:01:22 +01:00
imx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
ipq40xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
ipq806x ipq806x: tr4400v2: fix dtc warnings by deleting stock partitions 2024-11-19 13:44:27 +01:00
ixp4xx kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
kirkwood kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
lantiq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
layerscape kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
loongarch64 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
malta kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
mediatek mediatek: fix pwn fan settings for sinovoip bpi-r3 2024-11-21 22:04:14 +01:00
mpc85xx mpc85xx: p2020: add missing symbols 2024-11-19 19:52:45 +01:00
mvebu kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
mxs kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
octeon kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
omap kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
pistachio kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
qoriq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
qualcommax kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
ramips kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
realtek realtek: align kernel config with upstream 2024-11-16 18:02:18 +01:00
rockchip kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
sifiveu kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
siflower kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
starfive kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
sunxi kernel: bump 6.6 to 6.6.61 2024-11-16 00:25:14 +01:00
tegra kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01: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-17 14:55:16 +01:00
zynq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
Makefile linux: fix missing default packages in profiles.json 2024-11-17 19:29:06 +01:00