]sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/translations/zh_CN/iio/ad4000modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/zh_TW/iio/ad4000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/it_IT/iio/ad4000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ja_JP/iio/ad4000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ko_KR/iio/ad4000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/sp_SP/iio/ad4000modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h%SPDX-License-Identifier: GPL-2.0-onlyh]h%SPDX-License-Identifier: GPL-2.0-only}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh8/var/lib/git/docbuild/linux/Documentation/iio/ad4000.rsthKubhsection)}(hhh](htitle)}(h AD4000 driverh]h AD4000 driver}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(h`_h]h)}(hhh](h reference)}(hhh]hAD4000}(hhhhhNhNubah}(h]h ]h"]h$]h&]nameAD4000refurihttps://www.analog.com/AD4000uh1hhhubhtarget)}(h h]h}(h]ad4000ah ]h"]ad4000ah$]h&]refurij uh1j  referencedKhhubeh}(h]h ]h"]h$]h&]uh1hhhhK hhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4001 `_h]h)}(hj)h](h)}(hj)h]hAD4001}(hj.hhhNhNubah}(h]h ]h"]h$]h&]nameAD4001j https://www.analog.com/AD4001uh1hhj+ubj )}(h h]h}(h]ad4001ah ]h"]ad4001ah$]h&]refurij=uh1j jKhj+ubeh}(h]h ]h"]h$]h&]uh1hhhhK hj'ubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4002 `_h]h)}(hjYh](h)}(hjYh]hAD4002}(hj^hhhNhNubah}(h]h ]h"]h$]h&]nameAD4002j https://www.analog.com/AD4002uh1hhj[ubj )}(h h]h}(h]ad4002ah ]h"]ad4002ah$]h&]refurijmuh1j jKhj[ubeh}(h]h ]h"]h$]h&]uh1hhhhKhjWubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4003 `_h]h)}(hjh](h)}(hjh]hAD4003}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4003j https://www.analog.com/AD4003uh1hhjubj )}(h h]h}(h]ad4003ah ]h"]ad4003ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4004 `_h]h)}(hjh](h)}(hjh]hAD4004}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4004j https://www.analog.com/AD4004uh1hhjubj )}(h h]h}(h]ad4004ah ]h"]ad4004ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4005 `_h]h)}(hjh](h)}(hjh]hAD4005}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4005j https://www.analog.com/AD4005uh1hhjubj )}(h h]h}(h]ad4005ah ]h"]ad4005ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4006 `_h]h)}(hjh](h)}(hjh]hAD4006}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4006j https://www.analog.com/AD4006uh1hhjubj )}(h h]h}(h]ad4006ah ]h"]ad4006ah$]h&]refurij-uh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4007 `_h]h)}(hjIh](h)}(hjIh]hAD4007}(hjNhhhNhNubah}(h]h ]h"]h$]h&]nameAD4007j https://www.analog.com/AD4007uh1hhjKubj )}(h h]h}(h]ad4007ah ]h"]ad4007ah$]h&]refurij]uh1j jKhjKubeh}(h]h ]h"]h$]h&]uh1hhhhKhjGubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4008 `_h]h)}(hjyh](h)}(hjyh]hAD4008}(hj~hhhNhNubah}(h]h ]h"]h$]h&]nameAD4008j https://www.analog.com/AD4008uh1hhj{ubj )}(h h]h}(h]ad4008ah ]h"]ad4008ah$]h&]refurijuh1j jKhj{ubeh}(h]h ]h"]h$]h&]uh1hhhhKhjwubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4010 `_h]h)}(hjh](h)}(hjh]hAD4010}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4010j https://www.analog.com/AD4010uh1hhjubj )}(h h]h}(h]ad4010ah ]h"]ad4010ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4011 `_h]h)}(hjh](h)}(hjh]hAD4011}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4011j https://www.analog.com/AD4011uh1hhjubj )}(h h]h}(h]ad4011ah ]h"]ad4011ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4020 `_h]h)}(hj h](h)}(hj h]hAD4020}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameAD4020j https://www.analog.com/AD4020uh1hhj ubj )}(h h]h}(h]ad4020ah ]h"]ad4020ah$]h&]refurijuh1j jKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4021 `_h]h)}(hj9h](h)}(hj9h]hAD4021}(hj>hhhNhNubah}(h]h ]h"]h$]h&]nameAD4021j https://www.analog.com/AD4021uh1hhj;ubj )}(h h]h}(h]ad4021ah ]h"]ad4021ah$]h&]refurijMuh1j jKhj;ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj7ubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h)`AD4022 `_h]h)}(hjih](h)}(hjih]hAD4022}(hjnhhhNhNubah}(h]h ]h"]h$]h&]nameAD4022j https://www.analog.com/AD4022uh1hhjkubj )}(h h]h}(h]ad4022ah ]h"]ad4022ah$]h&]refurij}uh1j jKhjkubeh}(h]h ]h"]h$]h&]uh1hhhhKhjgubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h-`ADAQ4001 `_h]h)}(hjh](h)}(hjh]hADAQ4001}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameADAQ4001j https://www.analog.com/ADAQ4001uh1hhjubj )}(h" h]h}(h]adaq4001ah ]h"]adaq4001ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h.`ADAQ4003 `_ h]h)}(h-`ADAQ4003 `_h](h)}(hjh]hADAQ4003}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameADAQ4003j https://www.analog.com/ADAQ4003uh1hhjubj )}(h" h]h}(h]adaq4003ah ]h"]adaq4003ah$]h&]refurijuh1j jKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubeh}(h]h ]h"]h$]h&]bullet*uh1hhhhK hhhhubh)}(hhh](h)}(hWiring connectionsh]hWiring connections}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hbDevices of the AD4000 series can be connected to the SPI host controller in a few different modes.h]hbDevices of the AD4000 series can be connected to the SPI host controller in a few different modes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubh)}(hhh](h)}(hCS mode, 3-wire turbo modeh]hCS mode, 3-wire turbo mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK$ubh)}(hX/Datasheet "3-wire" mode is what most resembles standard SPI connection which, for these devices, comprises of connecting the controller CS line to device CNV pin and other SPI lines as usual. This configuration is (misleadingly) called "CS Mode, 3-Wire Turbo Mode" connection in datasheets. NOTE: The datasheet definition of 3-wire mode for the AD4000 series is NOT the same of standard spi-3wire mode. This is the only connection mode that allows configuration register access but it requires the SPI controller to support the ``SPI_MOSI_IDLE_HIGH`` feature.h](hXDatasheet “3-wire” mode is what most resembles standard SPI connection which, for these devices, comprises of connecting the controller CS line to device CNV pin and other SPI lines as usual. This configuration is (misleadingly) called “CS Mode, 3-Wire Turbo Mode” connection in datasheets. NOTE: The datasheet definition of 3-wire mode for the AD4000 series is NOT the same of standard spi-3wire mode. This is the only connection mode that allows configuration register access but it requires the SPI controller to support the }(hj0hhhNhNubhliteral)}(h``SPI_MOSI_IDLE_HIGH``h]hSPI_MOSI_IDLE_HIGH}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0ubh feature.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK&hjhhubh)}(hEOmit the ``adi,sdi-pin`` property in device tree to select this mode.h](h Omit the }(hjRhhhNhNubj9)}(h``adi,sdi-pin``h]h adi,sdi-pin}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRubh- property in device tree to select this mode.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK/hjhhubh literal_block)}(hX +-------------+ + ----------------------------------| SDO | | | | | +-------------------| CS | | v | | | +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+h]hX +-------------+ + ----------------------------------| SDO | | | | | +-------------------| CS | | v | | | +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+}hjtsbah}(h]h ]h"]h$]h&]hhuh1jrhhhK3hjhhubeh}(h]cs-mode-3-wire-turbo-modeah ]h"]cs mode, 3-wire turbo modeah$]h&]uh1hhjhhhhhK$ubh)}(hhh](h)}(h'CS mode, 3-wire, without busy indicatorh]h'CS mode, 3-wire, without busy indicator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKBubh)}(hX>Another wiring configuration supported as "3-wire" mode has the SDI pin hard-wired to digital input/output interface supply (VIO). In this setup, the controller is not required to support ``SPI_MOSI_IDLE_HIGH`` but register access is not possible. This connection mode saves one wire and works with any SPI controller.h](hAnother wiring configuration supported as “3-wire” mode has the SDI pin hard-wired to digital input/output interface supply (VIO). In this setup, the controller is not required to support }(hjhhhNhNubj9)}(h``SPI_MOSI_IDLE_HIGH``h]hSPI_MOSI_IDLE_HIGH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjubhl but register access is not possible. This connection mode saves one wire and works with any SPI controller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKDhjhhubh)}(hOSet the ``adi,sdi-pin`` device tree property to ``"high"`` to select this mode.h](hSet the }(hjhhhNhNubj9)}(h``adi,sdi-pin``h]h adi,sdi-pin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjubh device tree property to }(hjhhhNhNubj9)}(h ``"high"``h]h"high"}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjubh to select this mode.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKJhjhhubjs)}(hXF +-------------+ +--------------------| CS | v | | VIO +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+h]hXF +-------------+ +--------------------| CS | v | | VIO +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+}hjsbah}(h]h ]h"]h$]h&]hhuh1jrhhhKNhjhhubh)}(hAlternatively, a GPIO may be connected to the device CNV pin. This is similar to the previous wiring configuration but saves the use of a CS line.h]hAlternatively, a GPIO may be connected to the device CNV pin. This is similar to the previous wiring configuration but saves the use of a CS line.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjhhubjs)}(hXF +-------------+ +--------------------| GPIO | v | | VIO +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+h]hXF +-------------+ +--------------------| GPIO | v | | VIO +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+}hj sbah}(h]h ]h"]h$]h&]hhuh1jrhhhK_hjhhubeh}(h]%cs-mode-3-wire-without-busy-indicatorah ]h"]'cs mode, 3-wire, without busy indicatorah$]h&]uh1hhjhhhhhKBubh)}(hhh](h)}(h&CS mode, 4-wire without busy indicatorh]h&CS mode, 4-wire without busy indicator}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKlubh)}(hIn datasheet "4-wire" mode, the controller CS line is connected to the ADC SDI pin and a GPIO is connected to the ADC CNV pin. This connection mode may better suit scenarios where multiple ADCs can share one CNV trigger.h]hIn datasheet “4-wire” mode, the controller CS line is connected to the ADC SDI pin and a GPIO is connected to the ADC CNV pin. This connection mode may better suit scenarios where multiple ADCs can share one CNV trigger.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKnhjhhubh)}(h4Set ``adi,sdi-pin`` to ``"cs"`` to select this mode.h](hSet }(hj>hhhNhNubj9)}(h``adi,sdi-pin``h]h adi,sdi-pin}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>ubh to }(hj>hhhNhNubj9)}(h``"cs"``h]h"cs"}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>ubh to select this mode.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKrhjhhubjs)}(hX +-------------+ + ----------------------------------| CS | | | | | +-------------------| GPIO | | v | | | +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+h]hX +-------------+ + ----------------------------------| CS | | | | | +-------------------| GPIO | | v | | | +--------------------+ | HOST | | | CNV | | | +--->| SDI AD4000 SDO |-------->| SDI | | SCK | | | +--------------------+ | | ^ | | +--------------------| SCLK | +-------------+}hjpsbah}(h]h ]h"]h$]h&]hhuh1jrhhhKwhjhhubeh}(h]%cs-mode-4-wire-without-busy-indicatorah ]h"]&cs mode, 4-wire without busy indicatorah$]h&]uh1hhjhhhhhKlubeh}(h]wiring-connectionsah ]h"]wiring connectionsah$]h&]uh1hhhhhhhhKubeh}(h]supported-devicesah ]h"]supported devicesah$]h&]uh1hhhhhhhhK ubeh}(h] ad4000-driverah ]h"] ad4000 driverah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjjjGjDjwjtjjjjjjj7j4jgjdjjjjjjj'j$jWjTjjjjjjjjjjjjjju nametypes}(jjjjGjwjjjj7jgjjjj'jWjjjjjjjuh}(jhjhjj jDj>jtjnjjjjjjj4j.jdj^jjjjjjj$jjTjNjj~jjjjjjjjjjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.