Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: iio: new docs for ad7380 driver

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@baylibre.com>
Link: https://patch.msgid.link/20240709-ad7380-add-docs-v1-1-458ced3dfcc5@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Julien Stephan and committed by
Jonathan Cameron
3e82dfc8 b6a097a9

+90
+88
Documentation/iio/ad7380.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0-only 2 + 3 + ============= 4 + AD7380 driver 5 + ============= 6 + 7 + ADC driver for Analog Devices Inc. AD7380 and similar devices. The module name 8 + is ``ad7380``. 9 + 10 + 11 + Supported devices 12 + ================= 13 + 14 + The following chips are supported by this driver: 15 + 16 + * `AD7380 <https://www.analog.com/en/products/ad7380.html>`_ 17 + * `AD7381 <https://www.analog.com/en/products/ad7381.html>`_ 18 + * `AD7383 <https://www.analog.com/en/products/ad7383.html>`_ 19 + * `AD7384 <https://www.analog.com/en/products/ad7384.html>`_ 20 + * `AD7380-4 <https://www.analog.com/en/products/ad7380-4.html>`_ 21 + * `AD7381-4 <https://www.analog.com/en/products/ad7381-4.html>`_ 22 + * `AD7383-4 <https://www.analog.com/en/products/ad7383-4.html>`_ 23 + * `AD7384-4 <https://www.analog.com/en/products/ad7384-4.html>`_ 24 + 25 + 26 + Supported features 27 + ================== 28 + 29 + SPI wiring modes 30 + ---------------- 31 + 32 + ad738x ADCs can output data on several SDO lines (1/2/4). The driver currently 33 + supports only 1 SDO line. 34 + 35 + Reference voltage 36 + ----------------- 37 + 38 + 2 possible reference voltage sources are supported: 39 + 40 + - Internal reference (2.5V) 41 + - External reference (2.5V to 3.3V) 42 + 43 + The source is determined by the device tree. If ``refio-supply`` is present, 44 + then the external reference is used, else the internal reference is used. 45 + 46 + Oversampling and resolution boost 47 + --------------------------------- 48 + 49 + This family supports 2 types of oversampling: normal average and rolling 50 + average. Only normal average is supported by the driver, as rolling average can 51 + be achieved by processing a captured data buffer. The following ratios are 52 + available: 1 (oversampling disabled)/2/4/8/16/32. 53 + 54 + When the on-chip oversampling function is enabled the performance of the ADC can 55 + exceed the default resolution. To accommodate the performance boost achievable, 56 + it is possible to enable an additional two bits of resolution. Because the 57 + resolution boost feature can only be enabled when oversampling is enabled and 58 + oversampling is not as useful without the resolution boost, the driver 59 + automatically enables the resolution boost if and only if oversampling is 60 + enabled. 61 + 62 + Since the resolution boost feature causes 16-bit chips to now have 18-bit data 63 + which means the storagebits has to change from 16 to 32 bits, we use the new 64 + ext_scan_type feature to allow changing the scan_type at runtime. Unfortunately 65 + libiio does not support it. So when enabling or disabling oversampling, user 66 + must restart iiod using the following command: 67 + 68 + .. code-block:: bash 69 + 70 + root:~# systemctl restart iiod 71 + 72 + 73 + Unimplemented features 74 + ---------------------- 75 + 76 + - 2/4 SDO lines 77 + - Rolling average oversampling 78 + - Power down mode 79 + - CRC indication 80 + - Alert 81 + 82 + 83 + Device buffers 84 + ============== 85 + 86 + This driver supports IIO triggered buffers. 87 + 88 + See :doc:`iio_devbuf` for more information.
+1
Documentation/iio/index.rst
··· 18 18 .. toctree:: 19 19 :maxdepth: 1 20 20 21 + ad7380 21 22 ad7944 22 23 adis16475 23 24 adis16480
+1
MAINTAINERS
··· 448 448 W: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad738x 449 449 W: https://ez.analog.com/linux-software-drivers 450 450 F: Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml 451 + F: Documentation/iio/ad7380.rst 451 452 F: drivers/iio/adc/ad7380.c 452 453 453 454 AD7877 TOUCHSCREEN DRIVER