This is a driver for the HXi series of Corsair ATX power supplies.
Subsystems (2)
PATCH 1/1 This is a driver for the HXi series of Corsair ATX power supplies.
It is based on Marius Zachmann's <[email protected]> corsair-cpro driver, since it follows a similar communication pattern, just with a different protocol.
The devices:
Corsair's HXi line of "smart" power supplies that provide monitoring data via a proprietary USB-HID interface. The protocol strongly resembles PMBus, and gives access to voltage, current, and power measurements for each of the PSU's rails.
The driver:
Again, I based this heavily on the corsair-cpro driver as the requirements are very similar (weird USB-HID communication, maintaining compatibility with existing userspace tools, providing hardware monitoring data). I've tested the driver pretty thoroughly on my HX850i, and existing userspace tools show that the protocol is common to all HXi series PSUs. I'm looking to acquire some more Corsair PSU variants (RMi, and AXi), to see if support can be expanded to them as well.
I do not work for Corsair and I intend to keep this driver maintainted as long as I feasibly can.
--- Documentation/hwmon/corsair-hxi-psu.rst | 50 +++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 6 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/corsair-hxi-psu.c | 504 ++++++++++++++++++++++++ 6 files changed, 572 insertions(+) create mode 100644 Documentation/hwmon/corsair-hxi-psu.rst create mode 100644 drivers/hwmon/corsair-hxi-psu.c
Documentation/hwmon/corsair-hxi-psu.rst new file +50 -0
@@ -0,0 +1,50 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver corsair-hxi-psu +========================== + +Supported devices: + + * Corsair HXi ATX power supplies (HX750i, HX850i, HX1000i and HX1200i) + +Author: Jack Doan + +Description +----------- + +This driver provides a sysfs interface for the Corsair HXi series of ATX +power supplies. + +Usage Notes +----------- + +Since it is a USB device, hot-swapping is possible. The device is auto-detected. + +Sysfs entries +------------- + +* in0_input / in0_label Voltage on ATX_12V +* in1_input / in1_label Voltage on ATX_5V +* in2_input / in2_label Voltage on ATX_3V +* in3_input / in3_label Input AC voltage + +* curr0_input / curr0_label Current on ATX_12V +* curr1_input / curr1_label Current on ATX_5V +* curr2_input / curr2_label Current on ATX_3V + +* power1_input / power1_label Power on ATX_12V +* power2_input / power2_label Power on ATX_5V +* power3_input / power3_label Power on ATX_3V +* power4_input / power4_label Total AC Power + +* temp1_input Temperature before PSU fan +* temp2_input Temperature after PSU fan + +Future work +------------ + +* Adding support for monitoring and control of the fan +* Getting and setting the overcurrent-protection mode +* Testing on other lines of Corsair PSUs (RMi, AXi) +* Broadening support to other "smart" ATX PSUs (NZXT, Seasonic) +* Potentially pulling this into the PMBus code
Documentation/hwmon/index.rst +1 -0
@@ -49,6 +49,7 @@ Hardware Monitoring Kernel Drivers bt1-pvt coretemp corsair-cpro + corsair-hxi-psu da9052 da9055 dell-smm-hwmon
MAINTAINERS +6 -0
@@ -4485,6 +4485,12 @@ L: [email protected] S: Maintained F: drivers/hwmon/corsair-cpro.c +CORSAIR-HXI-PSU HARDWARE MONITOR DRIVER +M: Jack Doan <[email protected]> +L: [email protected] +S: Maintained +F: drivers/hwmon/corsair-hxi-psu.c + COSA/SRP SYNC SERIAL DRIVER M: Jan "Yenya" Kasprzak <[email protected]> S: Maintained
drivers/hwmon/Kconfig +10 -0
@@ -449,6 +449,16 @@ config SENSORS_CORSAIR_CPRO This driver can also be built as a module. If so, the module will be called corsair-cpro. +config SENSORS_CORSAIR_HXI_PSU + tristate "Corsair HXi power supplies" + depends on HID + help + If you say yes here you get monitoring support for the Corsair HXi series + of ATX power supplies + + This driver can also be built as a module. If so, the module + will be called corsair-hxi-psu. + config SENSORS_DRIVETEMP tristate "Hard disk drives with temperature sensors" depends on SCSI && ATA
drivers/hwmon/Makefile +1 -0
@@ -57,6 +57,7 @@ obj-$(CONFIG_SENSORS_AXI_FAN_CONTROL) += axi-fan-control.o obj-$(CONFIG_SENSORS_BT1_PVT) += bt1-pvt.o obj-$(CONFIG_SENSORS_CORETEMP) += coretemp.o obj-$(CONFIG_SENSORS_CORSAIR_CPRO) += corsair-cpro.o +obj-$(CONFIG_SENSORS_CORSAIR_HXI_PSU) += corsair-hxi-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
drivers/hwmon/corsair-hxi-psu.c new file +504 -0
504 lines not on this page · raw message
Signature · 1 line
2.29.2