mbox series

[0/5] gpio-fan: regulator support

Message ID 20250210145934.761280-1-alexander.stein@ew.tq-group.com (mailing list archive)
Headers show
Series gpio-fan: regulator support | expand

Message

Alexander Stein Feb. 10, 2025, 2:59 p.m. UTC
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(-)