From patchwork Thu Aug 12 07:44:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Prasath Gujulan Elango X-Patchwork-Id: 496207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2659C4338F for ; Thu, 12 Aug 2021 07:44:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 947E06103E for ; Thu, 12 Aug 2021 07:44:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232609AbhHLHo4 (ORCPT ); Thu, 12 Aug 2021 03:44:56 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:33196 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232348AbhHLHo4 (ORCPT ); Thu, 12 Aug 2021 03:44:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1628754271; x=1660290271; h=from:to:cc:subject:date:message-id:mime-version; bh=LR8LWE1CYZvg3jg13iK01DDmUkN7vvjsZ05D6kFuE2c=; b=nSr88czzact6X7+INpa6SGnUswWUP4U/rNmWnxiCEwu+nRCYwTq/TifY M066vECcwHIfADEzhN3ZB+iDPDHeDiOSGbeSyNRTzX/e0mSCmLQbtS4MW GoTaPIqKzkpzYZUFHKp9SJyUjrMJmGdg5knIogHZvxFF7lLWTbdc2FwA7 PJrbpabEUB4bmkp58OrPjf5GvkfBT2cEY/sLSmjJlUFLoHGuSELWniEEt 0APzZIE1bWD3mM+kGMso8Nh1RinWs9XTjyqABq/08IqpVnANb3KKVbK0J 19RCXGziM/SoFPLsWXeIVGNCFKYlfZqsfhK5r9P2VaBWD4DcMi9PtcCu+ A==; IronPort-SDR: JR9/pWOEuAoC9x+PzmZbeGeGU9f25/AAKXPRjHw2Ctg4P4PXKCrYZqz39n7T+GVSlf7gD4DFuk RJ93ki3TYKS68R4UZUsSy51Y3j8Jy+ui2uxm6XCbXvtu2o4MAeh3GwsNye3f64s0stG2gGUZ+c iV+AlFfyCB6ZLrYRWkF9r6SA+ee7Nkde47zVjdFRVDBRxef1TPSScatthU9qBY7YfXQ4tCDoVN zmC0sdocUUsidsu86ZaGoXTQMCwHuNYMas0ga4t5uvW8JBuvKZ8fQ6L0zWivnp2peOxpSf2O7m 3MysDY+1jcy5bs43nD5x4dt9 X-IronPort-AV: E=Sophos;i="5.84,315,1620716400"; d="scan'208";a="139788973" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 12 Aug 2021 00:44:30 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.2176.2; Thu, 12 Aug 2021 00:44:30 -0700 Received: from che-lt-i63539u.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 12 Aug 2021 00:44:25 -0700 From: Hari Prasath To: , , , , , , , , , , , CC: , Subject: [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 Date: Thu, 12 Aug 2021 13:14:21 +0530 Message-ID: <20210812074422.13487-1-Hari.PrasathGE@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add PTP capability to the macb config object for sama5d29. Signed-off-by: Hari Prasath --- drivers/net/ethernet/cadence/macb_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 181ebc235925..d13fb1d31821 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4533,6 +4533,14 @@ static const struct macb_config sama5d2_config = { .usrio = &macb_default_usrio, }; +static const struct macb_config sama5d29_config = { + .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | MACB_CAPS_GEM_HAS_PTP, + .dma_burst_length = 16, + .clk_init = macb_clk_init, + .init = macb_init, + .usrio = &macb_default_usrio, +}; + static const struct macb_config sama5d3_config = { .caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | MACB_CAPS_JUMBO, @@ -4610,6 +4618,7 @@ static const struct of_device_id macb_dt_ids[] = { { .compatible = "cdns,gem", .data = &pc302gem_config }, { .compatible = "cdns,sam9x60-macb", .data = &at91sam9260_config }, { .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config }, + { .compatible = "atmel,sama5d29-gem", .data = &sama5d29_config }, { .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config }, { .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config }, { .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config }, From patchwork Thu Aug 12 07:44:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Prasath Gujulan Elango X-Patchwork-Id: 496786 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 728CCC4338F for ; Thu, 12 Aug 2021 07:44:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A34C6104F for ; Thu, 12 Aug 2021 07:44:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234353AbhHLHpE (ORCPT ); Thu, 12 Aug 2021 03:45:04 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:35108 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234281AbhHLHpD (ORCPT ); Thu, 12 Aug 2021 03:45:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1628754279; x=1660290279; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=G9BCGG5pauZB4Jkjlwe0QadzDPfoCQnRp0F34qHKRaA=; b=FTEjo4FSE9BVDIC/8TEfu1Sk6tqSvk0p2Ztx9kZrnN602RBoHC/Qx+cq zpk7wMIBnOTqu6A21z/Mvi++GtbLM7VKcv19jAoaM9pS+hZ5I0Ye4OsVs lDpTxlckGKOr0W69KBLCR/Gx4z8ftr3RDd+gzaQnKZ2+lMoRajn1A/JhX lFpf5S/aD26dXjSEdQUX8kWhAekDxaigkqs/AXomYFAV++Ue3aA3qIohG +Fg1vdlgRih5op2X/fb3+sNTfXiK8Vl/3+2s6DMSUCzROIu/ZvpW9e42v yl8dAeN2oSiAtRF1s5hzAhtLAm2++/oWjvzOzn+BPCih8BPvtgAq/7uqY w==; IronPort-SDR: 2zo4hHfaqqyttP/q70Rk5GL9gM0GhzHctVUow+5Yslnr4UWGYAU6TPiOQcn7xYZx4WAu0rOcDj yHmqYNZkzp/IjXd9AJTEXDWmo5nIsdZ6gUrp6QqkyvkIZmuPnLScoqpnYOC83gU5doNHOScUnf ovQLLKBSShZtJNRey2XeshyhXb28zm0Jjrv9cXWI1W8CckIc/PWQ5NhwoaWH/JyQM5H2NzIfHe Vcixyaar95lJaEMgyOUMeVI9FUl3MxR038a5av/Mdqoa5frvVJelWaVBOYWWO/VBT8aLDWVa36 IBsN1KTsfkxSpmVGAwwk6pJk X-IronPort-AV: E=Sophos;i="5.84,315,1620716400"; d="scan'208";a="132520197" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 12 Aug 2021 00:44:38 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.2176.2; Thu, 12 Aug 2021 00:44:38 -0700 Received: from che-lt-i63539u.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 12 Aug 2021 00:44:33 -0700 From: Hari Prasath To: , , , , , , , , , , , CC: , Subject: [PATCH net-next 2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface Date: Thu, 12 Aug 2021 13:14:22 +0530 Message-ID: <20210812074422.13487-2-Hari.PrasathGE@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812074422.13487-1-Hari.PrasathGE@microchip.com> References: <20210812074422.13487-1-Hari.PrasathGE@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation for SAMA5D29 ethernet interface. Signed-off-by: Hari Prasath --- Documentation/devicetree/bindings/net/macb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index a4d547efc32a..af9df2f01a1c 100644 --- a/Documentation/devicetree/bindings/net/macb.txt +++ b/Documentation/devicetree/bindings/net/macb.txt @@ -8,6 +8,7 @@ Required properties: Use "cdns,np4-macb" for NP4 SoC devices. Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb". Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs. + Use "atmel,sama5d29-gem" for GEM XL IP (10/100) available on Atmel sama5d29 SoCs. Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs. Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs. Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.