From patchwork Wed Apr 19 15:14:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shmuel Hazan X-Patchwork-Id: 675257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41452C6FD18 for ; Wed, 19 Apr 2023 15:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbjDSPYi (ORCPT ); Wed, 19 Apr 2023 11:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233482AbjDSPY1 (ORCPT ); Wed, 19 Apr 2023 11:24:27 -0400 Received: from synguard (unknown [212.29.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A06665BF; Wed, 19 Apr 2023 08:23:48 -0700 (PDT) Received: from dali.siklu.local (dali.siklu.local [192.168.42.30]) by synguard (Postfix) with ESMTP id 3CCF14DFC5; Wed, 19 Apr 2023 18:14:59 +0300 (IDT) From: Shmuel Hazan To: Russell King Cc: Marcin Wojtas , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , horatiu.vultur@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Shmuel Hazan Subject: [PATCH v3 0/3] net: mvpp2: tai: add extts support Date: Wed, 19 Apr 2023 18:14:54 +0300 Message-Id: <20230419151457.22411-1-shmuel.h@siklu.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch series adds support for PTP event capture on the Aramda 80x0/70x0. This feature is mainly used by tools linux ts2phc(3) in order to synchronize a timestamping unit (like the mvpp2's TAI) and a system DPLL on the same PCB. The patch series includes 3 patches: the second one implements the actual extts function. Changes in v2: * Fixed a deadlock in the poll worker. * Removed tabs from comments. Changes in v3: * Added more explanation about the change in behavior in mvpp22_tai_start. * Explain the reason for choosing 95ms as a polling rate. Shmuel Hazan (3): net: mvpp2: tai: add refcount for ptp worker net: mvpp2: tai: add extts support dt-bindings: net: marvell,pp2: add extts docs .../devicetree/bindings/net/marvell,pp2.yaml | 18 + .../net/ethernet/marvell/mvpp2/mvpp2_tai.c | 334 ++++++++++++++++-- 2 files changed, 317 insertions(+), 35 deletions(-) base-commit: 3e7bb4f2461710b70887704af7f175383251088e