prplos/target/linux
Mikhail Kshevetskiy c513a96dd7 mediatek: fix pwn fan settings for sinovoip bpi-r3 (v3)
backport upstream commit 095151b235 (mediatek: fix pwn fan settings for
sinovoip bpi-r3 (v3))

Popular cheap PWM fans for this machine, like the ones coming in
heatsink+fan combos will not work properly at the currently defined
medium speed. Trying different pwm setting using a command

  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
  -----------------------------------------------------------------

Current cooling levels are:

	cooling-levels = <255 96 0>;

Thus only cpu-active-high and cpu-active-low modes are usable.
This patch fixes cpu-active-medium settings for bpi-r3 board.

This patch may not be enough. Users may wants to tweak their thermal_zone0
trip points, thus tuning fan rotation speed depending on cpu temperature.
That can be done on the base of the following example:

  === example =========
  # cpu temperature below 25 Celsius degrees, no rotation
  echo 25000 > /sys/class/thermal/thermal_zone0/trip_point_4_temp
  # cpu temperature in [25..32] Celsius degrees, normal rotation speed
  echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_3_temp
  # cpu temperature above 50 Celsius degrees, max rotation speed
  echo 50000 > /sys/class/thermal/thermal_zone0/trip_point_2_temp
  =====================

Changes v2:
* put patch to a proper directory
* updated patch description
* tested with latest openwrt based on linux-6.6

Changes v3:
* use upstream linux patch
* update patch description

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21252
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 2916275a3d6cdda8bbc9decb5fd4df5e89a425a1)
2026-08-18 11:40:38 +01:00
..
airoha kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
apm821xx kernel: bump 6.6 to 6.6.103 2026-07-09 10:57:24 +01:00
archs38
armsr armsr: remove 'console=tty1' from kernel command line 2026-07-09 10:57:24 +01:00
at91 at91bootstrap: put at91bootstrap images into image staging directory 2026-07-09 10:57:30 +01:00
ath79 ath79: add calibration variant for TP-Link Archer C60 v2 2026-07-09 10:57:30 +01:00
bcm27xx kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
bcm47xx
bcm53xx kernel: bump 6.6 to 6.6.118 2026-07-09 10:57:34 +01:00
bcm4908 bcm63xx-cfe: install into image staging dir 2026-07-09 10:57:29 +01:00
bmips bmips: fix leds on f@st3864op 2026-07-09 10:57:30 +01:00
d1 kernel: bump 6.6 to 6.6.93 2025-06-15 13:37:46 +02:00
gemini kernel: bump 6.6 to 6.6.95 2025-07-06 14:51:08 +02:00
generic kernel: Fix boot of realtek rtl838x 2026-07-09 10:57:35 +01:00
imx kernel: bump 6.6 to 6.6.103 2026-07-09 10:57:24 +01:00
ipq40xx kernel: bump 6.6 to 6.6.117 2026-07-09 10:57:33 +01:00
ipq806x ipq806x: migrate wifi configuration device paths for 6.12 kernel 2026-07-09 10:57:33 +01:00
ixp4xx
kirkwood
lantiq kernel: bump 6.6 to 6.6.114 2026-07-09 10:57:30 +01:00
layerscape kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
loongarch64
malta
mediatek mediatek: fix pwn fan settings for sinovoip bpi-r3 (v3) 2026-08-18 11:40:38 +01:00
mpc85xx mpc85xx: p1010: Use zImage loader for Watchguard Firebox T10 2026-07-09 10:57:35 +01:00
mvebu mvebu: gl-mv1000: fix sdhci1 controller 2026-07-09 10:57:35 +01:00
mxs
octeon octeon: ubnt-*: Add device specific DTS pruning 2026-07-09 10:57:25 +01:00
omap
pistachio kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
qoriq
qualcommax targetwide: imagebuilder: add explicit guards around initramfs rules 2026-07-09 10:57:29 +01:00
ramips ramips: fix support for Cudy r700 2026-07-09 10:57:35 +01:00
realtek kernel: bump 6.6 to 6.6.116 2026-07-09 10:57:30 +01:00
rockchip kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
sifiveu
siflower
starfive kernel: bump 6.6 to 6.6.119 2026-07-09 10:57:34 +01:00
stm32 stm32: add missing config option 2025-05-28 13:22:00 +02:00
sunxi
tegra tegra: bring back workaround for spurious interrupts 2025-07-28 23:20:46 +02:00
uml
x86 x86: config: add CONFIG_MITIGATION_VMSCAPE=y 2026-07-09 10:57:26 +01:00
zynq
Makefile