From patchwork Mon Jan 16 08:55:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddharth Vadapalli X-Patchwork-Id: 13102757 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2431BC54EBE for ; Mon, 16 Jan 2023 08:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4s6r3SvmFWRdCGdTNwrLPyTYBqy9XPHihwvQPZ7kP30=; b=FZ9XPcjHBhgTrD TL6qMr6XwVmPmewSvKahcl3UsBl+T7mtgM6qeev89T/AtNn6GMoLHyY0z0J7b+R1Laqo772q2pUS1 V910fd0LKUN7AKFf/QhQ0BVPeeGW1Rhwe8SGRukZIvGZEAOyh3TYI5Oqq2jX+s606WIabJxExRnEq aSOktaWnSVoYuH9NSwRMOqXsWYMa6HBeboQ3K/w7imJbw47IdRsT0Q/yvt93UMiWBxwEc8IpHJagm 41hn4s9dbjz2lmhhVL6n+qc37WWvlAdlYvGd2uUp46iCbKr+dCvGwYE+awo9jFKSQn7zQc6Z21W9+ fU6PUFKEBmQaVJbizu8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHLHX-009EoO-74; Mon, 16 Jan 2023 08:55:55 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHLHT-009EmF-Ne for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 08:55:53 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30G8teAd064470; Mon, 16 Jan 2023 02:55:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673859340; bh=BiIyJEi0pp6Nt7svGW9SqzoYZ1kZspHk47MZdNhzGyE=; h=From:To:CC:Subject:Date; b=WQyY+RGp8XwPkF0Ivu8mw76qXxYR7/+dsz18PggXIqLogDQy7MiwvODkR5TcFtMDI ODBaGevk0FnZf2WtBDFoFw8Xegxhxxeri72PJWjZimmx+WUsSxW4i5NsvZwXUefdbl hS5ZmLrKrSjYOBYh9AxH2Cx6ASor/IaieURgOvAk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30G8teci076507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Jan 2023 02:55:40 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 16 Jan 2023 02:55:40 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 16 Jan 2023 02:55:40 -0600 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30G8tZwH040368; Mon, 16 Jan 2023 02:55:36 -0600 From: Siddharth Vadapalli To: , , , , , , , , , CC: , , , , , Subject: [PATCH net-next v2 0/3] Add PPS support to am65-cpts driver Date: Mon, 16 Jan 2023 14:25:31 +0530 Message-ID: <20230116085534.440820-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_005551_928053_BCBE8469 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The CPTS hardware doesn't support PPS signal generation. Using the GenFx (periodic signal generator) function, it is possible to model a PPS signal followed by routing it via the time sync router to the CPTS_HWy_TS_PUSH (hardware time stamp) input, in order to generate timestamps at 1 second intervals. This series adds driver support for enabling PPS signal generation. Additionally, the documentation for the am65-cpts driver is updated with the bindings for the "ti,pps" property, which is used to inform the pair [CPTS_HWy_TS_PUSH, GenFx] to the cpts driver. Changes from v1: 1. Drop device-tree patches. 2. Address Roger's comments on the: "net: ethernet: ti: am65-cpts: add pps support" patch. 3. Collect Reviewed-by tag from Rob Herring. v1: https://lore.kernel.org/r/20230111114429.1297557-1-s-vadapalli@ti.com/ Grygorii Strashko (3): dt-binding: net: ti: am65x-cpts: add 'ti,pps' property net: ethernet: ti: am65-cpts: add pps support net: ethernet: ti: am65-cpts: adjust pps following ptp changes .../bindings/net/ti,k3-am654-cpts.yaml | 8 + drivers/net/ethernet/ti/am65-cpts.c | 155 ++++++++++++++++-- 2 files changed, 148 insertions(+), 15 deletions(-)