openwrt/target/linux
Mikhail Kshevetskiy 2916275a3d
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
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>
2025-12-22 16:09:46 +01:00
..
airoha kernel: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01:00
apm821xx kernel: bump 6.6 to 6.6.103 2025-09-02 23:09:49 +02:00
archs38 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
armsr armsr: remove 'console=tty1' from kernel command line 2025-08-31 18:30:08 +02:00
at91 at91bootstrap: put at91bootstrap images into image staging directory 2025-10-22 18:19:42 +02:00
ath79 ath79: add calibration variant for TP-Link Archer C60 v2 2025-10-24 12:05:32 +02:00
bcm27xx kernel: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01:00
bcm47xx kernel: bump 6.6 to 6.6.78 2025-02-25 23:16:17 +01:00
bcm53xx kernel: bump 6.6 to 6.6.118 2025-12-03 21:28:27 +01:00
bcm4908 bcm63xx-cfe: install into image staging dir 2025-10-22 18:17:40 +02:00
bmips bmips: fix leds on f@st3864op 2025-11-06 09:57:37 +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 2025-12-16 00:08:38 +01:00
imx kernel: bump 6.6 to 6.6.103 2025-09-02 23:09:49 +02:00
ipq40xx kernel: bump 6.6 to 6.6.117 2025-11-27 22:52:26 +01:00
ipq806x ipq806x: migrate wifi configuration device paths for 6.12 kernel 2025-11-12 00:08:15 +01:00
ixp4xx ixp4xx: Break out mv88e6060 DSA switch to package 2025-01-04 19:27:05 +01:00
kirkwood kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
lantiq kernel: bump 6.6 to 6.6.114 2025-10-28 22:16:44 +01:00
layerscape kernel: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01:00
loongarch64 generic: globally enable CONFIG_PCPU_DEV_REFCNT 2025-03-19 09:24:43 +01: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 (v3) 2025-12-22 16:09:46 +01:00
mpc85xx mpc85xx: p1010: Use zImage loader for Watchguard Firebox T10 2025-12-12 01:25:50 +01:00
mvebu mvebu: gl-mv1000: fix sdhci1 controller 2025-12-12 01:04:07 +01:00
mxs mxs: run kernel_oldconfig 2024-11-28 18:48:55 +00:00
octeon octeon: ubnt-*: Add device specific DTS pruning 2025-09-05 00:48:55 +02:00
omap kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
pistachio kernel: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01:00
qoriq kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
qualcommax targetwide: imagebuilder: add explicit guards around initramfs rules 2025-10-21 11:39:10 +02:00
ramips ramips: fix support for Cudy r700 2025-12-12 01:23:49 +01:00
realtek kernel: bump 6.6 to 6.6.116 2025-11-09 14:21:42 +01:00
rockchip kernel: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01: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: bump 6.6 to 6.6.119 2025-12-11 22:11:28 +01:00
stm32 stm32: add missing config option 2025-05-28 13:22:00 +02:00
sunxi kernel: bump 6.6 to 6.6.61 2024-11-24 22:46:21 +01:00
tegra tegra: bring back workaround for spurious interrupts 2025-07-28 23:20:46 +02:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 x86: config: add CONFIG_MITIGATION_VMSCAPE=y 2025-09-22 01:22:49 +02:00
zynq kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
Makefile linux: fix missing default packages in profiles.json 2025-01-03 11:14:12 +01:00