[PATCH 0/5] gpio-fan: regulator support

From: Alexander Stein
Date: Mon Feb 10 2025 - 10:00:58 EST


Hi,

this series adds support for regulator support for the use-case a GPIO
controlled fan also has a switchable power supply.
Patch 1 is the change for the binding, which is based on pwm-fan.
Patch 2-4 is some small cleanup in preparation for regulator support.

Note: Patch 4 can also be suqash into patch 3

Patch 5 is the regulator support by adding RPM support which enabled/disables
the regulator accordingly.

Alexander Stein (5):
dt-bindings: hwmon: gpio-fan: Add optional regulator support
hwmon: (gpio-fan) Add missing mutex locks
hwmon: (gpio-fan) Ensure lock is held during set_fan_speed()
hwmon: (gpio-fan) Remove unnecessary comment
hwmon: (gpio-fan) Add regulator support

.../devicetree/bindings/hwmon/gpio-fan.yaml | 3 +
drivers/hwmon/gpio-fan.c | 106 ++++++++++++++++--
2 files changed, 102 insertions(+), 7 deletions(-)

--
2.34.1