Article View: linux.kernel.netdev
Article #19450[PATCH net-next v16 12/13] dpll: sit9531x: add support to get phase offset on the connected input
From: Ali Rouhi
Date: Thu, 19 Nov 2026 22:58
Date: Thu, 19 Nov 2026 22:58
740 lines
46324 bytes
46324 bytes
From: Oleg Zadorozhnyi <Oleg.Zadorozhnyi@devoxsoftware.com>
Report the phase difference between a PLL's reference and the PLL, read
from the on-chip time-to-digital converter through the debug window as
the documented procedure does. A read latches a sample and returns the
previous one, so each sample is read three times. The sign bit is set
when the reference edge comes first: a negative offset.
The offset is sampled when asked for, not by the poll: a sample is
several dozen transfers per PLL. A sample that cannot be taken, on a
bus error or with the output loops open, is an absent attribute, so
one failed read does not end a pin dump.
Only the input the part feeds the PLL has an offset. Any other pin, a PLL
without a reference, or a PLL that drives no enabled output returns
-ENODATA and the core leaves the attribute out. The XO pin has none: it
is the frequency base of every PLL, not an input the loop is steered
to.
The debug taps moved for a sample are put back after it; a restore that
fails is retried by the poll, at removal and on the probe failure path,
which now runs the same retries as removal.
Signed-off-by: Oleg Zadorozhnyi <Oleg.Zadorozhnyi@devoxsoftware.com>
Signed-off-by: Ali Rouhi <arouhi@sitime.com>
---
drivers/dpll/sit9531x/core.c | 359 ++++++++++++++++++++++++++++++-----
drivers/dpll/sit9531x/core.h | 15 ++
drivers/dpll/sit9531x/dpll.c | 110 +++++++++++
drivers/dpll/sit9531x/regs.h | 19 ++
4 files changed, 452 insertions(+), 51 deletions(-)
diff --git a/drivers/dpll/sit9531x/core.c b/drivers/dpll/sit9531x/core.c
index fd8f0df9116d..5ec9d2a48fcb 100644
--- a/drivers/dpll/sit9531x/core.c
+++ b/drivers/dpll/sit9531x/core.c
@@ -262,6 +262,28 @@ static int sit9531x_update_pll_close(struct sit9531x_dev *sitdev, u8 pll_idx,
return rc;
}
+/*
+ * Restore the debug taps a phase-offset read changed. The PLL page's debug
+ * window must already be open.
+ */
+static int sit9531x_tap_restore(struct sit9531x_dev *sitdev, u8 pll_idx)
+{
+ struct sit9531x_chan *chan = &sitdev->chan[pll_idx];
+ int rc;
+
+ rc = sit9531x_write_pll_close(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_READ_CODE,
+ chan->tap_read_code);
+ if (!rc)
+ rc = sit9531x_write_pll_close(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_WRITE_CODE,
+ chan->tap_write_code);
+ if (!rc)
+ chan->tap_pending = false;
+
+ return rc;
+}
+
static void sit9531x_input_get_regs(const struct sit9531x_dev *sitdev,
u8 index,
unsigned int *force_reg,
@@ -807,12 +829,16 @@ static int sit9531x_prio_prg_commit(struct sit9531x_dev *sitdev)
return 0;
}
-/*
- * Four registers carry a nibble per lane: loss of signal and the fine and
- * coarse frequency-drift flags. Caller must hold sitdev->multiop_lock, or run
- * before registration.
+/**
+ * sit9531x_input_mon_fetch - read the clock monitor status of every lane
+ * @sitdev: device pointer
+ *
+ * One nibble per lane: loss of signal, fine and coarse frequency drift.
+ * Caller must hold sitdev->multiop_lock, or run before registration.
+ *
+ * Return: 0 on success, <0 on error
*/
-static int sit9531x_input_mon_fetch(struct sit9531x_dev *sitdev)
+int sit9531x_input_mon_fetch(struct sit9531x_dev *sitdev)
{
static const unsigned int regs[] = {
SIT9531X_CLKMON_P_STATUS_01, SIT9531X_CLKMON_P_STATUS_23,
@@ -2594,6 +2620,176 @@ static int sit9531x_clear_notifications(struct sit9531x_dev *sitdev)
return 0;
}
+/**
+ * sit9531x_phase_offset_read - read phase difference via TDC
+ * @sitdev: device pointer
+ * @pll_idx: PLL index (0-3)
+ * @phase_offset: phase difference in 1/DPLL_PHASE_OFFSET_DIVIDER ps
+ *
+ * The TDC code is a 35-bit magnitude with a separate sign bit;
+ * phase_diff = tdc_code / fvco. The result is negative when the reference
+ * edge is the earlier one. Caller must hold sitdev->multiop_lock.
+ *
+ * Return: 0 on success, -ENODATA if Fvco is unknown, <0 on other errors
+ */
+int sit9531x_phase_offset_read(struct sit9531x_dev *sitdev, u8 pll_idx,
+ s64 *phase_offset)
+{
+ u8 v, old_write_code, old_read_code;
+ struct sit9531x_chan *chan;
+ bool have_old = false;
+ int rc, ret, i;
+ s64 tdc_signed;
+ u64 fvco, mag;
+ u64 tdc_raw;
+ bool sign;
+
+ lockdep_assert_held(&sitdev->multiop_lock);
+
+ if (pll_idx >= SIT9531X_NUM_PLLS)
+ return -EINVAL;
+ chan = &sitdev->chan[pll_idx];
+
+ /*
+ * Read Fvco first; without it there is no reason to open the debug
+ * window.
+ */
+ rc = sit9531x_get_fvco(sitdev, pll_idx, &fvco);
+ if (rc) {
+ if (rc == -ENODATA)
+ dev_dbg(sitdev->dev,
+ "PLL%c: Fvco unknown, skip TDC\n",
+ 'A' + pll_idx);
+ return rc;
+ }
+
+ rc = sit9531x_write_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DEBUG,
+ SIT9531X_PLL_DEBUG_UNLOCK);
+ if (rc)
+ goto relock;
+
+ /* Restore pending taps before saving the selection */
+ if (chan->tap_pending) {
+ rc = sit9531x_tap_restore(sitdev, pll_idx);
+ if (rc)
+ goto relock;
+ }
+
+ /* Save the tap selection; the debug key does not cover the mux. */
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_WRITE_CODE,
+ &old_write_code);
+ if (!rc)
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_READ_CODE,
+ &old_read_code);
+ if (rc)
+ goto relock;
+
+ have_old = true;
+
+ /*
+ * Enable the debug clock for taps below 200 kHz, then select the TDC
+ * tap. The modifier register also holds fields of other taps.
+ */
+ rc = sit9531x_update_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_WRITE_CODE,
+ SIT9531X_DBG_LOW_FREQ_CLK_BIT,
+ SIT9531X_DBG_LOW_FREQ_CLK_BIT);
+ if (rc)
+ goto relock;
+ rc = sit9531x_write_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_READ_CODE,
+ SIT9531X_DBG_READ_CODE_TDC);
+ if (rc)
+ goto relock;
+
+ /*
+ * A status data read latches a sample and returns the previous one;
+ * read three times as the documented procedure does. The procedure
+ * leaves the status address unwritten.
+ */
+ for (i = 0; i < SIT9531X_DBG_STATUS_READS; i++) {
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_STATUS_DATA,
+ &v);
+ if (rc)
+ goto relock;
+ }
+
+ tdc_raw = 0;
+
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_DATA_4, &v);
+ if (rc)
+ goto relock;
+ sign = !!(v & BIT(SIT9531X_TDC_SIGN_BIT));
+ tdc_raw = (u64)(v & SIT9531X_TDC_MAG_HI_MASK) << 32;
+
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_DATA_3, &v);
+ if (rc)
+ goto relock;
+ tdc_raw |= (u64)v << 24;
+
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_DATA_2, &v);
+ if (rc)
+ goto relock;
+ tdc_raw |= (u64)v << 16;
+
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_DATA_1, &v);
+ if (rc)
+ goto relock;
+ tdc_raw |= (u64)v << 8;
+
+ rc = sit9531x_read_pll_u8(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DBG_DATA_0, &v);
+ if (rc)
+ goto relock;
+ tdc_raw |= v;
+
+ /*
+ * The sign bit is set when the reference edge comes first; the
+ * subsystem reports a pin that is earlier than the DPLL as negative.
+ */
+ tdc_signed = sign ? -(s64)tdc_raw : (s64)tdc_raw;
+
+ /*
+ * phase_diff (ps) = tdc_code * 1e12 / fvco. Scale by the subsystem's
+ * divider before dividing to keep the fractional digits; one code is
+ * 203.45 ps at 4.9152 GHz.
+ */
+ mag = mul_u64_u64_div_u64(tdc_signed < 0 ? -tdc_signed : tdc_signed,
+ 1000000000000ULL * DPLL_PHASE_OFFSET_DIVIDER,
+ fvco);
+ *phase_offset = tdc_signed < 0 ? -(s64)mag : (s64)mag;
+
+ rc = 0;
+
+relock:
+ if (have_old) {
+ chan->tap_read_code = old_read_code;
+ chan->tap_write_code = old_write_code;
+ ret = sit9531x_tap_restore(sitdev, pll_idx);
+ if (ret)
+ chan->tap_pending = true;
+ if (ret && !rc)
+ rc = ret;
+ }
+
+ ret = sit9531x_write_pll_close(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DEBUG,
+ SIT9531X_PLL_DEBUG_LOCK);
+ chan->key_pending = !!ret;
+ if (ret && !rc)
+ rc = ret;
+
+ return rc;
+}
+
/* Read the lane's receiver state from the Page 0x02 force and state bits */
static int sit9531x_ref_state_fetch(struct sit9531x_dev *sitdev, u8 index)
{
@@ -2724,13 +2920,21 @@ static int sit9531x_chan_select_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
return 0;
}
-/*
- * Read the reference the device feeds a PLL from the debug status bus; the
- * active selection does not change on a fallback. The caller rules out free-run
- * first and must hold sitdev->multiop_lock.
+/**
+ * sit9531x_chan_routed_ref_read - read the reference the device feeds a PLL
+ * @sitdev: device pointer
+ * @pll_idx: PLL index (0-3)
+ * @ref: logical input index, SIT9531X_MAX_INPUTS for the XO,
+ * SIT9531X_INTSYNC_PIN_ID, or SIT9531X_REF_INVALID
+ *
+ * The device falls back between listed sources without changing the active
+ * selection, so read the source from the debug status bus. The caller rules
+ * out free-run first and must hold multiop_lock.
+ *
+ * Return: 0 on success, <0 on error
*/
-static int sit9531x_chan_routed_ref_read(struct sit9531x_dev *sitdev,
- u8 pll_idx, u8 *ref)
+int sit9531x_chan_routed_ref_read(struct sit9531x_dev *sitdev, u8 pll_idx,
+ u8 *ref)
{
int rc, lock_rc;
u8 v, i;
@@ -2768,6 +2972,7 @@ static int sit9531x_chan_routed_ref_read(struct sit9531x_dev *sitdev,
lock_rc = sit9531x_write_pll_close(sitdev, pll_idx,
SIT9531X_PLL_REG_DEBUG,
SIT9531X_PLL_DEBUG_LOCK);
+ sitdev->chan[pll_idx].key_pending = !!lock_rc;
return rc ? rc : lock_rc;
}
@@ -3241,6 +3446,27 @@ static void sit9531x_table_back_retry(struct sit9531x_dev *sitdev, u8 pll_idx)
'A' + pll_idx);
}
+/*
+ * Restore the debug taps and close the debug window after a failed phase-offset
+ * read. Caller must hold sitdev->multiop_lock.
+ */
+static void sit9531x_tap_back_retry(struct sit9531x_dev *sitdev, u8 pll_idx)
+{
+ struct sit9531x_chan *chan = &sitdev->chan[pll_idx];
+
+ if (!chan->tap_pending && !chan->key_pending)
+ return;
+
+ if (chan->tap_pending &&
+ !sit9531x_write_pll_u8(sitdev, pll_idx, SIT9531X_PLL_REG_DEBUG,
+ SIT9531X_PLL_DEBUG_UNLOCK))
+ sit9531x_tap_restore(sitdev, pll_idx);
+
+ chan->key_pending = !!sit9531x_write_pll_close(sitdev, pll_idx,
+ SIT9531X_PLL_REG_DEBUG,
+ SIT9531X_PLL_DEBUG_LOCK);
+}
+
/*
* Rewrite the priority table when a listed source returns to a PLL without a
* reference; the write latches the active selection again. Each latch restarts
@@ -3327,6 +3553,7 @@ sit9531x_dev_chan_states_update(struct sit9531x_dev *sitdev)
for (i = 0; i < SIT9531X_NUM_PLLS; i++) {
sit9531x_table_back_retry(sitdev, i);
sit9531x_ho_release_retry(sitdev, i);
+ sit9531x_tap_back_retry(sitdev, i);
/*
* A flush pulse sent into open loops may be lost when they
* re-lock.
@@ -3579,55 +3806,30 @@ static void sit9531x_pin_nodes_check(struct sit9531x_dev *sitdev)
fwnode_handle_put(pins);
}
-static int sit9531x_dev_start(struct sit9531x_dev *sitdev)
+/* Retry the pending debug tap restore and debug window close */
+static void sit9531x_tap_pending_retry(struct sit9531x_dev *sitdev)
{
- struct sit9531x_dpll *sitdpll;
- int rc;
-
- rc = sit9531x_dev_state_fetch(sitdev);
- if (rc)
- return rc;
+ u8 i;
mutex_lock(&sitdev->multiop_lock);
- sit9531x_eeprom_state_report(sitdev);
- sit9531x_pll_states_report(sitdev);
- mutex_unlock(&sitdev->multiop_lock);
-
- sit9531x_pin_nodes_check(sitdev);
-
- list_for_each_entry(sitdpll, &sitdev->dplls, list) {
- rc = sit9531x_dpll_register(sitdpll);
- if (rc) {
- dev_err_probe(sitdev->dev, rc,
- "Failed to register DPLL%u\n",
- sitdpll->id);
- goto err_unregister;
- }
+ for (i = 0; i < SIT9531X_NUM_PLLS; i++) {
+ sit9531x_tap_back_retry(sitdev, i);
+ if (sitdev->chan[i].tap_pending || sitdev->chan[i].key_pending)
+ dev_warn(sitdev->dev,
+ "PLL%c left with its debug taps moved or window open\n",
+ 'A' + i);
}
-
- kthread_queue_delayed_work(sitdev->kworker, &sitdev->work, 0);
-
- return 0;
-
-err_unregister:
- list_for_each_entry_continue_reverse(sitdpll, &sitdev->dplls, list)
- sit9531x_dpll_unregister(sitdpll);
-
- return rc;
+ mutex_unlock(&sitdev->multiop_lock);
}
-static void sit9531x_dev_stop(struct sit9531x_dev *sitdev)
+/*
+ * Retry every pending write once more and report what is still pending. Call
+ * with the DPLLs unregistered.
+ */
+static void sit9531x_dev_pending_retry(struct sit9531x_dev *sitdev)
{
- struct sit9531x_dpll *sitdpll;
u8 i;
- kthread_cancel_delayed_work_sync(&sitdev->work);
-
- list_for_each_entry(sitdpll, &sitdev->dplls, list) {
- if (sitdpll->dpll_dev)
- sit9531x_dpll_unregister(sitdpll);
- }
-
/*
* Write back tables first: forced holdover stays set while a table
* write-back is pending.
@@ -3693,6 +3895,61 @@ static void sit9531x_dev_stop(struct sit9531x_dev *sitdev)
(sitdev->flush_armed & BIT(i)) ? "parked" : "armed");
}
mutex_unlock(&sitdev->multiop_lock);
+
+ sit9531x_tap_pending_retry(sitdev);
+}
+
+static int sit9531x_dev_start(struct sit9531x_dev *sitdev)
+{
+ struct sit9531x_dpll *sitdpll;
+ int rc;
+
+ rc = sit9531x_dev_state_fetch(sitdev);
+ if (rc)
+ return rc;
+
+ mutex_lock(&sitdev->multiop_lock);
+ sit9531x_eeprom_state_report(sitdev);
+ sit9531x_pll_states_report(sitdev);
+ mutex_unlock(&sitdev->multiop_lock);
+
+ sit9531x_pin_nodes_check(sitdev);
+
+ list_for_each_entry(sitdpll, &sitdev->dplls, list) {
+ rc = sit9531x_dpll_register(sitdpll);
+ if (rc) {
+ dev_err_probe(sitdev->dev, rc,
+ "Failed to register DPLL%u\n",
+ sitdpll->id);
+ goto err_unregister;
+ }
+ }
+
+ kthread_queue_delayed_work(sitdev->kworker, &sitdev->work, 0);
+
+ return 0;
+
+err_unregister:
+ list_for_each_entry_continue_reverse(sitdpll, &sitdev->dplls, list)
+ sit9531x_dpll_unregister(sitdpll);
+
+ sit9531x_dev_pending_retry(sitdev);
+
+ return rc;
+}
+
+static void sit9531x_dev_stop(struct sit9531x_dev *sitdev)
+{
+ struct sit9531x_dpll *sitdpll;
+
+ kthread_cancel_delayed_work_sync(&sitdev->work);
+
+ list_for_each_entry(sitdpll, &sitdev->dplls, list) {
+ if (sitdpll->dpll_dev)
+ sit9531x_dpll_unregister(sitdpll);
+ }
+
+ sit9531x_dev_pending_retry(sitdev);
}
static struct sit9531x_dpll_pin *
diff --git a/drivers/dpll/sit9531x/core.h b/drivers/dpll/sit9531x/core.h
index 97d44c60a65a..dc7862069987 100644
--- a/drivers/dpll/sit9531x/core.h
+++ b/drivers/dpll/sit9531x/core.h
@@ -167,6 +167,11 @@ struct sit9531x_out {
* @table_pending: priority table partly written or not latched; the PLL
* stays in forced holdover
* @table_back: table reported and to be rewritten while @table_pending
+ * @tap_pending: debug taps not restored after a phase-offset read
+ * @tap_write_code: tap selection to restore while @tap_pending
+ * @tap_read_code: readback selection to restore while @tap_pending
+ * @key_pending: debug key not locked again after a phase-offset read or tap
+ * retry
* @prio_srcs: cached priority table, a source code per slot
* @prio_last: first slot of each source plus one, 0 if absent
* @prio_mask: bit per canonical source in the priority table read back
@@ -195,6 +200,10 @@ struct sit9531x_chan {
bool flush_pending;
bool table_pending;
u8 table_back[SIT9531X_PRIO_MAX_SLOTS];
+ bool tap_pending;
+ u8 tap_write_code;
+ u8 tap_read_code;
+ bool key_pending;
u8 prio_srcs[SIT9531X_PRIO_MAX_SLOTS];
u8 prio_last[SIT9531X_PRIO_NUM_SRC];
u16 prio_mask;
@@ -314,6 +323,12 @@ int sit9531x_output_phase_read(struct sit9531x_dev *sitdev, u8 out_idx,
int sit9531x_output_phase_adjust_set(struct sit9531x_dev *sitdev,
u8 out_idx, s32 phase_ps);
+int sit9531x_chan_routed_ref_read(struct sit9531x_dev *sitdev, u8 pll_idx,
+ u8 *ref);
+int sit9531x_input_mon_fetch(struct sit9531x_dev *sitdev);
+int sit9531x_phase_offset_read(struct sit9531x_dev *sitdev, u8 pll_idx,
+ s64 *phase_offset);
+
static inline u8 sit9531x_pll_page(u8 pll_idx)
{
return SIT9531X_PAGE_PLLA + pll_idx;
diff --git a/drivers/dpll/sit9531x/dpll.c b/drivers/dpll/sit9531x/dpll.c
index 8589019b4b43..0f2b3d446cb5 100644
--- a/drivers/dpll/sit9531x/dpll.c
+++ b/drivers/dpll/sit9531x/dpll.c
@@ -488,6 +488,112 @@ sit9531x_dpll_input_pin_prio_set(const struct dpll_pin *pin, void *pin_priv,
return 0;
}
+/*
+ * Report the loop's residual phase error, sampled with the loop closed. The TDC
+ * compares against a signal the PLL drives, so a PLL driving no output returns
+ * -ENODATA.
+ */
+static int
+sit9531x_dpll_input_pin_phase_offset_get(const struct dpll_pin *pin,
+ void *pin_priv,
+ const struct dpll_device *dpll,
+ void *dpll_priv, s64 *phase_offset,
+ struct netlink_ext_ack *extack)
+{
+ struct sit9531x_dpll_pin *dpin = pin_priv;
+ struct sit9531x_dpll *sitdpll = dpll_priv;
+ struct sit9531x_dev *sitdev = sitdpll->dev;
+ bool drives = false;
+ u8 routed, i;
+ s64 offset;
+ int rc;
+
+ mutex_lock(&sitdev->multiop_lock);
+
+ /*
+ * Check the cache first: the core calls this for every pin of every
+ * DPLL in a dump. Output loops left open by a failed programming
+ * sequence give no closed-loop sample.
+ */
+ rc = -ENODATA;
+ if (sitdev->loops_open ||
+ !sit9531x_dpll_selection_active(sitdev, sitdpll, dpin->id))
+ goto out;
+
+ /*
+ * The device can change the routed reference, so read it before and
+ * after the sample. A PLL with no routed, enabled output has no
+ * measurement.
+ */
+ for (i = 0; i < sitdev->info->num_outputs; i++) {
+ if (!sitdev->out[i].routed ||
+ sitdev->out[i].pll_idx != sitdpll->id)
+ continue;
+ if (sitdev->out[i].state_stale) {
+ rc = sit9531x_output_state_refresh(sitdev, i);
+ if (rc)
+ goto out;
+ }
+ if (sitdev->out[i].enabled)
+ drives = true;
+ }
+ rc = -ENODATA;
+ if (!drives)
+ goto out;
+
+ /*
+ * Read the monitors live: on loss of signal the device falls back
+ * without a request.
+ */
+ rc = sit9531x_input_mon_fetch(sitdev);
+ if (rc)
+ goto out;
+ if (!sit9531x_dpll_selection_active(sitdev, sitdpll, dpin->id)) {
+ rc = -ENODATA;
+ goto out;
+ }
+
+ rc = sit9531x_chan_routed_ref_read(sitdev, sitdpll->id, &routed);
+ if (!rc && routed == dpin->id) {
+ rc = sit9531x_phase_offset_read(sitdev, sitdpll->id, &offset);
+ if (!rc)
+ rc = sit9531x_chan_routed_ref_read(sitdev, sitdpll->id,
+ &routed);
+ if (!rc && routed != dpin->id)
+ rc = -ENODATA;
+ } else if (!rc) {
+ rc = -ENODATA;
+ }
+ /*
+ * A reference lost during the sample can leave the routed reference
+ * unchanged while the PLL is in holdover; read the monitors again.
+ */
+ if (!rc) {
+ rc = sit9531x_input_mon_fetch(sitdev);
+ if (!rc && dpin->id < sitdev->info->num_inputs &&
+ sit9531x_ref_state_get(sitdev, dpin->id)->los)
+ rc = -ENODATA;
+ }
+out:
+ mutex_unlock(&sitdev->multiop_lock);
+
+ /*
+ * A sample that could not be taken is an absent attribute; any other
+ * error from here fails the whole pin dump in the core.
+ */
+ if (rc && rc != -ENODATA) {
+ dev_warn_ratelimited(sitdev->dev,
+ "PLL%c: phase offset not sampled: %d\n",
+ 'A' + sitdpll->id, rc);
+ return -ENODATA;
+ }
+ if (rc)
+ return rc;
+
+ *phase_offset = offset;
+ return 0;
+}
+
static const struct dpll_pin_ops sit9531x_dpll_input_pin_ops = {
.direction_get = sit9531x_dpll_input_pin_direction_get,
.frequency_get = sit9531x_dpll_input_pin_frequency_get,
@@ -496,6 +602,7 @@ static const struct dpll_pin_ops sit9531x_dpll_input_pin_ops = {
.operstate_on_dpll_get = sit9531x_dpll_input_pin_operstate_on_dpll_get,
.prio_get = sit9531x_dpll_input_pin_prio_get,
.prio_set = sit9531x_dpll_input_pin_prio_set,
+ .phase_offset_get = sit9531x_dpll_input_pin_phase_offset_get,
};
/*
@@ -509,6 +616,7 @@ static const struct dpll_pin_ops sit9531x_dpll_input_pin_norate_ops = {
.operstate_on_dpll_get = sit9531x_dpll_input_pin_operstate_on_dpll_get,
.prio_get = sit9531x_dpll_input_pin_prio_get,
.prio_set = sit9531x_dpll_input_pin_prio_set,
+ .phase_offset_get = sit9531x_dpll_input_pin_phase_offset_get,
};
/*
@@ -520,12 +628,14 @@ static const struct dpll_pin_ops sit9531x_dpll_input_pin_manual_ops = {
.frequency_get = sit9531x_dpll_input_pin_frequency_get,
.state_on_dpll_get = sit9531x_dpll_input_pin_state_on_dpll_get,
.operstate_on_dpll_get = sit9531x_dpll_input_pin_operstate_on_dpll_get,
+ .phase_offset_get = sit9531x_dpll_input_pin_phase_offset_get,
};
static const struct dpll_pin_ops sit9531x_dpll_input_pin_norate_manual_ops = {
.direction_get = sit9531x_dpll_input_pin_direction_get,
.state_on_dpll_get = sit9531x_dpll_input_pin_state_on_dpll_get,
.operstate_on_dpll_get = sit9531x_dpll_input_pin_operstate_on_dpll_get,
+ .phase_offset_get = sit9531x_dpll_input_pin_phase_offset_get,
};
/*
diff --git a/drivers/dpll/sit9531x/regs.h b/drivers/dpll/sit9531x/regs.h
index c47720548f98..070d7800bcb8 100644
--- a/drivers/dpll/sit9531x/regs.h
+++ b/drivers/dpll/sit9531x/regs.h
@@ -229,6 +229,25 @@
#define SIT9531X_PLL_REG_DIVN_NUM 0x32 /* 4 bytes (0x32-0x35) */
#define SIT9531X_PLL_REG_DIVN_DEN 0x38 /* 4 bytes (0x38-0x3B) */
+/*
+ * Signal pathway debug readback: Dig_Sys_ReadCode selects the tap,
+ * Dig_Sys_WriteCode its modifiers; a read of the debug status data register
+ * latches a sample into Dig_Sys_read7..read0.
+ */
+#define SIT9531X_PLL_REG_DBG_READ_CODE 0xB3
+#define SIT9531X_PLL_REG_DBG_WRITE_CODE 0xB4
+#define SIT9531X_DBG_LOW_FREQ_CLK_BIT BIT(7)
+#define SIT9531X_PLL_REG_DBG_DATA_0 0xB5 /* [7:0] */
+#define SIT9531X_PLL_REG_DBG_DATA_1 0xB6 /* [15:8] */
+#define SIT9531X_PLL_REG_DBG_DATA_2 0xB7 /* [23:16] */
+#define SIT9531X_PLL_REG_DBG_DATA_3 0xB8 /* [31:24] */
+#define SIT9531X_PLL_REG_DBG_DATA_4 0xB9 /* [34:32] + sign */
+
+/* Read code of the TDC phase tap, and the sign bit of its sample */
+#define SIT9531X_DBG_READ_CODE_TDC 69
+#define SIT9531X_TDC_SIGN_BIT 3
+#define SIT9531X_TDC_MAG_HI_MASK GENMASK(2, 0)
+
/* DIVN is carried as fixed point, in steps of 1e-12 of a whole divider */
#define SIT9531X_DIVN_SCALE 1000000000000ULL
--
2.39.2 (Apple Git-143)
Technical Details
Message-ID:
<20261119225752.41846-13-arouhi@sitime.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367406-linux-kernel-netdev=dewy.ruReferences:
<20261119225752.41846-1-arouhi@sitime.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367406-linux-kernel-netdev=dewy.ru
From: arouhi@sitime.com (Ali Rouhi)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v16 12/13] dpll: sit9531x: add support to get phase
offset on the connected input
Date: Thu, 19 Nov 2026 22:58:01 +0000
Organization: Usenet Network
Message-ID: <20261119225752.41846-13-arouhi@sitime.com>
References: <20261119225752.41846-1-arouhi@sitime.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="3004213"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CGNBRDdFuyCtxkJaff6zaMNPwSU= sha256:IK3KIfIXFKUbbQ/QLdq/BiKvybNrzUYj8d/6M0sX64k=
sha1:5DZ2pmBpg9od3Hph7nqflF3AMgg= sha256:caL2pwtt7eyErONa5BXlvxiDyjsxf+8DTBpvF2K+QlE=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-MS-Has-Attach
X-MS-TNEF-Correlator
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id B94401157EA; Fri, 20 Nov 2026 01:59:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=sitime.com header.b=FD7+JsE6; dkim=pass (2048-bit key)
header.d=sitime.onmicrosoft.com header.b=zCf8CLjH
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id KX2FBdfX5i_Q;
Fri, 20 Nov 2026 01:59:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367406-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=sitime.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 837091157E9; Fri, 20 Nov 2026 01:59:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 88D272855EC; Thu, 19 Nov 2026 22:58:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795129097;
b=SpiaMJRIt/Twi6gid0uhLOVl2WB3dPOtKQqI7DaOzFCDNfxEuNpwNDLlHZagOCuHcl6w
c3F2Upv6PVQLofef4cClgjHuO2IaJQulchkNCn6f+QhGJWZMO7TgA+IQEeIeHO7kHJHPX
llIRO6mXSJTLnDty1VzPhbhowVWNo27db5K+zR6MgUjIoraxifBn2Ij9upI6RtQroilaG
L2KgoqXbSmGU6jfhRrPeh4Vx8EDV+g1qR3uEMQVc0e7WqnHcy1+o151dAFz0n9pXRXTpE
QdPO6Zdl6w2CXkRN6n+xC/tlZXfuEcIGpkijX3ob9MLiRBY+4YICUiRn3ZyCkPNdr3w==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795129097;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-Virus-Scanned:
Received:DKIM-Signature:Received:Received:From:To:CC:Subject:
Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:
Accept-Language:Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:
x-ms-publictraffictype:x-ms-traffictypediagnostic:
x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck:
x-ms-exchange-antispam-relay:x-microsoft-antispam:
x-microsoft-antispam-message-info:x-forefront-antispam-report:
x-ms-exchange-antispam-messagedata-chunkcount:
x-ms-exchange-antispam-messagedata-0:Content-Type:
Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
X-Exchange-RoutingPolicyChecked:X-OriginatorOrg:
X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource:
X-MS-Exchange-CrossTenant-Network-Message-Id:
X-MS-Exchange-CrossTenant-originalarrivaltime:
X-MS-Exchange-CrossTenant-fromentityheader:
X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:
X-MS-Exchange-CrossTenant-userprincipalname:
X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MDID:X-PPE-STACK:
X-MDID-O:X-PPE-TRUSTED;
bh=MIxt9fp9PLSBDxWeImC3Er/VbbGuKia081LuLEb2Rgk=;
b=j4d7RQgHwZxhCPcn1XzDHgh6D87TyQ5VWRIr8QvTWGevbi1+siL2gMABod2DRyqJhUjd
5dZx7YxddWtBUvY563hdXxzb5XkO1qOuLOX6TFRU7diwq4j7BZksgLMI/i6vgb2Soo9dM
n9B2n5Gak7rD0jbKv5Fz4GglTKhuiUGtLAC2FFkPsakVyfV9OGsX0fvBAwzh9TfEU2/pj
u2pISSspQe/7ndKAXCCEUKH3MzjmsD84N0vLCCMFmviV1qFJ/eHXgi0IoOVcEZ8B6jc0E
ZK+UMnXasBKBGwxH5JC8TSjBr7BNk6kmYelCc72K/9QvBumkhHcn5XO12gid2K7vNfA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=FD7+JsE6;
dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=zCf8CLjH;
dmarc=pass header.from=sitime.com;
spf=pass smtp.mailfrom=sitime.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id DDB37606E998;
Thu, 19 Nov 2026 22:58:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=FD7+JsE6;
dkim=pass (2048-bit key) header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=zCf8CLjH
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.129.48
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795129096;
b=eLmUIRTPnGAL43+ZtFxgMhbGLHSUZiahmmFppuMB6ep/Sep1SmmaEnASUqUEAqFHZ7w+
rXnAjl4nEztsaa8KrM6ylCijsD9j5XBDEQXnBMdIaTrAxlJ7tDnecLiy9nzTtG06NKUxB
V53hd6PLESi6z2oibhuaW1ETUh1oiq0OExmzd8y84espo8QlGuja8KQqmy3FevvjvHr01
yj1TJKevFalU21lRjEXpJUJ18WXa/tsxPsWXp8agKHyU9jaP3VbtLXLKc9Peyf+/RPcyD
mC90oMA7UOA6IBgF1gToBpCnF52cUZ2PHIn59H9Qa5A9aKzLrJL76cW02TJu44XVoJQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795129096;
h=DMARC-Filter:DKIM-Signature:X-Virus-Scanned:Received:DKIM-Signature:
Received:Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:
Message-ID:References:In-Reply-To:Accept-Language:Content-Language:
X-MS-Has-Attach:X-MS-TNEF-Correlator:x-ms-publictraffictype:
x-ms-traffictypediagnostic:x-ms-office365-filtering-correlation-id:
x-ms-exchange-senderadcheck:x-ms-exchange-antispam-relay:
x-microsoft-antispam:x-microsoft-antispam-message-info:
x-forefront-antispam-report:
x-ms-exchange-antispam-messagedata-chunkcount:
x-ms-exchange-antispam-messagedata-0:Content-Type:
Content-Transfer-Encoding:MIME-Version:
X-Exchange-RoutingPolicyChecked:X-OriginatorOrg:
X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource:
X-MS-Exchange-CrossTenant-Network-Message-Id:
X-MS-Exchange-CrossTenant-originalarrivaltime:
X-MS-Exchange-CrossTenant-fromentityheader:
X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:
X-MS-Exchange-CrossTenant-userprincipalname:
X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MDID:X-PPE-STACK:
X-MDID-O:X-PPE-TRUSTED;
bh=MIxt9fp9PLSBDxWeImC3Er/VbbGuKia081LuLEb2Rgk=;
b=GZumhpYNf13tfCrxzaY081vf5YdTAgP55MmCSXTv9vt7WMTGsTSt19S+XkmxaWWBGIMV
LJDiz/kGcherTmw+KqeiPnLL/UUShx+ejTNnijGkDcoxvbKWUaUSXELv/n40J7aldWrEB
UwyJZ8iOzVlttXORZ64S+uUjM1vj+aDhdJdj1ip4Kbm4panrub00rUi4ascDOZ1umviLc
9kIb0T83GD5x/hXBip0b5BnqAXgMZp8gunNOn/Dw1m8bRf1LO3PKxN36yJdknvh5kqMY5
uNHU16gyhvbjMipmpo0NKWgK7VZ1HTmPZV/WhHkaYSu3H4c2qxuWBd0jisXueeeQc5Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=sitime.com;
spf=pass smtp.mailfrom=sitime.com;
dkim=pass header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=FD7+JsE6;
dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=zCf8CLjH;
arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.129.48
X-Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.48])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5870660A3811;
Thu, 19 Nov 2026 22:58:15 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5870660A3811
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sitime.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sitime.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sitime.com;
h=cc:cc:content-transfer-encoding:content-transfer-encoding:content-type:content-type:date:date:from:from:in-reply-to:in-reply-to:message-id:message-id:mime-version:mime-version:references:references:subject:subject:to:to;
s=mail; bh=MIxt9fp9PLSBDxWeImC3Er/VbbGuKia081LuLEb2Rgk=;
b=FD7+JsE6imxempUzDhP9EARN4HWEw1ZyexfTI3AgY1dAet+gg9KlhEL1mGWeRkpW44k5Y38edN72nuXsK3UmWfirl5B4oWKm+UdGedgTbx15YOIZFseHuc4YMdSS4Mh24keobb3TKTaZ6k6S7b/2Hzg/Kc4qyLaxmfHzrM+p9vynXKM3DSnRqNe023zg/USn4ffqwUc7G8O50c/jow7V2kSY5pGlNWfUttXDsukwFRjY2kZFkaDTdw6IdnDYQGGd9u9+H+8bDHENo2GcZi8dDZqJZNEypcoExbwarulMHoHVi/joWQK5Ndy+Q47w2OhW906Cnb4DVBDtvSCD6yZYNg==
X-Virus-Scanned: Proofpoint Essentials engine
X-Received: from CY3PR05CU001.outbound.protection.outlook.com (mail-westcentralusazon11023125.outbound.protection.outlook.com [40.93.201.125])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 99EEFC40064;
Thu, 19 Nov 2026 22:58:07 +0000 (UTC)
X-ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=R2qMwU7blXq6FFbQ4dyuhSQ6AgYsCXJMO7sU4L2CAKGfg+4gBF+JiQUZhfw5MBwIBzeMR+TUo6fz6gyx1/xZxZuOVURAcbyUjPuN78RVALV/OZ95jd8hw9LLkGE7ybCW9g35nDexpYDXwh1SHzXIWOET3MN2Olu+ERdLHaaq4oeNNa1KtCn0VZk0vcNGGORgUnhRN7TrZBqMMKISHLScrrBphZ0yFTpHiXjtJ3nXyqNrQWkrl7We8Kw6tBKOpKggrE4msgdGqvfr3NXOiNQ2e+YNIGa3qizVbdhtUI4lSwl0J7vvN0H2vVeCti0Ih62hJ/VjQtgdFgq2qjSKIjKFvw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector10001;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=MIxt9fp9PLSBDxWeImC3Er/VbbGuKia081LuLEb2Rgk=;
b=E18xxx3F9he/hK5d0IPtMHWhhE2gWXaiEpL/ikmQdoCCLmU55RN2xtqa5taxbRDorv4RsR+jj80n5ehlU5f1WlZ9whFmKtsPz3UyxvhRt+oU2VwOkS+Z5qZ8OGU6k18jKt2vLbbAh6XsyhZ3tOvAu8+s3ETmMpD7aAmTH0ApG35iE3l3EkNmujhNtWYmKhoWix69kezOl+2hREhNZkHqPYw6gvqyYGQ0qmj1q4HhaYqy/Ng6cqqn/Bhb4r+R2kjyDf+eS80rBfRFPP67C0JRBPtsN6Y8F1tHWxATjKE1zGA63wK8uJrXTzalkscWGLTv57OZ9TVW7pckPMxnj+tF/g==
X-ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=sitime.com; dmarc=pass action=none header.from=sitime.com;
dkim=pass header.d=sitime.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=Sitime.onmicrosoft.com; s=selector1-Sitime-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=MIxt9fp9PLSBDxWeImC3Er/VbbGuKia081LuLEb2Rgk=;
b=zCf8CLjHVazoMMwK6O8hpuWiiyONBZtQL4PivOsSzJU/IOzUiTYFW/LDjK2C7nwsYP5onKMhvwOgxHGinch8+5opxmE0Lp6kLU+Q71uYOQDBrIOCGzicKDvFhtjBQ6mou9rau5iZPJfxHT55HIWAlV4txmNlJvUFnMSL2AbS5MxCRZZBiECVz7ifgFmYBPxSaE+igSkVSD2YWq5Bq8mqSgkPtzOg5+QCulHH7Y7ObUKJZxXMJDJAMQ9xS1QJAtfasBiZKPsFN+e+Ofn4nQ/by0dtJ+AWraoyvWEjAx5qIIkTjtp8Ghv4cZdgmdZicBkRYni5tc9AjvhBZyv9+jkA/g==
X-Received: from DSVPR20MB994924.namprd20.prod.outlook.com (2603:10b6:8:45b::22)
by SA5PPF6C2DD1D15.namprd20.prod.outlook.com (2603:10b6:80f:fc04::998) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.13; Thu, 19 Nov
2026 22:58:05 +0000
X-Received: from DSVPR20MB994924.namprd20.prod.outlook.com
([fe80::5f15:fc8a:498:98d7]) by DSVPR20MB994924.namprd20.prod.outlook.com
([fe80::5f15:fc8a:498:98d7%6]) with mapi id 15.21.0639.011; Thu, 19 Nov 2026
22:58:05 +0000
X-CC: "vadim.fedorenko@linux.dev" <vadim.fedorenko@linux.dev>,
"arkadiusz.kubalewski@intel.com" <arkadiusz.kubalewski@intel.com>,
"ivecera@redhat.com" <ivecera@redhat.com>, "kuba@kernel.org"
<kuba@kernel.org>, "pabeni@redhat.com" <pabeni@redhat.com>, "robh@kernel.org"
<robh@kernel.org>, "krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>, "cjubran@nvidia.com"
<cjubran@nvidia.com>, "Oleg.Zadorozhnyi@devoxsoftware.com"
<Oleg.Zadorozhnyi@devoxsoftware.com>,
"prabhakar.mahadev-lad.rj@bp.renesas.com"
<prabhakar.mahadev-lad.rj@bp.renesas.com>, "devicetree@vger.kernel.org"
<devicetree@vger.kernel.org>, "netdev@vger.kernel.org"
<netdev@vger.kernel.org>, "linux-kernel@vger.kernel.org"
<linux-kernel@vger.kernel.org>
X-Thread-Topic: [PATCH net-next v16 12/13] dpll: sit9531x: add support to get
phase offset on the connected input
X-Thread-Index: AQHdeHltTTnyNCyqLEueoCssDMpygg==
X-In-Reply-To: <20261119225752.41846-1-arouhi@sitime.com>
X-Accept-Language: en-US
X-authentication-results: mx.microsoft.com 1; dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=sitime.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DSVPR20MB994924:EE_|SA5PPF6C2DD1D15:EE_
x-ms-office365-filtering-correlation-id: 91f22132-4061-4c9c-1a1c-08df46909277
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|23010399003|1800799024|376014|366016|38070700021|261028144727099003|260925021911599003|260925021311599003|260925022911599003|5023799004|261021135927099003|56012099006|261021123027099003|261022105027099003|261022115727099003|261026121527099003|261022113327099003|261021121427099003|261022075727099003|261009223027099003|261026140227099003|261102123227099003|18002099003|22082099003|6133799003|10067099003|3023799007;
x-microsoft-antispam-message-info: D04fWMmmWj40/vTvI8/zkmNoWF9aDt2F2VvHrYmAbyLPBmO1pN/kJSV3xHiDlgaVh5kEucnaXqWQCUVkx/bIGrODBCFeVr9dlavSOBnKmz+anc/fklSb5/oeXmjrZmOyWHOVW/ldG6r0IvJSbLsFeDoQKoWzg+zxSPBNKlCiolg7DTO6fbTGxjc0Rc24yufX3drgPsy4dK6WeiQF73hAgFMIrYkrlethFakVo5/Fb9YKxTQYf9hSvqmvZWfu/4gzs17zM1krMB5v5ZnVurL5G34uaB0aBRWuqlJ/9CREETXWXSQyn0IUZ0Vi7+zaT+XXaxk9BFLCdSv+OZdkwmhh/O2tgDCcI/NHx2tdm0W+ZwjXAiAdsFAlQDCELTCJpSpus4KxaAeO1GicjDXPFOCwDXU8At6s8ewgb+sBBJuQWNHAACsodeNc1VWttWL7w8OI9c3KrXtX9D+6nxtgS2di7cFF9dcTaQzXTA0WFbssEtyRIHkq+SBYSqK59bT8XBulAVWAG8pMln2I6vx6sZgzSxWkSXVP0ZwO6YC/cJYfoPnQFG2G2Oa5tbMGtoVx6gEnNbghD0T64gEBsy7eC+10fQT7WuG8ogW2h+j8WlXD9S77mQT4iqFGxAxjMIL0z2DfRkDImmFIcKqP/F1vBjDyBnj3cyWv0n7UXr85h3tuP7yCy/MHpiu2NS3ruL9ktG+WxbA5kGTf2PpopI36pWX7OZE7fUSXLlM9em0Us/ZTlzk=
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DSVPR20MB994924.namprd20.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(376014)(366016)(38070700021)(261028144727099003)(260925021911599003)(260925021311599003)(260925022911599003)(5023799004)(261021135927099003)(56012099006)(261021123027099003)(261022105027099003)(261022115727099003)(261026121527099003)(261022113327099003)(261021121427099003)(261022075727099003)(261009223027099003)(261026140227099003)(261102123227099003)(18002099003)(22082099003)(6133799003)(10067099003)(3023799007);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 7x8ZaIdmBLkPQiHKCLw5QpEH4EEwGVvRGf/yhqc1owYm6pqEOpms6Q1yHsxZtZ9axGz1wctWJm4v9KsvMfx0qHYzLiT3rgW1zObvM7DLFSeha7KZ2+9ks5pxVClPHySQHPrNCBi4OG7RzGl4YWrKLmRY3KxQKkmtxJoa7LMCI+AsbHOW8KV5ODkRD86OghoHweRvKkrlVk+9b2njBShkJKMRxHwCWOWGIO0ymzm00gyLk8BUbMmlWMgU6Z+VwxiwwzdsoN6OtHdBGKDPOlIRa6FdD8V9cI0dR+nUTYcZn7khuMy0EzGcySHFmhqShT5U89FDfE51xEBO+Ya4h9dc93zJMwdV6dpmT1unysq6yatMJjvgPb9rw43XzYESUrYNjCLUSSkT6UseTHcCvRnEPVyXhIcfVi7h7auR1Vp+4EbCwge7Qu75L5lmA/jrYOTm/nsp238f+brMe7Ju2LCVhiBOLxYjF/qeCVxWFQBFKfLkQyLFaXkvV4FzPyvyP8QO0+ZFMFeqKVVWxftAb/DviXq6tswBGXR/IlO3bj3fe2gRPw142KIXDPl2i7uGHY5esSxbv0Onaa2voWE4wMxllDxpZpYwOkkYo5m+Z9/kBA5Ws6k3xn3YT+tyl06KI4zHblO7sFQoYTgNMHYyGKa+LEr4hNNRUgcytjTh/GUvU5xEy6vrGMQUS+sUr0pxzaPW9ZGYmklW2RO7QfcbmnEl/JPBfL0bBeKoYFdax567VrJlFj954IiX5l2BXRd/GrSqqyqkM19WpcmOXpaFP3ztq1AxViKh/f01gBgUwzr4p72bkkZLlQfNd5XmuznTfOKOz9CT9+AzNOZOcIUol5nhZnE2EjOnViEZ8zJtlq7OX/8dNZTiszp+rpwpXIX6HDpl7wtlcaqoo+I+Xo1TI+2vSyv8HDr5bKGKchvkdw1ILiYscRUFhz7ixHQvBl8euRYpqAbM/na1/lUnlr2hbi/6XqbYGB1fiv58LXOkWbSrn40akaD0EDE/WUXuEH7z2Wz8DcbhD7IyXFClV6XiVUfdI9z87K8ISxvJLPWjO1sNr9UjLIdJXQQpd9n5UJ12s+hxPfLpnqZSjaFl086+zcJs2iOZEY9CICsw7WcbN9QJVXdTC1V5ZZQ9OR6FRjsHSx3DXJYjPbn56uV5mfElqs4vL1edvsxEmYYl5/GkkRTE2OlBLB6MtNR8+CgLOxVj8FMoYTuyv+NWKYSLlbajIFg6mwTPV9SZG0Y6zL31VrvTcvjm4kC0/UoQoMBibndM22NiecWjQYJuKL+ELOKogU25vvv51FSKptpKSGu8l+aI7xF9m6m0J0gnVqumfwYZwXNfnaJ0+4LvOt0RpnKjB/RJ0GqEcuEQF4Vw8F2byd2vQ2E3fbhgfRqOo0JnUekdH43V+7cX0o0+/szcoawSIg18W8zop/O73K4u5D9GvDMFbkhEaVbMuG9RmlcTarDQeUEiZ5/tiUathS/0d+j8Zut4jfeBwAOd/DFt3PA9JcGsUgZRpHKhw2xymscyn4ptjFc4qnIAqiC6ryn152o0hlYlR+CYsbMZ/KfnspTo0dD1TPB4ZlTRpcW09zAUPBuHL5sd46grgdsha80uBGGOyOFi+xmyPYGG7feJwNk/kEC6i1GYEifP1TrDRseNdnjMfElcFHQuhNg5FMrn+GGrHSmE9Jn1zE1TcVI9bSafXcNe68pw7oiA6/sAAYgGOXZ8LCfD
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Exchange-RoutingPolicyChecked: M6Kmv34pPcsRE0q64LQhQjsZBGhpeqAEbsqk1Tam07X1qgfZ6fIdjVqXF7wmXdsN2WnLzPRBZtrsYhDJqYhe1dPLZUdyGR4VnXzTI2/GTTIRkyF+E8aCn5kmAISSRUF0wpxe/G4mEuuFrhQAyTms5rplTWS24/iNVMPPjy87zMiARI4zGi+KqMuCkLBAr88utZo+P0qUDoNv3A/qiKYxEa8OCkB6pIc97w9EpZpeXUukgSjaE5jbJu9TEX8wEJaUfwMrk6P0GUkLtJVgt7xpYhTYx8deteE+i54X8F5j06eUMBkasm+XRfCvf5vzGBlwHcp7iUOcJzNfIzt2ewnbeg==
X-OriginatorOrg: sitime.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DSVPR20MB994924.namprd20.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 91f22132-4061-4c9c-1a1c-08df46909277
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2026 22:58:01.2899
(UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8fb55916-cf10-4b0d-96f4-cf3952657263
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Ej8ugRfWasXIJY7Eupa0ct/+99sd7/r1UopRA7wDKKgo+riXxZk/6+p165KpJTgF9Z6RV4JfHNqaqVHv1eC6yg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA5PPF6C2DD1D15
X-MDID: 1795129088-DhOwfEmDJZx4
X-PPE-STACK: {"stack":"us1"}
X-MDID-O: us1;ut7;1795129088;DhOwfEmDJZx4;<arouhi@sitime.com>;ba04557de9d2da8490f5f1e6de07b967
X-PPE-TRUSTED: V=1;DIR=OUT;