From patchwork Fri Dec 23 01:50:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biao Huang X-Patchwork-Id: 636797 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 993A5C10F1D for ; Fri, 23 Dec 2022 01:50:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbiLWBux (ORCPT ); Thu, 22 Dec 2022 20:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiLWBuv (ORCPT ); Thu, 22 Dec 2022 20:50:51 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FD1E6566; Thu, 22 Dec 2022 17:50:48 -0800 (PST) X-UUID: 2ac7472ced274a8b8ca4b73c05e996ae-20221223 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=e1O1KT0IELVuvQ4jwoar6k/o9u/peKrbv63m8NebjRo=; b=luwIoBvairtyDWyr9g8RQhCnl+m8V1GaRC8AE8SIjE0CFbke+ujVGoRNKEsQQ/RdSjmSEXhhRGjjhUOfW7CpIk50Y+5G/RGlQ6YzCPnnnbpO/S3uA4azRyydUNn/MwHsE19gMJBO6Xb9EMkjNl55liC/cUXqaJ3SUxLIVkXhSps=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14, REQID:570eecfb-76a6-4615-ab81-f4d3468bfab1, IP:0, U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.14, REQID:570eecfb-76a6-4615-ab81-f4d3468bfab1, IP:0, URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:dcaaed0, CLOUDID:ec0b8e52-dd49-462e-a4be-2143a3ddc739, B ulkID:221223095044VCNYTM8J,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 2ac7472ced274a8b8ca4b73c05e996ae-20221223 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 137086562; Fri, 23 Dec 2022 09:50:41 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 23 Dec 2022 09:50:40 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 23 Dec 2022 09:50:38 +0800 From: Biao Huang To: Andrew Lunn , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Matthias Brugger CC: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran , , , , , Biao Huang , Subject: [PATCH v5 0/2] arm64: dts: mt8195: Add Ethernet controller Date: Fri, 23 Dec 2022 09:50:27 +0800 Message-ID: <20221223015029.24978-1-biao.huang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Changes in v5: 1. reorder the clocks as Angelo's comments 2. add a driver patch to fix rgmii-id issue, then we can use a ususal way rgmii/rgmii-id as Andrew's comments. Changes in v4: 1. remove {address,size}-cells = <0> to avoid warning as Angelo's feedback. 2. Add reviewd-by as Angelo's comments. Changes in v3: 1. move stmmac-axi-config, rx-queues-config, tx-queues-configs inside ethernet node as Angelo's comments. 2. add {address,size}-cells = <0> in ethernet node as Angelo's comments. Changes in v2: 1. modify pinctrl node used by ethernet to match rules in pinctrl-mt8195.yaml, which is pointed by Krzysztof. 2. remove "mac-address" property in ethernet node as comments of Krzysztof. Changes in v1: add dts node for MT8195 Ethernet controller Biao Huang (2): stmmac: dwmac-mediatek: enable 2ns delay only for special cases arm64: dts: mt8195: Add Ethernet controller arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 81 +++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 86 +++++++++++++++++++ .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 7 +- 3 files changed, 173 insertions(+), 1 deletion(-)