[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <efec7563-9591-4539-a154-bf486d35df0e@baylibre.com>
Date: Tue, 22 Apr 2025 11:37:06 -0500
From: David Lechner <dlechner@...libre.com>
To: Andy Shevchenko <andy@...nel.org>,
Kim Seer Paller <kimseer.paller@...log.com>
Cc: Jonathan Cameron <jic23@...nel.org>, Lars-Peter Clausen
<lars@...afoo.de>, Michael Hennerich <Michael.Hennerich@...log.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Nuno Sá
<noname.nuno@...il.com>, Nuno Sá <nuno.sa@...log.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v5 3/3] iio: dac: ad3530r: Add driver for AD3530R and
AD3531R
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
>
>> +};
>
Powered by blists - more mailing lists