|
|
Log in / Subscribe / Register

dpll: add NCO pin type and zl3073x support

From:  Ivan Vecera <ivecera-AT-redhat.com>
To:  netdev-AT-vger.kernel.org
Subject:  [PATCH net-next v3 0/2] dpll: add NCO pin type and zl3073x support
Date:  Thu, 21 May 2026 09:42:18 +0200
Message-ID:  <20260521074220.432590-1-ivecera@redhat.com>
Cc:  Arkadiusz Kubalewski <arkadiusz.kubalewski-AT-intel.com>, "David S. Miller" <davem-AT-davemloft.net>, Donald Hunter <donald.hunter-AT-gmail.com>, Eric Dumazet <edumazet-AT-google.com>, Jakub Kicinski <kuba-AT-kernel.org>, Jiri Pirko <jiri-AT-resnulli.us>, Michal Schmidt <mschmidt-AT-redhat.com>, Paolo Abeni <pabeni-AT-redhat.com>, Pasi Vaananen <pvaanane-AT-redhat.com>, Petr Oros <poros-AT-redhat.com>, Prathosh Satish <Prathosh.Satish-AT-microchip.com>, Simon Horman <horms-AT-kernel.org>, Vadim Fedorenko <vadim.fedorenko-AT-linux.dev>, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

Add a new DPLL_PIN_TYPE_INT_NCO pin type for virtual pins representing
the NCO mode of a DPLL and implement support for it in the zl3073x driver.

Patch 1 adds the new pin type to the DPLL netlink spec and UAPI header.

Patch 2 adds a virtual NCO input pin to the zl3073x driver that allows
userspace to switch a DPLL channel into NCO mode. The pin reports
connected/active state when the channel is in NCO mode and handles
the hardware-specific details of mode transitions including automatic
df_offset capture and 1PPS phase preservation.

Changes:
v3:
  - fixed SoB position
v2:
  - See individual patches for detailed changelogs.

Ivan Vecera (2):
  dpll: add DPLL_PIN_TYPE_INT_NCO pin type
  dpll: zl3073x: add NCO virtual input pin

 Documentation/netlink/specs/dpll.yaml |  13 ++
 drivers/dpll/dpll_nl.c                |   2 +-
 drivers/dpll/zl3073x/chan.c           |  68 ++++++-
 drivers/dpll/zl3073x/chan.h           |  25 +++
 drivers/dpll/zl3073x/dpll.c           | 277 ++++++++++++++++++++++----
 drivers/dpll/zl3073x/dpll.h           |   2 +
 drivers/dpll/zl3073x/regs.h           |   7 +
 include/uapi/linux/dpll.h             |   4 +
 8 files changed, 357 insertions(+), 41 deletions(-)

-- 
2.53.0




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds