From patchwork Fri Jan 13 03:33:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 642294 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 6699CC54EBD for ; Fri, 13 Jan 2023 03:34:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjAMDem (ORCPT ); Thu, 12 Jan 2023 22:34:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232777AbjAMDek (ORCPT ); Thu, 12 Jan 2023 22:34:40 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11211A38A; Thu, 12 Jan 2023 19:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bmL6EWnZOZSSS7dJCFKIDgBr3qthlvD+HxpD7/+UWAjrmdGsY6j16ss/kaP1N01L54rmsFQv10eO0jyKSFdLqxOAvFDz1twNj39VC540icpvXggtCjRIFehD8kYVQGChA61puzt7+g+wmtUVMaGUbIjj0Owwlq/+BcBX4MwOtaJibYTSLI1nzpjar5gIUkeTvoHAhQCB/QPjPkPwOM6ObBYVcnNkDBC1ka2UomRARTjDB3+faP+X1PtzftHfFdnDTjoaS1rfNCzzfR1Xzw1wSpdfhGifJDaOCLEHkx67dD0Cju7j+GbxWgPXd5YNUHcnmUpjhhLAqPHLLTsLZG5Glw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WfwlIPzxhBo4FftP1VTgL6Pxax6cnJ5Xpjbk9za5f/4=; b=QM/cXS207HtKerzKaUKSTq/JUMe41w11pr2IXWUNV9RSa2QQN/e0Y773TEiCTWAhvNBZGyGVRjkvRVA3M+8OyutmwkVppj/eOTzPpVxMBqZI+TIYMoQBJll/+3x3ol+nqcLm0otfqQm36WSe+KDHr/fbctypSt+hlv2U+29zjOFEbStr+YZyb7hEmu08sCwHIK7RBjmGiFp6Su5sFOwd8NPzUOG/o1B90bTZsY5pAj2bBn/nJF3rGhWiy9QK0dOwb0SryUWl1Bu6DTNsoeruOqEIMG4l7N7u6kkMFz5Nt0aLR1w1LIO1M3n3x9FYBtq/KY85RmzqozUyy/GXhwS6lQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WfwlIPzxhBo4FftP1VTgL6Pxax6cnJ5Xpjbk9za5f/4=; b=myHOCtD/PQf3e3kxyDpuPeK1aZBDhGjX3J3+r1TPbw35XNbKjHwXGqTprvFkxKlm9AaHY+BiBoasUjp+0Q7khLIeEpHoENocnSSFoR15hUiBjI1O3o9qu52NZqrzR+VaU4BoZWfmdOK5ZuWC/RDSjyXMAoYLaIXh0bmGwpuhIaY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) by AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 03:34:36 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c%12]) with mapi id 15.20.5986.019; Fri, 13 Jan 2023 03:34:36 +0000 From: Clark Wang To: wei.fang@nxp.com, shenwei.wang@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com Cc: linux-imx@nxp.com, kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH V2 1/7] net: stmmac: add imx93 platform support Date: Fri, 13 Jan 2023 11:33:41 +0800 Message-Id: <20230113033347.264135-2-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230113033347.264135-1-xiaoning.wang@nxp.com> References: <20230113033347.264135-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SI2PR01CA0029.apcprd01.prod.exchangelabs.com (2603:1096:4:192::8) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|AS8PR04MB8247:EE_ X-MS-Office365-Filtering-Correlation-Id: a8f6d421-f85a-4018-2f49-08daf51717f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4RMFIewF9gCG60ud1eGc6u60wk9Nn+W2OgHHJsUY1xH2ixech+iNhwXxp1ygL1AExVY/AcGNtYadJpjmD/jkulwTK4wXLA+b+mvDcEXEBPzwZdqLl7AiI7MdFOEwYWngoVqmIaFpUjQs3QJZYUv4zjCfmy6g8RfRqKTIvdnGlv61R4+Vj0+lL25Cl1CLOGz9YQY+hGoSEml527zIR3/ECL0HtKjgbGnNAOYvb3RUyu8i/579azx0Ohk4b3/dmEtJDkeBh1lgqDCb4EPSEZLb8+JZIArddA5SA1/ihkpTK/kzBqRecYqCZbyH32D+19DCmq8SRAiem9vbRT8d/Zx/EK38+M7i4slWdRbwYMFZDaJxszFpFa6ppNdhNQvrFih/SHY8es0NxLxh2nrWsNXTPouKsE3mn3rdrXhL//9NjJS38TMK7tpo7Q/KEK0+aztqJl5JJqmarzzENOF5s4X8E36BGNEPQd9vu8+uFkx7HAkHtNSlgesxt4zjlhmv8ESVmi4EesrrM7SMIzueAn2Wo5f3rZFhuJaVPY/zSJtV42y2QXzGfA9rB6AhePNcYpsJ365Xb7LGjrecJhMNkViHLbFOHWQsrs+ACh7Vv0pOpnbQhvog7MgU9S1c2iv/f0Tn5h9hwFImaroU9i5jt46A/djtfVEZlhuUhoySfnJ6ooPdc8oNgJnzfsIU6QXKV8/A7F4KpzaQmyS8NmMBxzF4Fg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB2939.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(451199015)(41300700001)(66556008)(8676002)(66476007)(66946007)(4326008)(5660300002)(7416002)(921005)(316002)(8936002)(2906002)(86362001)(38100700002)(478600001)(6486002)(36756003)(52116002)(38350700002)(6666004)(186003)(26005)(6506007)(1076003)(2616005)(6512007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HzDTkk2ZRwXAVfOKtDGkDjUkB2eHB4gkEEPX/g/lrZ01SV6RobSy/LJEqwmcWvSdCU+eCV3KxlHrxQQHj8ppHJyhdUWx5yosvMBNVbB4JLzu/d+2m+fmi0HXKzMogusn83x1lIXkOoGzO/Pfxjqv0KudoL+hf+fowR4Q1ZaYl9+PFgltddewyVJXUTy9Gyi4bBIZW47RbcSznNyjOe2J2eHMHeKEHr9srRE8nYBVKY/Zdt4qi37kxG1vase9HKlpD633k3y0jmhwpAs0whUOP5+5gfg+X8Awx2k4xkCAYpglCRQ/9PlygujQM78AObs99BjAZfvV6LM0qJAd/L6bvz1Wzg+DAu9EGmjmK4aYNnHhLyZWLur3ep4DzE+8o4iI6fnpcp4DHwzKbe1Nlf32h5mvUR+pvYFbDunf/wLM9GLVm989V72EBw+r0qNw/JaRQTb5Cfe4X5qOUuy4q0dY2BiATgYjO4dcQ6cRRnFcQLZapP6fb4tA3M1ceXY+8FF8uLmXYdRbjgPNdSKaMY7DLIdp9Shs4FYL5ZFHrEN+hgIyJmBNhEFIVL8cV/JfbmKK/mhc/9J1EN1pbD2RqU0upE5F3l/HP8x4517c3P/4YnkGb5LXRhbGgbVr4uS92L6qES7amaqbFhCsPSSg0za0uF4c2LAc4LSvGMBkKZfSZi9mohJc/GHNGIWf5Cb7d2IMNwO5TiejJL6rbXYzZuBGGbHybscEsVqm2KZBt/5v+Fzw7FChdOErH210Dp1sx94H9zSMZiJAxWsxpan/otYA28F6iLaQsZSVgWQYntVaT1gsyrh5sLh2m3yRqqdCe788K5aZrLyk2PZO5FYRUkh4OR/htouRpWJLfTQpQqNLYlBqEHZNopx1oKqsh8UinDIAKd/UC+NzsXpA+hKnht7Dqwz0ayuMzg779CG3dWnXP2PhteMyPkOKEy/bCk4aMkmr8P6CGbKkdL0RRyZUNVtyiOQPxWAY6W6BWLvl5NBouri43Fpwpa+r+U7xPXecU2S4FOyh6cruX6wYhRGRs+i/LWyCSgln3G5Y/yQKbrAAoiCtXFFPs4LAxGZNd+hNsaH58BclbWpwpSoTquNmRmOlEtfUBYuyHa08331u030JIczi3fFTwH3a4Nmkjcgg489Mfmiqrk0CeLRIoA1Wq1tuv8urtWiGChl3TrcVk/bgJ+5TsPsfbfmRrTLrasB7LCauKJQN18JIbTmI815BT/QNy4SA7DfQhwo79c3Jwe+dhjZly4g/CQbmYyat8LY1DaqHivDeHcZ6/i9ODAbc5Rn0pGnfpe14R15prqWQ5Ohg1HTXydeFDclpISxkRYvh0FkumPHY/veKS3BQwjsr4ZNox29w+8lXOzBjP8I5/b38DLTP/uVUM96Tgq3kGOEZa0Dxf4bfO3HrOzsmQGae2UdwWqNE7lA8B0ZY4bBwBbMbknjcq73xYXDpE2qaopl/RzpRou4KdJ35JHpwoeoM05JsOsq7Cjn74rTIDWT4YiUnGJJIqWe2NVgbWy3zS7yu/xHUZWngAcRoL21+qZDFjEvkGE457EiZdtX68LBXDmm4gYcuYf5GrhXrht14IDvTIUG5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8f6d421-f85a-4018-2f49-08daf51717f2 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 03:34:36.4115 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: y3c99ZvMjLuu17MO68m795ifGudu2sydDFjkOOlpGcGwmHA+NJV2hPGujlChPLEjc2ZFH56LAjWLTEntrYPXtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8247 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add imx93 platform support for dwmac-imx driver. Signed-off-by: Clark Wang Reviewed-by: Peng Fan --- V2 change: - change pr_debug() to dev_dbg() --- .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 55 +++++++++++++++++-- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c index bd52fb7cf486..a7ea69d81c11 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c @@ -31,6 +31,12 @@ #define GPR_ENET_QOS_CLK_TX_CLK_SEL (0x1 << 20) #define GPR_ENET_QOS_RGMII_EN (0x1 << 21) +#define MX93_GPR_ENET_QOS_INTF_MODE_MASK GENMASK(3, 0) +#define MX93_GPR_ENET_QOS_INTF_SEL_MII (0x0 << 1) +#define MX93_GPR_ENET_QOS_INTF_SEL_RMII (0x4 << 1) +#define MX93_GPR_ENET_QOS_INTF_SEL_RGMII (0x1 << 1) +#define MX93_GPR_ENET_QOS_CLK_GEN_EN (0x1 << 0) + struct imx_dwmac_ops { u32 addr_width; bool mac_rgmii_txclk_auto_adj; @@ -90,6 +96,35 @@ imx8dxl_set_intf_mode(struct plat_stmmacenet_data *plat_dat) return ret; } +static int imx93_set_intf_mode(struct plat_stmmacenet_data *plat_dat) +{ + struct imx_priv_data *dwmac = plat_dat->bsp_priv; + int val; + + switch (plat_dat->interface) { + case PHY_INTERFACE_MODE_MII: + val = MX93_GPR_ENET_QOS_INTF_SEL_MII; + break; + case PHY_INTERFACE_MODE_RMII: + val = MX93_GPR_ENET_QOS_INTF_SEL_RMII; + break; + case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_ID: + case PHY_INTERFACE_MODE_RGMII_RXID: + case PHY_INTERFACE_MODE_RGMII_TXID: + val = MX93_GPR_ENET_QOS_INTF_SEL_RGMII; + break; + default: + dev_dbg(dwmac->dev, "imx dwmac doesn't support %d interface\n", + plat_dat->interface); + return -EINVAL; + } + + val |= MX93_GPR_ENET_QOS_CLK_GEN_EN; + return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, + MX93_GPR_ENET_QOS_INTF_MODE_MASK, val); +}; + static int imx_dwmac_clks_config(void *priv, bool enabled) { struct imx_priv_data *dwmac = priv; @@ -188,7 +223,9 @@ imx_dwmac_parse_dt(struct imx_priv_data *dwmac, struct device *dev) } dwmac->clk_mem = NULL; - if (of_machine_is_compatible("fsl,imx8dxl")) { + + if (of_machine_is_compatible("fsl,imx8dxl") || + of_machine_is_compatible("fsl,imx93")) { dwmac->clk_mem = devm_clk_get(dev, "mem"); if (IS_ERR(dwmac->clk_mem)) { dev_err(dev, "failed to get mem clock\n"); @@ -196,10 +233,11 @@ imx_dwmac_parse_dt(struct imx_priv_data *dwmac, struct device *dev) } } - if (of_machine_is_compatible("fsl,imx8mp")) { - /* Binding doc describes the property: - is required by i.MX8MP. - is optional for i.MX8DXL. + if (of_machine_is_compatible("fsl,imx8mp") || + of_machine_is_compatible("fsl,imx93")) { + /* Binding doc describes the propety: + * is required by i.MX8MP, i.MX93. + * is optinoal for i.MX8DXL. */ dwmac->intf_regmap = syscon_regmap_lookup_by_phandle(np, "intf_mode"); if (IS_ERR(dwmac->intf_regmap)) @@ -296,9 +334,16 @@ static struct imx_dwmac_ops imx8dxl_dwmac_data = { .set_intf_mode = imx8dxl_set_intf_mode, }; +static struct imx_dwmac_ops imx93_dwmac_data = { + .addr_width = 32, + .mac_rgmii_txclk_auto_adj = true, + .set_intf_mode = imx93_set_intf_mode, +}; + static const struct of_device_id imx_dwmac_match[] = { { .compatible = "nxp,imx8mp-dwmac-eqos", .data = &imx8mp_dwmac_data }, { .compatible = "nxp,imx8dxl-dwmac-eqos", .data = &imx8dxl_dwmac_data }, + { .compatible = "nxp,imx93-dwmac-eqos", .data = &imx93_dwmac_data }, { } }; MODULE_DEVICE_TABLE(of, imx_dwmac_match); From patchwork Fri Jan 13 03:33:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 642293 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 EDE28C54EBE for ; Fri, 13 Jan 2023 03:35:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236534AbjAMDff (ORCPT ); Thu, 12 Jan 2023 22:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbjAMDfK (ORCPT ); Thu, 12 Jan 2023 22:35:10 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2067.outbound.protection.outlook.com [40.107.6.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C8963D2A; Thu, 12 Jan 2023 19:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GXz7dLkXucPPQcmuPso4qK58kwft2X0Ui4ZaoCk9A2kJR0FZx0IKlqt4AguS0uh6rZZh4gIpfrE3sFoj2995u0IOPmXApMbN3etDVFn8vvVcCAkVdb33NJ6mZxgUfrKYsXyXDgr+U6+7U7kpL864DJgACHeibowkZ34WbHp2bqF58jCEdmuXqpNfkxjZyY/YTshkhMiWFoS/U+66QBuNhDKdaO/zxqJVSauvnzkhp/Sy/TqFhYPrb7YTgpxfcLT34gYd+/EWdTA19/v9LzuVe/eZydQBdLZuzbHghP7UyItJL1tbDCeKjN98gEd+o84xUdkoKYLMXPlXJTEPe5RXvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XEtchS5dleUyXMBf13Gq5hhn8uF2x7J1NOLe8pdH3aU=; b=AKmrspXF/ieQaht0JPLSCnBYmYuA0mY1k95KnUqzpXncdsQJ0T9Rp1aXlqSOIxK/FYuW6pD/6Q8sPqczjL/5G0psF8ElPdf7cAJw6v5/YMlq2iXCW1zBJCc/WmvYFEqk/RjM4mUZdqGW6vr4pKnfg8MXyBFcr9OoJ242svPF+oOLh77MS7AtqiYUFjPQgnuYuE9Kw1LNVfTpm+Giisng/Q6W+8UkbKbWTMWTeMb9Kw1YDmomKCMFy5cDIOxepqPGtJXU52qotDvaXBXGmFR6a7Jh/5Pbp6s0uMi+rx1jcyjWl1bpWhja7+oywv0FUgFr4TrAm2Ia2GmaAgtavM/k/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEtchS5dleUyXMBf13Gq5hhn8uF2x7J1NOLe8pdH3aU=; b=EsJoKflipnMLHqG+K0HPNqY8AONMOPX85pPPtWebFjp423JnpShm6EKGoxCTjmNK0/S5vkh3SotHH7jD9sknJjx/KTwzpozQTVWSMU+izoVxIk+jnmxnU8BHbBBS4i/Jvjbs3lMpFlSt+Xq4lI6Ntq8i7cHIFhI5V08bA8L4My0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) by AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 03:34:51 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c%12]) with mapi id 15.20.5986.019; Fri, 13 Jan 2023 03:34:51 +0000 From: Clark Wang To: wei.fang@nxp.com, shenwei.wang@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com Cc: linux-imx@nxp.com, kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH V2 3/7] dt-bindings: net: fec: add mx93 description Date: Fri, 13 Jan 2023 11:33:43 +0800 Message-Id: <20230113033347.264135-4-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230113033347.264135-1-xiaoning.wang@nxp.com> References: <20230113033347.264135-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SI2PR01CA0029.apcprd01.prod.exchangelabs.com (2603:1096:4:192::8) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|AS8PR04MB8247:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ddc621b-18f5-408a-9610-08daf51720e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: meM2sUdVHkU+ehRem7TsWrl+yljY/SjAUOLxXFDqgpSqn0Tk4VAgmnvIuCr1Vl7i61wBBiriJ+1rdHbPNXQMjaIQYDFb7B27ME+gKWjQEp+8mWMhtha4tduCaaqg4wQzvsA2cVFQwtJMGlCj5IKfwfPPcoCnDT3R/OLvDgf2//gQ9mx6zuLVHcpmDNoUO2yt71FrNFsS60X9vNuqcFIBlPTiaDWwSat1LkQdAm67Jd112m0Way2a/P93m0hRt8bWhvNWMKQaTvmvwFjdcx6OHJ+OVsMKHV2NMkB6tMiFyS7Lm3lDFP4d02P9bRQK5QzDAoU85URDn3xkrz5qh6C1Ks8dctdDJWCXt9oZ5UP+W6EXElTT4e4kS2GDZzx69yU++4E6I9g/5qKyGuNfkE9p3oXnwbM8WBc1eRhWLsKMzK3qCYGDQ6kNALy7Gi43ea1ZrFrEGrcXpgao11pkJe5XCUIDFJUniOyiuhEn2CZRSJkcXb7iDz6A/ZnIJN3O3M5y/BBYTwOpWX8DEV4gPRqiDYnavLwm16tAWRwiAmvOGB9cCRQBzDabhiDHgCB/98hTlr7gDDl3n+dU0bhYJlYfIoYVPLxLFcLUbNp5t30xHpoyacteWoEwFMLSX5gpCOVpz0zSt/hK0RZzmSbEziU3E5R7d+DY99v//erUm2bxYFzcKBnPlOW5qc9eXr65qDlVncSWWPsd6HFzovhSZ6qe6A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB2939.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(451199015)(4744005)(41300700001)(66556008)(8676002)(66476007)(66946007)(4326008)(5660300002)(7416002)(921005)(316002)(8936002)(2906002)(86362001)(38100700002)(478600001)(6486002)(36756003)(52116002)(38350700002)(6666004)(186003)(26005)(6506007)(1076003)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nEweTmK8U9jhoVwopn/kD0c27uQJurExl8hsWd4SQk32V9cfEztiBgk9m8pv9LkD5wgkmkJyM9XhjguKPJOxS4Wkn8UNDFqnwKQkt7z2O2XmPfdYsyBD7ISOCO3CrpWr9C3cl1RFJL7P+W98CUWLZGMeJL5DK4/14T3cQ/xpRrhZc6KwhWBuE+JKtBCsCrf5FVmdIZUOT208S057WjAXKzg5lRwYsFlxbH1Sc/v2zlV7Ti2XW4ADtPuj97ACQlwv/mH+FPByr10AYfRZ8F8SfH9ZL4GTTvYJgY7feRuW8SRgWG87ZMbOn5XvtmVwMpCJosWWiPxju9iI3qn+2eOfKPrDoyE7AU2YbrrWWohd2WEmcg50oa/cdinMuihw7L8noLbD1qK8U74njgx+19jTsu9BsMs9QzUOVNAW/Ar9Vul2mRuhvC5OW/autePH8B39WT9CGRPELxv+NVb/M96UrGasEPiHeaajkDvM3hX0v1eZnTmyCwT3nCokNsn4yyxgHeeiVgYoLgjQlHd5b/KANbWj9cW/KxMQq/+QjbySHW3nmThV8Ox9cT/QAOapf2Ul66vAAxHHadXaYYKIlN2y3fkx7tjwyHB0hLbq4jh6hh+kpwxMnM2gYrWgW16VknTRy6PdgM63wDIonKjefIjlhPHi9Czd2PkJ1XVbE4wLulqFp6Xi3KGvq/ETYQ+fdS4iZdmySXelx0ZoR2mCymlvHen/KTXSBjC67Mk90F/oVi2MdRBvzkOT1BtM5IyRmvKI9RNjwGafqSAbV5mXg5weMOtM+yCKSXnzoAW7P6P498Pe0AjQ6xMEBUpSW6lo7qt5gU/D9wsS6m8fREWmsj9ArGXFVZhp5/1UeoxRXkU4H7mfcVPTxWND/LF5liZ234eGmy3/XdA5JdVqBSO+somVwhpNXu1qXWTAxNl28SoVSWnmkk5zCCmIOG3A/4p8itP8BXAw0Cb8BvX5QLAve//sL1mvRB7gSCPMRg9JEBUXHepWb7YOLbL+UtPFweBi1fhdoDcYVuU43Nt0ls09aoVJvrZW47LBGpL+T90oqPjq9syY/ZEK2uelWo9dPsZngA/K6xpq+O15USdtP3CTwl7UzkzF+gx6t9KJ+hHHEDh27uM/3hsvQi4lBZSE4BE5hBOROYNAke3J7fgRyBjcp0BKPs8wiBzriapjVFCaGHq4V2/qu8qokLM0lAABk0kj0/vVd32xGHAL7IEJV8gI2ZIuW42ZWBxAxQpqxVrye4q9s+uyv++g2KtVEIr8hD03O8FmOcdqSJNsqfGJH4u9mU4CRFI+BHU8n4ZU529zxdiOJuPMmrotI7Jrduc2LcD+mfUl/Ow6d27CT15xCZ3A+Bhd/gUf0ktjvc13jxY7pHjXbOGOgV7Eg3PQhfzM3cLRG1zTa5R8tFxG+WJqF6lCecjtMIfm2AIGbx4HnjhUDit/TIDTAoBIEZD8+Of2bUGdkf9d/Du6twQ370kRJI8SL7TZNOL2S0UrNisBDb2t5EZ/O30w28fHOIsfwyqUfmb6ETpOJhb/IDQ/MDVgK5EFZu1gUHEwfuNzLnxFb6IxkwBh/ljoGqvIMEqBgw91+S4yJMce X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ddc621b-18f5-408a-9610-08daf51720e7 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 03:34:51.6447 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lvLk+JTvAhrYSyrizrTRDtNpMWKuPHATHAEtwWRl8ZcH7cmW1v1lG0G2ktxl841V187/umHo0j05qriYiOJMww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8247 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add mx93 compatible string for fec driver. Signed-off-by: Clark Wang --- New patch added in V2 for FEC --- Documentation/devicetree/bindings/net/fsl,fec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/fsl,fec.yaml b/Documentation/devicetree/bindings/net/fsl,fec.yaml index 77e5f32cb62f..e6f2045f05de 100644 --- a/Documentation/devicetree/bindings/net/fsl,fec.yaml +++ b/Documentation/devicetree/bindings/net/fsl,fec.yaml @@ -51,6 +51,7 @@ properties: - fsl,imx8mm-fec - fsl,imx8mn-fec - fsl,imx8mp-fec + - fsl,imx93-fec - const: fsl,imx8mq-fec - const: fsl,imx6sx-fec - items: From patchwork Fri Jan 13 03:33:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 642292 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 AAD68C54EBE for ; Fri, 13 Jan 2023 03:36:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236402AbjAMDgN (ORCPT ); Thu, 12 Jan 2023 22:36:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234223AbjAMDfV (ORCPT ); Thu, 12 Jan 2023 22:35:21 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2083.outbound.protection.outlook.com [40.107.20.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0B0063391; Thu, 12 Jan 2023 19:35:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bTo9i8GaoLlXUUSU0l9fWW85ASUqLtBux9fhA+a6qSzMukkhUznz1xeA2omffSEl7fDzel+rJAyAxtIPKTFvVmeCMgXmw2tDn78IjHr/8PrrZEuHMI2mS0F37Wn0GWLcEgCnGrl+3MxsaUulo5j4rQqoZMIMUDueEUidLKY74aTwKrB5SFgo34VisfA0u75HOqxSy53rnvYJHZsJbnXrkXaGD1VUPJMh1t4sudB3o1mThS6uL7pcy6PVmb1TxRBSYjdt2ZTe3kMWD3TKhsG+W+TBu+5flN7Yj46x5454IPCFw3qF6LQc0qKGzx87Y8zT3pQFwpRbO65qcH2ok9QKHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rjVSMwgw/1OBFcekpx/NPA7/lrMdZ8dc4ZcV50mZO44=; b=OeBivRL+fzSIT0Vu3Tp/0y3OkuJyWUTd0YBcrSWgON2Ivmx5WzIw4IjrNnZ8G5dyd4IowWMIHoy2NZtrEGY8h0hQK3sXCj4k0JT0j9LxEwv8mPZwT14htm17b4UwCbR1vixWX3CnAA/5oLbIaMS2BRR85Epvwq0nF8En52YBXBjphCVqVag0baBBAtCyoIlIduxTBIRVdGmFAxvk1OyErEMsSj5kslYzBSktv8n7FInfkI+P9uPSUKwV9NzKCqa4nA6I0UOZE82S/fRevDex9gi83TPU1gCtSJg6llyf4Y+9kE483eNmaQCFSZNmmqlVrEJgLVp53d1dRpSMu6gvRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rjVSMwgw/1OBFcekpx/NPA7/lrMdZ8dc4ZcV50mZO44=; b=cBVC5A9gMhgQ5w/tt6WNlbJaTzesn1r2L4L1HNwdIeMQJwvzXkhDPU+eNi+N8K0+4sNtvne2DKmVgNMQNNNR8VNvNg03ytIMdkhzwViEnI9fTCKA+9PCqxOyVJAvoYlajW7AMMZRuUjADxxu8lC3lLvD/zWM64j3IyoKtToa+Qo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) by AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 03:35:06 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c%12]) with mapi id 15.20.5986.019; Fri, 13 Jan 2023 03:35:06 +0000 From: Clark Wang To: wei.fang@nxp.com, shenwei.wang@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com Cc: linux-imx@nxp.com, kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH V2 5/7] arm64: dts: imx93: add FEC support Date: Fri, 13 Jan 2023 11:33:45 +0800 Message-Id: <20230113033347.264135-6-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230113033347.264135-1-xiaoning.wang@nxp.com> References: <20230113033347.264135-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SI2PR01CA0029.apcprd01.prod.exchangelabs.com (2603:1096:4:192::8) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|AS8PR04MB8247:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d7618a3-f82e-4096-010b-08daf517299f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qQZQhpAI3otWX5/iGs9UYtOiD9nONmk2K/1Q/UcSYy8KMHydnnRn/dMK38OB++WJ8SKgkp4QqsWrwAzEJoHEgJONCBqllYuDpOGdenqDOJbDiVeZqckrH56JC113dwvTJV4mb8Qjd6AGdDJlo7MCdXdDtecsLSr1vpmkvcO6hzbYO5QdtKHxjYzuiMIJqOjrhwm5RTsgfTdTMGjqKyXX+nj4CdF85deBavUog8SyhbBE8TlsbDu9A/ej5VvX8jKoYEpigl/0gHw35q1y7MsPZiwp4BAxU457dvMNYU/35ls3lvUEgsV/qPrTB4mKGmY6vZEKKvULEF2+wXzX6xlw7A4SaM/SodnIfyB9bdeb9VgsfUw0q1B/rxAH5u8cRS9RXmrqdl9rLKcAUEzOmLjVvBc1lZ84eC66RAOsbehNMNUgSgpzvYsMKL6iCpSZrAcd+UeQVtL+kssP/xSwyv8Lfrv76JgARqSOr2gp4irPDbdW7sCyhYPfZS9YexNjxdiPv6ZYKqOyMsQZCKFT8pylzXQ4X7+ZG1vSnVz21+H1rPR/HskZ60OrJ+OpMhIjAW2nlqWF9qmVvqcnwY8CuEzXIzB0SmXsp3XUbi3h9fFhyfpZP8MYkmzh3fKwnJIxYj34e4ALkF90j/eB7ln3q0+TFszV7IZf61VAGHhIS7WS6V0Pv7vWj1c++tGbx+1cg827w3b/s40U5QnN9kW6i5iyPQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB2939.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(451199015)(41300700001)(66556008)(8676002)(66476007)(66946007)(4326008)(5660300002)(7416002)(921005)(316002)(8936002)(2906002)(86362001)(38100700002)(478600001)(6486002)(36756003)(52116002)(38350700002)(6666004)(186003)(26005)(6506007)(1076003)(2616005)(6512007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mcXB5w5pa/35o4yGo1EggBzA/+/emTJbx8b0e1S/6UllY6v7SGzmUyqUtMN+3BqhY629k3Ja9hzDQ34MrnNaJITMC9DcfYQajrFxkOzPGqZxsFaJbDxgy8Ck2TosfM9A3vxCGCJbP66zRgucnZw7m3Otbyrns1lHTvNUxa8LyQNsNVShi+ElxcjBaRrcT/IUdozwIazJ2IbRT2ZaY6Ms/5m8770xvANym0RstE3Xw1VSD6c53QC39AlOP1BcJ/Jxe4Dzv7CdrbvaahfaLwPnBgWXPaO/rG85sSinkLSRhSRIdE82atNXV41oX5VFu9YD5VJ1BaG1T0Ki4mIet0FkKfdy0pIOOw2sfvwZqpGm7+2q4jeRPZVrtDXenhHJdJcvT0Fh4MH+smyB0BdzyMkQHq//C1PW9C4bnaVXpdrkb16re9jpr0YSFRaeG1/DDVHe7cXZ6S776CfLAA/u93yA24F9m3DUy2xRlhXYSkS7+bWDjpEnAzAA7x3NGjdkLRwsnn6DjnBPJ/wFLWYxK3E46nynUftkmAFXvk+Ta1Ha573SRGV8D1BrJig9zIMc+bY3nEMOpU4MkKh4COR3WQH087N4ll8X5IYkJz97iBNDqA940uoWPf3MLgGldC+NIZAZKJM4dr/fHH72KlHrvoLs0AZXThyDGzZIZ9iYMxqLKfIzACWCco46ouxcUxykZ4ODpTR/opm8ZPJ5nLmpkjtinEfWK0bMDWaSgh8/TdH3SonIT1eYfYNAhgxXERp0AsJkUodZI6obYF3393hTQG45o12Rtis9MnwLSssox6/o1xA83gMJdCj1Gn/o5eMvL3X1GQPXbrtkjI3dTBPQKRrLEGUMEIBLrKJdsM3CADjROrYO04r2mKQrDzhUkfH7I90PYneYlTgVCmWjYyftyvkhrWk+nyS4ehr1yAOpudXf/dzpR1/ZNOZRhYIg2gdUSYi0/rh6LpcgoORgrsBCgWxm7Czs7T49sm2uafEfpIZR+YWS97sVfg/UcCq9kxrUnlYWLw4zm0+Ye7PYWtNSmMpYM8nEfNn75dxR2fW8yVHSiyWTbNDWDwkwGIMx1tMLNSROAzIeb1RgtGYsiEUo0Mz8Il1sU+c9uOWkC+SqAr2h2HBTIOKlxtDaiijo9JpA6KRg4TtLwyMomqSAz3AK0jhB1POgUewiG5OPbpgqJyDfMj/dhq8hOI7sW/8a9Q2R3d5O7bXb9M1wjK49lsbm0As2d9XVXmvLOP7WBhiN2f0L3mtPUw74OmEi2B4j4HEf0n0vS0KmseF+ODUwrJPWJeVfV9RtiYHgN4n4KS/4HFSys4NOQsJXSYpJhpfXtaagO61MY7ujYdkh68uG4JoPVDf7rSsvdglUKyZ20SDPA0az1nDF3WUahaNery9ao9rkmbnRzjtQNSBd5Q0tJ0xw96Vb8In/zKOqEH/Fy2QqeqnZEoBmPTCn2RpSomTY124UVKEWNBXumGL6gtnDjhuQb/u2TSiOzdsIvvRNNftEjzMj59P8rs7ytWvNOnagR5BZpJUtXZvfmBKCWEcYwGURm/AF2d7PiMhUry0egKeBe437Re6rmy7bG10msDT9vMANWydf X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d7618a3-f82e-4096-010b-08daf517299f X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 03:35:06.0654 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AEsbzH2Kcxy2wuk9MvuWM4Lqx1bTg9agMWfp6mDwd2oOPPhVbVvXhxCwTjBw6+vJMhGaBvwLIDZZDmaA1IHmLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8247 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add FEC node for imx93 platform. Signed-off-by: Clark Wang Reviewed-by: Peng Fan --- New patch added in V2 for FEC --- arch/arm64/boot/dts/freescale/imx93.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index ff2253cb7d4a..12e0350ad35a 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -586,6 +586,32 @@ eqos: ethernet@428a0000 { status = "disabled"; }; + fec: ethernet@42890000 { + compatible = "fsl,imx93-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec"; + reg = <0x42890000 0x10000>; + interrupts = , + , + , + ; + clocks = <&clk IMX93_CLK_ENET1_GATE>, + <&clk IMX93_CLK_ENET1_GATE>, + <&clk IMX93_CLK_ENET_TIMER1>, + <&clk IMX93_CLK_ENET_REF>, + <&clk IMX93_CLK_ENET_REF_PHY>; + clock-names = "ipg", "ahb", "ptp", + "enet_clk_ref", "enet_out"; + assigned-clocks = <&clk IMX93_CLK_ENET_TIMER1>, + <&clk IMX93_CLK_ENET_REF>, + <&clk IMX93_CLK_ENET_REF_PHY>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>, + <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>, + <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <100000000>, <250000000>, <50000000>; + fsl,num-tx-queues = <3>; + fsl,num-rx-queues = <3>; + status = "disabled"; + }; + usdhc3: mmc@428b0000 { compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc"; reg = <0x428b0000 0x10000>; From patchwork Fri Jan 13 03:33:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 642291 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 2A61AC5479D for ; Fri, 13 Jan 2023 03:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233025AbjAMDgy (ORCPT ); Thu, 12 Jan 2023 22:36:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235485AbjAMDf5 (ORCPT ); Thu, 12 Jan 2023 22:35:57 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFA363F7B; Thu, 12 Jan 2023 19:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TGMx94EqBydJnMYy/tf230X4reny5kPC6YqWHQ+6uDaaPskFFz4dbgc482f1l4UKmyLD6RYhB4eF5Yvlwar1CPoeWaaRQqRoUJR6TfHQPEZ7o4Ayzk2kXmAHSXR+/vPfRu0qvLyoyvkLXfkdEDglfPHOCVZbr/2Bkjo9OYbMVm+zAcJtxSKras23dEAAmhiBiexRPstNun/lQWIXLLYmuDNpLrMqy7Er7PN7BZRQvH1D9+byjnD/ZlLrs/IurcjIW0wA3tcLrZTpo0Q2xYL8soGnm8zNWQuRgSIRJM0N+YG+PdYC+5Gav+rnWaU+0sw/pZcgsbdRuGZfhN8WdNipfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QXa8M+G8KNPlvAU4FbLbbSvCwweX4FklR9YyAUkcKWY=; b=V3VQXRIuL+3qKo+5H+W+JlU8ofZOGG5SSbLMROBrzXYqMpCjEfis1d1kifgHSywQg0g9zqLc/5LG4E3KCRo/WYnM2Yj6kfe8QwrULZRSqFO7W8LcbsKlbkx0+oF6kmtQDsvm+8rkfRTqVQZIZBWM1ypogMxUUovpvhrys03vZ9J2vlxomNgIdg/zJfHNmfqGcdVIkr/aXvZVSweDPbm1iQgoycuQh6UjtJBvIAq37m+diGxA4OSsK7X51MtHd9GZFmxXaCP9EWI+o+leNmwxGZgPtcv06vcsONuQH26SdOnRp2bG85vl7zGB8Yysri3zhWIWcpr6sC3GNbY7AMrnbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QXa8M+G8KNPlvAU4FbLbbSvCwweX4FklR9YyAUkcKWY=; b=oM9N6TY/ktIX7H/3lCqjJVo3G6LROwHvuAygXPMnLvXXbuIOVKKeoM2LBR1raYqH9wg11TEdenRCoyG0l3a0Be3R7FfRMTRPWlwgKV5znlTugiihEMoJU69jMpf77UCWhiXR+CyTL0OEkrhMYeAwaUwYgUVrqxsfqTykjkAn79c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) by AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 03:35:21 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::76a3:36aa:1144:616c%12]) with mapi id 15.20.5986.019; Fri, 13 Jan 2023 03:35:20 +0000 From: Clark Wang To: wei.fang@nxp.com, shenwei.wang@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com Cc: linux-imx@nxp.com, kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH V2 7/7] arm64: dts: imx93-11x11-evk: enable fec function Date: Fri, 13 Jan 2023 11:33:47 +0800 Message-Id: <20230113033347.264135-8-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230113033347.264135-1-xiaoning.wang@nxp.com> References: <20230113033347.264135-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SI2PR01CA0029.apcprd01.prod.exchangelabs.com (2603:1096:4:192::8) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|AS8PR04MB8247:EE_ X-MS-Office365-Filtering-Correlation-Id: deacf900-0f46-4fcd-30bb-08daf517325b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6BYiBj2wJMHd7Q48vM6MTE/RQcPzk+V3k2Cge3dey2Sctq7HDuBe5l5vrNt0BP5Q04JCDNCnydGL5x1c5rMqPQ6zADzpawzeiHYbEHiiAthg/K1H7aWu/bk7lsjaUjlrsIKFEYPaOXXUFspg3z/S1rblgUusQOB6iowkHOvqzX+MBx5s9PixoqMifgFxYGKH/DKRsqYIIVV45d46HV6FJ4vZ0UyHyvyToOj0CGCCfrLEOz6iIkutLiCQp0F2Ty2vHwDXEhLVhm/4yoi1R5Oe2oYmt+F4U8j+Vq4hgYEnqQhxWXDTCERzGSgtyu3YmMAqgUDaAUo+cz4wmInlsxin5NgCFdAe2rrQ6720a4MNbWn8XtygZFzwj2ui5/aaZPicVRmzaj5rXWLrQ3WgfIJlXERtb+M4CKJWowz1OGBrjQRYndZJnaS0v5eui7aKTrt3DnQD19gwIKPgiY0jA7zKikatj8PSufnZpPvn8JwhOGxqxs5aP8Q1ElbSVw3o5h0uVFOLjtrO2QvRFiO7UeZo8RmvQuACxqWmJ/rQ0YzISyN7RWTjmBZkMupV8/OGuYgewKHIC0cTvnZv+1LH6DeXPqu7lL52Z6YTrTi6Cfsc5hNoBbrcI0RuzNqc+KhwwT3V3/Ocgg3bYV7UpkFToc22nSxVxi45Kg9aUpOIVogVarWq5dDgW3lP1wU1G3f2FIVS5dP/or1q7J8FTK+t4UMgetwNSdikDwtNIH7f9Z8MF/8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB2939.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(451199015)(41300700001)(66556008)(8676002)(66476007)(66946007)(4326008)(5660300002)(7416002)(921005)(316002)(8936002)(2906002)(86362001)(38100700002)(478600001)(6486002)(36756003)(52116002)(38350700002)(6666004)(186003)(26005)(6506007)(1076003)(2616005)(6512007)(83380400001)(473944003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U+1eXERge9Z7ifrGcfksWOIZ5y3Kxf7hrLLCg6Y1mjSvW2oFn2EM+PGy++xnAidBS0d72gnE9R3eKNsTipeZRpS2qCDKqSDWpicsNSjnHrwBl90F5EycDlPKHOaEjRrq1jwOVPqAorPRKiLNdhOqvUYw9tlraK2qNosEwVUvJ85U0wB4Lv9ro7+ymdHRbkDJNkkCubMWiE0DZuup00JiaALesVZvuKlR6rxzaSBZLi0+N8xYcwL0mrPsxkektYDRbEMDE9dNUkzZp1CtXJ0pVS9PgSYxiiROvydw6UaNolZ9nLisLiHa8SfJoxpx/UrEgfhpxgwQ3ryg5m7TK18BY9Habbwjg7mt0a/enCawlNZiHjca9lED9b+chOUrgvQRcg+BeL9uv7R/1QnoVP1+PyozyuBLr56MRk/9WRptgFiUJ2R653uLjSw0AlIVn2SU8677Ko1CbYGTBJD6Y/ohy7AIozlHECtAcnjNX3pSBLe4kLB3HCZiS2hxEem73jNyIK9xU4U4uGP5uIVd4S1mQRbBiJiIZXUfsx6F3hQ3eZbUk55nPLP+dPUTkmkIFVb9L9EI0JRWj0Z+zj5SnMWvll2ovJQ7Di3ik6NTjeRobQZKlF9tOMj933BNCyWuwZb2rM+KgSUhBjbyLOgc+XrXpeNUouliadEqg/kb9MNJJUJ0VPJXy7FSwM8cEL03PdfZk0Q6nAj0PZTBkiABEbNVfpAIx9GFuz0xOVAvZGkeRNOW08XjLeCDz7zjcJkdBy0HJkhZGIE2ePMc4EC6DjPfhtUhvVRBqsVi92fCnyBAI5NAZe6gdmAQd5ZV1tKZLnq4XIdGhLEGSwFt3mro0IneO4iXVUNXR3X4M97KCCa+OWm8mTlSdeHVVBSKv5s1il5wK1Uls2fQjvdXtgeFFyXOQwPTNaGYZPmUxVXqTOzG5fVuJAYU7IkgIe5Y3ty44gMVdFpMTGjBgsZfn6lyPvHsJEKc05XL5GTe34ezM/qSPVFLQ8DhqEWnZwHdyjEbkoqw2oGtAWm+hEUPPbgG8d3OKcMbbpW4gOFKZ0dz1YheomUPgkC3vf9NZiLhudqrVynxflWgOHLeVaiNXmtPRckn+iJ8bX73hCUYXl6NHCC5jE8gIew9Tmp946VEduTGKTTWGAaSuGV1NAv4z/PHwv8kfxEp+R3O3OMG0QvOhwmsamIyK+nxHMP2+6YQNIRgOnPEyPIeaJp0TdiPSSVuXeBP2HZc+HohV2+AngybltVd/UxWJKXi/fGk9UbzmAoMH9wFMFxctHJxmDhlk8kqcGvMX+gC6v7tMSWQoe+eJnvXz6k3EvciH7XImimQvh54oG5/rXSmgl3rstpfMlfrdxMUAKXUt4czi7ROoAgzjWV+k3KAw72XZB4ZP4VtoMRmMKuV68YEOP1BE9mE+AqF7eamuAIW5u7vcIG0Ks2oEdMjmKhu5Hiu3YW62+xw+z/DN1uTJE9+1TeTlMYCytLOydqiNCd+R9T2HYbchc3Ky4mRSatdzfkDBinERjXavKCvFRs3+aMd9+b7g4mvI3xlFpnLqI0z7g+N2+/F+Om5Qze6IPe+P12bvIdDBiwp4hxsdWn6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: deacf900-0f46-4fcd-30bb-08daf517325b X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 03:35:20.8142 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wVTW2KNUo3TLoeUrc6oreWXcKHe48w3hAXiHmBYZwxh8rrzbwCZYyt5maZvdT6cnJ6hY/gwJARgyOq2NnUyxkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8247 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable FEC function for imx93-11x11-evk board. Signed-off-by: Clark Wang Reviewed-by: Peng Fan --- New patch added in V2 for FEC --- .../boot/dts/freescale/imx93-11x11-evk.dts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 6f7f1974cbb7..cdcc5093c763 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -55,6 +55,26 @@ ethphy1: ethernet-phy@1 { }; }; +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy2>; + fsl,magic-packet; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <5000000>; + + ethphy2: ethernet-phy@2 { + reg = <2>; + eee-broken-1000t; + }; + }; +}; + &lpuart1 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -104,6 +124,25 @@ MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e >; }; + pinctrl_fec: fecgrp { + fsl,pins = < + MX93_PAD_ENET2_MDC__ENET1_MDC 0x57e + MX93_PAD_ENET2_MDIO__ENET1_MDIO 0x57e + MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0 0x57e + MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1 0x57e + MX93_PAD_ENET2_RD2__ENET1_RGMII_RD2 0x57e + MX93_PAD_ENET2_RD3__ENET1_RGMII_RD3 0x57e + MX93_PAD_ENET2_RXC__ENET1_RGMII_RXC 0x5fe + MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL 0x57e + MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0 0x57e + MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1 0x57e + MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2 0x57e + MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3 0x57e + MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC 0x5fe + MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX93_PAD_UART1_RXD__LPUART1_RX 0x31e