From: Jonathan Cameron <jic23@kernel.org>
To: "Tinaco, Mariel" <Mariel.Tinaco@analog.com>
Cc: David Lechner <dlechner@baylibre.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
"Hennerich, Michael" <Michael.Hennerich@analog.com>,
Marcelo Schmitt <marcelo.schmitt1@gmail.com>,
Dimitri Fedrau <dima.fedrau@gmail.com>,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH 0/2] add AD8460 DAC driver
Date: Fri, 28 Jun 2024 19:39:54 +0100 [thread overview]
Message-ID: <20240628193954.2f3dfc55@jic23-huawei> (raw)
In-Reply-To: <SJ0PR03MB62242BD5117C5B2026CCC5D191D42@SJ0PR03MB6224.namprd03.prod.outlook.com>
> >
> > > > * Programmable quiescent current (optional)
> > Could probably figure out a suitable control for this, but I'm not entirely sure
> > what it is :)
>
> Thinking about it, wouldn't the raw attribute be a suitable control for this? This
> Value is relative to nominal supply current and acts as a "monotonic but nonlinear"
> multiplier.
> A register value maps to a current level from 0 to 2 times the nominal
> current supplied. I also thought that it could be hardware gain but the gain
> computation wasn't explicitly indicated in the datasheet and there is not yet
> "current_hardwaregain" attribute available in the ABI. So I settled with raw.
I don't entirely understand what is actually for, but a raw current output
might be appropriate.
>I
> Think there would only be an issue of we expose the "processed" attribute
> Because it has a particular computation. But I'm not planning to expose the
> Processed attribute
Is there any reason someone might in future though?
>
> > > > * Thermal monitoring is done by measuring voltage on TMP pin
> > > > (unlikely to be included)
> >
> > If you did want to, the usual trick for these is to include an optional use as a
> > consumer of an IIO provider which would be a separate ADC.
>
> I included this in my current revision, thanks for the idea. Although the optional use
> Isn’t yet available in the consumer API. My question is, in case the ADC channel to read
> The TMP pin is not available, should I still make the temp raw value available and
> Set to 0? Or should the temp raw attribute be unavailable or unlisted completely from
> IIO Info.
If no ADC channel then remove it from the chan_spec. That probably means you
need separate arrays of struct iio_chan_spec for the two case.
Jonathan
> > > >
> > >
> > > Adding myself to the cc: here since I'm interested to see what
> > > Jonathan (or anyone else) has to say about the fault monitoring.
> >
> > Jonathan
next prev parent reply other threads:[~2024-06-28 18:40 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 6:40 [PATCH 0/2] add AD8460 DAC driver Mariel Tinaco
2024-05-10 6:40 ` [PATCH 1/2] dt-bindings: iio: dac: add docs for ad8460 Mariel Tinaco
2024-05-10 7:21 ` Rob Herring (Arm)
2024-05-10 17:28 ` David Lechner
2024-05-11 16:25 ` Jonathan Cameron
2024-05-11 18:47 ` David Lechner
2024-05-21 7:07 ` Nuno Sá
2024-06-24 4:20 ` Tinaco, Mariel
2024-05-10 6:40 ` [PATCH 2/2] iio: dac: support the ad8460 Waveform DAC Mariel Tinaco
2024-05-10 17:30 ` David Lechner
2024-05-11 16:44 ` Jonathan Cameron
2024-06-24 4:19 ` Tinaco, Mariel
2024-06-28 18:45 ` Jonathan Cameron
2024-07-08 5:17 ` Tinaco, Mariel
2024-07-08 16:05 ` Jonathan Cameron
2024-07-11 9:20 ` Nuno Sá
2024-07-11 21:31 ` David Lechner
2024-07-12 6:57 ` Nuno Sá
2024-07-13 9:57 ` Jonathan Cameron
2024-07-14 6:17 ` Nuno Sá
2024-06-24 4:56 ` Tinaco, Mariel
2024-06-28 18:51 ` Jonathan Cameron
2024-07-07 23:32 ` Tinaco, Mariel
2024-07-07 23:37 ` Tinaco, Mariel
2024-05-10 17:30 ` [PATCH 0/2] add AD8460 DAC driver David Lechner
2024-05-11 16:21 ` Jonathan Cameron
2024-06-24 4:38 ` Tinaco, Mariel
2024-06-28 18:39 ` Jonathan Cameron [this message]
2024-07-07 23:29 ` Tinaco, Mariel
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=20240628193954.2f3dfc55@jic23-huawei \
--to=jic23@kernel.org \
--cc=Mariel.Tinaco@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dima.fedrau@gmail.com \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--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