From patchwork Tue Feb 21 09:21:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Durai Manickam KR X-Patchwork-Id: 59816 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1767904wrn; Tue, 21 Feb 2023 01:36:18 -0800 (PST) X-Google-Smtp-Source: AK7set8eSmOHRtf/mjo5t/JxT9NV5dzX5GHyQs6Z9HDTnWMot8mFgjoIcLYV8WAYxtpSeuUb1yNX X-Received: by 2002:a17:902:f546:b0:19a:f360:3a72 with SMTP id h6-20020a170902f54600b0019af3603a72mr3670087plf.33.1676972178305; Tue, 21 Feb 2023 01:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676972178; cv=none; d=google.com; s=arc-20160816; b=HOvCGcqVIVkNp0XVwO48XHuYVnFgjl9N3iYtIu8Soa7F9dISg6ES8y611PZnOb/QFF BMKX/jUnTuGNdUE24rbdGME+3bW7mJSXrFHQY8EUqQB3KszqJRhWplKJbr+J8tIJdGSw EbkR8nl95NiHb1/nokgBGLk/F1QTgCTseH14YZlKGFP9/5RjKs53Q1VatKRX3o7RVoMI bTbP64hwx66KKCrU2XugyOjyit0FJcoddcE64EjRXR9bZWwVx/N6mXEYMlz/0u++zXs0 NFewWDlhX79vev9uImcwTcCPNsq7uigYAiE9B7CUx+PBxNJkrg08xcBxjtuertcF90Jf hKSA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mCMA5YE683YN+LsQ7AsEaVEFoEwrtOeKu6ZJI3MohEA=; b=pSpQruv+MMcsS2RwWE+M2R4q/L/GiMqTAR4kS2ie+mBPZMbu3qHFinnvRAh64SFbMw vkbLG6z44Piv9A/zBcA95b3eaF6zoFvTpJ5NEvhQFD8Uw2NMnEqjwFAOhp/+j1UfdzHk cuBZ7z2JHJAIKhh4vEglfGFgNfnylhnxBeml0s3v/kMO3QrYEWgHao14QyCqMkzD2PTv 0fgFJmXkKlyhrpUHVaUBj3cZS2thpJ+LUCDn/g8CUC4Whpkgwm/wXa7cdbSnpVwzfAei +ZOj27df+FIAz1jJcXUJ6MgEv7E7IcWCa+uE6fB5eK+kI7BdEyBGkG/JzwHK1Igufa8q 0gOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=pZ8BJy33; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902e54e00b0019a5aa4d768si14062266plf.611.2023.02.21.01.36.06; Tue, 21 Feb 2023 01:36:18 -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=@microchip.com header.s=mchp header.b=pZ8BJy33; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233898AbjBUJVh (ORCPT + 99 others); Tue, 21 Feb 2023 04:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233266AbjBUJVg (ORCPT ); Tue, 21 Feb 2023 04:21:36 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F94924483; Tue, 21 Feb 2023 01:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676971292; x=1708507292; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nfbCz9FTpMLY06ZI7/EfisAD7xlhHf8Ry0R/DcJAXtY=; b=pZ8BJy33Rvtzg3YBu4DHJp1E88FIB2qBCx0goJ5JyOVd/hTEWKW0docj Scsx/3gLiv6q+LNd6qwyzFrpTOt3nHoO0MLMTuYaxFWLk4x1Ve9ThuQE1 MmgP7dsGg7UDdoz13AhZFjTOklAFPvwqn2uDKThOjXtlkwy67JYurV0qZ 6UKMp54QeRQGD3DxFBvkzps4LjFjmX3vw1VhqumdMSLsrK6DFQPV6PKhl La+j7sVpdUZ3ZtfjuNDBp6UT0hVgS4nl+Y+XmeJVpe1XaHLUM0ekYGyDC UsadF4IXA37KksS+JTnDFdaGTi12ugGBOVNOj6u6LeYQWmOqZxH7mMry2 g==; X-IronPort-AV: E=Sophos;i="5.97,315,1669100400"; d="scan'208";a="138244294" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Feb 2023 02:21:31 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 02:21:31 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 21 Feb 2023 02:21:21 -0700 From: Durai Manickam KR To: , , , , , , , , , , , , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 1/2] net: macb: Add PTP support to GEM for sama7g5 Date: Tue, 21 Feb 2023 14:51:03 +0530 Message-ID: <20230221092104.730504-2-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230221092104.730504-1-durai.manickamkr@microchip.com> References: <20230221092104.730504-1-durai.manickamkr@microchip.com> MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758432778441578361?= X-GMAIL-MSGID: =?utf-8?q?1758432778441578361?= Add PTP capability to the Gigabit Ethernet MAC. Signed-off-by: Durai Manickam KR --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 6e141a8bbf43..27fc6c903d25 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4844,7 +4844,7 @@ static const struct macb_config mpfs_config = { static const struct macb_config sama7g5_gem_config = { .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG | - MACB_CAPS_MIIONRGMII, + MACB_CAPS_MIIONRGMII | MACB_CAPS_GEM_HAS_PTP, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init, From patchwork Tue Feb 21 09:21:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Durai Manickam KR X-Patchwork-Id: 59817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1767981wrn; Tue, 21 Feb 2023 01:36:33 -0800 (PST) X-Google-Smtp-Source: AK7set9PQ/4QrBVIreYW1nSU3BoFSr9imTRVA9tRkqFA1umDEOtD6pbOIGPkq9iLP5tVlbPCiLE4 X-Received: by 2002:a17:903:124a:b0:196:8d33:f083 with SMTP id u10-20020a170903124a00b001968d33f083mr5216589plh.28.1676972192912; Tue, 21 Feb 2023 01:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676972192; cv=none; d=google.com; s=arc-20160816; b=Z2WCp7LnIGql58XxJBFoo8hcPD9qbfwz8WApm1Hqt8rRyi7j8DZpt39QCf7l8VS7cF i+F8tiB12cO9qieZNCLpJ0n799RxSgLU+7hDuF8qzTpmWFDEApk5JD42euXpunCAz1zS AztBcWdn57n30uMOqTwC+aoePpzU6HX3ZC6wZZVu/EIi1xdv0a+s1Ig86EjRm7xwGxN2 lblUIlS24qjhJ8c+71oyL55nJWYOitvqKK/PKQAGJWqRamC2R4T2fD+qLY9GxxuzvaaL ZKfNIBWpnnqaHR5Cle4eh5DfC60JseoxuLApGV2DVSOatYlT+UwQe/29k3SYJJ+52hc/ 2mhw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9+jyT1S/tPhwkaOQ6Xp9xAcEEtd/ZuulXq1+abR9ak=; b=S5qJd+gu6rtLeHcAz8NBhLchyHKHpAP24fFaSY2fs/y7qHNfEnWlZy0c63PWbzQW3z g/L197MX/xXdSUdsKOwlEaqIiT0FDj+8N0dlLtXGipgTrNcgUauIOSdYSgZEMcATB7b+ jXW2Q1UFEmeewhyeQ74PCYDbfyMLzemPPMiV5DNVilMA164H2RgBPL2+9GOUbbsEukn3 8SvxbgZAOT4AOol91PRb9N1kn3OJUtosKxnvlR31LhyEDQrNqXIsbxJyxe0hrAKHx9kz 5W70BwZgJOk7jy+zIq4nEMm8Nsveyf2Y06HfBP/x4ZPy/HQwnMvzwGz17ZRra9V34X/r ZfDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=fX4QSyVS; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ky7-20020a170902f98700b001967afda550si4317941plb.5.2023.02.21.01.36.20; Tue, 21 Feb 2023 01:36:32 -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=@microchip.com header.s=mchp header.b=fX4QSyVS; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233899AbjBUJWI (ORCPT + 99 others); Tue, 21 Feb 2023 04:22:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233903AbjBUJWC (ORCPT ); Tue, 21 Feb 2023 04:22:02 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DA1241E5; Tue, 21 Feb 2023 01:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676971316; x=1708507316; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0u+UdGgrstqHyAt6lfy9Z9fjXjmo2PxFj4o6q3qUG/k=; b=fX4QSyVS1AtQD8FtRrmV3XDOGiQ6SUn5vcMAxCSGd8LxlxO1zi9s5+CT axqMt60mQJsLfAPg9PvksrWsyG6f+uAuznaet/+2U6USxupnF7eROycQF 12s8uvuSmIB4Rxf25fsONclHfeLjGHas4ejFxVfX5rSGRdJ8pWZF660dP KyIsiW4QsxAMzO2LbHIfKDpauR+ggULc8vFI6TTb6Gk/PAL3LOyaGhde9 eSaLGmItP7bYH1wbFRcLUHAjxUGTzlmEf1B/Je2NzdPCNo5F+WmzsUio4 LnZs+JWITN5UTt8N3b0MbDmvFVzrveOduTLJdw0Pl49d1D1cmf/6kIKCI g==; X-IronPort-AV: E=Sophos;i="5.97,315,1669100400"; d="scan'208";a="201594623" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Feb 2023 02:21:55 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 02:21:53 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 21 Feb 2023 02:21:43 -0700 From: Durai Manickam KR To: , , , , , , , , , , , , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 2/2] net: macb: Add PTP support to EMAC for sama7g5 Date: Tue, 21 Feb 2023 14:51:04 +0530 Message-ID: <20230221092104.730504-3-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230221092104.730504-1-durai.manickamkr@microchip.com> References: <20230221092104.730504-1-durai.manickamkr@microchip.com> MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758432794083896391?= X-GMAIL-MSGID: =?utf-8?q?1758432794083896391?= Add PTP capability to the Ethernet MAC. Signed-off-by: Durai Manickam KR --- drivers/net/ethernet/cadence/macb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 27fc6c903d25..1dbee16fe90a 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4853,7 +4853,8 @@ static const struct macb_config sama7g5_gem_config = { static const struct macb_config sama7g5_emac_config = { .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | - MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII, + MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII | + MACB_CAPS_GEM_HAS_PTP, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init,