mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-19 00:50:54 +00:00
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Apply the equivalent of commit f64541db020e ("realtek: HPE 1920 8G PoE+ 180W move fans to hwmon") to the 24-ports variants of the HPE 1920 PoE+ switches, with model numbers JG925A and JG926A. Copy from the original commit message: 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. As the init script 03_gpio_switches does not perform any action after removing these devices from it, the file can be dropped. Link: https://github.com/openwrt/openwrt/pull/17598 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Sander Vanheule <sander@svanheule.net>
24 lines
445 B
Plaintext
24 lines
445 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "rtl8382_hpe_1920-24g.dtsi"
|
|
|
|
/ {
|
|
compatible = "hpe,1920-24g-poe-370w", "realtek,rtl838x-soc";
|
|
model = "HPE 1920-24G-PoE+ 370W (JG926A)";
|
|
|
|
gpio_fan_array {
|
|
compatible = "gpio-fan";
|
|
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
|
|
gpio-fan,speed-map = <5000 0>,
|
|
<8200 1>;
|
|
|
|
alarm-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
|
#cooling-cells = <2>;
|
|
};
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|