From mboxrd@z Thu Jan 1 00:00:00 1970 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 69B9BC46467 for ; Mon, 16 Jan 2023 16:15:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232913AbjAPQPw (ORCPT ); Mon, 16 Jan 2023 11:15:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232397AbjAPQPS (ORCPT ); Mon, 16 Jan 2023 11:15:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5DB26595; Mon, 16 Jan 2023 08:09:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8495E6104A; Mon, 16 Jan 2023 16:09:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 896FEC433D2; Mon, 16 Jan 2023 16:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673885351; bh=ur7tHORUQyrdCM/4MJ+pk0qT4B8g0aXNEadfNDhRriY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NQL8P9uvdVVmhK7QIRodTU6aesg0/i8PrQ42FrfshDqGkA/7GxErpMxdtRYqMSSUw EKTt18VC7nK9mY+O6BRYZjONHm8DpjKSRumqKLAF3/Lu/WA7hOhGMP45lFcuu8Zzgr uojIrghNTEJ2Jyx8WC9uyNO4om537OnIlnAZKJ2DtlQFFluBh7n4J06j7IJq81pMTW ewdqBIBt3UQFZ3d88EQak6maREC/6/tYQloSSeru2tVc0hA8fuUogETBr+RABjQI2l SedGfxo67w4lqFFCx2IChCBvmjiiVhzMIJAlw0M/giOwRDYSQ4Qum2yI5G89tf1Vr9 gUxEnBf6PbHpw== Message-ID: <0fdd9e9b-c6ac-b5c3-adb5-01a764a7b8f6@kernel.org> Date: Mon, 16 Jan 2023 18:09:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH net-next v2 2/3] net: ethernet: ti: am65-cpts: add pps support Content-Language: en-US To: Siddharth Vadapalli , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, krzysztof.kozlowski+dt@linaro.org, vigneshr@ti.com, nsekhar@ti.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com References: <20230116085534.440820-1-s-vadapalli@ti.com> <20230116085534.440820-3-s-vadapalli@ti.com> From: Roger Quadros In-Reply-To: <20230116085534.440820-3-s-vadapalli@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 16/01/2023 10:55, Siddharth Vadapalli wrote: > From: Grygorii Strashko > > CPTS doesn't have HW support for PPS ("pulse per second”) signal > generation, but it can be modeled by using Time Sync Router and routing > GenFx (periodic signal generator) output to CPTS_HWy_TS_PUSH (hardware time > stamp) input, and configuring GenFx to generate 1sec pulses. > > +------------------------+ > | CPTS | > | | > +--->CPTS_HW4_PUSH GENFx+---+ > | | | | > | +------------------------+ | > | | > +--------------------------------+ > > Add corresponding support to am65-cpts driver. The DT property "ti,pps" > has to be used to enable PPS support and configure pair > [CPTS_HWy_TS_PUSH, GenFx]. > > Once enabled, PPS can be tested using ppstest tool: > # ./ppstest /dev/pps0 > > Signed-off-by: Grygorii Strashko > Signed-off-by: Siddharth Vadapalli Reviewed-by: Roger Quadros