From: Conor Dooley <conor@kernel.org>
To: Liviu Stan <liviu.stan@analog.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
"Francesco Lavra" <flavra@baylibre.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
linux@analog.com, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 8/9] dt-bindings: iio: temperature: Add ADT7604 support to adi,ltc2983
Date: Tue, 26 May 2026 17:55:49 +0100 [thread overview]
Message-ID: <20260526-overexert-mollusk-72b080546d5f@spud> (raw)
In-Reply-To: <20260525164013.118614-9-liviu.stan@analog.com>
[-- Attachment #1: Type: text/plain, Size: 2981 bytes --]
On Mon, May 25, 2026 at 07:39:35PM +0300, Liviu Stan wrote:
> The ADT7604 shares the same die as the LTC2984. It repurposes the
> custom RTD sensor type (18) as a copper trace resistance sensor
> and the custom thermistor type (27) as a leak detector, and
> removes thermocouple, diode and direct ADC sensor types.
>
> Add adi,adt7604 to the compatible list and introduce two new
> sensor node types specific to this device:
>
> - copper-trace@: maps to the custom RTD sensor type (18). Two
> variants: sub-ohm (< 1 ohm, adi,copper-trace-sub-ohm boolean,
> no custom table and excitation current) and standard (> 1 ohm,
> required adi,custom-copper-trace table, optional excitation current
> defaulting to the datasheet recommended value). Primary output
> is resistance in ohms. For > 1 ohm copper traces with a custom table,
> the chip also outputs temperature in millidegrees Celsius.
>
> - leak-detector@: maps to the custom thermistor sensor type (27).
> Takes a required adi,custom-leak-detector lookup table encoding
> resistance (uOhm) against coverage data (%). Two outputs:
> resistance in ohms and coverage in percent.
>
> Separate node types are used rather than extending the existing
> rtd@ and thermistor@ nodes because adi,custom-rtd is required
> for sensor type 18, and several properties (adi,number-of-wires,
> adi,rtd-curve, adi,rsense-share, adi,single-ended,
> adi,current-rotate) have no meaning for the new sensor types, since
> the configuration is hardcoded, and would need to be explicitly
> forbidden or ignored in the driver.
>
> allOf conditions are added to restrict thermocouple, diode, direct
> ADC and active temperature nodes to non-ADT7604 devices, and to
> restrict copper-trace and leak-detector nodes to the ADT7604
> (some parts only).
>
> Signed-off-by: Liviu Stan <liviu.stan@analog.com>
If this approach is acceptable to Jonathan, it is acceptable to me.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
> + leak-detector@14 {
> + reg = <14>;
> + adi,sensor-type = <33>;
> + adi,rsense-handle = <&r_sense>;
> + adi,excitation-current-nanoamp = <10000>;
> + adi,custom-leak-detector =
> + /bits/ 64 < 0 100>,
> + /bits/ 64 < 202020000 99>,
> + /bits/ 64 < 285710000 70>,
> + /bits/ 64 < 333330000 60>,
> + /bits/ 64 < 400000000 50>,
> + /bits/ 64 < 500000000 40>,
> + /bits/ 64 < 666670000 30>,
> + /bits/ 64 < 1000000000 20>,
> + /bits/ 64 < 2000000000 10>,
> + /bits/ 64 <1000000000000 0>;
My OCD hates that you have gone to some effort with alignment here, only
for this last line's first cell to scupper it completely.
> + };
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-05-26 16:55 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 16:39 [PATCH v4 0/9] iio: temperature: ltc2983: Add support for ADT7604 Liviu Stan
2026-05-25 16:39 ` [PATCH v4 1/9] iio: temperature: ltc2983: Fix n_wires default bypassing rotation check Liviu Stan
2026-05-27 16:11 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 2/9] iio: temperature: ltc2983: Fix reinit_completion() called after conversion start Liviu Stan
2026-05-27 16:13 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 3/9] iio: temperature: ltc2983: Fix macro parenthesization and rename Liviu Stan
2026-05-27 16:13 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 4/9] iio: temperature: ltc2983: Use local device pointer consistently Liviu Stan
2026-05-27 16:18 ` Jonathan Cameron
2026-06-02 23:25 ` Andy Shevchenko
2026-06-03 14:08 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 5/9] iio: temperature: ltc2983: Fix inconsistent channel wording in messages Liviu Stan
2026-05-27 16:19 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 6/9] iio: temperature: ltc2983: Use fwnode_property_present() for optional properties Liviu Stan
2026-05-27 16:19 ` Jonathan Cameron
2026-06-02 23:26 ` Andy Shevchenko
2026-06-03 14:01 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 7/9] iio: core: Add IIO_COVERAGE channel type Liviu Stan
2026-05-27 16:51 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 8/9] dt-bindings: iio: temperature: Add ADT7604 support to adi,ltc2983 Liviu Stan
2026-05-25 18:28 ` sashiko-bot
2026-05-26 16:55 ` Conor Dooley [this message]
2026-05-27 15:59 ` Liviu Stan
2026-05-27 16:51 ` Jonathan Cameron
2026-05-25 16:39 ` [PATCH v4 9/9] iio: temperature: ltc2983: Add support for ADT7604 Liviu Stan
2026-05-25 19:06 ` sashiko-bot
2026-05-26 8:47 ` Liviu Stan
2026-05-27 16:49 ` Jonathan Cameron
2026-06-02 6:38 ` Liviu Stan
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=20260526-overexert-mollusk-72b080546d5f@spud \
--to=conor@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=flavra@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@analog.com \
--cc=liviu.stan@analog.com \
--cc=nuno.sa@analog.com \
--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