Skip to content

Commit 992522a

Browse files
dlechnunojsa
authored andcommitted
docs: iio: ad7944: add documentation for chain mode
Add documentation for chain mode support that was recently added to the AD7944 ADC driver. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20240425-iio-ad7944-chain-mode-v1-2-9d9220ff21e1@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 1df47ef commit 992522a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

Documentation/iio/ad7944.rst

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Supported features
2424
SPI wiring modes
2525
----------------
2626

27-
The driver currently supports two of the many possible SPI wiring configurations.
27+
The driver currently supports three of the many possible SPI wiring configurations.
2828

2929
CS mode, 3-wire, without busy indicator
3030
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -68,6 +68,27 @@ CS mode, 4-wire, without busy indicator
6868
To select this mode in the device tree, omit the ``adi,spi-mode`` property and
6969
provide the ``cnv-gpios`` property.
7070

71+
Chain mode, without busy indicator
72+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73+
74+
.. code-block::
75+
76+
+-------------+
77+
+-------------------------+--------------------| CS |
78+
v v | |
79+
+--------------------+ +--------------------+ | HOST |
80+
| CNV | | CNV | | |
81+
+--->| SDI AD7944 SDO |--->| SDI AD7944 SDO |-------->| SDI |
82+
| | SCK | | SCK | | |
83+
GND +--------------------+ +--------------------+ | |
84+
^ ^ | |
85+
+-------------------------+--------------------| SCLK |
86+
+-------------+
87+
88+
To select this mode in the device tree, set the ``adi,spi-mode`` property to
89+
``"chain"``, add the ``spi-cs-high`` flag, add the ``#daisy-chained-devices``
90+
property, and omit the ``cnv-gpios`` property.
91+
7192
Reference voltage
7293
-----------------
7394

@@ -86,7 +107,6 @@ Unimplemented features
86107

87108
- ``BUSY`` indication
88109
- ``TURBO`` mode
89-
- Daisy chain mode
90110

91111

92112
Device attributes
@@ -108,6 +128,9 @@ AD7944 and AD7985 are pseudo-differential ADCs and have the following attributes
108128
| ``in_voltage0_scale`` | Scale factor to convert raw value to mV. |
109129
+---------------------------------------+--------------------------------------------------------------+
110130

131+
In "chain" mode, additional chips will appear as additional voltage input
132+
channels, e.g. ``in_voltage1_raw``.
133+
111134
Fully-differential ADCs
112135
-----------------------
113136

@@ -121,6 +144,9 @@ AD7986 is a fully-differential ADC and has the following attributes:
121144
| ``in_voltage0-voltage1_scale`` | Scale factor to convert raw value to mV. |
122145
+---------------------------------------+--------------------------------------------------------------+
123146

147+
In "chain" mode, additional chips will appear as additional voltage input
148+
channels, e.g. ``in_voltage2-voltage3_raw``.
149+
124150

125151
Device buffers
126152
==============

0 commit comments

Comments
 (0)