hwmon: Add driver for Delta AHE-50DC fan control module
Subsystems (2)
v2 cover hwmon: Add driver for Delta AHE-50DC fan control module
Hello,
These patches add a hwmon driver for the integrated fan control module in the Delta AHE-50DC Open19 power shelf. I don't know of a datasheet any proper documentation for it; the register layout information came from an existing GPL driver [0] in a code release from LinkedIn.
(Re-sending a v2 after noticing an embarrassing oversight I missed before sending v1.)
Thanks,
Zev Weiss
Changes since v1 [1]:
- fixed invalid name warning from __hwmon_device_register()
Zev Weiss (2):
hwmon: add Delta AHE-50DC fan control module driver
dt-bindings: add Delta AHE-50DC fan control module
.../devicetree/bindings/trivial-devices.yaml | 2 + MAINTAINERS | 6 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/delta-ahe50dc-fan.c | 265 ++++++++++++++++++ 5 files changed, 285 insertions(+) create mode 100644 drivers/hwmon/delta-ahe50dc-fan.c
Signature · 1 line
2.34.1
PATCH v2 1/2 hwmon: add Delta AHE-50DC fan control module driver
This device is an integrated module of the Delta AHE-50DC Open19 power shelf. For lack of proper documentation, this driver has been developed referencing an existing (GPL) driver that was included in a code release from LinkedIn [1]. It provides four fan speeds, four temperatures, and one voltage reading, as well as a handful of warning and fault indicators.
--- MAINTAINERS | 6 + drivers/hwmon/Kconfig | 11 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/delta-ahe50dc-fan.c | 265 ++++++++++++++++++++++++++++++ 4 files changed, 283 insertions(+) create mode 100644 drivers/hwmon/delta-ahe50dc-fan.c
MAINTAINERS +6 -0
@@ -5425,6 +5425,12 @@ W: https://linuxtv.org T: git git://linuxtv.org/media_tree.git F: drivers/media/platform/sti/delta +DELTA AHE-50DC FAN CONTROL MODULE DRIVER +M: Zev Weiss <[email protected]> +L: [email protected] +S: Maintained +F: drivers/hwmon/delta-ahe50dc-fan.c + DELTA DPS920AB PSU DRIVER M: Robert Marko <[email protected]> L: [email protected]
drivers/hwmon/Kconfig +11 -0
@@ -505,6 +505,17 @@ config SENSORS_DELL_SMM When option I8K is also enabled this driver provides legacy /proc/i8k userspace interface for i8kutils package. +config SENSORS_DELTA_AHE50DC_FAN + tristate "Delta AHE-50DC fan control module" + depends on I2C + select REGMAP_I2C + help + If you say yes here you get support for the fan control + module of the Delta AHE-50DC Open19 power shelf. + + This driver can also be built as a module. If so, the module + will be called delta-ahe50dc-fan. + config SENSORS_DA9052_ADC tristate "Dialog DA9052/DA9053 ADC" depends on PMIC_DA9052
drivers/hwmon/Makefile +1 -0
@@ -63,6 +63,7 @@ obj-$(CONFIG_SENSORS_CORSAIR_PSU) += corsair-psu.o obj-$(CONFIG_SENSORS_DA9052_ADC)+= da9052-hwmon.o obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o obj-$(CONFIG_SENSORS_DELL_SMM) += dell-smm-hwmon.o +obj-$(CONFIG_SENSORS_DELTA_AHE50DC_FAN) += delta-ahe50dc-fan.o obj-$(CONFIG_SENSORS_DME1737) += dme1737.o obj-$(CONFIG_SENSORS_DRIVETEMP) += drivetemp.o obj-$(CONFIG_SENSORS_DS620) += ds620.o
drivers/hwmon/delta-ahe50dc-fan.c new file +265 -0
265 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 2/2 dt-bindings: add Delta AHE-50DC fan control module
In reply to Zev WeissThis is the integrated fan control module of the Delta AHE-50DC Open19 power shelf.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -75,6 +75,8 @@ properties: - dallas,ds75 # Delta Electronics DPS-650-AB power supply - delta,dps650ab + # Delta AHE-50DC Open19 power shelf fan control module + - delta,ahe50dc-fan # Delta Electronics DPS920AB 920W 54V Power Supply - delta,dps920ab # 1/4 Brick DC/DC Regulated Power Module
Signature · 1 line
2.34.1