Linux IIO development
 help / color / mirror / Atom feed
* ti-ads7950: selecting the adc input range
@ 2022-07-08  8:02 Uwe Kleine-König
  2022-07-08  9:28 ` Lars-Peter Clausen
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Kleine-König @ 2022-07-08  8:02 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio, Lars-Peter Clausen, kernel, Thorsten Scherer

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

Hello,

the ADS7950 has a register bit (called TI_ADS7950_CR_RANGE_5V in the
driver) that selects the input range. Depending on that bit the input
range is either [0 .. V_{REF}] or [0 .. 2 * V_{REF}].

The driver currently defaults to setting that bit, so the range is the
big one.

On a machine here however I know the input is in the smaller range and
I'd like to benefit from the higher resolution of the small range. I
wonder how to make this tunable. Should that be done using a firmware
property? ("single-input-range" vs. "double-input-range"? Or input-range
= <1> vs. input-range = <2> which better matches the data sheet that
calls the two modes "Range 1 (0 to V_{REF})" and "Range 2 (0 to
2xV_{REF})") Or should this be made tunable via sysfs? (E.g. by writing
to the scale property? Or a separate property?)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-16 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-08  8:02 ti-ads7950: selecting the adc input range Uwe Kleine-König
2022-07-08  9:28 ` Lars-Peter Clausen
2022-07-08 10:35   ` Nuno Sá
2022-07-16 17:57     ` Jonathan Cameron
2022-07-09 17:10   ` Uwe Kleine-König
2022-07-09 18:17     ` Lars-Peter Clausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox