hwmon: (gxp-fan-ctrl) Add GXP fan controller
authorNick Hawkins <nick.hawkins@hpe.com>
Tue, 3 Jan 2023 20:36:50 +0000 (14:36 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:09 +0000 (07:30 -0800)
commit90905f7c40910a68677ea452ecf0023f31d6b08f
tree608b7ce5e618a89c6d19331196b4d32c80d31691
parent6d03bbff456befeccdd4d663177c4d6c75d0c4ff
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 current support is limited to 8 fans. The fans speeds are
controlled via 8 different PWMs which can vary in value from  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.

Signed-off-by: Nick Hawkins <nick.hawkins@hpe.com>
Link: https://lore.kernel.org/r/20230103203654.59322-2-nick.hawkins@hpe.com
[groeck: Improved alignment of defined, added missing include linux/bits.h]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/gxp-fan-ctrl.rst [new file with mode: 0644]
Documentation/hwmon/index.rst
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/gxp-fan-ctrl.c [new file with mode: 0644]