File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ Hardware Monitoring Kernel Drivers
201201 pxe1610
202202 pwm-fan
203203 q54sj108a2
204+ qnap-mcu-hwmon
204205 raspberrypi-hwmon
205206 sbrmi
206207 sbtsi_temp
Original file line number Diff line number Diff line change 1+ .. SPDX-License-Identifier: GPL-2.0-or-later
2+
3+ Kernel driver qnap-mcu-hwmon
4+ ============================
5+
6+ This driver enables the use of the hardware monitoring and fan control
7+ of the MCU used on some QNAP network attached storage devices.
8+
9+ Author: Heiko Stuebner <heiko@sntech.de>
10+
11+ Description
12+ -----------
13+
14+ The driver implements a simple interface for driving the fan controlled by
15+ setting its PWM output value and exposes the fan rpm and case-temperature
16+ to user space through hwmon's sysfs interface.
17+
18+ The fan rotation speed returned via the optional 'fan1_input' is calculated
19+ inside the MCU device.
20+
21+ The driver provides the following sensor accesses in sysfs:
22+
23+ =============== ======= =======================================================
24+ fan1_input ro fan tachometer speed in RPM
25+ pwm1 rw relative speed (0-255), 255=max. speed.
26+ temp1_input ro Measured temperature in millicelsius
27+ =============== ======= =======================================================
Original file line number Diff line number Diff line change @@ -19108,6 +19108,7 @@ F: drivers/media/tuners/qm1d1c0042*
1910819108QNAP MCU DRIVER
1910919109M: Heiko Stuebner <heiko@sntech.de>
1911019110S: Maintained
19111+ F: drivers/hwmon/qnap-mcu-hwmon.c
1911119112F: drivers/input/misc/qnap-mcu-input.c
1911219113F: drivers/leds/leds-qnap-mcu.c
1911319114F: drivers/mfd/qnap-mcu.c
Original file line number Diff line number Diff line change @@ -1822,6 +1822,18 @@ config SENSORS_PWM_FAN
18221822 This driver can also be built as a module. If so, the module
18231823 will be called pwm-fan.
18241824
1825+ config SENSORS_QNAP_MCU_HWMON
1826+ tristate "QNAP MCU hardware monitoring"
1827+ depends on MFD_QNAP_MCU
1828+ depends on THERMAL || THERMAL=n
1829+ help
1830+ Say yes here to enable support for fan and temperature sensor
1831+ connected to a QNAP MCU, as found in a number of QNAP network
1832+ attached storage devices.
1833+
1834+ This driver can also be built as a module. If so, the module
1835+ will be called qnap-mcu-hwmon.
1836+
18251837config SENSORS_RASPBERRYPI_HWMON
18261838 tristate "Raspberry Pi voltage monitor"
18271839 depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ obj-$(CONFIG_SENSORS_POWERZ) += powerz.o
189189obj-$(CONFIG_SENSORS_POWR1220) += powr1220.o
190190obj-$(CONFIG_SENSORS_PT5161L) += pt5161l.o
191191obj-$(CONFIG_SENSORS_PWM_FAN) += pwm-fan.o
192+ obj-$(CONFIG_SENSORS_QNAP_MCU_HWMON) += qnap-mcu-hwmon.o
192193obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON) += raspberrypi-hwmon.o
193194obj-$(CONFIG_SENSORS_SBTSI) += sbtsi_temp.o
194195obj-$(CONFIG_SENSORS_SBRMI) += sbrmi.o
You can’t perform that action at this time.
0 commit comments