]> git.ipfire.org Git - thirdparty/openwrt.git/commit
kernel: mfd: Add Hasivo STC8 mfd 21578/head
authorBevan Weiss <bevan.weiss@gmail.com>
Tue, 6 Jan 2026 09:50:34 +0000 (20:50 +1100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Mar 2026 17:47:27 +0000 (18:47 +0100)
commit018ba6e5b8c8a87873440a740f60311d5979f108
tree4f9ad457a219c49d5687dbc0e5eadb97f8071c7a
parentf92e0d3d3ac34d2e7ee376a2186ebd030c5e6faa
kernel: mfd: Add Hasivo STC8 mfd

This STC8 microcontroller is used on a range of Hasivo managed switches.
It typically performs some fan/thermal control, and also has some
discrete IO hanging off of it.
The fan/thermal control is still somewhat unknown at this stage, but the
LED / gpio control has been determined as being two I2C registers which
need to be written to with a 'typical' Hasivo 0x40 execute mask set, to
change values.

Rather than having this expose the LED functionality / thermal control
directly, just represent it as an mfd, with some configurable OR'ing of
an execute-bit to certain registers (execute-bit-regs).  This way different
STC8 arrangements can hopefully be handled by devicetree configs rather
than needing new driver code.

Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21578
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/modules.mk [new file with mode: 0644]
target/linux/realtek/patches-6.12/809-add-hasivo-stc8-mfd.patch [new file with mode: 0644]
target/linux/realtek/rtl838x/config-6.12
target/linux/realtek/rtl839x/config-6.12
target/linux/realtek/rtl930x/config-6.12
target/linux/realtek/rtl930x_nand/config-6.12
target/linux/realtek/rtl931x/config-6.12
target/linux/realtek/rtl931x_nand/config-6.12