openwrt/target/linux/mediatek
Mikhail Kshevetskiy 623e329a52
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
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/17130
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 095151b235)
2025-12-22 10:34:23 +01:00
..
base-files mediatek: fix IPv4 address missing on interface in failsafe mode for cudy ap3000-v1 2025-12-16 00:29:13 +01:00
dts mediatek: filogic: add support Netcore NX30V2/N30PRO/POWER30AX/W7/GW3001 2025-12-09 01:29:39 +01:00
files/drivers treewide: fix coccinelle checks 2025-12-02 23:32:42 +01:00
files-6.12 treewide: dts: remove {#address,#size}-cells from "spi-nand" compatible node 2025-11-27 12:37:49 +01:00
filogic mediatek: filogic: add support Netcore NX30V2/N30PRO/POWER30AX/W7/GW3001 2025-12-09 01:29:39 +01:00
image mediatek: filogic: add support Netcore NX30V2/N30PRO/POWER30AX/W7/GW3001 2025-12-09 01:29:39 +01:00
mt7622 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
mt7623 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
mt7629 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
patches-6.12 mediatek: fix pwn fan settings for sinovoip bpi-r3 (v3) 2025-12-22 10:34:23 +01:00
Makefile mediatek: switch to Linux 6.12 by default 2025-07-18 12:26:40 +01:00
modules.mk mediatek: build rtl8367s_gsw as a kernel module 2025-11-30 22:59:28 +01:00