Devicetree
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Add Silergy SQ24860 support
@ 2026-06-12  3:03 Ziming Zhu
  2026-06-12  3:03 ` [PATCH v4 1/3] dt-bindings: hwmon: pmbus: Add bindings for Silergy SQ24860 Ziming Zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ziming Zhu @ 2026-06-12  3:03 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jonathan Corbet,
	Shuah Khan, linux-hwmon, devicetree, linux-kernel, linux-doc,
	Ziming Zhu

From: Ziming Zhu <ziming.zhu@silergycorp.com>

Changes in v4:
- dt-bindings: Collected Reviewed-by tag from Conor Dooley.
- hwmon: pmbus: sq24860: Fixed signedness issue on PMBus limits where
  negative user inputs were silently parsed as large positive unsigned 
  values. Now casting limit values to s16 to properly intercept negative
  bounds.
- hwmon: pmbus: sq24860: Fixed PMBUS_IIN_OC_FAULT_LIMIT handling to 
  silently clamp out-of-range lower limits to the nearest supported
  hardware value (SQ24860_IIN_OCF_OFF) instead of returning -EINVAL, 
  complying with hwmon ABI conventions.
- Fixed function parenthesis alignments reported by checkpatch.

Changes in v3:
- fix remaining checkpatch issues in the SQ24860 driver
- use C comments consistently in the driver
- drop unused header files
- make GIMON a constant in the gain calculation helper
- use proper 64-bit division for the calibration gain calculation
- return -EINVAL when the calculated gain does not fit
- reject PMBUS_IIN_OC_FAULT_LIMIT values outside the hardware range
- treat malformed silergy,rimon-micro-ohms as an error
- sort sq24860 correctly in Documentation/hwmon/index.rst

Ziming Zhu (3):
  dt-bindings: hwmon: pmbus: Add bindings for Silergy SQ24860
  hwmon: pmbus: Add support for Silergy SQ24860
  hwmon: Add documentation for SQ24860

 .../bindings/hwmon/pmbus/silergy,sq24860.yaml |  74 +++
 Documentation/hwmon/index.rst                 |   1 +
 Documentation/hwmon/sq24860.rst               |  96 ++++
 drivers/hwmon/pmbus/Kconfig                   |  19 +
 drivers/hwmon/pmbus/Makefile                  |   1 +
 drivers/hwmon/pmbus/sq24860.c                 | 430 ++++++++++++++++++
 6 files changed, 621 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/silergy,sq24860.yaml
 create mode 100644 Documentation/hwmon/sq24860.rst
 create mode 100644 drivers/hwmon/pmbus/sq24860.c

-- 
2.25.1


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

end of thread, other threads:[~2026-06-12  3:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12  3:03 [PATCH v4 0/3] Add Silergy SQ24860 support Ziming Zhu
2026-06-12  3:03 ` [PATCH v4 1/3] dt-bindings: hwmon: pmbus: Add bindings for Silergy SQ24860 Ziming Zhu
2026-06-12  3:07   ` sashiko-bot
2026-06-12  3:03 ` [PATCH v4 2/3] hwmon: pmbus: Add support " Ziming Zhu
2026-06-12  3:10   ` sashiko-bot
2026-06-12  3:03 ` [PATCH v4 3/3] hwmon: Add documentation for SQ24860 Ziming Zhu
2026-06-12  3:08   ` sashiko-bot

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