mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/2] Add JHB100 Fan-Tach support
@ 2026-10-08  7:19 Changhuang Liang
  2026-10-08  7:19 ` [PATCH v6 1/2] dt-bindings: hwmon: Add starfive,jhb100-pwm-fan Changhuang Liang
  2026-10-08  7:19 ` [PATCH v6 2/2] hwmon: (starfive-pwm-fan) Add PWM fan driver for StarFive JHB100 Changhuang Liang
  0 siblings, 2 replies; 3+ messages in thread
From: Changhuang Liang @ 2026-10-08  7:19 UTC (permalink / raw)
  To: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-kernel, linux-hwmon, devicetree, Changhuang Liang

StarFive Fan-Tach controller can support up to 16 fan tach input.
The series has been tested on the EVB1 board.

Change since v5:
PATCH 1:
- Add Conor's "Reviewed-by" tag.

PATCH 2:
- Do not stop at the first failing channel in
  starfive_pwm_fan_pwm_disable_all(). A PWM channel that fails to be
  disabled no longer leaves the remaining, independent channels running
  on driver removal or system suspend. The error is logged and the
  first error code is returned once all channels have been handled.
- Save the tachometer registers (channel enable, measure time and the
  per-channel thresholds) in ->suspend() and restore them in ->resume()
- Add a struct device pointer to struct starfive_pwm_fan_data for the
  error messages.

v5: https://lore.kernel.org/all/20260923130624.239499-1-changhuang.liang@starfivetech.com/
v4: https://lore.kernel.org/all/20260830011941.40199-1-changhuang.liang@starfivetech.com/
v3: https://lore.kernel.org/all/20260824030234.9321-1-changhuang.liang@starfivetech.com/
v2: https://lore.kernel.org/all/20260819091601.41077-1-changhuang.liang@starfivetech.com/
v1: https://lore.kernel.org/all/20260428082337.743546-1-changhuang.liang@starfivetech.com/

Changhuang Liang (2):
  dt-bindings: hwmon: Add starfive,jhb100-pwm-fan
  hwmon: (starfive-pwm-fan) Add PWM fan driver for StarFive JHB100

 .../hwmon/starfive,jhb100-pwm-fan.yaml        |  87 ++
 Documentation/hwmon/index.rst                 |   1 +
 Documentation/hwmon/starfive-pwm-fan.rst      |  45 +
 MAINTAINERS                                   |   8 +
 drivers/hwmon/Kconfig                         |  15 +
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/starfive-pwm-fan.c              | 834 ++++++++++++++++++
 7 files changed, 991 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jhb100-pwm-fan.yaml
 create mode 100644 Documentation/hwmon/starfive-pwm-fan.rst
 create mode 100644 drivers/hwmon/starfive-pwm-fan.c

--
2.25.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-08  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08  7:19 [PATCH v6 0/2] Add JHB100 Fan-Tach support Changhuang Liang
2026-10-08  7:19 ` [PATCH v6 1/2] dt-bindings: hwmon: Add starfive,jhb100-pwm-fan Changhuang Liang
2026-10-08  7:19 ` [PATCH v6 2/2] hwmon: (starfive-pwm-fan) Add PWM fan driver for StarFive JHB100 Changhuang Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®