From patchwork Tue Dec 7 01:54:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QmlhbyBIdWFuZyAo6buE5b2qKQ==?= X-Patchwork-Id: 12660829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD6FAC433EF for ; Tue, 7 Dec 2021 01:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=r/5NtYyOVI6N+Uto373tJ1n73neiz711nq9sf7ScCHw=; b=uofxdpI0Lmu+MH X9S8c5ioH982BvDE+/P/qs53b+9tmgbuzv3+nG1GA1+Yloc4hapZTkn+1JiVvb4419+CEI4LmXDW1 FD2g6IF4pGI9AcoLxrSjz7g41BrBfC4h01pfWBxQPMS1Q6QrnayXqUd+476nkNTStNUbamQAnYP1U ElHqhQ0Y2LTLBPtF1CXhTQhxnb/1k2t1ymbshX1GLHJXVTLbGy+UzXq5Eb7HiLB0t4iCge2ZihhTt OYp7PQhDXHir9uUwKGbeYsTMazcAHVeBvgalaqeH4UJkVr4JUnHTRyxhwI9T5yCaWEC3FUX/ragMN zexaRrJGPheEZscOXh4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muPkj-006gT8-Lc; Tue, 07 Dec 2021 01:58:45 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muPhV-006eUK-9i; Tue, 07 Dec 2021 01:55:27 +0000 X-UUID: f8493d5421f04aa0952c22bc1f2179b5-20211206 X-UUID: f8493d5421f04aa0952c22bc1f2179b5-20211206 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1012814631; Mon, 06 Dec 2021 18:55:21 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Dec 2021 17:55:20 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 7 Dec 2021 09:55:18 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 7 Dec 2021 09:55:17 +0800 From: Biao Huang To: , Jakub Kicinski , Rob Herring CC: Matthias Brugger , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Biao Huang , , , , , , , , , , Subject: [PATCH v5 0/7] MediaTek Ethernet Patches on MT8195 Date: Tue, 7 Dec 2021 09:54:58 +0800 Message-ID: <20211207015505.16746-1-biao.huang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211206_175525_378156_B93BBD01 X-CRM114-Status: GOOD ( 11.24 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Changes in v5: 1. remove useless inclusion in dwmac-mediatek.c as Angelo's comments. 2. add acked-by in "net-next: stmmac: dwmac-mediatek: add support for mt8195" patch Changes in v4: 1. add changes in commit message in "net-next: dt-bindings: dwmac: Convert mediatek-dwmac to DT schema" patch. 2. remove ethernet-controller.yaml since snps,dwmac.yaml already include it. Changes in v3: 1. Add prefix "net-next" to support new IC as Denis's suggestion. 2. Split dt-bindings to two patches, one for conversion, and the other for new IC. 3. add a new patch to update device node in mt2712-evb.dts to accommodate to changes in driver. 4. remove unnecessary wrapper as Angelo's suggestion. 5. Add acked-by in "net-next: stmmac: dwmac-mediatek: Reuse more common features" patch. Changes in v2: 1. fix errors/warnings in mediatek-dwmac.yaml with upgraded dtschema tools This series include 5 patches: 1. add platform level clocks management for dwmac-mediatek 2. resue more common features defined in stmmac_platform.c 3. add ethernet entry for mt8195 4. convert mediatek-dwmac.txt to mediatek-dwmac.yaml Biao Huang (7): net-next: stmmac: dwmac-mediatek: add platform level clocks management net-next: stmmac: dwmac-mediatek: Reuse more common features arm64: dts: mt2712: update ethernet device node net-next: dt-bindings: dwmac: Convert mediatek-dwmac to DT schema net-next: stmmac: dwmac-mediatek: add support for mt8195 arm64: dts: mt8195: add ethernet device node net-next: dt-bindings: dwmac: add support for mt8195 .../bindings/net/mediatek-dwmac.txt | 91 ------ .../bindings/net/mediatek-dwmac.yaml | 210 ++++++++++++ arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 1 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 14 +- arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 92 ++++++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 70 ++++ .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 306 ++++++++++++++++-- 7 files changed, 665 insertions(+), 119 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/mediatek-dwmac.txt create mode 100644 Documentation/devicetree/bindings/net/mediatek-dwmac.yaml