[PATCH v2 0/4] hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P
From: Christopher de Guzman
Date: Tue Nov 10 2026 - 05:39:29 EST
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@xxxxxxxxxx>
---
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@xxxxxxxxxx
To: Guenter Roeck <linux@xxxxxxxxxxxx>
To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
To: Frank Li <Frank.Li@xxxxxxx>
To: Jonathan Corbet <corbet@xxxxxxx>
To: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
To: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: linux-hwmon@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-doc@xxxxxxxxxxxxxxx
---
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@xxxxxxxxxx>