]> git.hungrycats.org Git - linux/commit
hwmon: emc2305: Support configurable fan PWM at shutdown
authorFlorin Leotescu <florin.leotescu@nxp.com>
Wed, 29 Apr 2026 06:59:55 +0000 (09:59 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:57 +0000 (08:22 -0700)
commit07668f5ca30620fb1edfd730181bfd8120aa6c55
tree155791fa6b53d56d2bdb52ebbd0de7a5c35aab14
parentd37276a86e40a6f6479745a8fb4e92d0dd77c82a
hwmon: emc2305: Support configurable fan PWM at shutdown

Some systems require fans to enter in a defined safe state during system
shutdown or reboot handoff.

Add support for the optional Device Tree property "fan-shutdown-percent"
to configure the shutdown PWM duty cycle per fan output.

If the property is present for a fan channel, the driver converts the
configured percentage value to the corresponding PWM duty cycle and
applies it during driver shutdown.

If the property is not present, the fan state remains unchanged.

Signed-off-by: Florin Leotescu <florin.leotescu@nxp.com>
Link: https://lore.kernel.org/r/20260429065955.2113012-4-florin.leotescu@oss.nxp.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/emc2305.c