Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/4] hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P
@ 2026-11-10 10:00 Christopher de Guzman
  2026-11-10 10:00 ` [PATCH v2 1/4] dt-bindings: hwmon: ltc2978: " Christopher de Guzman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Christopher de Guzman @ 2026-11-10 10:00 UTC (permalink / raw)
  To: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Frank Li, Jonathan Corbet, Shuah Khan, Randy Dunlap
  Cc: linux-hwmon, devicetree, linux-kernel, linux-doc,
	Christopher de Guzman

Add support for the LT7175 and LT7176P PMBus buck regulators to the
ltc2978 driver. Both belong to the LT7170 family (MFR_SPECIAL_ID
0x1C1D) and are identified by their PMBUS_IC_DEVICE_ID string.

Patch 2 also changes how LT7170-family chips are identified: the
IC_DEVICE_ID string is matched against ltc2978_id[] instead of using
a strncmp() per chip, as suggested in review. Patch 4 fixes a related
documentation error for LT7170/LT7171.

Tested with LT7175 and LT7171-1 eval boards on a Raspberry Pi 3B. The
chip identification change was tested on a 6.12 kernel because the
board does not run hwmon-next; the series is build-tested on
hwmon-next.

Signed-off-by: Christopher de Guzman <christopher.deguzman@analog.com>
---
Changes in v2:
- Drop the -1 variants from the bindings and the i2c/of tables (Guenter)
- Add lt7175/lt7176p as case labels on the existing lt7170/lt7171
  probe block instead of duplicating it (Guenter)
- Identify LT7170-family chips by matching IC_DEVICE_ID against
  ltc2978_id[] with a length check instead of a strncmp() per chip;
  this avoids reading past the returned data (Guenter, Sashiko)
- Don't list LT7175/LT7176P under the curr1 "iin" label (Sashiko)
- New patch 4: remove LT7170/LT7171 from the curr1 "iin" label for the
  same reason
- Not addressed: ltc_get_max() compares IEEE754 peak values as LINEAR11
  (Sashiko). This is pre-existing and also affects LT7170/LT7171; I can
  send a separate fix if that is useful.
- Link to v1: https://patch.msgid.link/20261020-upstream-lt7175-lt7176p-v1-0-86b9b728b95d@analog.com

To: Guenter Roeck <linux@roeck-us.net>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Frank Li <Frank.Li@nxp.com>
To: Jonathan Corbet <corbet@lwn.net>
To: Shuah Khan <skhan@linuxfoundation.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: linux-hwmon@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org

---
Christopher de Guzman (4):
      dt-bindings: hwmon: ltc2978: Add support for LT7175 and LT7176P
      hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P
      hwmon: ltc2978: Document LT7175 and LT7176P support
      hwmon: ltc2978: Remove LT7170 and LT7171 from curr1 iin documentation

 .../devicetree/bindings/hwmon/lltc,ltc2978.yaml    |  4 ++-
 Documentation/hwmon/ltc2978.rst                    | 32 +++++++++++++++++-----
 drivers/hwmon/pmbus/Kconfig                        |  6 ++--
 drivers/hwmon/pmbus/ltc2978.c                      | 23 ++++++++++------
 4 files changed, 45 insertions(+), 20 deletions(-)
---
base-commit: 0b6eda22f9ab67ddb2a872b0c3fc578ad9f4e27e
change-id: 20261020-upstream-lt7175-lt7176p-b9e37cba8f2d

Best regards,
--  
Christopher de Guzman <christopher.deguzman@analog.com>


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

end of thread, other threads:[~2026-11-11 12:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 10:00 [PATCH v2 0/4] hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P Christopher de Guzman
2026-11-10 10:00 ` [PATCH v2 1/4] dt-bindings: hwmon: ltc2978: " Christopher de Guzman
2026-11-11 12:05   ` Krzysztof Kozlowski
2026-11-10 10:00 ` [PATCH v2 2/4] hwmon: (pmbus/ltc2978) " Christopher de Guzman
2026-11-10 10:14   ` sashiko-bot
2026-11-10 10:00 ` [PATCH v2 3/4] hwmon: ltc2978: Document LT7175 and LT7176P support Christopher de Guzman
2026-11-10 10:00 ` [PATCH v2 4/4] hwmon: ltc2978: Remove LT7170 and LT7171 from curr1 iin documentation Christopher de Guzman

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