From: David Lechner <dlechner@baylibre.com>
To: Andy Shevchenko <andy@kernel.org>,
Kim Seer Paller <kimseer.paller@analog.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Nuno Sá" <noname.nuno@gmail.com>, "Nuno Sá" <nuno.sa@analog.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v5 3/3] iio: dac: ad3530r: Add driver for AD3530R and AD3531R
Date: Tue, 22 Apr 2025 11:37:06 -0500 [thread overview]
Message-ID: <efec7563-9591-4539-a154-bf486d35df0e@baylibre.com> (raw)
In-Reply-To: <aAexmOU1e-7hXq6Y@smile.fi.intel.com>
On 4/22/25 10:11 AM, Andy Shevchenko wrote:
> On Mon, Apr 21, 2025 at 12:24:54PM +0800, Kim Seer Paller wrote:
...
>
>> +#define AD3530R_INTERNAL_VREF_MV 2500
>
> _mV (yes, with Volts and Amperes we use proper spelling).
When did we start doing that? No one asked me to do this in any of the new
drivers I did in the last year, so I didn't know this was a thing we should
be doing.
>
>> +#define AD3530R_LDAC_PULSE_US 100
>
> ...
>
>> + int (*input_ch_reg)(unsigned int c);
>
> c? channel?
>
> ...
>
>> + int vref_mv;
>
> _mV
>
> ...
>
>> +static int ad3530r_input_ch_reg(unsigned int c)
>> +{
>> + return 2 * c + AD3530R_INPUT_CH;
>> +}
>> +
>> +static int ad3531r_input_ch_reg(unsigned int c)
>> +{
>> + return 2 * c + AD3531R_INPUT_CH;
>> +}
>
> c --> channel
>
> ...
>
>> +static const char * const ad3530r_powerdown_modes[] = {
>> + "1kohm_to_gnd",
>
> kOhm
>
>> + "7.7kohm_to_gnd",
>
> Ditto.
>
>> + "32kohm_to_gnd",
>
> Ditto.
These are defined by sysfs ABI, so can't be changed otherwise it would break
userspace.
Comes from...
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode
>
>> +};
>
next prev parent reply other threads:[~2025-04-22 16:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-21 4:24 [PATCH v5 0/3] Add driver for AD3530R and AD3531R DACs Kim Seer Paller
2025-04-21 4:24 ` [PATCH v5 1/3] iio: ABI: add new DAC powerdown mode Kim Seer Paller
2025-04-21 4:24 ` [PATCH v5 2/3] dt-bindings: iio: dac: Add adi,ad3530r.yaml Kim Seer Paller
2025-04-21 5:28 ` Rob Herring (Arm)
2025-04-23 7:50 ` Paller, Kim Seer
2025-04-21 4:24 ` [PATCH v5 3/3] iio: dac: ad3530r: Add driver for AD3530R and AD3531R Kim Seer Paller
2025-04-21 13:48 ` Jonathan Cameron
2025-04-23 7:50 ` Paller, Kim Seer
2025-04-23 16:52 ` Andy Shevchenko
2025-04-25 8:26 ` Jonathan Cameron
2025-04-22 15:11 ` Andy Shevchenko
2025-04-22 16:37 ` David Lechner [this message]
2025-04-22 16:46 ` Andy Shevchenko
2025-04-23 7:53 ` Paller, Kim Seer
2025-04-23 16:49 ` Andy Shevchenko
2025-04-24 9:48 ` Paller, Kim Seer
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=efec7563-9591-4539-a154-bf486d35df0e@baylibre.com \
--to=dlechner@baylibre.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kimseer.paller@analog.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=noname.nuno@gmail.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