From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B9883358C6 for ; Thu, 21 May 2026 07:42:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779349362; cv=none; b=pNh0m7VZSdtU8dqXfOAWvJGF4nxIpi/rNtfiRA/PLiAi686/uWe0Tz/VdYKWvEcFTjp6WXStfDtsy9QSYX3te9B3qiIyJ4XoZ3jUBFJQYL7/88HFH1G/HQztbArExIhBIshqoOMkNfT7tDbf+I0B6TrGrGgdlUxCPdJRstyg7QE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779349362; c=relaxed/simple; bh=j1mdV7OC7OIpYI7saIa/DWoNbEvAqsQycuTbEzIbups=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mTOrBVeM0zyEkKUDGMiDf9Wpp8qrTMEGJgKWEGwh/rh5AaarUDrXH9aYMeoVCRLD40cI0c8P65QWOBmal0EGVdTN2Nn+H6Ik2jxg7XhFdW0QU3TlAHztQG2KqpVoy04nYl8Rrp6Szh0QUhv0g7LLliz8rsf2hw4CPQj6dha/wE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=UPGvCxvR; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UPGvCxvR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779349358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OpRJi5ew7UC6Tw+onC7/ETTvlR3lzS4+PzEgUivNZSU=; b=UPGvCxvR4hEbMnrzMVRkUIdwsp6Lu8ASRYcdjZU81tHiTcROZMZfL5mSjtsTz8dZdIcGRl rIEfyqhXnguRinOLNqyMru/iZj2x3IPpAiuq3Mt0U++oGWdulI6jf5RwlK7NLKCXAsCmzr vcogJxYwOZAfQr8nsx0JWKSILQkGaMc= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-161-x8IFRELKPDm0-Yg-QbsxLg-1; Thu, 21 May 2026 03:42:33 -0400 X-MC-Unique: x8IFRELKPDm0-Yg-QbsxLg-1 X-Mimecast-MFC-AGG-ID: x8IFRELKPDm0-Yg-QbsxLg_1779349352 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6A86E1800611; Thu, 21 May 2026 07:42:31 +0000 (UTC) Received: from p16v.luc.cera.cz (unknown [10.44.32.79]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BA9EF19560A3; Thu, 21 May 2026 07:42:26 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Arkadiusz Kubalewski , "David S. Miller" , Donald Hunter , Eric Dumazet , Jakub Kicinski , Jiri Pirko , Michal Schmidt , Paolo Abeni , Pasi Vaananen , Petr Oros , Prathosh Satish , Simon Horman , Vadim Fedorenko , linux-kernel@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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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