Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2171137rwo; Thu, 3 Aug 2023 05:55:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEObcTzRmgAAUvTfBLpFRBi4IbZ0AMC/9hMXd5DpJypd79/QElFf2He+QfLiX3VtWMTgJb6 X-Received: by 2002:a05:6a00:24d5:b0:674:8fe0:1262 with SMTP id d21-20020a056a0024d500b006748fe01262mr21161047pfv.18.1691067354361; Thu, 03 Aug 2023 05:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691067354; cv=none; d=google.com; s=arc-20160816; b=0eMgKN88UpEMAI8a9r49Nn1I266sd6oFp3UaANg4F7R3issV3FNtxCElejIgP6+dBr x36hHYPQlu7HdFShDEFhWazKwEhr+fsEsCPFt8VtFSU19L5z+c8t/xbIBkaMqXP+hQFI u1Wyll0oFuVSL3dUsmj1xkXePV9/e+/74o7rPH2Z7FqdhTDTBjGVyTktkyLsNE3qAx5U yyk+EoOnYRRGkVtfV5LvlASIO61c/DsbDBXB2CHDjNsJOr1K1G0AMl/+TfRn7ygUiU0e F25PD5rYF1VBqpWYvabHkEOB7yN3bZgATZJy/B3oehqjaypA28Ir2nRXX43hzSbYhm/B gdFw== 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=QupuShgQ2vLCNbkJgrd2LA/fCN392+rcCwnApeXYPU8=; fh=TO4fkcEI9b5r/wMetIII7RIVPqbK0XaoWpj6Tf2aW8M=; b=Vre5EkEYPuYGyBxBH/vXn9XwWLwN0M66ueN0M8648/aIorrfIx5/mgbvDFzK1Uq+Xx UZNU4m3kmKidJpwjjTmk4ISBwcg2MFHw0wbjJDPb0JM9u2eS/FIUu5b4rPFegh+Qzzlh tOedGxf4Mkcu9aBK7ETDdfpEqzNfzcGKesmuQ40vGGpybsmlduJ21PoLQP4Z2kT9la+g 62qL4ETMAmGfQhpowhIseekMZgI6vbGBA/kNeTW9Y9Hva7smHOwPXkwIoyjaHbTt49EV qbUTZz1Q+Tj2fA5keKkwSXpR4fbOSagXW1kk4mTjbWDrcMU5DYldMKiwPnlQDKtZOdXj yPhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=faCqg3fW; 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 q202-20020a632ad3000000b0055785a37147si9632019pgq.590.2023.08.03.05.55.39; Thu, 03 Aug 2023 05:55:54 -0700 (PDT) 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=faCqg3fW; 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 S235694AbjHCLDG (ORCPT + 99 others); Thu, 3 Aug 2023 07:03:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbjHCLC1 (ORCPT ); Thu, 3 Aug 2023 07:02:27 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989FA30E5; Thu, 3 Aug 2023 04:02:24 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 373B21Ti016268; Thu, 3 Aug 2023 06:02:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691060521; bh=QupuShgQ2vLCNbkJgrd2LA/fCN392+rcCwnApeXYPU8=; h=From:To:CC:Subject:Date; b=faCqg3fWUXURhT6lrI7tbF0c3BuuDB0P+gQ2g+SLlizmf8Zhv4RZ2TJTzDD+BqCkk 7uQWlXWyY6mSvuAryZnXcaR3fznENvYHdpa1AJ5gecDA7YTRBeJhy43fNxzRHiMMNK XB5bWf77oEM1LeMrBBCmE66BlQSqIXo6Ksi9l6z0= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 373B21R0071098 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Aug 2023 06:02:01 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) 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.23; Thu, 3 Aug 2023 06:02:00 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 3 Aug 2023 06:02:00 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 373B204q021104; Thu, 3 Aug 2023 06:02:00 -0500 Received: from localhost (uda0501179.dhcp.ti.com [172.24.227.217]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 373B1xiW026721; Thu, 3 Aug 2023 06:02:00 -0500 From: MD Danish Anwar To: Randy Dunlap , Roger Quadros , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , MD Danish Anwar CC: , , , , , , Subject: [PATCH 0/4] Introduce IEP driver and packet timestamping support Date: Thu, 3 Aug 2023 16:31:49 +0530 Message-ID: <20230803110153.3309577-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 This series introduces Industrial Ethernet Peripheral (IEP) driver to support timestamping of ethernet packets and thus support PTP and PPS for PRU ICSSG ethernet ports. This series also adds 10M full duplex support for ICSSG ethernet driver. There are two IEP instances. IEP0 is used for packet timestamping while IEP1 is used for 10M full duplex support. This series is based on linux-next(#next-20230803). Thanks and Regards, Md Danish Anwar Grygorii Strashko (1): net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support Md Danish Anwar (1): dt-bindings: net: Add ICSS IEP Roger Quadros (2): net: ti: icss-iep: Add IEP driver net: ti: icssg-prueth: add packet timestamping and ptp support .../devicetree/bindings/net/ti,icss-iep.yaml | 37 + drivers/net/ethernet/ti/Kconfig | 12 + drivers/net/ethernet/ti/Makefile | 1 + drivers/net/ethernet/ti/icssg/icss_iep.c | 961 ++++++++++++++++++ drivers/net/ethernet/ti/icssg/icss_iep.h | 41 + drivers/net/ethernet/ti/icssg/icssg_config.c | 6 + drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 21 + drivers/net/ethernet/ti/icssg/icssg_prueth.c | 433 +++++++- drivers/net/ethernet/ti/icssg/icssg_prueth.h | 28 +- 9 files changed, 1533 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ti,icss-iep.yaml create mode 100644 drivers/net/ethernet/ti/icssg/icss_iep.c create mode 100644 drivers/net/ethernet/ti/icssg/icss_iep.h -- 2.34.1