Re: [PATCH] docs: iio: new docs for ad7380 driver

From: Jonathan Cameron
Date: Tue Jul 16 2024 - 14:05:16 EST


On Tue, 09 Jul 2024 17:16:46 +0200
Julien Stephan <jstephan@xxxxxxxxxxxx> wrote:

> This adds a new page to document how to use the ad7380 ADC driver.
>
> Credit: this docs is based on ad7944 docs.
>
> Signed-off-by: Julien Stephan <jstephan@xxxxxxxxxxxx>
Only thing in here I wondered about is talking about what libiio supports.
That is likely to change if we get lots of devices with the sort of resolution
changing that occurs with this one. Ah well, I guess we will probably get
stale docs if no one is paying attention. That happens anyway for so
many other reasons I'm not that worried about one more.

Applied to the testing branch of iio.git for now as I'll be rebasing on rc1
once available.

Thanks,

Jonathan


> +Since the resolution boost feature causes 16-bit chips to now have 18-bit data
> +which means the storagebits has to change from 16 to 32 bits, we use the new
> +ext_scan_type feature to allow changing the scan_type at runtime. Unfortunately
> +libiio does not support it. So when enabling or disabling oversampling, user
> +must restart iiod using the following command:
> +
> +.. code-block:: bash
> +
> + root:~# systemctl restart iiod
> +
> +