Skip to content

Commit 8ba3937

Browse files
ladacenunojsa
authored andcommitted
iio: adc: ad4630: Max sampling frequency set to 2MSPS
The default MSPS for AD4630 is wrongly define, also the 500KSPS chips seems not to have proper sampling frequency defined For now, set the sample frequency to 2MSPS by default for some tests in hardware Signed-off-by: Liviu Adace <liviu.adace@analog.com>
1 parent 512f9fc commit 8ba3937

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/iio/adc/ad4630.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,11 +1322,7 @@ static int ad4630_config(struct ad4630_state *st)
13221322
if (ret)
13231323
return ret;
13241324

1325-
if (lane_mode == AD4630_ONE_LANE_PER_CH && data_rate &&
1326-
st->chip->modes[st->out_data].data_width == 32)
1327-
st->max_rate = AD4630_MAX_RATE_1_LANE;
1328-
else
1329-
st->max_rate = AD4630_MAX_RATE;
1325+
st->max_rate = AD4630_MAX_RATE;
13301326

13311327
ad4630_prepare_spi_sampling_msg(st, clock_mode, lane_mode, data_rate);
13321328

0 commit comments

Comments
 (0)