]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: add hasivo-mcu sensor driver 23762/head
authorCarlo Szelinsky <github@szelinsky.de>
Tue, 9 Jun 2026 20:58:59 +0000 (22:58 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 14 Jun 2026 13:44:24 +0000 (15:44 +0200)
commit6ecf15d63a6dc0151f8b5191f53a3c8000cba1a5
tree03c1af4644885dd664efdb4efa0631df19a1326e
parente36b8bf3ed92feeddeb18f56e8f20a1a826068fb
realtek: add hasivo-mcu sensor driver

Add a temperature/fan sensor (hwmon) driver for the Hasivo / Horaco
management MCU as a second child of the hasivo MCU MFD (alongside the
watchdog). It exposes the CPU and system temperatures and a 3-state fan
control (auto / force-on / force-off), read/written through the parent's
shared syscon regmap.

The register protocol was reverse-engineered from the stock 'imi' firmware
and verified on hardware. The fan-status register (0xFB) reflects the MCU's
effective drive state, not actual rotation (a blocked fan still reads
force-on), so no fanN_alarm is exposed. pwm1 echoes the commanded state so
a write reads back consistently, and falls back to the live drive state in
automatic mode. The register map is shared across boards.

Signed-off-by: Carlo Szelinsky <github@szelinsky.de>
Link: https://github.com/openwrt/openwrt/pull/23762
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/modules.mk
target/linux/realtek/patches-6.18/813-add-hasivo-mcu-sensor.patch [new file with mode: 0644]
target/linux/realtek/rtl838x/config-6.18
target/linux/realtek/rtl839x/config-6.18
target/linux/realtek/rtl930x/config-6.18
target/linux/realtek/rtl930x_nand/config-6.18
target/linux/realtek/rtl931x/config-6.18
target/linux/realtek/rtl931x_nand/config-6.18