Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9298273rwl; Wed, 11 Jan 2023 04:07:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXuB06Dx7Z7xKS3VtC7iwtyvupGqjE/6dm+kRRE7RxlaUaq7xvZ0ThtuDP5gRncS73TzD4Tx X-Received: by 2002:a05:6a20:9589:b0:b0:2070:2ef5 with SMTP id iu9-20020a056a20958900b000b020702ef5mr88350032pzb.22.1673438829172; Wed, 11 Jan 2023 04:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673438829; cv=none; d=google.com; s=arc-20160816; b=RPrtikdcnwcSegmPlzXnC+GsIVFvsNVCpBHc3jQ6TR9f89o1BJGZjA5ZCaVMAgc0j7 jMZIBJDAOY7BVmkynO/OiqECCHr4ztCD8jORrdU2b2ByFAyRg/n429vHVQyrPPyRZD0r DCQ1V//y/2Xo4C2ksxmaLPixwIqEP1MYPJXGrTyaOHuFXkb5Cj3idPdfaz8avG2FH9hC 39YHt3MTpHf9b7VFTqocFnXzqpPFAO7zgJcDTCLN0pCcjlJTvz+J0PIlASQkXKum/Cxa 60h1SrXM0Ll0JGiUczpURF0DztmWNOhJLlV8DqP2K93vwA1Lr9xEzgt2fWgSpbTYGi4H 1ghw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=j+h4JevHnwLFduKRSkeB5LMLLoTDYPUgl2/FrQXToy8=; b=Rj3dtad9rOTkShKN/3Zmff1EqXXnhxTTBxxgs6FFEs2hG7qLaMjJRAjKkxR9JliV0a lMXh9sL2Fvmx2bWlS7Q6nq3gWJypMPDoXMzJSAkuSQItM3gGtje+KkdsQGVWY7ZY8Zxf WXsunQ/07s6XWykm9RcXECAaZ75aVZXM5py0DsN/9+oA9Y/K5oRmDVaPzSBcGZvsKJk+ r4JKF39Nlx0+IILWqdQMeGPrqFDf0TnllAvavVndNJkT7v0UDhAwmksAelGmKtvRZBTC E6zSl0RRC61LE5CA5T6OI6cv78FVbEFA19a901CXXLtszuo2RLjzIqW/HwmMTo2jMSal eF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n7jLSB52; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k136-20020a636f8e000000b0047895cb205bsi14751926pgc.416.2023.01.11.04.07.02; Wed, 11 Jan 2023 04:07:09 -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=@ti.com header.s=ti-com-17Q1 header.b=n7jLSB52; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238542AbjAKLrY (ORCPT + 53 others); Wed, 11 Jan 2023 06:47:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236364AbjAKLq0 (ORCPT ); Wed, 11 Jan 2023 06:46:26 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 522B5192A1; Wed, 11 Jan 2023 03:44:54 -0800 (PST) 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 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(-) -- 2.25.1