.. SPDX-License-Identifier: GPL-2.0 .. NOTE: This document was auto-generated. ===================================== Family ``dpll`` netlink specification ===================================== .. contents:: :depth: 3 ------- Summary ------- DPLL subsystem. ---------- Operations ---------- .. _dpll-operation-device-id-get: device-id-get ============= Get id of dpll device that matches given attributes :attribute-set: :ref:`dpll-attribute-set-dpll` :flags: [``admin-perm``] :do: **pre** dpll-lock-doit **post** dpll-unlock-doit **request** :attributes: [``module-name``, ``clock-id``, ``type``] **reply** :attributes: [``id``] .. _dpll-operation-device-get: device-get ========== Get list of DPLL devices (dump) or attributes of a single dpll device :attribute-set: :ref:`dpll-attribute-set-dpll` :flags: [``admin-perm``] :do: **pre** dpll-pre-doit **post** dpll-post-doit **request** :attributes: [``id``] **reply** :attributes: [``id``, ``module-name``, ``mode``, ``mode-supported``, ``lock-status``, ``lock-status-error``, ``temp``, ``clock-id``, ``type``] :dump: **reply** :attributes: [``id``, ``module-name``, ``mode``, ``mode-supported``, ``lock-status``, ``lock-status-error``, ``temp``, ``clock-id``, ``type``] .. _dpll-operation-device-set: device-set ========== Set attributes for a DPLL device :attribute-set: :ref:`dpll-attribute-set-dpll` :flags: [``admin-perm``] :do: **pre** dpll-pre-doit **post** dpll-post-doit **request** :attributes: [``id``] .. _dpll-operation-device-create-ntf: device-create-ntf ================= Notification about device appearing :notify: device-get :mcgrp: monitor .. _dpll-operation-device-delete-ntf: device-delete-ntf ================= Notification about device disappearing :notify: device-get :mcgrp: monitor .. _dpll-operation-device-change-ntf: device-change-ntf ================= Notification about device configuration being changed :notify: device-get :mcgrp: monitor .. _dpll-operation-pin-id-get: pin-id-get ========== Get id of a pin that matches given attributes :attribute-set: :ref:`dpll-attribute-set-pin` :flags: [``admin-perm``] :do: **pre** dpll-lock-doit **post** dpll-unlock-doit **request** :attributes: [``module-name``, ``clock-id``, ``board-label``, ``panel-label``, ``package-label``, ``type``] **reply** :attributes: [``id``] .. _dpll-operation-pin-get: pin-get ======= Get list of pins and its attributes. - dump request without any attributes given - list all the pins in the system - dump request with target dpll - list all the pins registered with a given dpll device - do request with target dpll and target pin - single pin attributes :attribute-set: :ref:`dpll-attribute-set-pin` :flags: [``admin-perm``] :do: **pre** dpll-pin-pre-doit **post** dpll-pin-post-doit **request** :attributes: [``id``] **reply** :attributes: [``id``, ``board-label``, ``panel-label``, ``package-label``, ``type``, ``frequency``, ``frequency-supported``, ``capabilities``, ``parent-device``, ``parent-pin``, ``phase-adjust-min``, ``phase-adjust-max``, ``phase-adjust``, ``fractional-frequency-offset``] :dump: **request** :attributes: [``id``] **reply** :attributes: [``id``, ``board-label``, ``panel-label``, ``package-label``, ``type``, ``frequency``, ``frequency-supported``, ``capabilities``, ``parent-device``, ``parent-pin``, ``phase-adjust-min``, ``phase-adjust-max``, ``phase-adjust``, ``fractional-frequency-offset``] .. _dpll-operation-pin-set: pin-set ======= Set attributes of a target pin :attribute-set: :ref:`dpll-attribute-set-pin` :flags: [``admin-perm``] :do: **pre** dpll-pin-pre-doit **post** dpll-pin-post-doit **request** :attributes: [``id``, ``frequency``, ``direction``, ``prio``, ``state``, ``parent-device``, ``parent-pin``, ``phase-adjust``] .. _dpll-operation-pin-create-ntf: pin-create-ntf ============== Notification about pin appearing :notify: pin-get :mcgrp: monitor .. _dpll-operation-pin-delete-ntf: pin-delete-ntf ============== Notification about pin disappearing :notify: pin-get :mcgrp: monitor .. _dpll-operation-pin-change-ntf: pin-change-ntf ============== Notification about pin configuration being changed :notify: pin-get :mcgrp: monitor ---------------- Multicast groups ---------------- - monitor ----------- Definitions ----------- .. _dpll-definition-mode: mode ==== :type: enum :doc: working 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 :entries: :manual: input can be only selected by sending a request to dpll :automatic: highest prio input pin auto selected by dpll .. _dpll-definition-lock-status: lock-status =========== :type: enum :doc: provides information of dpll device lock status, valid values for DPLL_A_LOCK_STATUS attribute :entries: :unlocked: dpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED) :locked: dpll is locked to a valid signal, but no holdover available :locked-ho-acq: dpll is locked and holdover acquired :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) .. _dpll-definition-lock-status-error: lock-status-error ================= :type: enum :doc: if 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 :entries: :none: dpll device lock status was changed without any 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. :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. :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. .. _dpll-definition-temp-divider: temp-divider ============ :type: const :value: 1000 :doc: temperature divider allowing userspace to calculate the temperature as float with three digit decimal precision. Value of (DPLL_A_TEMP / DPLL_TEMP_DIVIDER) is integer part of temperature value. Value of (DPLL_A_TEMP % DPLL_TEMP_DIVIDER) is fractional part of temperature value. .. _dpll-definition-type: type ==== :type: enum :doc: type of dpll, valid values for DPLL_A_TYPE attribute :entries: :pps: dpll produces Pulse-Per-Second signal :eec: dpll drives the Ethernet Equipment Clock .. _dpll-definition-pin-type: pin-type ======== :type: enum :doc: defines possible types of a pin, valid values for DPLL_A_PIN_TYPE attribute :entries: :mux: aggregates another layer of selectable pins :ext: external input :synce-eth-port: ethernet port PHY's recovered clock :int-oscillator: device internal oscillator :gnss: GNSS recovered clock .. _dpll-definition-pin-direction: pin-direction ============= :type: enum :doc: defines possible direction of a pin, valid values for DPLL_A_PIN_DIRECTION attribute :entries: :input: pin used as a input of a signal :output: pin used to output the signal .. _dpll-definition-pin-frequency-1-hz: pin-frequency-1-hz ================== :type: const :value: 1 .. _dpll-definition-pin-frequency-10-khz: pin-frequency-10-khz ==================== :type: const :value: 10000 .. _dpll-definition-pin-frequency-77_5-khz: pin-frequency-77_5-khz ====================== :type: const :value: 77500 .. _dpll-definition-pin-frequency-10-mhz: pin-frequency-10-mhz ==================== :type: const :value: 10000000 .. _dpll-definition-pin-state: pin-state ========= :type: enum :doc: defines possible states of a pin, valid values for DPLL_A_PIN_STATE attribute :entries: :connected: pin connected, active input of phase locked loop :disconnected: pin disconnected, not considered as a valid input :selectable: pin enabled for automatic input selection .. _dpll-definition-pin-capabilities: pin-capabilities ================ :type: flags :doc: defines possible capabilities of a pin, valid flags on DPLL_A_PIN_CAPABILITIES attribute :entries: :direction-can-change: pin direction can be changed :priority-can-change: pin priority can be changed :state-can-change: pin state can be changed .. _dpll-definition-phase-offset-divider: phase-offset-divider ==================== :type: const :value: 1000 :doc: phase offset divider allows userspace to calculate a value of measured signal phase difference between a pin and dpll device as a fractional value with three digit decimal precision. Value of (DPLL_A_PHASE_OFFSET / DPLL_PHASE_OFFSET_DIVIDER) is an integer part of a measured phase offset value. Value of (DPLL_A_PHASE_OFFSET % DPLL_PHASE_OFFSET_DIVIDER) is a fractional part of a measured phase offset value. -------------- Attribute sets -------------- .. _dpll-attribute-set-dpll: dpll ==== id (``u32``) ~~~~~~~~~~~~ module-name (``string``) ~~~~~~~~~~~~~~~~~~~~~~~~ pad (``pad``) ~~~~~~~~~~~~~ clock-id (``u64``) ~~~~~~~~~~~~~~~~~~ mode (``u32``) ~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-mode` mode-supported (``u32``) ~~~~~~~~~~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-mode` :multi-attr: True lock-status (``u32``) ~~~~~~~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-lock-status` temp (``s32``) ~~~~~~~~~~~~~~ type (``u32``) ~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-type` lock-status-error (``u32``) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-lock-status-error` .. _dpll-attribute-set-pin: pin === id (``u32``) ~~~~~~~~~~~~ parent-id (``u32``) ~~~~~~~~~~~~~~~~~~~ module-name (``string``) ~~~~~~~~~~~~~~~~~~~~~~~~ pad (``pad``) ~~~~~~~~~~~~~ clock-id (``u64``) ~~~~~~~~~~~~~~~~~~ board-label (``string``) ~~~~~~~~~~~~~~~~~~~~~~~~ panel-label (``string``) ~~~~~~~~~~~~~~~~~~~~~~~~ package-label (``string``) ~~~~~~~~~~~~~~~~~~~~~~~~~~ type (``u32``) ~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-pin-type` direction (``u32``) ~~~~~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-pin-direction` frequency (``u64``) ~~~~~~~~~~~~~~~~~~~ frequency-supported (``nest``) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :multi-attr: True :nested-attributes: :ref:`dpll-attribute-set-frequency-range` frequency-min (``u64``) ~~~~~~~~~~~~~~~~~~~~~~~ frequency-max (``u64``) ~~~~~~~~~~~~~~~~~~~~~~~ prio (``u32``) ~~~~~~~~~~~~~~ state (``u32``) ~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-pin-state` capabilities (``u32``) ~~~~~~~~~~~~~~~~~~~~~~ :enum: :ref:`dpll-definition-pin-capabilities` parent-device (``nest``) ~~~~~~~~~~~~~~~~~~~~~~~~ :multi-attr: True :nested-attributes: :ref:`dpll-attribute-set-pin-parent-device` parent-pin (``nest``) ~~~~~~~~~~~~~~~~~~~~~ :multi-attr: True :nested-attributes: :ref:`dpll-attribute-set-pin-parent-pin` phase-adjust-min (``s32``) ~~~~~~~~~~~~~~~~~~~~~~~~~~ phase-adjust-max (``s32``) ~~~~~~~~~~~~~~~~~~~~~~~~~~ phase-adjust (``s32``) ~~~~~~~~~~~~~~~~~~~~~~ phase-offset (``s64``) ~~~~~~~~~~~~~~~~~~~~~~ fractional-frequency-offset (``sint``) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :doc: The FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media associated with the pin: (rx_frequency-tx_frequency)/rx_frequency Value is in PPM (parts per million). This may be implemented for example for pin of type PIN_TYPE_SYNCE_ETH_PORT. .. _dpll-attribute-set-pin-parent-device: pin-parent-device ================= parent-id ~~~~~~~~~ direction ~~~~~~~~~ prio ~~~~ state ~~~~~ phase-offset ~~~~~~~~~~~~ .. _dpll-attribute-set-pin-parent-pin: pin-parent-pin ============== parent-id ~~~~~~~~~ state ~~~~~ .. _dpll-attribute-set-frequency-range: frequency-range =============== frequency-min ~~~~~~~~~~~~~ frequency-max ~~~~~~~~~~~~~