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.133.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 5910B3AE71D for ; Wed, 8 Apr 2026 10:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775644050; cv=none; b=OccVLKX61aHsERB5mY0hVQKDZljFdNRpZUdm2KGIAYW9hvBpjX+1fGXLGbW9iqReV64lY2lmmDPB04YKXhlCo3ja9vx4dVQTAPN0BAc17lkDldFNT5zfyXy9DHxPs0aL+qecDHcFjOrLM10Xna77Hh4ujvI3UHWjm4e7/XSrHSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775644050; c=relaxed/simple; bh=W+1Z/vDNKp849GVaJkTkq5CWTUqbYgykUvBOjwXM2EU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jmGhl9XFY8gTzjWDpsB+qlDbtXyBeXHwbCtTOjc+4VOZZ8rbJ9LsxZwHpsOrRyQAuOmAEdt46iYiPYGAeIiXw525EbnSwkiX6bz9qQdoRZXNvaXSITDleNd4ze9TvQFblx7nJ/wnFZ+vzjkZAygdgExt+3rL47eEgM72An8AO4o= 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=ASFGo3t5; arc=none smtp.client-ip=170.10.133.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="ASFGo3t5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775644046; 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=WE6MQcPBm8Gz5g6B12K6W/MngtXhgnWBVG3VNuBxim4=; b=ASFGo3t5Eh7hH3b1Xo3ZH8WjJCVtwt/+tIBD6oB3/zcurF+ls7cS8ekCOwJ2hiAkpQjoiY 0hyFVwc1XjH8ZvmhbXOAEb2paYha3GfNIAGd1aJrT1hFfqe9KZQ8CLL1ctx4B+eVFdswtP rQK4VK247A6BSCQKcpHkPnIyfc2gJCY= Received: from mx-prod-mc-08.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-494-3rCY-2jwMXuywKd03r12KA-1; Wed, 08 Apr 2026 06:27:24 -0400 X-MC-Unique: 3rCY-2jwMXuywKd03r12KA-1 X-Mimecast-MFC-AGG-ID: 3rCY-2jwMXuywKd03r12KA_1775644042 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E273218002DC; Wed, 8 Apr 2026 10:27:21 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.44.48.188]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8636330001BB; Wed, 8 Apr 2026 10:27:17 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Arkadiusz Kubalewski , Jiri Pirko , Michal Schmidt , Petr Oros , Prathosh Satish , Simon Horman , Vadim Fedorenko , linux-kernel@vger.kernel.org, Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, Pasi Vaananen Subject: [PATCH net-next v3 0/5] dpll: zl3073x: add ref-sync pair support Date: Wed, 8 Apr 2026 12:27:11 +0200 Message-ID: <20260408102716.443099-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 This series adds Reference-Sync pair support to the ZL3073x DPLL driver. A Ref-Sync pair consists of a clock reference and a low-frequency sync signal (e.g. 1 PPS) where the DPLL locks to the clock reference but phase-aligns to the sync reference. Patches 1-3 are preparatory cleanups and helper additions: - Clean up esync get/set callbacks with early returns and use the zl3073x_out_is_ndiv() helper - Convert open-coded clear-and-set bitfield patterns to FIELD_MODIFY() - Add ref sync control and output clock type accessor helpers Patch 4 adds the 'ref-sync-sources' phandle-array property to the dpll-pin device tree binding schema and updates the ZL3073x binding examples. Patch 5 implements the driver support: - ref_sync_get/set callbacks with frequency validation - Automatic sync source exclusion from reference selection - Device tree based ref-sync pair registration Tested and verified on Microchip EDS2 (pcb8385) development board. Changes: v3 - fix ref-sync-sources schema: add items/maxItems constraint for phandle list without arg cells (Rob Herring) v2 - added proper reviewed-by tags (requested by Kuba) Ivan Vecera (5): dpll: zl3073x: clean up esync get/set and use zl3073x_out_is_ndiv() dpll: zl3073x: use FIELD_MODIFY() for clear-and-set patterns dpll: zl3073x: add ref sync and output clock type helpers dt-bindings: dpll: add ref-sync-sources property dpll: zl3073x: add ref-sync pair support .../devicetree/bindings/dpll/dpll-pin.yaml | 13 + .../bindings/dpll/microchip,zl30731.yaml | 30 +- drivers/dpll/zl3073x/chan.h | 17 +- drivers/dpll/zl3073x/core.c | 3 +- drivers/dpll/zl3073x/dpll.c | 295 ++++++++++++++---- drivers/dpll/zl3073x/flash.c | 3 +- drivers/dpll/zl3073x/out.h | 22 ++ drivers/dpll/zl3073x/ref.h | 46 +++ drivers/dpll/zl3073x/regs.h | 2 + 9 files changed, 350 insertions(+), 81 deletions(-) -- 2.52.0