mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christopher de Guzman <christopher.deguzman@analog.com>
To: Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>
Cc: <linux-hwmon@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>,
	Christopher de Guzman <christopher.deguzman@analog.com>
Subject: [PATCH v2 0/4] hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P
Date: Tue, 10 Nov 2026 18:00:39 +0800	[thread overview]
Message-ID: <20261110-upstream-lt7175-lt7176p-v2-0-dd60d28383bf@analog.com> (raw)

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>


             reply	other threads:[~2026-11-10 10:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 10:00 Christopher de Guzman [this message]
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-17 18:41   ` Guenter Roeck
2026-11-10 10:00 ` [PATCH v2 2/4] hwmon: (pmbus/ltc2978) " Christopher de Guzman
2026-11-17 18:42   ` Guenter Roeck
2026-11-10 10:00 ` [PATCH v2 3/4] hwmon: ltc2978: Document LT7175 and LT7176P support Christopher de Guzman
2026-11-17 18:43   ` Guenter Roeck
2026-11-10 10:00 ` [PATCH v2 4/4] hwmon: ltc2978: Remove LT7170 and LT7171 from curr1 iin documentation Christopher de Guzman
2026-11-17 18:44   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261110-upstream-lt7175-lt7176p-v2-0-dd60d28383bf@analog.com \
    --to=christopher.deguzman@analog.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=rdunlap@infradead.org \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®