From patchwork Thu Nov 11 07:12:09 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: 12692275 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2514DC433EF for ; Thu, 11 Nov 2021 07:14:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D9D1D61269 for ; Thu, 11 Nov 2021 07:14:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D9D1D61269 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=b1kIsKiPmwd8fRXWbPuKblGZENsU/kr4VuSeJ7mYDdc=; b=YAfCQx7SEKAhlO CRsZ0UxMlIeHNZCbl5o4UEKVBPHeUQ1G+jHli7q/3s6tMrCDLPjreEKdv/pEfWDE0+MwXsUwS1LVz XugKfVl7iycLv6Vmt1Qy3pDqA+qM5keio9MAyj+wy98yEcn/0NonpLIyfZC9PVY7OngjypsVinlg5 QqFdKOEp+VpsAQHIHJhxl7kEmwPsV47pnICcwDa6x4ikhwT70RoyOlSKuH54TrNd1ixgX04EUJdTy snE7wTpHPeW9cEHA4u+LI6iS4N/qgjgc8giKfee0i5rmX6WlOCEUXgXI9SyhS05X5vUbfL0lvIes3 oYgDftGPzVGUcbdBuUOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml4G8-007KcA-8L; Thu, 11 Nov 2021 07:12:32 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml4G2-007Ka3-KQ; Thu, 11 Nov 2021 07:12:29 +0000 X-UUID: 245aa774975d405dac4a667e226c9051-20211111 X-UUID: 245aa774975d405dac4a667e226c9051-20211111 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1499698250; Thu, 11 Nov 2021 00:12:21 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Nov 2021 23:12:20 -0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 11 Nov 2021 15:12:18 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 11 Nov 2021 15:12: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 v2 0/5] MediaTek Ethernet Patches on MT8195 Date: Thu, 11 Nov 2021 15:12:09 +0800 Message-ID: <20211111071214.21027-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-20211110_231226_731806_6FA94218 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 5. add ethernet device node for mt8195 Biao Huang (5): net: stmmac: dwmac-mediatek: add platform level clocks management net: stmmac: dwmac-mediatek: Reuse more common features net: stmmac: dwmac-mediatek: add support for mt8195 dt-bindings: net: dwmac: Convert mediatek-dwmac to DT schema arm64: dts: mt8195: add ethernet device node .../bindings/net/mediatek-dwmac.txt | 91 ----- .../bindings/net/mediatek-dwmac.yaml | 211 ++++++++++++ arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 92 +++++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 70 ++++ .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 313 ++++++++++++++++-- 5 files changed, 664 insertions(+), 113 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/mediatek-dwmac.txt create mode 100644 Documentation/devicetree/bindings/net/mediatek-dwmac.yaml --- 2.18.0