forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (gxp-fan-ctrl) Add GXP fan controller
The GXP SoC can support up to 16 fans through the interface provided by the CPLD. The fans speeds are controlled via a pwm value 0-255. The fans are also capable of reporting if they have failed to the CPLD which in turn reports the status to the GXP SoC. There are no tachometers so fan speeds are reported as a percent of the pwm value. Signed-off-by: Nick Hawkins <nick.hawkins@hpe.com>
- Loading branch information
1 parent
52a7ce8
commit bd3528b
Showing
4 changed files
with
407 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
Kernel driver gxp-fan-ctrl | ||
========================== | ||
|
||
Supported chips: | ||
|
||
* HPE GXP SOC | ||
|
||
Author: Nick Hawkins <nick.hawkins@hpe.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
gxp-fan-ctrl is a driver which provides fan control for the hpe gxp soc. | ||
The driver allows the gathering of fan status and the use of fan | ||
pwm control. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
Traditionally fanY_input returns an RPM value, on HPE GXP systems it is | ||
the pwm value [0-255] due to the fan speeds being reported as | ||
percentages. | ||
|
||
|
||
Sysfs attributes | ||
---------------- | ||
|
||
======================= ================================================= | ||
pwm[0-15] Fan 0 to 15 respective pwm value | ||
fan[0-15]_input Fan 0 to 15 respective input value: pwm value | ||
fan[0-15]_fault Fan 0 to 15 respective fault status: 1 fail, 0 ok | ||
======================= ================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.