From patchwork Wed Mar 15 09:50:52 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: 70095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2233958wrd; Wed, 15 Mar 2023 02:57:06 -0700 (PDT) X-Google-Smtp-Source: AK7set+dOG+K4WKnQTH/Dsy/PQfax5VftUP5gLpHi93hFPJ6IFsQzYPN4LuYXXtRoke/RMDh6HY8 X-Received: by 2002:a17:903:41c4:b0:19d:181f:511 with SMTP id u4-20020a17090341c400b0019d181f0511mr2093250ple.30.1678874225963; Wed, 15 Mar 2023 02:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678874225; cv=none; d=google.com; s=arc-20160816; b=ogk0J17FIakA2DvIoXs92hJ8C463QeKFZUeOhrvLgiOjByXPfFWNaB+rAXaJIjalyO I3oSDlAPImPRWczEZguQ2FhbgR1dGUvv4zHGqqFnVJW99I6J3dsZ+P2jes65DNVHkY4T MB6PZHwmbewqXkjLuXJNpERO5pAZ94YQOIEmcRHCcywYKySq1fHnV8EY0arJQFOHdxUw Z/v/3LO7INhBWrC2EIwaSweIb9TVCLInrhy7nIVFMtZiPoMFIosUFJ8gIQ3byEYzzy2s gAjWDvTOD7R5nB754Fg5yMXoTkw+27Ujm3dHIa25aA+9cxzlyeO6A6E7ECbCeT0RBATw tH+g== 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=Kn3UZYF/DMU1Ajfuu51yObEgh3SVzNW3dd7PjarXI7DOFNNUjNVqFjGk8EInp2lyki Xqc+q5KkHl1AIhk8sqBLs7rRh+0aWwma7iOpQjcCSZpx0KegHpjW4gQ2dv5F2JrLwqUg k8NtECKYmJ41zpvibP1tSjhz2/Eksv8bmwgjKlQFKNsJgZjfPFfvWFyXbkj6HMJrlOio StVHt6RKhG4RNTm9tQBSTJdNgDRm/Y4uj7reSF2P847piaFRrz57r6Y5nBBJKr/6NtqY moMImS7Jg5hprPM0T5Sk3Idax0vHlQLA+JaciKMtBdL4knvN9soSc+bDhT2j7FFcRoNV x1lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=xvHEiAmq; 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 jw24-20020a170903279800b001a051eeb596si4571509plb.297.2023.03.15.02.56.51; Wed, 15 Mar 2023 02:57:05 -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=@microchip.com header.s=mchp header.b=xvHEiAmq; 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 S232198AbjCOJxC (ORCPT + 99 others); Wed, 15 Mar 2023 05:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232190AbjCOJw3 (ORCPT ); Wed, 15 Mar 2023 05:52:29 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E9D960AA4; Wed, 15 Mar 2023 02:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1678873878; x=1710409878; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nfbCz9FTpMLY06ZI7/EfisAD7xlhHf8Ry0R/DcJAXtY=; b=xvHEiAmqcN8LY5/iNDLuEYovGcW6PKAbsGcku+1mN6V09f7kFscYqp6w yZBMqvNHXll+H6oRbVzsOBVmv0PHTdVmVWTCuLTtFvZQ4p2uGpb7X8/49 i3P080MVoqpfEPd+soc7x+HaUMAfOD8mQijsReEOaR2vZQ4c4ft5eRRug VRqZBlJu0NyuAvLuksCUZQ7YzjBLgNUynyLn8qiEhQx2tm+8nk/apgIr0 9JAcmCag5J5BPVz8IjCYP74/neukSi/p570hgpkv56OOX/N3wkhSWHEe+ xy3iQgWhk69KMqGgyoOjH6bsS4a7AsO2U7F0kL39374LgdWovqRBA+WoV A==; X-IronPort-AV: E=Sophos;i="5.98,262,1673938800"; d="scan'208";a="204854133" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Mar 2023 02:51:18 -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.21; Wed, 15 Mar 2023 02:51:17 -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.21 via Frontend Transport; Wed, 15 Mar 2023 02:51:10 -0700 From: Durai Manickam KR To: , , , , , , , , , , , , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 1/2] net: macb: Add PTP support to GEM for sama7g5 Date: Wed, 15 Mar 2023 15:20:52 +0530 Message-ID: <20230315095053.53969-2-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230315095053.53969-1-durai.manickamkr@microchip.com> References: <20230315095053.53969-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,URIBL_BLOCKED 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?1760427220576550922?= X-GMAIL-MSGID: =?utf-8?q?1760427220576550922?= Add PTP capability to the Gigabit Ethernet MAC. Signed-off-by: Durai Manickam KR Reviewed-by: Claudiu Beznea --- 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 Wed Mar 15 09:50:53 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: 70104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2249010wrd; Wed, 15 Mar 2023 03:34:50 -0700 (PDT) X-Google-Smtp-Source: AK7set+UupdatNPkzGO01FjGoz+FdV63PjgoKPsESAvtycJng/8JkocJgMQ+MG9e2eRexA5RxUsi X-Received: by 2002:aa7:982a:0:b0:624:c35c:ae8f with SMTP id q10-20020aa7982a000000b00624c35cae8fmr6990421pfl.25.1678876490730; Wed, 15 Mar 2023 03:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678876490; cv=none; d=google.com; s=arc-20160816; b=DA+cidO9FiTu6DvIVbv4Eh0brPhuRMZZAGScfxxu5KhhcQGwBQ4214WIlqYCPEeKCa 7A/IpD/bJNv6FZ+6hRq77IY9z89R6zjO3UAp8gFExL6ndGAeLnw9otLOB9FSicsNy44P UUAPHzPlBt3LHMBg+CMBaqxbS2nqOXFz87jVDRBA5t2NDZnctHl4KJvXta+hPlIdUI4Q AnGEIQDAkOUQAoQ/qgpXom8fU0fqC9trUmFPyvbr5s6iNejRqxCqtSnPojOA2XKBeBZm Jz966OlxYXUlHm2TvSKQkI3I0GmJo84PFtWv7xSGHNsiTA4Da6BBmAuRkdCFxj1GdNjY fY1A== 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=ImE8/QEwNPNcLstg/P/gkkQ2eIRfNPB8M9+zLkA0IlM9FMONJUo64GM2B6FswIE2VO q0NcTa1E6hmgtVxG6YbhG4ZM/w1HfWmtor3h2oBFCyzWuQM52spBa/YbjZ/L88xxxW7I TcNsNYlWGCrQVLlp6JRlKaBjEiWJ2HKQV1f8+NJkEJ9Mqb3Y37FuPzcWbVokUcCQ1WmR /OzLU/e4RyeAX8+N5g78Hz0epz8+7XgPW0SWK5UWU1JHx+RYlD3iIFvGjZ7MyQQANyeh GYsomVZJh+jbRyQxhaNpISxP9k0NzwrR2xBN5bmEbBBdPpGDdiaNXIeA6QwTABoD0+3H 9evA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RrUhd1T7; 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 i18-20020a056a00005200b0056ea2b1b0fesi4724971pfk.119.2023.03.15.03.34.37; Wed, 15 Mar 2023 03:34:50 -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=@microchip.com header.s=mchp header.b=RrUhd1T7; 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 S231142AbjCOJxY (ORCPT + 99 others); Wed, 15 Mar 2023 05:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbjCOJwn (ORCPT ); Wed, 15 Mar 2023 05:52:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3918093B; Wed, 15 Mar 2023 02:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1678873893; x=1710409893; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0u+UdGgrstqHyAt6lfy9Z9fjXjmo2PxFj4o6q3qUG/k=; b=RrUhd1T7qpVnGLpv6+vAjxmpzQOqQrYo+nZa7zqUxs5RNR8NsoEdLQmx CCHEvB/CNKGGxIYQamT4Vg8QuYHXhtxSIPaG2KK4XF+6eatYI1Fahxl03 bbDlQUtt/QePK/RUNUiTE8r2Qus/PfahO6q44ZH1dCHAWzUawaWCX00xh ZTHaQZKGAgFQSUep+8savHCxC12RE0ooZA95PEt1cWdLeKm9E/bIKIuGP kpNH/PaD1dUJdwp/Xb8LCBy3owI0qSV0+Vz7XsZM+dbAbKSzIN0k2bH6D p+l/ifX73BlDbBxOdC/HqV6IRPCbr2dMEtZeejE+kGU385/3o8wy0N6nT g==; X-IronPort-AV: E=Sophos;i="5.98,262,1673938800"; d="scan'208";a="201732120" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Mar 2023 02:51:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 15 Mar 2023 02:51:27 -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.21 via Frontend Transport; Wed, 15 Mar 2023 02:51:19 -0700 From: Durai Manickam KR To: , , , , , , , , , , , , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 2/2] net: macb: Add PTP support to EMAC for sama7g5 Date: Wed, 15 Mar 2023 15:20:53 +0530 Message-ID: <20230315095053.53969-3-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230315095053.53969-1-durai.manickamkr@microchip.com> References: <20230315095053.53969-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,URIBL_BLOCKED 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?1760429594696983330?= X-GMAIL-MSGID: =?utf-8?q?1760429594696983330?= Add PTP capability to the Ethernet MAC. Signed-off-by: Durai Manickam KR Reviewed-by: Claudiu Beznea --- 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,