From patchwork Wed Jan 11 11:44:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: s-vadapalli X-Patchwork-Id: 13096516 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 8EA03C5479D for ; Wed, 11 Jan 2023 11:45:51 +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=PrIdAwe82vgEfjmzMoYe0cUZ/LydwIavhDymtTKDnLA=; b=qp6fc7wDbmrTxG 8OqDKqRI6TTQEnE1Gh5jy3M8asYvMWxqdaVeNpPIjUgaSEwCjkUx7U05pJPgkM0YhegatKmSBievy ve5Xc8X+l9bw6UXnJDzJ1tTKsXKmpEoiR/KWPeEBx7C7M1wsbzSIT7dZFY/gJ14nB0hL5tvqB8aNq zhV4/zKAXkFsdMAll3VYDB1RL1TrSyOlLPXHjIjLXRBlN6Bn603MHotdgpzFRbQ7dmw3SGZwtc5bh 1qxua2vX2XO6pUKv+EYdXgQ9oRSW/wmYjj25bScvULF+HuSzcanRcixpP3C02B0a+62fIgCIG46gU aG/OfSrScx9Rok3UCAMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFZXJ-00B7xt-EX; Wed, 11 Jan 2023 11:44:53 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFZXG-00B7vu-LJ for linux-arm-kernel@lists.infradead.org; Wed, 11 Jan 2023 11:44:52 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30BBiaDi030624; Wed, 11 Jan 2023 05:44:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673437476; bh=j+h4JevHnwLFduKRSkeB5LMLLoTDYPUgl2/FrQXToy8=; h=From:To:CC:Subject:Date; b=n7jLSB52OEMEjjH8H89vZdiNEZYkKUuR8HDlUvY9KQTDZQgB+4+w6fuzU7F8Pi8Ro LSkjs/fO1lT6sBhs19OuBJSHVlTKWT7EZUW13q3u8VJv4h8GdvDojWwi3/wZop+mzF iWZQkNnv2SOvMMuA02D5fCC1asLrVVyTzGlPcaK0= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30BBiaIW011889 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Jan 2023 05:44:36 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 11 Jan 2023 05:44:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE100.ent.ti.com (157.170.170.30) 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; Wed, 11 Jan 2023 05:44:35 -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 30BBiUkH093892; Wed, 11 Jan 2023 05:44:31 -0600 From: Siddharth Vadapalli To: , , , , , , , , , , , CC: , , , , , Subject: [PATCH net-next 0/5] Add PPS support to am65-cpts driver Date: Wed, 11 Jan 2023 17:14:24 +0530 Message-ID: <20230111114429.1297557-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-20230111_034450_834115_6873A042 X-CRM114-Status: GOOD ( 13.78 ) 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. The PPS example is enabled for AM625-SK board by default, by adding the timesync_router node to the AM62x SoC, and configuring it for PPS in the AM625-SK board dts. 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 Siddharth Vadapalli (2): arm64: dts: ti: k3-am62-main: Add timesync router node arm64: dts: ti: k3-am625-sk: Add cpsw3g cpts PPS support .../bindings/net/ti,k3-am654-cpts.yaml | 8 + arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 9 ++ arch/arm64/boot/dts/ti/k3-am625-sk.dts | 20 +++ drivers/net/ethernet/ti/am65-cpts.c | 144 ++++++++++++++++-- 4 files changed, 166 insertions(+), 15 deletions(-)