From patchwork Mon Dec 7 12:15:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11955621 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 0A181C1B0D9 for ; Mon, 7 Dec 2020 12:17:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D05AB2339F for ; Mon, 7 Dec 2020 12:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727661AbgLGMQx (ORCPT ); Mon, 7 Dec 2020 07:16:53 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:29293 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726938AbgLGMQw (ORCPT ); Mon, 7 Dec 2020 07:16:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1607343413; x=1638879413; h=from:to:cc:subject:date:message-id:mime-version; bh=q6qR+M14sEQGT5M/G/pwCC67yLfxNrDN5aaMrQcZb60=; b=voN4BSh/9Vfmj1+y+/Zqz3eat8TJclt24CU87ydtFoLTzue2D1fN22EE csZJfKBJ5dGc53sdV9+LyFhDFfWlPeCpWuGFZZ5NLjBXB3si7GqyQ5/bR 6ClQNVGwGGS6f7ukc4SM2+bQ2xD3vPsjug0GAtfVIDNTLXKJBI6XAkABK +QpIxHiQh1s3mIXi5djEf20xTxBxtPluk9embVVuy/VUxSvUJhdnCE/lg snFbsuNnycUr/AwjAeVGIWTPGx9gH9X8D+1YvwxgD0ldle9T3a3SJOyLZ rEAY6bJBAsS3KMuLE3+VMWPLsoZVuGRxynctT5iWVSTVYNFcj545/z4lP w==; IronPort-SDR: R+zNuVLp06ABWbW733aDqxBUVgaZ6DsrsjDsEp8uW8mSj0fzQLGiT1QXOz9wkAiAJ5I3IE8ALo 6fXIPkG53nWvWzSbJmYxxm3fBRxVsrdSSSqzmXHYuI9ddYsM8t1XUrCr4YJUOGdCOl/cpsQws+ qk5T+ln4OAyhphXM1ycOdGLDDatvJd5+oPv2WsoFFmDB3iOY0gUzqWOhEUVOlEZqEWi4VOwhNN 86BYQWnoSrnZk28DN5VpAu64yuhAhQojrSb/ZmtkqGDGxsSBFagKmnhrchJRpooLjJbtK/Prxv NlQ= X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="101191972" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Dec 2020 05:15:47 -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.1979.3; Mon, 7 Dec 2020 05:15:46 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 7 Dec 2020 05:15:37 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , , Claudiu Beznea Subject: [PATCH v2 0/8] net: macb: add support for sama7g5 Date: Mon, 7 Dec 2020 14:15:25 +0200 Message-ID: <1607343333-26552-1-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This series adds support for SAMA7G5 Ethernet interfaces: one 10/100Mbps and one 1Gbps interfaces. Along with it I also included a fix to disable clocks for SiFive FU540-C000 on failure path of fu540_c000_clk_init(). Thank you, Claudiu Beznea Changes in v2: - introduced patch "net: macb: add function to disable all macb clocks" and update patch "net: macb: unprepare clocks in case of failure" accordingly - collected tags Claudiu Beznea (8): net: macb: add userio bits as platform configuration net: macb: add capability to not set the clock rate net: macb: add function to disable all macb clocks net: macb: unprepare clocks in case of failure dt-bindings: add documentation for sama7g5 ethernet interface dt-bindings: add documentation for sama7g5 gigabit ethernet interface net: macb: add support for sama7g5 gem interface net: macb: add support for sama7g5 emac interface Documentation/devicetree/bindings/net/macb.txt | 2 + drivers/net/ethernet/cadence/macb.h | 11 ++ drivers/net/ethernet/cadence/macb_main.c | 158 +++++++++++++++++-------- 3 files changed, 122 insertions(+), 49 deletions(-)