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/driver-api/dpllmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/zh_TW/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/it_IT/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ja_JP/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ko_KR/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/pt_BR/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/sp_SP/driver-api/dpllmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh=/var/lib/git/docbuild/linux/Documentation/driver-api/dpll.rsthKubhsection)}(hhh](htitle)}(hThe Linux kernel dpll subsystemh]hThe Linux kernel dpll subsystem}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDPLLh]hDPLL}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hPLL - Phase Locked Loop is an electronic circuit which syntonizes clock signal of a device with an external clock signal. Effectively enabling device to run on the same clock signal beat as provided on a PLL input.h]hPLL - Phase Locked Loop is an electronic circuit which syntonizes clock signal of a device with an external clock signal. Effectively enabling device to run on the same clock signal beat as provided on a PLL input.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hDPLL - Digital Phase Locked Loop is an integrated circuit which in addition to plain PLL behavior incorporates a digital phase detector and may have digital divider in the loop. As a result, the frequency on DPLL's input and output may be configurable.h]hDPLL - Digital Phase Locked Loop is an integrated circuit which in addition to plain PLL behavior incorporates a digital phase detector and may have digital divider in the loop. As a result, the frequency on DPLL’s input and output may be configurable.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]dpllah ]h"]dpllah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Subsystemh]h Subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXIThe main purpose of dpll subsystem is to provide general interface to configure devices that use any kind of Digital PLL and could use different sources of input signal to synchronize to, as well as different types of outputs. The main interface is NETLINK_GENERIC based protocol with an event monitoring multicast group defined.h]hXIThe main purpose of dpll subsystem is to provide general interface to configure devices that use any kind of Digital PLL and could use different sources of input signal to synchronize to, as well as different types of outputs. The main interface is NETLINK_GENERIC based protocol with an event monitoring multicast group defined.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] subsystemah ]h"] subsystemah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Device objecth]h Device object}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hhhhhKubh)}(hXSingle dpll device object means single Digital PLL circuit and bunch of connected pins. It reports the supported modes of operation and current status to the user in response to the `do` request of netlink command ``DPLL_CMD_DEVICE_GET`` and list of dplls registered in the subsystem with `dump` netlink request of the same command. Changing the configuration of dpll device is done with `do` request of netlink ``DPLL_CMD_DEVICE_SET`` command. A device handle is ``DPLL_A_ID``, it shall be provided to get or set configuration of particular device in the system. It can be obtained with a ``DPLL_CMD_DEVICE_GET`` `dump` request or a ``DPLL_CMD_DEVICE_ID_GET`` `do` request, where the one must provide attributes that result in single device match.h](hSingle dpll device object means single Digital PLL circuit and bunch of connected pins. It reports the supported modes of operation and current status to the user in response to the }(hjLhhhNhNubhtitle_reference)}(h`do`h]hdo}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jThjLubh request of netlink command }(hjLhhhNhNubhliteral)}(h``DPLL_CMD_DEVICE_GET``h]hDPLL_CMD_DEVICE_GET}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjLubh4 and list of dplls registered in the subsystem with }(hjLhhhNhNubjU)}(h`dump`h]hdump}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jThjLubh] netlink request of the same command. Changing the configuration of dpll device is done with }(hjLhhhNhNubjU)}(h`do`h]hdo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThjLubh request of netlink }(hjLhhhNhNubji)}(h``DPLL_CMD_DEVICE_SET``h]hDPLL_CMD_DEVICE_SET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjLubh command. A device handle is }(hjLhhhNhNubji)}(h ``DPLL_A_ID``h]h DPLL_A_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjLubhq, it shall be provided to get or set configuration of particular device in the system. It can be obtained with a }(hjLhhhNhNubji)}(h``DPLL_CMD_DEVICE_GET``h]hDPLL_CMD_DEVICE_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjLubh }(hjLhhhNhNubjU)}(h`dump`h]hdump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThjLubh request or a }(hjLhhhNhNubji)}(h``DPLL_CMD_DEVICE_ID_GET``h]hDPLL_CMD_DEVICE_ID_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjLubh }hjLsbjU)}(h`do`h]hdo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThjLubhS request, where the one must provide attributes that result in single device match.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hj;hhubeh}(h] device-objectah ]h"] device objectah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Pin objecth]h Pin object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubh)}(hXyA pin is amorphic object which represents either input or output, it could be internal component of the device, as well as externally connected. The number of pins per dpll vary, but usually multiple pins shall be provided for a single dpll device. Pin's properties, capabilities and status is provided to the user in response to `do` request of netlink ``DPLL_CMD_PIN_GET`` command. It is also possible to list all the pins that were registered in the system with `dump` request of ``DPLL_CMD_PIN_GET`` command. Configuration of a pin can be changed by `do` request of netlink ``DPLL_CMD_PIN_SET`` command. Pin handle is a ``DPLL_A_PIN_ID``, it shall be provided to get or set configuration of particular pin in the system. It can be obtained with ``DPLL_CMD_PIN_GET`` `dump` request or ``DPLL_CMD_PIN_ID_GET`` `do` request, where user provides attributes that result in single pin match.h](hXLA pin is amorphic object which represents either input or output, it could be internal component of the device, as well as externally connected. The number of pins per dpll vary, but usually multiple pins shall be provided for a single dpll device. Pin’s properties, capabilities and status is provided to the user in response to }(hj+hhhNhNubjU)}(h`do`h]hdo}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj+ubh request of netlink }(hj+hhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubh[ command. It is also possible to list all the pins that were registered in the system with }(hj+hhhNhNubjU)}(h`dump`h]hdump}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jThj+ubh request of }(hj+hhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubh3 command. Configuration of a pin can be changed by }(hj+hhhNhNubjU)}(h`do`h]hdo}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj+ubh request of netlink }(hj+hhhNhNubji)}(h``DPLL_CMD_PIN_SET``h]hDPLL_CMD_PIN_SET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubh command. Pin handle is a }(hj+hhhNhNubji)}(h``DPLL_A_PIN_ID``h]h DPLL_A_PIN_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubhl, it shall be provided to get or set configuration of particular pin in the system. It can be obtained with }(hj+hhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubh }(hj+hhhNhNubjU)}(h`dump`h]hdump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThj+ubh request or }(hj+hhhNhNubji)}(h``DPLL_CMD_PIN_ID_GET``h]hDPLL_CMD_PIN_ID_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubh }hj+sbjU)}(h`do`h]hdo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThj+ubhI request, where user provides attributes that result in single pin match.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK1hjhhubeh}(h] pin-objectah ]h"] pin objectah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(h Pin selectionh]h Pin selection}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKBubh)}(hIn general, selected pin (the one which signal is driving the dpll device) can be obtained from ``DPLL_A_PIN_STATE`` attribute, and only one pin shall be in ``DPLL_PIN_STATE_CONNECTED`` state for any dpll device.h](h`In general, selected pin (the one which signal is driving the dpll device) can be obtained from }(hjhhhNhNubji)}(h``DPLL_A_PIN_STATE``h]hDPLL_A_PIN_STATE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh) attribute, and only one pin shall be in }(hjhhhNhNubji)}(h``DPLL_PIN_STATE_CONNECTED``h]hDPLL_PIN_STATE_CONNECTED}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh state for any dpll device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKDhjhhubh)}(hX<Pin selection can be done either manually or automatically, depending on hardware capabilities and active dpll device work mode (``DPLL_A_MODE`` attribute). The consequence is that there are differences for each mode in terms of available pin states, as well as for the states the user can request for a dpll device.h](hPin selection can be done either manually or automatically, depending on hardware capabilities and active dpll device work mode (}(hjJhhhNhNubji)}(h``DPLL_A_MODE``h]h DPLL_A_MODE}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjJubh attribute). The consequence is that there are differences for each mode in terms of available pin states, as well as for the states the user can request for a dpll device.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKIhjhhubh)}(hbIn manual mode (``DPLL_MODE_MANUAL``) the user can request or receive one of following pin states:h](hIn manual mode (}(hjjhhhNhNubji)}(h``DPLL_MODE_MANUAL``h]hDPLL_MODE_MANUAL}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjjubh>) the user can request or receive one of following pin states:}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKOhjhhubh bullet_list)}(hhh](h list_item)}(hC``DPLL_PIN_STATE_CONNECTED`` - the pin is used to drive dpll deviceh]h)}(hjh](ji)}(h``DPLL_PIN_STATE_CONNECTED``h]hDPLL_PIN_STATE_CONNECTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh' - the pin is used to drive dpll device}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKRhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hK``DPLL_PIN_STATE_DISCONNECTED`` - the pin is not used to drive dpll device h]h)}(hJ``DPLL_PIN_STATE_DISCONNECTED`` - the pin is not used to drive dpll deviceh](ji)}(h``DPLL_PIN_STATE_DISCONNECTED``h]hDPLL_PIN_STATE_DISCONNECTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh+ - the pin is not used to drive dpll device}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKShjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKRhjhhubh)}(hhIn automatic mode (``DPLL_MODE_AUTOMATIC``) the user can request or receive one of following pin states:h](hIn automatic mode (}(hjhhhNhNubji)}(h``DPLL_MODE_AUTOMATIC``h]hDPLL_MODE_AUTOMATIC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh>) the user can request or receive one of following pin states:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKVhjhhubj)}(hhh](j)}(hl``DPLL_PIN_STATE_SELECTABLE`` - the pin shall be considered as valid input for automatic selection algorithmh]h)}(hl``DPLL_PIN_STATE_SELECTABLE`` - the pin shall be considered as valid input for automatic selection algorithmh](ji)}(h``DPLL_PIN_STATE_SELECTABLE``h]hDPLL_PIN_STATE_SELECTABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubhO - the pin shall be considered as valid input for automatic selection algorithm}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKYhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hu``DPLL_PIN_STATE_DISCONNECTED`` - the pin shall be not considered as a valid input for automatic selection algorithm h]h)}(ht``DPLL_PIN_STATE_DISCONNECTED`` - the pin shall be not considered as a valid input for automatic selection algorithmh](ji)}(h``DPLL_PIN_STATE_DISCONNECTED``h]hDPLL_PIN_STATE_DISCONNECTED}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj1ubhU - the pin shall be not considered as a valid input for automatic selection algorithm}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK[hj-ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhKYhjhhubh)}(hIn automatic mode (``DPLL_MODE_AUTOMATIC``) the user can only receive pin state ``DPLL_PIN_STATE_CONNECTED`` once automatic selection algorithm locks a dpll device with one of the inputs.h](hIn automatic mode (}(hjYhhhNhNubji)}(h``DPLL_MODE_AUTOMATIC``h]hDPLL_MODE_AUTOMATIC}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjYubh&) the user can only receive pin state }(hjYhhhNhNubji)}(h``DPLL_PIN_STATE_CONNECTED``h]hDPLL_PIN_STATE_CONNECTED}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjYubhO once automatic selection algorithm locks a dpll device with one of the inputs.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK^hjhhubeh}(h] pin-selectionah ]h"] pin selectionah$]h&]uh1hhhhhhhhKBubh)}(hhh](h)}(h Shared pinsh]h Shared pins}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKcubh)}(hoA single pin object can be attached to multiple dpll devices. Then there are two groups of configuration knobs:h]hoA single pin object can be attached to multiple dpll devices. Then there are two groups of configuration knobs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjhhubhenumerated_list)}(hhh](j)}(hpSet on a pin - the configuration affects all dpll devices pin is registered to (i.e., ``DPLL_A_PIN_FREQUENCY``),h]h)}(hpSet on a pin - the configuration affects all dpll devices pin is registered to (i.e., ``DPLL_A_PIN_FREQUENCY``),h](hVSet on a pin - the configuration affects all dpll devices pin is registered to (i.e., }(hjhhhNhNubji)}(h``DPLL_A_PIN_FREQUENCY``h]hDPLL_A_PIN_FREQUENCY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh),}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hSet on a pin-dpll tuple - the configuration affects only selected dpll device (i.e., ``DPLL_A_PIN_PRIO``, ``DPLL_A_PIN_STATE``, ``DPLL_A_PIN_DIRECTION``). h]h)}(hSet on a pin-dpll tuple - the configuration affects only selected dpll device (i.e., ``DPLL_A_PIN_PRIO``, ``DPLL_A_PIN_STATE``, ``DPLL_A_PIN_DIRECTION``).h](hUSet on a pin-dpll tuple - the configuration affects only selected dpll device (i.e., }(hjhhhNhNubji)}(h``DPLL_A_PIN_PRIO``h]hDPLL_A_PIN_PRIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh, }(hjhhhNhNubji)}(h``DPLL_A_PIN_STATE``h]hDPLL_A_PIN_STATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh, }(hjhhhNhNubji)}(h``DPLL_A_PIN_DIRECTION``h]hDPLL_A_PIN_DIRECTION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKjhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1jhjhhhhhKhubeh}(h] shared-pinsah ]h"] shared pinsah$]h&]uh1hhhhhhhhKcubh)}(hhh](h)}(h MUX-type pinsh]h MUX-type pins}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhhhhhKoubh)}(hXCA pin can be MUX-type, it aggregates child pins and serves as a pin multiplexer. One or more pins are registered with MUX-type instead of being directly registered to a dpll device. Pins registered with a MUX-type pin provide user with additional nested attribute ``DPLL_A_PIN_PARENT_PIN`` for each parent they were registered with. If a pin was registered with multiple parent pins, they behave like a multiple output multiplexer. In this case output of a ``DPLL_CMD_PIN_GET`` would contain multiple pin-parent nested attributes with current state related to each parent, like::h](hXA pin can be MUX-type, it aggregates child pins and serves as a pin multiplexer. One or more pins are registered with MUX-type instead of being directly registered to a dpll device. Pins registered with a MUX-type pin provide user with additional nested attribute }(hjShhhNhNubji)}(h``DPLL_A_PIN_PARENT_PIN``h]hDPLL_A_PIN_PARENT_PIN}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjSubh for each parent they were registered with. If a pin was registered with multiple parent pins, they behave like a multiple output multiplexer. In this case output of a }(hjShhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjSubhe would contain multiple pin-parent nested attributes with current state related to each parent, like:}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKqhjBhhubh literal_block)}(h'pin': [{{ 'clock-id': 282574471561216, 'module-name': 'ice', 'capabilities': 4, 'id': 13, 'parent-pin': [ {'parent-id': 2, 'state': 'connected'}, {'parent-id': 3, 'state': 'disconnected'} ], 'type': 'synce-eth-port' }}]h]h'pin': [{{ 'clock-id': 282574471561216, 'module-name': 'ice', 'capabilities': 4, 'id': 13, 'parent-pin': [ {'parent-id': 2, 'state': 'connected'}, {'parent-id': 3, 'state': 'disconnected'} ], 'type': 'synce-eth-port' }}]}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhK|hjBhhubh)}(hXOnly one child pin can provide its signal to the parent MUX-type pin at a time, the selection is done by requesting change of a child pin state on desired parent, with the use of ``DPLL_A_PIN_PARENT`` nested attribute. Example of netlink `set state on parent pin` message format:h](hOnly one child pin can provide its signal to the parent MUX-type pin at a time, the selection is done by requesting change of a child pin state on desired parent, with the use of }(hjhhhNhNubji)}(h``DPLL_A_PIN_PARENT``h]hDPLL_A_PIN_PARENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh& nested attribute. Example of netlink }(hjhhhNhNubjU)}(h`set state on parent pin`h]hset state on parent pin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jThjubh message format:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjBhhubh block_quote)}(hX========================== ============================================= ``DPLL_A_PIN_ID`` child pin id ``DPLL_A_PIN_PARENT_PIN`` nested attribute for requesting configuration related to parent pin ``DPLL_A_PIN_PARENT_ID`` parent pin id ``DPLL_A_PIN_STATE`` requested pin state on parent ========================== ============================================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK-uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h``DPLL_A_PIN_ID``h]ji)}(hjh]h DPLL_A_PIN_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h child pin idh]h child pin id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_PIN``h]ji)}(hj>h]hDPLL_A_PIN_PARENT_PIN}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj<ubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hCnested attribute for requesting configuration related to parent pinh]hCnested attribute for requesting configuration related to parent pin}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjYubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_ID``h]ji)}(hj~h]hDPLL_A_PIN_PARENT_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj|ubah}(h]h ]h"]h$]h&]uh1hhhhKhjyubah}(h]h ]h"]h$]h&]uh1jhjvubj)}(hhh]h)}(h parent pin idh]h parent pin id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_STATE``h]ji)}(hjh]hDPLL_A_PIN_STATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hrequested pin state on parenth]hrequested pin state on parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjBhhubeh}(h] mux-type-pinsah ]h"] mux-type pinsah$]h&]uh1hhhhhhhhKoubh)}(hhh](h)}(h Pin priorityh]h Pin priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXSome devices might offer a capability of automatic pin selection mode (enum value ``DPLL_MODE_AUTOMATIC`` of ``DPLL_A_MODE`` attribute). Usually, automatic selection is performed on the hardware level, which means only pins directly connected to the dpll can be used for automatic input pin selection. In automatic selection mode, the user cannot manually select a input pin for the device, instead the user shall provide all directly connected pins with a priority ``DPLL_A_PIN_PRIO``, the device would pick a highest priority valid signal and use it to control the DPLL device. Example of netlink `set priority on parent pin` message format:h](hRSome devices might offer a capability of automatic pin selection mode (enum value }(hj(hhhNhNubji)}(h``DPLL_MODE_AUTOMATIC``h]hDPLL_MODE_AUTOMATIC}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj(ubh of }(hj(hhhNhNubji)}(h``DPLL_A_MODE``h]h DPLL_A_MODE}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj(ubhXV attribute). Usually, automatic selection is performed on the hardware level, which means only pins directly connected to the dpll can be used for automatic input pin selection. In automatic selection mode, the user cannot manually select a input pin for the device, instead the user shall provide all directly connected pins with a priority }(hj(hhhNhNubji)}(h``DPLL_A_PIN_PRIO``h]hDPLL_A_PIN_PRIO}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj(ubhr, the device would pick a highest priority valid signal and use it to control the DPLL device. Example of netlink }(hj(hhhNhNubjU)}(h`set priority on parent pin`h]hset priority on parent pin}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jThj(ubh message format:}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hX============================ ============================================= ``DPLL_A_PIN_ID`` configured pin id ``DPLL_A_PIN_PARENT_DEVICE`` nested attribute for requesting configuration related to parent dpll device ``DPLL_A_PIN_PARENT_ID`` parent dpll device id ``DPLL_A_PIN_PRIO`` requested pin prio on parent dpll ============================ ============================================= h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK-uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_ID``h]ji)}(hjh]h DPLL_A_PIN_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hconfigured pin idh]hconfigured pin id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_DEVICE``h]ji)}(hjh]hDPLL_A_PIN_PARENT_DEVICE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hKnested attribute for requesting configuration related to parent dpll deviceh]hKnested attribute for requesting configuration related to parent dpll device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_ID``h]ji)}(hj'h]hDPLL_A_PIN_PARENT_ID}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj%ubah}(h]h ]h"]h$]h&]uh1hhhhKhj"ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hparent dpll device idh]hparent dpll device id}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjBubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PRIO``h]ji)}(hjgh]hDPLL_A_PIN_PRIO}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjeubah}(h]h ]h"]h$]h&]uh1hhhhKhjbubah}(h]h ]h"]h$]h&]uh1jhj_ubj)}(hhh]h)}(h!requested pin prio on parent dpllh]h!requested pin prio on parent dpll}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hChild pin of MUX-type pin is not capable of automatic input pin selection, in order to configure active input of a MUX-type pin, the user needs to request desired pin state of the child pin on the parent pin, as described in the ``MUX-type pins`` chapter.h](hChild pin of MUX-type pin is not capable of automatic input pin selection, in order to configure active input of a MUX-type pin, the user needs to request desired pin state of the child pin on the parent pin, as described in the }(hjhhhNhNubji)}(h``MUX-type pins``h]h MUX-type pins}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh chapter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] pin-priorityah ]h"] pin priorityah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h'Phase offset measurement and adjustmenth]h'Phase offset measurement and adjustment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXDevice may provide ability to measure a phase difference between signals on a pin and its parent dpll device. If pin-dpll phase offset measurement is supported, it shall be provided with ``DPLL_A_PIN_PHASE_OFFSET`` attribute for each parent dpll device. The reported phase offset may be computed as the average of prior values and the current measurement, using the following formula:h](hDevice may provide ability to measure a phase difference between signals on a pin and its parent dpll device. If pin-dpll phase offset measurement is supported, it shall be provided with }(hjhhhNhNubji)}(h``DPLL_A_PIN_PHASE_OFFSET``h]hDPLL_A_PIN_PHASE_OFFSET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh attribute for each parent dpll device. The reported phase offset may be computed as the average of prior values and the current measurement, using the following formula:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh math_block)}(hFcurr\_avg = prev\_avg * \frac{2^N-1}{2^N} + new\_val * \frac{1}{2^N} h]hFcurr\_avg = prev\_avg * \frac{2^N-1}{2^N} + new\_val * \frac{1}{2^N} }hj sbah}(h]h ]h"]h$]h&]docnamedriver-api/dpllnumberNlabelNnowraphhuh1j hhhKhjhhubh)}(hXvwhere `curr_avg` is the current reported phase offset, `prev_avg` is the previously reported value, `new_val` is the current measurement, and `N` is the averaging factor. Configured averaging factor value is provided with ``DPLL_A_PHASE_OFFSET_AVG_FACTOR`` attribute of a device and value change can be requested with the same attribute with ``DPLL_CMD_DEVICE_SET`` command.h](hwhere }(hj& hhhNhNubjU)}(h `curr_avg`h]hcurr_avg}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj& ubh' is the current reported phase offset, }(hj& hhhNhNubjU)}(h `prev_avg`h]hprev_avg}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj& ubh# is the previously reported value, }(hj& hhhNhNubjU)}(h `new_val`h]hnew_val}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj& ubh! is the current measurement, and }(hj& hhhNhNubjU)}(h`N`h]hN}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jThj& ubhM is the averaging factor. Configured averaging factor value is provided with }(hj& hhhNhNubji)}(h"``DPLL_A_PHASE_OFFSET_AVG_FACTOR``h]hDPLL_A_PHASE_OFFSET_AVG_FACTOR}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj& ubhV attribute of a device and value change can be requested with the same attribute with }(hj& hhhNhNubji)}(h``DPLL_CMD_DEVICE_SET``h]hDPLL_CMD_DEVICE_SET}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj& ubh command.}(hj& hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hX================================== ====================================== ``DPLL_A_PHASE_OFFSET_AVG_FACTOR`` attr configured value of phase offset averaging factor ================================== ====================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK"uh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK&uh1jhj ubj)}(hhh]j)}(hhh](j)}(hhh]h)}(h"``DPLL_A_PHASE_OFFSET_AVG_FACTOR``h]ji)}(hj h]hDPLL_A_PHASE_OFFSET_AVG_FACTOR}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h6attr configured value of phase offset averaging factorh]h6attr configured value of phase offset averaging factor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hXDevice may also provide ability to adjust a signal phase on a pin. If pin phase adjustment is supported, minimal and maximal values and granularity that pin handle shall be provided to the user on ``DPLL_CMD_PIN_GET`` respond with ``DPLL_A_PIN_PHASE_ADJUST_MIN``, ``DPLL_A_PIN_PHASE_ADJUST_MAX`` and ``DPLL_A_PIN_PHASE_ADJUST_GRAN`` attributes. Configured phase adjust value is provided with ``DPLL_A_PIN_PHASE_ADJUST`` attribute of a pin, and value change can be requested with the same attribute with ``DPLL_CMD_PIN_SET`` command.h](hDevice may also provide ability to adjust a signal phase on a pin. If pin phase adjustment is supported, minimal and maximal values and granularity that pin handle shall be provided to the user on }(hj hhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh respond with }(hj hhhNhNubji)}(h``DPLL_A_PIN_PHASE_ADJUST_MIN``h]hDPLL_A_PIN_PHASE_ADJUST_MIN}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh, }(hj hhhNhNubji)}(h``DPLL_A_PIN_PHASE_ADJUST_MAX``h]hDPLL_A_PIN_PHASE_ADJUST_MAX}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh and }(hj hhhNhNubji)}(h ``DPLL_A_PIN_PHASE_ADJUST_GRAN``h]hDPLL_A_PIN_PHASE_ADJUST_GRAN}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh< attributes. Configured phase adjust value is provided with }(hj hhhNhNubji)}(h``DPLL_A_PIN_PHASE_ADJUST``h]hDPLL_A_PIN_PHASE_ADJUST}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubhT attribute of a pin, and value change can be requested with the same attribute with }(hj hhhNhNubji)}(h``DPLL_CMD_PIN_SET``h]hDPLL_CMD_PIN_SET}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh command.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hX================================ ========================================== ``DPLL_A_PIN_ID`` configured pin id ``DPLL_A_PIN_PHASE_ADJUST_GRAN`` attr granularity of phase adjustment value ``DPLL_A_PIN_PHASE_ADJUST_MIN`` attr minimum value of phase adjustment ``DPLL_A_PIN_PHASE_ADJUST_MAX`` attr maximum value of phase adjustment ``DPLL_A_PIN_PHASE_ADJUST`` attr configured value of phase adjustment on parent dpll device ``DPLL_A_PIN_PARENT_DEVICE`` nested attribute for requesting configuration on given parent dpll device ``DPLL_A_PIN_PARENT_ID`` parent dpll device id ``DPLL_A_PIN_PHASE_OFFSET`` attr measured phase difference between a pin and parent dpll device ================================ ========================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK*uh1jhj ubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_ID``h]ji)}(hj h]h DPLL_A_PIN_ID}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hconfigured pin idh]hconfigured pin id}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h ``DPLL_A_PIN_PHASE_ADJUST_GRAN``h]ji)}(hj h]hDPLL_A_PIN_PHASE_ADJUST_GRAN}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h*attr granularity of phase adjustment valueh]h*attr granularity of phase adjustment value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PHASE_ADJUST_MIN``h]ji)}(hj= h]hDPLL_A_PIN_PHASE_ADJUST_MIN}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj; ubah}(h]h ]h"]h$]h&]uh1hhhhKhj8 ubah}(h]h ]h"]h$]h&]uh1jhj5 ubj)}(hhh]h)}(h&attr minimum value of phase adjustmenth]h&attr minimum value of phase adjustment}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjX ubah}(h]h ]h"]h$]h&]uh1jhj5 ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PHASE_ADJUST_MAX``h]ji)}(hj} h]hDPLL_A_PIN_PHASE_ADJUST_MAX}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj{ ubah}(h]h ]h"]h$]h&]uh1hhhhKhjx ubah}(h]h ]h"]h$]h&]uh1jhju ubj)}(hhh]h)}(h&attr maximum value of phase adjustmenth]h&attr maximum value of phase adjustment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhju ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PHASE_ADJUST``h]ji)}(hj h]hDPLL_A_PIN_PHASE_ADJUST}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h?attr configured value of phase adjustment on parent dpll deviceh]h?attr configured value of phase adjustment on parent dpll device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_DEVICE``h]ji)}(hj h]hDPLL_A_PIN_PARENT_DEVICE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hInested attribute for requesting configuration on given parent dpll deviceh]hInested attribute for requesting configuration on given parent dpll device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PARENT_ID``h]ji)}(hj= h]hDPLL_A_PIN_PARENT_ID}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj; ubah}(h]h ]h"]h$]h&]uh1hhhhKhj8 ubah}(h]h ]h"]h$]h&]uh1jhj5 ubj)}(hhh]h)}(hparent dpll device idh]hparent dpll device id}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjX ubah}(h]h ]h"]h$]h&]uh1jhj5 ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_PHASE_OFFSET``h]ji)}(hj} h]hDPLL_A_PIN_PHASE_OFFSET}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj{ ubah}(h]h ]h"]h$]h&]uh1hhhhKhjx ubah}(h]h ]h"]h$]h&]uh1jhju ubj)}(hhh]h)}(hCattr measured phase difference between a pin and parent dpll deviceh]hCattr measured phase difference between a pin and parent dpll device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhju ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hX#All phase related values are provided in pico seconds, which represents time difference between signals phase. The negative value means that phase of signal on pin is earlier in time than dpll's signal. Positive value means that phase of signal on pin is later in time than signal of a dpll.h]hX%All phase related values are provided in pico seconds, which represents time difference between signals phase. The negative value means that phase of signal on pin is earlier in time than dpll’s signal. Positive value means that phase of signal on pin is later in time than signal of a dpll.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hPhase adjust (also min and max) values are integers, but measured phase offset values are fractional with 3-digit decimal places and shell be divided with ``DPLL_PIN_PHASE_OFFSET_DIVIDER`` to get integer part and modulo divided to get fractional part.h](hPhase adjust (also min and max) values are integers, but measured phase offset values are fractional with 3-digit decimal places and shell be divided with }(hj hhhNhNubji)}(h!``DPLL_PIN_PHASE_OFFSET_DIVIDER``h]hDPLL_PIN_PHASE_OFFSET_DIVIDER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh? to get integer part and modulo divided to get fractional part.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]'phase-offset-measurement-and-adjustmentah ]h"]'phase offset measurement and adjustmentah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hPhase offset monitorh]hPhase offset monitor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hXPhase offset measurement is typically performed against the current active source. However, some DPLL (Digital Phase-Locked Loop) devices may offer the capability to monitor phase offsets across all available inputs. The attribute and current feature state shall be included in the response message of the ``DPLL_CMD_DEVICE_GET`` command for supported DPLL devices. In such cases, users can also control the feature using the ``DPLL_CMD_DEVICE_SET`` command by setting the ``enum dpll_feature_state`` values for the attribute. Once enabled the phase offset measurements for the input shall be returned in the ``DPLL_A_PIN_PHASE_OFFSET`` attribute.h](hX2Phase offset measurement is typically performed against the current active source. However, some DPLL (Digital Phase-Locked Loop) devices may offer the capability to monitor phase offsets across all available inputs. The attribute and current feature state shall be included in the response message of the }(hj hhhNhNubji)}(h``DPLL_CMD_DEVICE_GET``h]hDPLL_CMD_DEVICE_GET}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubha command for supported DPLL devices. In such cases, users can also control the feature using the }(hj hhhNhNubji)}(h``DPLL_CMD_DEVICE_SET``h]hDPLL_CMD_DEVICE_SET}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh command by setting the }(hj hhhNhNubji)}(h``enum dpll_feature_state``h]henum dpll_feature_state}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubhm values for the attribute. Once enabled the phase offset measurements for the input shall be returned in the }(hj hhhNhNubji)}(h``DPLL_A_PIN_PHASE_OFFSET``h]hDPLL_A_PIN_PHASE_OFFSET}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh attribute.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj)}(h=============================== ======================== ``DPLL_A_PHASE_OFFSET_MONITOR`` attr state of a feature =============================== ======================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjr ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjr ubj)}(hhh]j)}(hhh](j)}(hhh]h)}(h``DPLL_A_PHASE_OFFSET_MONITOR``h]ji)}(hj h]hDPLL_A_PHASE_OFFSET_MONITOR}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hattr state of a featureh]hattr state of a feature}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhjr ubeh}(h]h ]h"]h$]h&]colsKuh1jhjo ubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]phase-offset-monitorah ]h"]phase offset monitorah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hFrequency monitorh]hFrequency monitor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hXSome DPLL devices may offer the capability to measure the actual frequency of all available input pins. The attribute and current feature state shall be included in the response message of the ``DPLL_CMD_DEVICE_GET`` command for supported DPLL devices. In such cases, users can also control the feature using the ``DPLL_CMD_DEVICE_SET`` command by setting the ``enum dpll_feature_state`` values for the attribute. Once enabled the measured input frequency for each input pin shall be returned in the ``DPLL_A_PIN_MEASURED_FREQUENCY`` attribute. The value is in millihertz (mHz), using ``DPLL_PIN_MEASURED_FREQUENCY_DIVIDER`` as the divider.h](hSome DPLL devices may offer the capability to measure the actual frequency of all available input pins. The attribute and current feature state shall be included in the response message of the }(hj hhhNhNubji)}(h``DPLL_CMD_DEVICE_GET``h]hDPLL_CMD_DEVICE_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubha command for supported DPLL devices. In such cases, users can also control the feature using the }(hj hhhNhNubji)}(h``DPLL_CMD_DEVICE_SET``h]hDPLL_CMD_DEVICE_SET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh command by setting the }(hj hhhNhNubji)}(h``enum dpll_feature_state``h]henum dpll_feature_state}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubhq values for the attribute. Once enabled the measured input frequency for each input pin shall be returned in the }(hj hhhNhNubji)}(h!``DPLL_A_PIN_MEASURED_FREQUENCY``h]hDPLL_A_PIN_MEASURED_FREQUENCY}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh4 attribute. The value is in millihertz (mHz), using }(hj hhhNhNubji)}(h'``DPLL_PIN_MEASURED_FREQUENCY_DIVIDER``h]h#DPLL_PIN_MEASURED_FREQUENCY_DIVIDER}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubh as the divider.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(h=============================== ======================== ``DPLL_A_FREQUENCY_MONITOR`` attr state of a feature =============================== ======================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjmubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjmubj)}(hhh]j)}(hhh](j)}(hhh]h)}(h``DPLL_A_FREQUENCY_MONITOR``h]ji)}(hjh]hDPLL_A_FREQUENCY_MONITOR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hattr state of a featureh]hattr state of a feature}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]colsKuh1jhjjubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhhhM hj hhubeh}(h]frequency-monitorah ]h"]frequency monitorah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Embedded SYNCh]h Embedded SYNC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hXDevice may provide ability to use Embedded SYNC feature. It allows to embed additional SYNC signal into the base frequency of a pin - a one special pulse of base frequency signal every time SYNC signal pulse happens. The user can configure the frequency of Embedded SYNC. The Embedded SYNC capability is always related to a given base frequency and HW capabilities. The user is provided a range of Embedded SYNC frequencies supported, depending on current base frequency configured for the pin.h]hXDevice may provide ability to use Embedded SYNC feature. It allows to embed additional SYNC signal into the base frequency of a pin - a one special pulse of base frequency signal every time SYNC signal pulse happens. The user can configure the frequency of Embedded SYNC. The Embedded SYNC capability is always related to a given base frequency and HW capabilities. The user is provided a range of Embedded SYNC frequencies supported, depending on current base frequency configured for the pin.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hX>========================================= ================================= ``DPLL_A_PIN_ESYNC_FREQUENCY`` current Embedded SYNC frequency ``DPLL_A_PIN_ESYNC_FREQUENCY_SUPPORTED`` nest available Embedded SYNC frequency ranges ``DPLL_A_PIN_FREQUENCY_MIN`` attr minimum value of frequency ``DPLL_A_PIN_FREQUENCY_MAX`` attr maximum value of frequency ``DPLL_A_PIN_ESYNC_PULSE`` pulse type of Embedded SYNC ========================================= ================================= h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK)uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK!uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_ESYNC_FREQUENCY``h]ji)}(hj0h]hDPLL_A_PIN_ESYNC_FREQUENCY}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj.ubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]h)}(hcurrent Embedded SYNC frequencyh]hcurrent Embedded SYNC frequency}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh](j)}(hhh]h)}(h(``DPLL_A_PIN_ESYNC_FREQUENCY_SUPPORTED``h]ji)}(hjph]h$DPLL_A_PIN_ESYNC_FREQUENCY_SUPPORTED}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjnubah}(h]h ]h"]h$]h&]uh1hhhhMhjkubah}(h]h ]h"]h$]h&]uh1jhjhubj)}(hhh]h)}(h-nest available Embedded SYNC frequency rangesh]h-nest available Embedded SYNC frequency ranges}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_FREQUENCY_MIN``h]ji)}(hjh]hDPLL_A_PIN_FREQUENCY_MIN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hattr minimum value of frequencyh]hattr minimum value of frequency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_FREQUENCY_MAX``h]ji)}(hjh]hDPLL_A_PIN_FREQUENCY_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hattr maximum value of frequencyh]hattr maximum value of frequency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_ESYNC_PULSE``h]ji)}(hj0h]hDPLL_A_PIN_ESYNC_PULSE}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj.ubah}(h]h ]h"]h$]h&]uh1hhhhM!hj+ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]h)}(hpulse type of Embedded SYNCh]hpulse type of Embedded SYNC}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjKubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h] embedded-syncah ]h"] embedded syncah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hReference SYNCh]hReference SYNC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM%ubh)}(hXThe device may support the Reference SYNC feature, which allows the combination of two inputs into a input pair. In this configuration, clock signals from both inputs are used to synchronize the DPLL device. The higher frequency signal is utilized for the loop bandwidth of the DPLL, while the lower frequency signal is used to syntonize the output signal of the DPLL device. This feature enables the provision of a high-quality loop bandwidth signal from an external source.h]hXThe device may support the Reference SYNC feature, which allows the combination of two inputs into a input pair. In this configuration, clock signals from both inputs are used to synchronize the DPLL device. The higher frequency signal is utilized for the loop bandwidth of the DPLL, while the lower frequency signal is used to syntonize the output signal of the DPLL device. This feature enables the provision of a high-quality loop bandwidth signal from an external source.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hjhhubh)}(hXTA capable input provides a list of inputs that can be bound with to create Reference SYNC. To control this feature, the user must request a desired state for a target pin: use ``DPLL_PIN_STATE_CONNECTED`` to enable or ``DPLL_PIN_STATE_DISCONNECTED`` to disable the feature. An input pin can be bound to only one other pin at any given time.h](hA capable input provides a list of inputs that can be bound with to create Reference SYNC. To control this feature, the user must request a desired state for a target pin: use }(hjhhhNhNubji)}(h``DPLL_PIN_STATE_CONNECTED``h]hDPLL_PIN_STATE_CONNECTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh to enable or }(hjhhhNhNubji)}(h``DPLL_PIN_STATE_DISCONNECTED``h]hDPLL_PIN_STATE_DISCONNECTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubh[ to disable the feature. An input pin can be bound to only one other pin at any given time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM/hjhhubj)}(hX============================== ========================================== ``DPLL_A_PIN_REFERENCE_SYNC`` nested attribute for providing info or requesting configuration of the Reference SYNC feature ``DPLL_A_PIN_ID`` target pin id for Reference SYNC feature ``DPLL_A_PIN_STATE`` state of Reference SYNC connection ============================== ========================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK*uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_REFERENCE_SYNC``h]ji)}(hjh]hDPLL_A_PIN_REFERENCE_SYNC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h]nested attribute for providing info or requesting configuration of the Reference SYNC featureh]h]nested attribute for providing info or requesting configuration of the Reference SYNC feature}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_ID``h]ji)}(hjCh]h DPLL_A_PIN_ID}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjAubah}(h]h ]h"]h$]h&]uh1hhhhM9hj>ubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(h(target pin id for Reference SYNC featureh]h(target pin id for Reference SYNC feature}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hj^ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_PIN_STATE``h]ji)}(hjh]hDPLL_A_PIN_STATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhM:hj~ubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(hhh]h)}(h"state of Reference SYNC connectionh]h"state of Reference SYNC connection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhM5hjhhubeh}(h]reference-syncah ]h"]reference syncah$]h&]uh1hhhhhhhhM%ubh)}(hhh](h)}(hConfiguration commands grouph]hConfiguration commands group}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM>ubh)}(hXAConfiguration commands are used to get information about registered dpll devices (and pins), as well as set configuration of device or pins. As dpll devices must be abstracted and reflect real hardware, there is no way to add new dpll device via netlink from user space and each device should be registered by its driver.h]hXAConfiguration commands are used to get information about registered dpll devices (and pins), as well as set configuration of device or pins. As dpll devices must be abstracted and reflect real hardware, there is no way to add new dpll device via netlink from user space and each device should be registered by its driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubh)}(hAll netlink commands require ``GENL_ADMIN_PERM``. This is to prevent any spamming/DoS from unauthorized userspace applications.h](hAll netlink commands require }(hjhhhNhNubji)}(h``GENL_ADMIN_PERM``h]hGENL_ADMIN_PERM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubhO. This is to prevent any spamming/DoS from unauthorized userspace applications.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMFhjhhubeh}(h]configuration-commands-groupah ]h"]configuration commands groupah$]h&]uh1hhhhhhhhM>ubh)}(hhh](h)}(h1List of netlink commands with possible attributesh]h1List of netlink commands with possible attributes}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hhhhhMJubh)}(hConstants identifying command types for dpll device uses a ``DPLL_CMD_`` prefix and suffix according to command purpose. The dpll device related attributes use a ``DPLL_A_`` prefix and suffix according to attribute purpose.h](h;Constants identifying command types for dpll device uses a }(hj4hhhNhNubji)}(h ``DPLL_CMD_``h]h DPLL_CMD_}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj4ubhZ prefix and suffix according to command purpose. The dpll device related attributes use a }(hj4hhhNhNubji)}(h ``DPLL_A_``h]hDPLL_A_}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj4ubh2 prefix and suffix according to attribute purpose.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMLhj#hhubj)}(hX==================================== ================================= ``DPLL_CMD_DEVICE_ID_GET`` command to get device ID ``DPLL_A_MODULE_NAME`` attr module name of registerer ``DPLL_A_CLOCK_ID`` attr Unique Clock Identifier (EUI-64), as defined by the IEEE 1588 standard ``DPLL_A_TYPE`` attr type of dpll device ==================================== ================================= ==================================== ================================= ``DPLL_CMD_DEVICE_GET`` command to get device info or dump list of available devices ``DPLL_A_ID`` attr unique dpll device ID ``DPLL_A_MODULE_NAME`` attr module name of registerer ``DPLL_A_CLOCK_ID`` attr Unique Clock Identifier (EUI-64), as defined by the IEEE 1588 standard ``DPLL_A_MODE`` attr selection mode ``DPLL_A_MODE_SUPPORTED`` attr available selection modes ``DPLL_A_LOCK_STATUS`` attr dpll device lock status ``DPLL_A_TEMP`` attr device temperature info ``DPLL_A_TYPE`` attr type of dpll device ==================================== ================================= ==================================== ================================= ``DPLL_CMD_DEVICE_SET`` command to set dpll device config ``DPLL_A_ID`` attr internal dpll device index ``DPLL_A_MODE`` attr selection mode to configure ==================================== ================================= h](j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK$uh1jhjmubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK!uh1jhjmubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_DEVICE_ID_GET``h]ji)}(hjh]hDPLL_CMD_DEVICE_ID_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hcommand to get device IDh]hcommand to get device ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_MODULE_NAME``h]ji)}(hjh]hDPLL_A_MODULE_NAME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhMShjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hattr module name of registererh]hattr module name of registerer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_CLOCK_ID``h]ji)}(hjh]hDPLL_A_CLOCK_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj ubah}(h]h ]h"]h$]h&]uh1hhhhMThj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hKattr Unique Clock Identifier (EUI-64), as defined by the IEEE 1588 standardh]hKattr Unique Clock Identifier (EUI-64), as defined by the IEEE 1588 standard}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``DPLL_A_TYPE``h]ji)}(hjOh]h DPLL_A_TYPE}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjMubah}(h]h ]h"]h$]h&]uh1hhhhMWhjJubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(hhh]h)}(hattr type of dpll deviceh]hattr type of dpll device}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjjubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]colsKuh1jhjjubah}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK$uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK!uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_DEVICE_GET``h]ji)}(hjh]hDPLL_CMD_DEVICE_GET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjubah}(h]h ]h"]h$]h&]uh1hhhhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h%hKubh desc_name)}(h dpll_modeh]h desc_sig_name)}(hj%%h]h dpll_mode}(hjX%hhhNhNubah}(h]h ]nah"]h$]h&]uh1jV%hjR%ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jP%hj)%hhhj>%hKubeh}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1j'%sphinx_line_type declaratorhj#%hhhj>%hKubah}(h]j%ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j!%hj>%hKhj%hhubh desc_content)}(hhh]h)}(hworking modes a dpll can support, differentiates if and how dpll selects one of its inputs to syntonize with it, valid values for DPLL_A_MODE attributeh]hworking modes a dpll can support, differentiates if and how dpll selects one of its inputs to syntonize with it, valid values for DPLL_A_MODE attribute}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1j%hj%hhhj>%hKubeh}(h]h ](cenumeh"]h$]h&]domainj%objtypej%desctypej%noindex noindexentrynocontentsentryuh1j%hhhj$hNhNubh container)}(h**Constants** ``DPLL_MODE_MANUAL`` input can be only selected by sending a request to dpll ``DPLL_MODE_AUTOMATIC`` highest prio input pin auto selected by dpllh](h)}(h **Constants**h]hstrong)}(hj%h]h Constants}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj%ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj%ubhdefinition_list)}(hhh](hdefinition_list_item)}(hM``DPLL_MODE_MANUAL`` input can be only selected by sending a request to dpll h](hterm)}(h``DPLL_MODE_MANUAL``h]ji)}(hj%h]hDPLL_MODE_MANUAL}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj%ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj%ubh definition)}(hhh]h)}(h7input can be only selected by sending a request to dpllh]h7input can be only selected by sending a request to dpll}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1j%hj%ubeh}(h]h ]h"]h$]h&]uh1j%hj%hKhj%ubj%)}(hD``DPLL_MODE_AUTOMATIC`` highest prio input pin auto selected by dpllh](j%)}(h``DPLL_MODE_AUTOMATIC``h]ji)}(hj&h]hDPLL_MODE_AUTOMATIC}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj&ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj&ubj%)}(hhh]h)}(h,highest prio input pin auto selected by dpllh]h,highest prio input pin auto selected by dpll}(hj-&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj*&ubah}(h]h ]h"]h$]h&]uh1j%hj&ubeh}(h]h ]h"]h$]h&]uh1j%hj)&hKhj%ubeh}(h]h ]h"]h$]h&]uh1j%hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_lock_status (C enum)c.dpll_lock_statushNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_lock_statush]j(%)}(henum dpll_lock_statush](j.%)}(hj1%h]henum}(hjn&hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hjj&hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKubj@%)}(h h]h }(hj|&hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hjj&hhhj{&hKubjQ%)}(hdpll_lock_statush]jW%)}(hjh&h]hdpll_lock_status}(hj&hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj&ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hjj&hhhj{&hKubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hjf&hhhj{&hKubah}(h]ja&ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj{&hKhjc&hhubj%)}(hhh]h)}(h^provides information of dpll device lock status, valid values for DPLL_A_LOCK_STATUS attributeh]h^provides information of dpll device lock status, valid values for DPLL_A_LOCK_STATUS attribute}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj&hhubah}(h]h ]h"]h$]h&]uh1j%hjc&hhhj{&hKubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j&j%j&j%j%j%uh1j%hhhj$hNhNubj%)}(hX**Constants** ``DPLL_LOCK_STATUS_UNLOCKED`` dpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED) ``DPLL_LOCK_STATUS_LOCKED`` dpll is locked to a valid signal, but no holdover available ``DPLL_LOCK_STATUS_LOCKED_HO_ACQ`` dpll is locked and holdover acquired ``DPLL_LOCK_STATUS_HOLDOVER`` dpll is in holdover state - lost a valid lock or was forced by disconnecting all the pins (latter possible only when dpll lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll's lock-state shall remain DPLL_LOCK_STATUS_UNLOCKED)h](h)}(h **Constants**h]j%)}(hj&h]h Constants}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK"hj&ubj%)}(hhh](j%)}(h``DPLL_LOCK_STATUS_UNLOCKED`` dpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED) h](j%)}(h``DPLL_LOCK_STATUS_UNLOCKED``h]ji)}(hj&h]hDPLL_LOCK_STATUS_UNLOCKED}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj&ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK&hj&ubj%)}(hhh]h)}(hcdpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED)h]hcdpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED)}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK%hj'ubah}(h]h ]h"]h$]h&]uh1j%hj&ubeh}(h]h ]h"]h$]h&]uh1j%hj'hK&hj&ubj%)}(hX``DPLL_LOCK_STATUS_LOCKED`` dpll is locked to a valid signal, but no holdover available h](j%)}(h``DPLL_LOCK_STATUS_LOCKED``h]ji)}(hj+'h]hDPLL_LOCK_STATUS_LOCKED}(hj-'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj)'ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK*hj%'ubj%)}(hhh]h)}(h;dpll is locked to a valid signal, but no holdover availableh]h;dpll is locked to a valid signal, but no holdover available}(hjD'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK)hjA'ubah}(h]h ]h"]h$]h&]uh1j%hj%'ubeh}(h]h ]h"]h$]h&]uh1j%hj@'hK*hj&ubj%)}(hH``DPLL_LOCK_STATUS_LOCKED_HO_ACQ`` dpll is locked and holdover acquired h](j%)}(h"``DPLL_LOCK_STATUS_LOCKED_HO_ACQ``h]ji)}(hje'h]hDPLL_LOCK_STATUS_LOCKED_HO_ACQ}(hjg'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjc'ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK-hj_'ubj%)}(hhh]h)}(h$dpll is locked and holdover acquiredh]h$dpll is locked and holdover acquired}(hj~'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz'hK-hj{'ubah}(h]h ]h"]h$]h&]uh1j%hj_'ubeh}(h]h ]h"]h$]h&]uh1j%hjz'hK-hj&ubj%)}(hXG``DPLL_LOCK_STATUS_HOLDOVER`` dpll is in holdover state - lost a valid lock or was forced by disconnecting all the pins (latter possible only when dpll lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll's lock-state shall remain DPLL_LOCK_STATUS_UNLOCKED)h](j%)}(h``DPLL_LOCK_STATUS_HOLDOVER``h]ji)}(hj'h]hDPLL_LOCK_STATUS_HOLDOVER}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj'ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK3hj'ubj%)}(hhh]h)}(hX)dpll is in holdover state - lost a valid lock or was forced by disconnecting all the pins (latter possible only when dpll lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll's lock-state shall remain DPLL_LOCK_STATUS_UNLOCKED)h]hX+dpll is in holdover state - lost a valid lock or was forced by disconnecting all the pins (latter possible only when dpll lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll’s lock-state shall remain DPLL_LOCK_STATUS_UNLOCKED)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK0hj'ubah}(h]h ]h"]h$]h&]uh1j%hj'ubeh}(h]h ]h"]h$]h&]uh1j%hj'hK3hj&ubeh}(h]h ]h"]h$]h&]uh1j%hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_lock_status_error (C enum)c.dpll_lock_status_errorhNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_lock_status_errorh]j(%)}(henum dpll_lock_status_errorh](j.%)}(hj1%h]henum}(hj'hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hj'hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK9ubj@%)}(h h]h }(hj(hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hj'hhhj(hK9ubjQ%)}(hdpll_lock_status_errorh]jW%)}(hj'h]hdpll_lock_status_error}(hj(hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj(ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hj'hhhj(hK9ubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hj'hhhj(hK9ubah}(h]j'ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj(hK9hj'hhubj%)}(hhh]h)}(hif previous status change was done due to a failure, this provides information of dpll device lock status error. Valid values for DPLL_A_LOCK_STATUS_ERROR attributeh]hif previous status change was done due to a failure, this provides information of dpll device lock status error. Valid values for DPLL_A_LOCK_STATUS_ERROR attribute}(hj:(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK7hj7(hhubah}(h]h ]h"]h$]h&]uh1j%hj'hhhj(hK9ubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%jR(j%jR(j%j%j%uh1j%hhhj$hNhNubj%)}(hX0**Constants** ``DPLL_LOCK_STATUS_ERROR_NONE`` dpll device lock status was changed without any error ``DPLL_LOCK_STATUS_ERROR_UNDEFINED`` dpll device lock status was changed due to undefined error. Driver fills this value up in case it is not able to obtain suitable exact error type. ``DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN`` dpll device lock status was changed because of associated media got down. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT. ``DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH`` the FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media got too high. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.h](h)}(h **Constants**h]j%)}(hj\(h]h Constants}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZ(ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK;hjV(ubj%)}(hhh](j%)}(hV``DPLL_LOCK_STATUS_ERROR_NONE`` dpll device lock status was changed without any error h](j%)}(h``DPLL_LOCK_STATUS_ERROR_NONE``h]ji)}(hj{(h]hDPLL_LOCK_STATUS_ERROR_NONE}(hj}(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjy(ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK?hju(ubj%)}(hhh]h)}(h5dpll device lock status was changed without any errorh]h5dpll device lock status was changed without any error}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK>hj(ubah}(h]h ]h"]h$]h&]uh1j%hju(ubeh}(h]h ]h"]h$]h&]uh1j%hj(hK?hjr(ubj%)}(h``DPLL_LOCK_STATUS_ERROR_UNDEFINED`` dpll device lock status was changed due to undefined error. Driver fills this value up in case it is not able to obtain suitable exact error type. h](j%)}(h$``DPLL_LOCK_STATUS_ERROR_UNDEFINED``h]ji)}(hj(h]h DPLL_LOCK_STATUS_ERROR_UNDEFINED}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj(ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKDhj(ubj%)}(hhh]h)}(hdpll device lock status was changed due to undefined error. Driver fills this value up in case it is not able to obtain suitable exact error type.h]hdpll device lock status was changed due to undefined error. Driver fills this value up in case it is not able to obtain suitable exact error type.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKBhj(ubah}(h]h ]h"]h$]h&]uh1j%hj(ubeh}(h]h ]h"]h$]h&]uh1j%hj(hKDhjr(ubj%)}(h``DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN`` dpll device lock status was changed because of associated media got down. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT. h](j%)}(h%``DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN``h]ji)}(hj(h]h!DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj(ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKJhj(ubj%)}(hhh]h)}(hdpll device lock status was changed because of associated media got down. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.h]hdpll device lock status was changed because of associated media got down. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKGhj)ubah}(h]h ]h"]h$]h&]uh1j%hj(ubeh}(h]h ]h"]h$]h&]uh1j%hj)hKJhjr(ubj%)}(hX``DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH`` the FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media got too high. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.h](j%)}(h?``DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH``h]ji)}(hj))h]h;DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH}(hj+)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj')ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKOhj#)ubj%)}(hhh]h)}(hthe FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media got too high. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.h]hthe FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media got too high. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.}(hjB)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKMhj?)ubah}(h]h ]h"]h$]h&]uh1j%hj#)ubeh}(h]h ]h"]h$]h&]uh1j%hj>)hKOhjr(ubeh}(h]h ]h"]h$]h&]uh1j%hjV(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_type (C enum) c.dpll_typehNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(h dpll_typeh]j(%)}(henum dpll_typeh](j.%)}(hj1%h]henum}(hj)hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hj)hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKUubj@%)}(h h]h }(hj)hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hj)hhhj)hKUubjQ%)}(h dpll_typeh]jW%)}(hj})h]h dpll_type}(hj)hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj)ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hj)hhhj)hKUubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hj{)hhhj)hKUubah}(h]jv)ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj)hKUhjx)hhubj%)}(hhh]h)}(h4type of dpll, valid values for DPLL_A_TYPE attributeh]h4type of dpll, valid values for DPLL_A_TYPE attribute}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKmhj)hhubah}(h]h ]h"]h$]h&]uh1j%hjx)hhhj)hKUubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j)j%j)j%j%j%uh1j%hhhj$hNhNubj%)}(h**Constants** ``DPLL_TYPE_PPS`` dpll produces Pulse-Per-Second signal ``DPLL_TYPE_EEC`` dpll drives the Ethernet Equipment Clockh](h)}(h **Constants**h]j%)}(hj)h]h Constants}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKqhj)ubj%)}(hhh](j%)}(h8``DPLL_TYPE_PPS`` dpll produces Pulse-Per-Second signal h](j%)}(h``DPLL_TYPE_PPS``h]ji)}(hj*h]h DPLL_TYPE_PPS}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj*ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKthj*ubj%)}(hhh]h)}(h%dpll produces Pulse-Per-Second signalh]h%dpll produces Pulse-Per-Second signal}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKthj*ubah}(h]h ]h"]h$]h&]uh1j%hj*ubeh}(h]h ]h"]h$]h&]uh1j%hj*hKthj)ubj%)}(h:``DPLL_TYPE_EEC`` dpll drives the Ethernet Equipment Clockh](j%)}(h``DPLL_TYPE_EEC``h]ji)}(hj?*h]h DPLL_TYPE_EEC}(hjA*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj=*ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKvhj9*ubj%)}(hhh]h)}(h(dpll drives the Ethernet Equipment Clockh]h(dpll drives the Ethernet Equipment Clock}(hjX*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKwhjU*ubah}(h]h ]h"]h$]h&]uh1j%hj9*ubeh}(h]h ]h"]h$]h&]uh1j%hjT*hKvhj)ubeh}(h]h ]h"]h$]h&]uh1j%hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_pin_type (C enum)c.dpll_pin_typehNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(h dpll_pin_typeh]j(%)}(henum dpll_pin_typeh](j.%)}(hj1%h]henum}(hj*hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hj*hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK|ubj@%)}(h h]h }(hj*hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hj*hhhj*hK|ubjQ%)}(h dpll_pin_typeh]jW%)}(hj*h]h dpll_pin_type}(hj*hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj*ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hj*hhhj*hK|ubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hj*hhhj*hK|ubah}(h]j*ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj*hK|hj*hhubj%)}(hhh]h)}(hKdefines possible types of a pin, valid values for DPLL_A_PIN_TYPE attributeh]hKdefines possible types of a pin, valid values for DPLL_A_PIN_TYPE attribute}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhK{hj*hhubah}(h]h ]h"]h$]h&]uh1j%hj*hhhj*hK|ubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j*j%j*j%j%j%uh1j%hhhj$hNhNubj%)}(hX0**Constants** ``DPLL_PIN_TYPE_MUX`` aggregates another layer of selectable pins ``DPLL_PIN_TYPE_EXT`` external input ``DPLL_PIN_TYPE_SYNCE_ETH_PORT`` ethernet port PHY's recovered clock ``DPLL_PIN_TYPE_INT_OSCILLATOR`` device internal oscillator ``DPLL_PIN_TYPE_GNSS`` GNSS recovered clockh](h)}(h **Constants**h]j%)}(hj*h]h Constants}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj*ubj%)}(hhh](j%)}(hB``DPLL_PIN_TYPE_MUX`` aggregates another layer of selectable pins h](j%)}(h``DPLL_PIN_TYPE_MUX``h]ji)}(hj+h]hDPLL_PIN_TYPE_MUX}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj+ubj%)}(hhh]h)}(h+aggregates another layer of selectable pinsh]h+aggregates another layer of selectable pins}(hj5+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1+hKhj2+ubah}(h]h ]h"]h$]h&]uh1j%hj+ubeh}(h]h ]h"]h$]h&]uh1j%hj1+hKhj+ubj%)}(h%``DPLL_PIN_TYPE_EXT`` external input h](j%)}(h``DPLL_PIN_TYPE_EXT``h]ji)}(hjU+h]hDPLL_PIN_TYPE_EXT}(hjW+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjS+ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhjO+ubj%)}(hhh]h)}(hexternal inputh]hexternal input}(hjn+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj+hKhjk+ubah}(h]h ]h"]h$]h&]uh1j%hjO+ubeh}(h]h ]h"]h$]h&]uh1j%hjj+hKhj+ubj%)}(hE``DPLL_PIN_TYPE_SYNCE_ETH_PORT`` ethernet port PHY's recovered clock h](j%)}(h ``DPLL_PIN_TYPE_SYNCE_ETH_PORT``h]ji)}(hj+h]hDPLL_PIN_TYPE_SYNCE_ETH_PORT}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj+ubj%)}(hhh]h)}(h#ethernet port PHY's recovered clockh]h%ethernet port PHY’s recovered clock}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1j%hj+ubeh}(h]h ]h"]h$]h&]uh1j%hj+hKhj+ubj%)}(h<``DPLL_PIN_TYPE_INT_OSCILLATOR`` device internal oscillator h](j%)}(h ``DPLL_PIN_TYPE_INT_OSCILLATOR``h]ji)}(hj+h]hDPLL_PIN_TYPE_INT_OSCILLATOR}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj+ubj%)}(hhh]h)}(hdevice internal oscillatorh]hdevice internal oscillator}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1j%hj+ubeh}(h]h ]h"]h$]h&]uh1j%hj+hKhj+ubj%)}(h+``DPLL_PIN_TYPE_GNSS`` GNSS recovered clockh](j%)}(h``DPLL_PIN_TYPE_GNSS``h]ji)}(hj,h]hDPLL_PIN_TYPE_GNSS}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj+ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj+ubj%)}(hhh]h)}(hGNSS recovered clockh]hGNSS recovered clock}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj,ubah}(h]h ]h"]h$]h&]uh1j%hj+ubeh}(h]h ]h"]h$]h&]uh1j%hj,hKhj+ubeh}(h]h ]h"]h$]h&]uh1j%hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_pin_direction (C enum)c.dpll_pin_directionhNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_pin_directionh]j(%)}(henum dpll_pin_directionh](j.%)}(hj1%h]henum}(hjZ,hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hjV,hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKubj@%)}(h h]h }(hjh,hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hjV,hhhjg,hKubjQ%)}(hdpll_pin_directionh]jW%)}(hjT,h]hdpll_pin_direction}(hjz,hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hjv,ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hjV,hhhjg,hKubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hjR,hhhjg,hKubah}(h]jM,ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hjg,hKhjO,hhubj%)}(hhh]h)}(hTdefines possible direction of a pin, valid values for DPLL_A_PIN_DIRECTION attributeh]hTdefines possible direction of a pin, valid values for DPLL_A_PIN_DIRECTION attribute}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj,hhubah}(h]h ]h"]h$]h&]uh1j%hjO,hhhjg,hKubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j,j%j,j%j%j%uh1j%hhhj$hNhNubj%)}(h**Constants** ``DPLL_PIN_DIRECTION_INPUT`` pin used as a input of a signal ``DPLL_PIN_DIRECTION_OUTPUT`` pin used to output the signalh](h)}(h **Constants**h]j%)}(hj,h]h Constants}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj,ubj%)}(hhh](j%)}(h=``DPLL_PIN_DIRECTION_INPUT`` pin used as a input of a signal h](j%)}(h``DPLL_PIN_DIRECTION_INPUT``h]ji)}(hj,h]hDPLL_PIN_DIRECTION_INPUT}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj,ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj,ubj%)}(hhh]h)}(hpin used as a input of a signalh]hpin used as a input of a signal}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1j%hj,ubeh}(h]h ]h"]h$]h&]uh1j%hj,hKhj,ubj%)}(h;``DPLL_PIN_DIRECTION_OUTPUT`` pin used to output the signalh](j%)}(h``DPLL_PIN_DIRECTION_OUTPUT``h]ji)}(hj-h]hDPLL_PIN_DIRECTION_OUTPUT}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj-ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj-ubj%)}(hhh]h)}(hpin used to output the signalh]hpin used to output the signal}(hj/-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj,-ubah}(h]h ]h"]h$]h&]uh1j%hj-ubeh}(h]h ]h"]h$]h&]uh1j%hj+-hKhj,ubeh}(h]h ]h"]h$]h&]uh1j%hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_pin_state (C enum)c.dpll_pin_statehNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_pin_stateh]j(%)}(henum dpll_pin_stateh](j.%)}(hj1%h]henum}(hjp-hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hjl-hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKubj@%)}(h h]h }(hj~-hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hjl-hhhj}-hKubjQ%)}(hdpll_pin_stateh]jW%)}(hjj-h]hdpll_pin_state}(hj-hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj-ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hjl-hhhj}-hKubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hjh-hhhj}-hKubah}(h]jc-ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj}-hKhje-hhubj%)}(hhh]h)}(hMdefines possible states of a pin, valid values for DPLL_A_PIN_STATE attributeh]hMdefines possible states of a pin, valid values for DPLL_A_PIN_STATE attribute}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj-hhubah}(h]h ]h"]h$]h&]uh1j%hje-hhhj}-hKubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j-j%j-j%j%j%uh1j%hhhj$hNhNubj%)}(hX**Constants** ``DPLL_PIN_STATE_CONNECTED`` pin connected, active input of phase locked loop ``DPLL_PIN_STATE_DISCONNECTED`` pin disconnected, not considered as a valid input ``DPLL_PIN_STATE_SELECTABLE`` pin enabled for automatic input selectionh](h)}(h **Constants**h]j%)}(hj-h]h Constants}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj-ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj-ubj%)}(hhh](j%)}(hN``DPLL_PIN_STATE_CONNECTED`` pin connected, active input of phase locked loop h](j%)}(h``DPLL_PIN_STATE_CONNECTED``h]ji)}(hj-h]hDPLL_PIN_STATE_CONNECTED}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj-ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj-ubj%)}(hhh]h)}(h0pin connected, active input of phase locked looph]h0pin connected, active input of phase locked loop}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj .ubah}(h]h ]h"]h$]h&]uh1j%hj-ubeh}(h]h ]h"]h$]h&]uh1j%hj.hKhj-ubj%)}(hR``DPLL_PIN_STATE_DISCONNECTED`` pin disconnected, not considered as a valid input h](j%)}(h``DPLL_PIN_STATE_DISCONNECTED``h]ji)}(hj,.h]hDPLL_PIN_STATE_DISCONNECTED}(hj..hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj*.ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj&.ubj%)}(hhh]h)}(h1pin disconnected, not considered as a valid inputh]h1pin disconnected, not considered as a valid input}(hjE.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhjB.ubah}(h]h ]h"]h$]h&]uh1j%hj&.ubeh}(h]h ]h"]h$]h&]uh1j%hjA.hKhj-ubj%)}(hG``DPLL_PIN_STATE_SELECTABLE`` pin enabled for automatic input selectionh](j%)}(h``DPLL_PIN_STATE_SELECTABLE``h]ji)}(hjf.h]hDPLL_PIN_STATE_SELECTABLE}(hjh.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjd.ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj`.ubj%)}(hhh]h)}(h)pin enabled for automatic input selectionh]h)pin enabled for automatic input selection}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj|.ubah}(h]h ]h"]h$]h&]uh1j%hj`.ubeh}(h]h ]h"]h$]h&]uh1j%hj{.hKhj-ubeh}(h]h ]h"]h$]h&]uh1j%hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_pin_capabilities (C enum)c.dpll_pin_capabilitieshNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_pin_capabilitiesh]j(%)}(henum dpll_pin_capabilitiesh](j.%)}(hj1%h]henum}(hj.hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hj.hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKubj@%)}(h h]h }(hj.hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hj.hhhj.hKubjQ%)}(hdpll_pin_capabilitiesh]jW%)}(hj.h]hdpll_pin_capabilities}(hj.hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj.ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hj.hhhj.hKubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hj.hhhj.hKubah}(h]j.ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj.hKhj.hhubj%)}(hhh]h)}(hXdefines possible capabilities of a pin, valid flags on DPLL_A_PIN_CAPABILITIES attributeh]hXdefines possible capabilities of a pin, valid flags on DPLL_A_PIN_CAPABILITIES attribute}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1j%hj.hhhj.hKubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%j/j%j/j%j%j%uh1j%hhhj$hNhNubj%)}(h**Constants** ``DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE`` pin direction can be changed ``DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE`` pin priority can be changed ``DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE`` pin state can be changedh](h)}(h **Constants**h]j%)}(hj$/h]h Constants}(hj&/hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj"/ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj/ubj%)}(hhh](j%)}(hL``DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE`` pin direction can be changed h](j%)}(h.``DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE``h]ji)}(hjC/h]h*DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE}(hjE/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjA/ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj=/ubj%)}(hhh]h)}(hpin direction can be changedh]hpin direction can be changed}(hj\/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX/hKhjY/ubah}(h]h ]h"]h$]h&]uh1j%hj=/ubeh}(h]h ]h"]h$]h&]uh1j%hjX/hKhj:/ubj%)}(hJ``DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE`` pin priority can be changed h](j%)}(h-``DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE``h]ji)}(hj|/h]h)DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE}(hj~/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjz/ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhjv/ubj%)}(hhh]h)}(hpin priority can be changedh]hpin priority can be changed}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj/ubah}(h]h ]h"]h$]h&]uh1j%hjv/ubeh}(h]h ]h"]h$]h&]uh1j%hj/hKhj:/ubj%)}(hC``DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE`` pin state can be changedh](j%)}(h*``DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE``h]ji)}(hj/h]h&DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj/ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj/ubj%)}(hhh]h)}(hpin state can be changedh]hpin state can be changed}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj/ubah}(h]h ]h"]h$]h&]uh1j%hj/ubeh}(h]h ]h"]h$]h&]uh1j%hj/hKhj:/ubeh}(h]h ]h"]h$]h&]uh1j%hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubj %)}(hhh]h}(h]h ]h"]h$]h&]entries](j%dpll_feature_state (C enum)c.dpll_feature_statehNtauh1j %hj$hhhNhNubj%)}(hhh](j"%)}(hdpll_feature_stateh]j(%)}(henum dpll_feature_stateh](j.%)}(hj1%h]henum}(hj0hhhNhNubah}(h]h ]j:%ah"]h$]h&]uh1j-%hj 0hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKubj@%)}(h h]h }(hj0hhhNhNubah}(h]h ]jL%ah"]h$]h&]uh1j?%hj 0hhhj0hKubjQ%)}(hdpll_feature_stateh]jW%)}(hj 0h]hdpll_feature_state}(hj/0hhhNhNubah}(h]h ]jb%ah"]h$]h&]uh1jV%hj+0ubah}(h]h ](ji%jj%eh"]h$]h&]hhuh1jP%hj 0hhhj0hKubeh}(h]h ]h"]h$]h&]hhjt%uh1j'%ju%jv%hj0hhhj0hKubah}(h]j0ah ](jz%j{%eh"]h$]h&]j%j%)j%huh1j!%hj0hKhj0hhubj%)}(hhh]h)}(hAAllow control (enable/disable) and status checking over features.h]hAAllow control (enable/disable) and status checking over features.}(hjQ0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhjN0hhubah}(h]h ]h"]h$]h&]uh1j%hj0hhhj0hKubeh}(h]h ](j%enumeh"]h$]h&]j%j%j%ji0j%ji0j%j%j%uh1j%hhhj$hNhNubj%)}(h**Constants** ``DPLL_FEATURE_STATE_DISABLE`` feature shall be disabled ``DPLL_FEATURE_STATE_ENABLE`` feature shall be enabledh](h)}(h **Constants**h]j%)}(hjs0h]h Constants}(hju0hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjq0ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhjm0ubj%)}(hhh](j%)}(h9``DPLL_FEATURE_STATE_DISABLE`` feature shall be disabled h](j%)}(h``DPLL_FEATURE_STATE_DISABLE``h]ji)}(hj0h]hDPLL_FEATURE_STATE_DISABLE}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj0ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj0ubj%)}(hhh]h)}(hfeature shall be disabledh]hfeature shall be disabled}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j%hj0ubeh}(h]h ]h"]h$]h&]uh1j%hj0hKhj0ubj%)}(h6``DPLL_FEATURE_STATE_ENABLE`` feature shall be enabledh](j%)}(h``DPLL_FEATURE_STATE_ENABLE``h]ji)}(hj0h]hDPLL_FEATURE_STATE_ENABLE}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj0ubah}(h]h ]h"]h$]h&]uh1j%hZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj0ubj%)}(hhh]h)}(hfeature shall be enabledh]hfeature shall be enabled}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/dpll:494: ./include/uapi/linux/dpll.hhKhj0ubah}(h]h ]h"]h$]h&]uh1j%hj0ubeh}(h]h ]h"]h$]h&]uh1j%hj0hKhj0ubeh}(h]h ]h"]h$]h&]uh1j%hjm0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j%hj$hhhNhNubeh}(h]configuration-pre-defined-enumsah ]h"]configuration pre-defined enumsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h Notificationsh]h Notifications}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMubh)}(hdpll device can provide notifications regarding status changes of the device, i.e. lock status changes, input/output changes or other alarms. There is one multicast group that is used to notify user-space apps via netlink socket: ``DPLL_MCGRP_MONITOR``h](hdpll device can provide notifications regarding status changes of the device, i.e. lock status changes, input/output changes or other alarms. There is one multicast group that is used to notify user-space apps via netlink socket: }(hj%1hhhNhNubji)}(h``DPLL_MCGRP_MONITOR``h]hDPLL_MCGRP_MONITOR}(hj-1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj%1ubeh}(h]h ]h"]h$]h&]uh1hhhhMhj1hhubh)}(hNotifications messages:h]hNotifications messages:}(hjA1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1hhubj)}(hX============================== ===================================== ``DPLL_CMD_DEVICE_CREATE_NTF`` dpll device was created ``DPLL_CMD_DEVICE_DELETE_NTF`` dpll device was deleted ``DPLL_CMD_DEVICE_CHANGE_NTF`` dpll device has changed ``DPLL_CMD_PIN_CREATE_NTF`` dpll pin was created ``DPLL_CMD_PIN_DELETE_NTF`` dpll pin was deleted ``DPLL_CMD_PIN_CHANGE_NTF`` dpll pin has changed ============================== ===================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjV1ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK%uh1jhjV1ubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_DEVICE_CREATE_NTF``h]ji)}(hjx1h]hDPLL_CMD_DEVICE_CREATE_NTF}(hjz1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjv1ubah}(h]h ]h"]h$]h&]uh1hhhhMhjs1ubah}(h]h ]h"]h$]h&]uh1jhjp1ubj)}(hhh]h)}(hdpll device was createdh]hdpll device was created}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1jhjp1ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubj)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_DEVICE_DELETE_NTF``h]ji)}(hj1h]hDPLL_CMD_DEVICE_DELETE_NTF}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj1ubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(hdpll device was deletedh]hdpll device was deleted}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubj)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_DEVICE_CHANGE_NTF``h]ji)}(hj1h]hDPLL_CMD_DEVICE_CHANGE_NTF}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj1ubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(hdpll device has changedh]hdpll device has changed}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubj)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_PIN_CREATE_NTF``h]ji)}(hj82h]hDPLL_CMD_PIN_CREATE_NTF}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj62ubah}(h]h ]h"]h$]h&]uh1hhhhMhj32ubah}(h]h ]h"]h$]h&]uh1jhj02ubj)}(hhh]h)}(hdpll pin was createdh]hdpll pin was created}(hjV2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjS2ubah}(h]h ]h"]h$]h&]uh1jhj02ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubj)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_PIN_DELETE_NTF``h]ji)}(hjx2h]hDPLL_CMD_PIN_DELETE_NTF}(hjz2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjv2ubah}(h]h ]h"]h$]h&]uh1hhhhMhjs2ubah}(h]h ]h"]h$]h&]uh1jhjp2ubj)}(hhh]h)}(hdpll pin was deletedh]hdpll pin was deleted}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjp2ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubj)}(hhh](j)}(hhh]h)}(h``DPLL_CMD_PIN_CHANGE_NTF``h]ji)}(hj2h]hDPLL_CMD_PIN_CHANGE_NTF}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj2ubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(hhh]h)}(hdpll pin has changedh]hdpll pin has changed}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjm1ubeh}(h]h ]h"]h$]h&]uh1jhjV1ubeh}(h]h ]h"]h$]h&]colsKuh1jhjS1ubah}(h]h ]h"]h$]h&]uh1jhjO1ubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubh)}(hEvents format is the same as for the corresponding get command. Format of ``DPLL_CMD_DEVICE_`` events is the same as response of ``DPLL_CMD_DEVICE_GET``. Format of ``DPLL_CMD_PIN_`` events is same as response of ``DPLL_CMD_PIN_GET``.h](hJEvents format is the same as for the corresponding get command. Format of }(hj 3hhhNhNubji)}(h``DPLL_CMD_DEVICE_``h]hDPLL_CMD_DEVICE_}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj 3ubh# events is the same as response of }(hj 3hhhNhNubji)}(h``DPLL_CMD_DEVICE_GET``h]hDPLL_CMD_DEVICE_GET}(hj#3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj 3ubh . Format of }(hj 3hhhNhNubji)}(h``DPLL_CMD_PIN_``h]h DPLL_CMD_PIN_}(hj53hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj 3ubh events is same as response of }(hj 3hhhNhNubji)}(h``DPLL_CMD_PIN_GET``h]hDPLL_CMD_PIN_GET}(hjG3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj 3ubh.}(hj 3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj1hhubeh}(h] notificationsah ]h"] notificationsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hDevice driver implementationh]hDevice driver implementation}(hjj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg3hhhhhM ubh)}(hXfDevice is allocated by dpll_device_get() call. Second call with the same arguments will not create new object but provides pointer to previously created device for given arguments, it also increases refcount of that object. Device is deallocated by dpll_device_put() call, which first decreases the refcount, once refcount is cleared the object is destroyed.h]hXfDevice is allocated by dpll_device_get() call. Second call with the same arguments will not create new object but provides pointer to previously created device for given arguments, it also increases refcount of that object. Device is deallocated by dpll_device_put() call, which first decreases the refcount, once refcount is cleared the object is destroyed.}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjg3hhubh)}(hXDevice should implement set of operations and register device via dpll_device_register() at which point it becomes available to the users. Multiple driver instances can obtain reference to it with dpll_device_get(), as well as register dpll device with their own ops and priv.h]hXDevice should implement set of operations and register device via dpll_device_register() at which point it becomes available to the users. Multiple driver instances can obtain reference to it with dpll_device_get(), as well as register dpll device with their own ops and priv.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg3hhubh)}(hX The pins are allocated separately with dpll_pin_get(), it works similarly to dpll_device_get(). Function first creates object and then for each call with the same arguments only the object refcount increases. Also dpll_pin_put() works similarly to dpll_device_put().h]hX The pins are allocated separately with dpll_pin_get(), it works similarly to dpll_device_get(). Function first creates object and then for each call with the same arguments only the object refcount increases. Also dpll_pin_put() works similarly to dpll_device_put().}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg3hhubh)}(hA pin can be registered with parent dpll device or parent pin, depending on hardware needs. Each registration requires registerer to provide set of pin callbacks, and private data pointer for calling them:h]hA pin can be registered with parent dpll device or parent pin, depending on hardware needs. Each registration requires registerer to provide set of pin callbacks, and private data pointer for calling them:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg3hhubj)}(hhh](j)}(h6dpll_pin_register() - register pin with a dpll device,h]h)}(hj3h]h6dpll_pin_register() - register pin with a dpll device,}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj3ubah}(h]h ]h"]h$]h&]uh1jhj3hhhhhNubj)}(hEdpll_pin_on_pin_register() - register pin with another MUX type pin. h]h)}(hDdpll_pin_on_pin_register() - register pin with another MUX type pin.h]hDdpll_pin_on_pin_register() - register pin with another MUX type pin.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hj3ubah}(h]h ]h"]h$]h&]uh1jhj3hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhM#hjg3hhubh)}(hXNotifications of adding or removing dpll devices are created within subsystem itself. Notifications about registering/deregistering pins are also invoked by the subsystem. Notifications about status changes either of dpll device or a pin are invoked in two ways:h]hXNotifications of adding or removing dpll devices are created within subsystem itself. Notifications about registering/deregistering pins are also invoked by the subsystem. Notifications about status changes either of dpll device or a pin are invoked in two ways:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjg3hhubj)}(hhh](j)}(hhafter successful change was requested on dpll subsystem, the subsystem calls corresponding notification,h]h)}(hhafter successful change was requested on dpll subsystem, the subsystem calls corresponding notification,h]hhafter successful change was requested on dpll subsystem, the subsystem calls corresponding notification,}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hj3ubah}(h]h ]h"]h$]h&]uh1jhj3hhhhhNubj)}(hrequested by device driver with dpll_device_change_ntf() or dpll_pin_change_ntf() when driver informs about the status change. h]h)}(h~requested by device driver with dpll_device_change_ntf() or dpll_pin_change_ntf() when driver informs about the status change.h]h~requested by device driver with dpll_device_change_ntf() or dpll_pin_change_ntf() when driver informs about the status change.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hj4ubah}(h]h ]h"]h$]h&]uh1jhj3hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhM-hjg3hhubh)}(hThe device driver using dpll interface is not required to implement all the callback operation. Nevertheless, there are few required to be implemented. Required dpll device level callback operations:h]hThe device driver using dpll interface is not required to implement all the callback operation. Nevertheless, there are few required to be implemented. Required dpll device level callback operations:}(hj/4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hjg3hhubj)}(hhh](j)}(h``.mode_get``,h]h)}(hjB4h](ji)}(h ``.mode_get``h]h .mode_get}(hjG4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhjD4ubh,}(hjD4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM7hj@4ubah}(h]h ]h"]h$]h&]uh1jhj=4hhhhhNubj)}(h``.lock_status_get``. h]h)}(h``.lock_status_get``.h](ji)}(h``.lock_status_get``h]h.lock_status_get}(hjm4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhji4ubh.}(hji4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM8hje4ubah}(h]h ]h"]h$]h&]uh1jhj=4hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhM7hjg3hhubh)}(h'Required pin level callback operations:h]h'Required pin level callback operations:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjg3hhubj)}(hhh](j)}(h:``.state_on_dpll_get`` (pins registered with dpll device),h]h)}(hj4h](ji)}(h``.state_on_dpll_get``h]h.state_on_dpll_get}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj4ubh$ (pins registered with dpll device),}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM<hj4ubah}(h]h ]h"]h$]h&]uh1jhj4hhhhhNubj)}(h8``.state_on_pin_get`` (pins registered with parent pin),h]h)}(hj4h](ji)}(h``.state_on_pin_get``h]h.state_on_pin_get}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj4ubh# (pins registered with parent pin),}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM=hj4ubah}(h]h ]h"]h$]h&]uh1jhj4hhhhhNubj)}(h``.direction_get``. h]h)}(h``.direction_get``.h](ji)}(h``.direction_get``h]h.direction_get}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM>hj4ubah}(h]h ]h"]h$]h&]uh1jhj4hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhM<hjg3hhubh)}(h~Every other operation handler is checked for existence and ``-EOPNOTSUPP`` is returned in case of absence of specific handler.h](h;Every other operation handler is checked for existence and }(hj5hhhNhNubji)}(h``-EOPNOTSUPP``h]h -EOPNOTSUPP}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj5ubh4 is returned in case of absence of specific handler.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM@hjg3hhubh)}(hdThe simplest implementation is in the OCP TimeCard driver. The ops structures are defined like this:h]hdThe simplest implementation is in the OCP TimeCard driver. The ops structures are defined like this:}(hj85hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMChjg3hhubj)}(hXstatic const struct dpll_device_ops dpll_ops = { .lock_status_get = ptp_ocp_dpll_lock_status_get, .mode_get = ptp_ocp_dpll_mode_get, .mode_supported = ptp_ocp_dpll_mode_supported, }; static const struct dpll_pin_ops dpll_pins_ops = { .frequency_get = ptp_ocp_dpll_frequency_get, .frequency_set = ptp_ocp_dpll_frequency_set, .direction_get = ptp_ocp_dpll_direction_get, .direction_set = ptp_ocp_dpll_direction_set, .state_on_dpll_get = ptp_ocp_dpll_state_get, };h]hXstatic const struct dpll_device_ops dpll_ops = { .lock_status_get = ptp_ocp_dpll_lock_status_get, .mode_get = ptp_ocp_dpll_mode_get, .mode_supported = ptp_ocp_dpll_mode_supported, }; static const struct dpll_pin_ops dpll_pins_ops = { .frequency_get = ptp_ocp_dpll_frequency_get, .frequency_set = ptp_ocp_dpll_frequency_set, .direction_get = ptp_ocp_dpll_direction_get, .direction_set = ptp_ocp_dpll_direction_set, .state_on_dpll_get = ptp_ocp_dpll_state_get, };}hjF5sbah}(h]h ]h"]h$]h&]hhƌforcelanguagej%highlight_args}uh1jhhhMFhjg3hhubh)}(h3The registration part is then looks like this part:h]h3The registration part is then looks like this part:}(hjX5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjg3hhubj)}(hX clkid = pci_get_dsn(pdev); bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE); if (IS_ERR(bp->dpll)) { err = PTR_ERR(bp->dpll); dev_err(&pdev->dev, "dpll_device_alloc failed\n"); goto out; } err = dpll_device_register(bp->dpll, DPLL_TYPE_PPS, &dpll_ops, bp); if (err) goto out; for (i = 0; i < OCP_SMA_NUM; i++) { bp->sma[i].dpll_pin = dpll_pin_get(clkid, i, THIS_MODULE, &bp->sma[i].dpll_prop); if (IS_ERR(bp->sma[i].dpll_pin)) { err = PTR_ERR(bp->dpll); goto out_dpll; } err = dpll_pin_register(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]); if (err) { dpll_pin_put(bp->sma[i].dpll_pin); goto out_dpll; } }h]hX clkid = pci_get_dsn(pdev); bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE); if (IS_ERR(bp->dpll)) { err = PTR_ERR(bp->dpll); dev_err(&pdev->dev, "dpll_device_alloc failed\n"); goto out; } err = dpll_device_register(bp->dpll, DPLL_TYPE_PPS, &dpll_ops, bp); if (err) goto out; for (i = 0; i < OCP_SMA_NUM; i++) { bp->sma[i].dpll_pin = dpll_pin_get(clkid, i, THIS_MODULE, &bp->sma[i].dpll_prop); if (IS_ERR(bp->sma[i].dpll_pin)) { err = PTR_ERR(bp->dpll); goto out_dpll; } err = dpll_pin_register(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]); if (err) { dpll_pin_put(bp->sma[i].dpll_pin); goto out_dpll; } }}hjf5sbah}(h]h ]h"]h$]h&]hhjT5jU5j%jV5}uh1jhhhMXhjg3hhubh)}(hJIn the error path we have to rewind every allocation in the reverse order:h]hJIn the error path we have to rewind every allocation in the reverse order:}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjg3hhubj)}(hwhile (i) { --i; dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]); dpll_pin_put(bp->sma[i].dpll_pin); } dpll_device_put(bp->dpll);h]hwhile (i) { --i; dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]); dpll_pin_put(bp->sma[i].dpll_pin); } dpll_device_put(bp->dpll);}hj5sbah}(h]h ]h"]h$]h&]hhjT5jU5j%jV5}uh1jhhhMwhjg3hhubh)}(hPMore complex example can be found in Intel's ICE driver or nVidia's mlx5 driver.h]hTMore complex example can be found in Intel’s ICE driver or nVidia’s mlx5 driver.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg3hhubeh}(h]device-driver-implementationah ]h"]device driver implementationah$]h&]uh1hhhhhhhhM ubh)}(hhh](h)}(hSyncE enablementh]hSyncE enablement}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hhhhhMubh)}(hXFor SyncE enablement it is required to allow control over dpll device for a software application which monitors and configures the inputs of dpll device in response to current state of a dpll device and its inputs. In such scenario, dpll device input signal shall be also configurable to drive dpll with signal recovered from the PHY netdevice. This is done by exposing a pin to the netdevice - attaching pin to the netdevice itself with ``dpll_netdev_pin_set(struct net_device *dev, struct dpll_pin *dpll_pin)``. Exposed pin id handle ``DPLL_A_PIN_ID`` is then identifiable by the user as it is attached to rtnetlink respond to get ``RTM_NEWLINK`` command in nested attribute ``IFLA_DPLL_PIN``.h](hXFor SyncE enablement it is required to allow control over dpll device for a software application which monitors and configures the inputs of dpll device in response to current state of a dpll device and its inputs. In such scenario, dpll device input signal shall be also configurable to drive dpll with signal recovered from the PHY netdevice. This is done by exposing a pin to the netdevice - attaching pin to the netdevice itself with }(hj5hhhNhNubji)}(hJ``dpll_netdev_pin_set(struct net_device *dev, struct dpll_pin *dpll_pin)``h]hFdpll_netdev_pin_set(struct net_device *dev, struct dpll_pin *dpll_pin)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj5ubh. Exposed pin id handle }(hj5hhhNhNubji)}(h``DPLL_A_PIN_ID``h]h DPLL_A_PIN_ID}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj5ubhP is then identifiable by the user as it is attached to rtnetlink respond to get }(hj5hhhNhNubji)}(h``RTM_NEWLINK``h]h RTM_NEWLINK}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj5ubh command in nested attribute }(hj5hhhNhNubji)}(h``IFLA_DPLL_PIN``h]h IFLA_DPLL_PIN}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj5hhubeh}(h]synce-enablementah ]h"]synce enablementah$]h&]uh1hhhhhhhhMubeh}(h]the-linux-kernel-dpll-subsystemah ]h"]the linux kernel dpll subsystemah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_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_handlerjA6error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _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}(j6j6jjj8j5jjjjjjj?j<jjjjj j j j jjjjjjj jjQ#jN#j#j#j$j$j1j1jd3ja3j5j5j6j6u nametypes}(j6jj8jjjj?jjj j jjjj jQ#j#j$j1jd3j5j6uh}(j6hjhj5jjj;jjjjj<jjjBjjj jj j jj jjjjjjjN#j#j#jT#j$j#j1j$j%j#%ja&jf&j'j'jv)j{)j*j*jM,jR,jc-jh-j.j.j0j0ja3j1j5jg3j6j5u 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.