Devicetree
 help / color / mirror / Atom feed
From: Arka Mondal <arka@arkamondal.net>
To: "Jonathan Cameron" <jic23@kernel.org>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>
Cc: David Lechner <dlechner@baylibre.com>,
	Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Stefan Popa <stefan.popa@analog.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux@analog.com,
	arkamondalofficial@gmail.com, Arka Mondal <arka@arkamondal.net>
Subject: [PATCH v2 4/5] dt-bindings: iio: dac: adi,ad5758: Fix the 4 mA to 20 mA current range
Date: Wed,  7 Oct 2026 00:32:09 +0900	[thread overview]
Message-ID: <20261006153210.364862-2-arka@arkamondal.net> (raw)
In-Reply-To: <20261006153210.364862-1-arka@arkamondal.net>

adi,range-microamp gives the 4 mA to 20 mA range as <4 24000>. The
values are in microamps, so this reads as 4 uA to 24 mA. The original
text binding described <4 24000> as the "4 mA to 20 mA current range",
and the data sheet (Rev. B, Table 32) confirms range code 1010 is
4 mA to 20 mA.

Replace it with <4000 20000>. No in-tree device tree uses this binding,
so nothing in the tree changes. A device tree that still has the old
value no longer validates.

Fixes: 777baca07ef1 ("dt-bindings: iio: dac: Add docs for AD5758 DAC")
Signed-off-by: Arka Mondal <arka@arkamondal.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
---

Notes:
    Checked with make dt_binding_check; no relevant hardware available.

 Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
index 5121685337b5..a0f2649129e0 100644
--- a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
+++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
@@ -66,8 +66,8 @@ properties:
           - const: 0
           - enum: [20000, 24000]
       - items:
-          - const: 4
-          - const: 24000
+          - const: 4000
+          - const: 20000
       - items:
           - const: -20000
           - const: 20000
-- 
2.55.0


  reply	other threads:[~2026-10-06 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 15:32 [PATCH v2 0/5] iio: dac: ad5758: fix the 4 mA to 20 mA current range Arka Mondal
2026-10-06 15:32 ` Arka Mondal [this message]
2026-10-07 10:24   ` [PATCH v2 4/5] dt-bindings: iio: dac: adi,ad5758: Fix " Conor Dooley
2026-10-06 15:32 ` [PATCH v2 5/5] iio: dac: ad5758: " Arka Mondal

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=20261006153210.364862-2-arka@arkamondal.net \
    --to=arka@arkamondal.net \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=arkamondalofficial@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@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=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=stefan.popa@analog.com \
    /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