mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Carlos Jones <carlosjr.jones@analog.com>
To: <linux@roeck-us.net>
Cc: <alexisczezar.torreno@analog.com>, <robh@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<linux-hwmon@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	Carlos Jones Jr <carlosjr.jones@analog.com>
Subject: [PATCH v2 2/2] hwmon: (pmbus/max20830) Add support for MAX20810, MAX20815, LTM4739, LTM4740
Date: Tue, 3 Nov 2026 16:43:31 +0800	[thread overview]
Message-ID: <20261103084331.449-3-carlosjr.jones@analog.com> (raw)
In-Reply-To: <20261103084331.449-1-carlosjr.jones@analog.com>

From: Carlos Jones Jr <carlosjr.jones@analog.com>

Add support for additional members of the MAX20830 family:
- MAX20810: 2.7V-16V input, up to 10A output
- MAX20815: 2.7V-16V input, up to 15A output
- LTM4739:  3V-15V input, up to 10A output
- LTM4740:  3V-15V input, up to 15A output

The LTM4739 and LTM4740 are the LTM-series equivalents of the MAX20810
and MAX20815 respectively. All share the MAX20830 PMBus command set and
telemetry, so no new register handling is required; they are accepted by
matching their IC_DEVICE_ID.

The LTM4739 and LTM4740 are uModules built around the MAX20810/MAX20815
dies and report the die's IC_DEVICE_ID with a "B" suffix ("MAX20810B" /
"MAX20815B"), not the "LTM4739"/"LTM4740" names printed in their
datasheets (which are being corrected to match). Only the IDs observed on
hardware are matched; the plain datasheet IDs ("MAX20810", "MAX20815",
"LTM4739", "LTM4740") are not matched, as no part reporting them has been
observed.

Matching is via the existing adi,max20830 fallback compatible; no new
of_match entries are needed.

Signed-off-by: Carlos Jones Jr <carlosjr.jones@analog.com>
---
 Documentation/hwmon/max20830.rst | 51 ++++++++++++++++++++++++++++----
 drivers/hwmon/pmbus/max20830.c   | 10 ++++++-
 2 files changed, 54 insertions(+), 7 deletions(-)

diff --git a/Documentation/hwmon/max20830.rst b/Documentation/hwmon/max20830.rst
index b850f3b6e40d..7c4f27f40d60 100644
--- a/Documentation/hwmon/max20830.rst
+++ b/Documentation/hwmon/max20830.rst
@@ -5,6 +5,38 @@ Kernel driver max20830
 
 Supported chips:
 
+  * Analog Devices LTM4739
+
+    Prefix: 'ltm4739'
+
+    Addresses scanned: -
+
+    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ltm4739.pdf
+
+  * Analog Devices LTM4740
+
+    Prefix: 'ltm4740'
+
+    Addresses scanned: -
+
+    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ltm4740.pdf
+
+  * Analog Devices MAX20810
+
+    Prefix: 'max20810'
+
+    Addresses scanned: -
+
+    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max20810.pdf
+
+  * Analog Devices MAX20815
+
+    Prefix: 'max20815'
+
+    Addresses scanned: -
+
+    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max20815.pdf
+
   * Analog Devices MAX20830
 
     Prefix: 'max20830'
@@ -37,13 +69,20 @@ Author:
 Description
 -----------
 
-This driver supports hardware monitoring for Analog Devices MAX20830, MAX20830C
-and MAX20840C. These are Step-Down Switching Regulator with PMBus Interface.
+This driver supports hardware monitoring for Analog Devices MAX20810, MAX20815,
+MAX20830, MAX20830C, MAX20840C, LTM4739, and LTM4740 Step-Down Switching
+Regulators with PMBus Interface.
+
+The MAX20810 and LTM4739 are 10A fully integrated step-down DC-DC switching
+regulators (2.7V-16V and 3V-15V input respectively). The MAX20815 and LTM4740
+provide up to 15A. The MAX20830 and MAX20830C provide up to 30A. The MAX20840C
+provides up to 40A. Through the PMBus interface, all devices can monitor
+input/output voltages, output current and temperature.
 
-MAX20830, and MAX20830C are 2.7V to 16V, 30A fully integrated step-down DC-DC
-switching regulators. MAX20840C is similar but can reach 40A. Through the PMBus
-interface, these devices can monitor input/output voltages, output current and
-temperature.
+LTM4739 and LTM4740 are the LTM-family equivalents of MAX20810 and MAX20815
+respectively, sharing an identical PMBus command set. These modules report the
+underlying die's IC_DEVICE_ID by design ("MAX20810B" and "MAX20815B"
+respectively), which the driver matches during probe.
 
 The driver is a client driver to the core PMBus driver. Please see
 Documentation/hwmon/pmbus.rst for details on PMBus client drivers.
diff --git a/drivers/hwmon/pmbus/max20830.c b/drivers/hwmon/pmbus/max20830.c
index 4d25a084af09..39cce250beca 100644
--- a/drivers/hwmon/pmbus/max20830.c
+++ b/drivers/hwmon/pmbus/max20830.c
@@ -20,7 +20,15 @@ struct max20830_data {
 	u32 vout_rfb2;
 };
 
+/*
+ * IC_DEVICE_ID strings matched at probe. The LTM4739/LTM4740 uModules
+ * report their MAX die ID with a "B" suffix, not the "LTM47xx" names in
+ * their datasheets (being corrected); the plain datasheet IDs are not
+ * matched, as no such part has been observed.
+ */
 static const char * const supported_chip_ids[] = {
+	"MAX20810B",	/* LTM4739 */
+	"MAX20815B",	/* LTM4740 */
 	"MAX20830",
 	"MAX20830C",
 	"MAX20840C",
@@ -34,7 +42,7 @@ static const char * const supported_chip_ids[] = {
  * like in1_max, in1_crit, etc. will not be available. Only in1_input (the
  * scaled output voltage) is supported.
  *
- * MAX20830 uses an external resistor divider for voltage sensing:
+ * MAX20830 family uses an external resistor divider for voltage sensing:
  * - VOUT_COMMAND and VOUT_MAX set the reference voltage at the feedback pin
  * - READ_VOUT reports the feedback voltage, which needs to be scaled for actual
  *   output voltage
-- 
2.43.0


      parent reply	other threads:[~2026-11-03  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  8:43 [PATCH v2 0/2] hwmon: (pmbus/max20830) add MAX20810/15 and LTM4739/40 Carlos Jones
2026-11-03  8:43 ` [PATCH v2 1/2] dt-bindings: hwmon: max20830: Add MAX20810, MAX20815, LTM4739, LTM4740 Carlos Jones
2026-11-03  8:43 ` Carlos Jones [this message]

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=20261103084331.449-3-carlosjr.jones@analog.com \
    --to=carlosjr.jones@analog.com \
    --cc=alexisczezar.torreno@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=robh@kernel.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®