On 11/14/24 5:51 PM, Marcelo Schmitt wrote: > The AD4000 series and the single-channel PulSAR series of devices have > similar SPI transfer specifications and wiring configurations. > Single-channel PulSAR devices are slower than AD4000, and don't have a > configuration register. That taken into account, single-channel PulSARs can > be supported by the ad4000 driver without any increase in code complexity. > > Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx> > --- > drivers/iio/adc/ad4000.c | 163 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 163 insertions(+) > > diff --git a/drivers/iio/adc/ad4000.c b/drivers/iio/adc/ad4000.c > index 68ac77494263..8e31b42534f5 100644 > --- a/drivers/iio/adc/ad4000.c > +++ b/drivers/iio/adc/ad4000.c > @@ -137,6 +137,41 @@ static const struct ad4000_time_spec ad4020_t_spec = { > .t_quiet2_ns = 60, > }; > > +/* AD7983, AD7984 */ > +static const struct ad4000_time_spec ad7983_t_spec = { > + .t_conv_ns = 500, I'm sure there are diffing opinions on this but I would prefer an explicit .t_quiet2_ns = 0, so we know that it wasn't omitted on accident. Or a group comment to say that these chips don't need any quite time. In any case... Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>