From: Janani Sunil <jan.sun97@gmail.com>
To: Marcelo Schmitt <marcelo.schmitt1@gmail.com>,
Janani Sunil <janani.sunil@analog.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Alexandru Ardelean <alexandru.ardelean@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
jan.sun97@gmail.com
Subject: Re: [PATCH v2 1/2] dt-bindings: iio: dac: Add max22007
Date: Fri, 9 Jan 2026 15:08:06 +0100 [thread overview]
Message-ID: <cd918f27-3939-4987-ab5c-3d88572e6e0e@gmail.com> (raw)
In-Reply-To: <aWD4LA7Y1fl3yvh-@debian-BULLSEYE-live-builder-AMD64>
Hi Marcelo,
Thank you for the suggestion.
However, reusing the output-range-microamp and output-range-microvolt properties might mislead the users into thinking that they can configure the DAC output range, which the device does not support. The adi,ch-func fits better here.
On 1/9/26 13:44, Marcelo Schmitt wrote:
> Hi Janani,
>
> One extra comment in addition to Krzysztof's.
>
> On 01/08, Janani Sunil wrote:
>> Devicetree bindings for MAX22007 4-channel 12-bit DAC that drives a
>> voltage or current output on each channel
>>
>> Signed-off-by: Janani Sunil <janani.sunil@analog.com>
>> ---
> ...
>> +
>> +patternProperties:
>> + "^channel@[0-3]$":
>> + $ref: /schemas/iio/dac/dac.yaml#
>> + type: object
>> + description:
>> + Represents the external channels which are connected to the DAC.
>> +
>> + properties:
>> + reg:
>> + description: Channel number
>> + items:
>> + minimum: 0
>> + maximum: 3
>> +
>> + adi,ch-func:
>> + description:
>> + Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage
>> + output or CH_FUNC_CURRENT_OUTPUT for current output.
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + enum: [1, 2]
> adi,ad74413r.yaml has many possibilities for the channel output type.
> max22007 is only either voltage or current.
> Can't we do this with output-range-microamp and output-range-microvolt from dac.yaml?
> Figure out the channel type from the output-range- property?
>
>> +
>> + required:
>> + - reg
>> + - adi,ch-func
>> +
>> + unevaluatedProperties: false
> With best regards,
> Marcelo
Best Regards,
Janani Sunil
next prev parent reply other threads:[~2026-01-09 14:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-08 12:58 [PATCH v2 0/2] Subject: [PATCH v1 0/3] iio: dac: Add support for MAX22007 DAC Janani Sunil
2026-01-08 12:58 ` [PATCH v2 1/2] dt-bindings: iio: dac: Add max22007 Janani Sunil
2026-01-09 8:26 ` Krzysztof Kozlowski
2026-01-09 12:44 ` Marcelo Schmitt
2026-01-09 14:08 ` Janani Sunil [this message]
2026-01-08 12:58 ` [PATCH v2 2/2] iio: dac: Add MAX22007 DAC driver support Janani Sunil
2026-01-09 14:11 ` Marcelo Schmitt
2026-01-09 15:36 ` Janani Sunil
2026-01-11 15:56 ` Jonathan Cameron
2026-01-11 16:09 ` Jonathan Cameron
2026-01-12 20:26 ` Jonathan Cameron
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=cd918f27-3939-4987-ab5c-3d88572e6e0e@gmail.com \
--to=jan.sun97@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=alexandru.ardelean@analog.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=janani.sunil@analog.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.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