Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3584484rwb; Mon, 16 Jan 2023 09:53:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXse4GDoxHfpUVDgoY875YEp19m2K8K5GTGI/zbKdueJ9SwjiIVlB09a33BG/+2MT3CTge1i X-Received: by 2002:a17:906:f6c3:b0:870:6715:bc8c with SMTP id jo3-20020a170906f6c300b008706715bc8cmr4785340ejb.55.1673891623033; Mon, 16 Jan 2023 09:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673891623; cv=none; d=google.com; s=arc-20160816; b=hyB/+K1DQQIdiz/6y2P2fctENwl2FYXiylCai2OqoisF4XK19xB+g6R+JwrH2ePCWZ NTQ6y1qmo0xUthRhzKbo9kevNw7k+6cvVZgXzyjn4JBVHCShicEz77IFDn4o2NJWqdbZ nti3iARr26imd2LXk75Ws+yPFj3BoCTQallIR6FYg/k9P5+hd4yk5t+NwIerQfwZGNmk u/ZuMePIgjcXfhgYvSwwPxSQJr82ZX42Pa8K3Bvt0xk9Yx5/fF85w8YkOe5IH6b8oT3j LRBUZp3m8mvI5j+pbF6U+vEfF6BZvfKpw57Ed9g7grGD6MgB270qWbVA2LePOaepehc3 l0Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Hw1oKBcPqoJedo0b2WfYu62HiVeIAIv2Smd3L5twnKA=; b=Eh96em3Pf308nOaDoN1ToXZszDy0aQjoPylWjGkoXIX9CHWcQVnsmT5y+pygHdVzCR 3hVAFsQt6cbUmTqLl5AXnJLBeSBex1MeMKYJl2GL6tvX0KRqG4QZK4zMI2qJ26zctoaP DZ4nIh8zuH6cSY7bCgidvxfOEtFJA3myRlLFzoO1UjkyHLatuenBGqx5f/ie8rxI2Xwq uuyDEmiIMFMFcrtKbK3lBYu3mMlQNOMHICpBllstPbi/citiQDjSGI5f011JlwF/2uBf Qxfu4BywG8QxAoF+CxcKQfAl/MJ1Bv5Z+mh5xH+LhFWWXrjtTuXLocmdXtEU50wM77Lk 6Zfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NQL8P9uv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a17090658cc00b0087194db3565si2132312ejs.551.2023.01.16.09.53.30; Mon, 16 Jan 2023 09:53:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NQL8P9uv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232769AbjAPQPy (ORCPT + 50 others); Mon, 16 Jan 2023 11:15:54 -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 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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