]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: HPE 1920 8G PoE+ 180W move fans to hwmon
authorEvan Jobling <evan@jobling.au>
Tue, 14 Jan 2025 12:13:21 +0000 (12:13 +0000)
committerSander Vanheule <sander@svanheule.net>
Sat, 22 Feb 2025 11:32:34 +0000 (12:32 +0100)
commit5b96d45474fe15397a4bc26f9013c433a1e59bd4
tree90b7ebbac1584aa162e7ee5fef0ffd962b8b61b0
parentd6f9466196f4a4ad6cb4707e8b3ce18a6e2d1174
realtek: HPE 1920 8G PoE+ 180W move fans to hwmon

The GPIO numbering has changed and is not stable. As a result fan
control via gpio_switch is broken, resulting in errors:
    "export_store: invalid GPIO 456"

Move to using hwmon and gpio-fan. This is by adding gpio_fan_array to
DTS and kmod-hwmon-gpiofan to DEVICE_PACKAGES.

In combination with the new rtl8231 gpio driver the default fan
behaviour will be maximum fan speed.

Bump compat value to 1.1 due to existing config in /etc/config/system
via gpio_switch. Also notify in device compat that fan is now going to
be at bootloader setting (maximum in this case) by default unless turned
down.

Signed-off-by: Evan Jobling <evan@jobling.au>
Link: https://github.com/openwrt/openwrt/pull/17605
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit f64541db020ef5689186609e8b7b7a3bb9755160)
target/linux/realtek/base-files/etc/board.d/03_gpio_switches
target/linux/realtek/base-files/etc/board.d/05_compat-version
target/linux/realtek/dts/rtl8380_hpe_1920-8g-poe-180w.dts
target/linux/realtek/image/common.mk
target/linux/realtek/image/rtl838x.mk