From patchwork Wed Oct 12 10:51:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 13004955 X-Patchwork-Delegate: kuba@kernel.org 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 14A86C433FE for ; Wed, 12 Oct 2022 10:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229833AbiJLKxq (ORCPT ); Wed, 12 Oct 2022 06:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiJLKxi (ORCPT ); Wed, 12 Oct 2022 06:53:38 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2057.outbound.protection.outlook.com [40.107.104.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 853F6A2AAE; Wed, 12 Oct 2022 03:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L4RUcsiBExCEyNFOhmGr3JmqqdGwAuH88VcEqE59LAJ5UjSztFQyeLxzjhDdGlS6/t62X8c2m7srcxEt29rpP3FE1oGjv8aDb8ciydhG4WqLMqAUoB49vvk25JmgAxgO18u4t0/1wwn46/SuHJxfgFBoQvARDEmbV/i1V9H9tXNa+HNkBSeW2khiuEUON47bCumHgSMHkwkPLJprM5JuwJpu1AYKQiVgdWFHrR6Ow1wRN30Zt0FJgMlxyzcjGAdcfHU94DRwEniXxdf+DQO7QzNBiqGRZa6F/cn76QMzV4uNDu3AB13eX1ldrOBMu87uuRb/TaXWQDBLHxGTHeN/kg== 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=BZZ9k+psyzsTty7d5lR4ahPOC52U0AL/MkPTMFLfX2g=; b=GbE8ZJx8F2Sriyl0ndPan3ozoPAvzkrv+lEtYbxZwS2hUUgRmMaEKW+mapMBKDg9bsmuNBwtvFABdfffl/yxOS/4lYeON6PBMuf3o3ky/gtzuZI8tcK+7SO+1HnO2h9DmN0r/q0XQtVWLxT9cXDbiEExLYZtAKOQVRT4Qm89Nm9olzVS7Tlb0N1YuntiAN6OL0aYHf9B4yQJgJyhPmXfW6slII2ED6GFxkwq8Tt3Sgxeglu7XBAqVp/e8odmWv+LtsjLBgzToZ4DG9GbVuIx/9OOMTiSKFT4hg6ExNPpxlxyzc8N6EKppDuKQh7LOYdAOC9UtZPPoPIV+Zne4yI9zQ== 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=BZZ9k+psyzsTty7d5lR4ahPOC52U0AL/MkPTMFLfX2g=; b=IO+i5UugF1a8km8SLXJuT2bx9rjjb8GvDxYg50v05dCsh35LhrbiJKoNQ2rSAt/8U8R6UXra4qx/0co8AxbKHncvt+ONhu5USoscUyhNogmnykFOpvoROiKBIN3fkEL3zNzz06st1EABjslBG/GcPndMh1/qU1KBK1iw502cAMw= 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 DBBPR04MB7675.eurprd04.prod.outlook.com (2603:10a6:10:207::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Wed, 12 Oct 2022 10:53:34 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a%9]) with mapi id 15.20.5709.021; Wed, 12 Oct 2022 10:53:34 +0000 From: Clark Wang To: 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 Cc: kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 1/3] net: stmmac: add imx93 platform support Date: Wed, 12 Oct 2022 18:51:27 +0800 Message-Id: <20221012105129.3706062-2-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221012105129.3706062-1-xiaoning.wang@nxp.com> References: <20221012105129.3706062-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SG2PR03CA0107.apcprd03.prod.outlook.com (2603:1096:4:7c::35) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|DBBPR04MB7675:EE_ X-MS-Office365-Filtering-Correlation-Id: 169fba44-9c97-4bfe-39c5-08daac400239 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 71fiUipPCHNIn5fdP3AAwFV4iJzWtuyfwkfBR0w2SlctFVGP15lGhImrm+3OJhZ6ZEYPeTt1vUn5PJ6FqFm3J1bjJYRDvw9X1M74nMQaYvRO7hcJVmfzIzZCU2l60QP86S53QujPyW5t6g98/cH94sYUZcE40JO2/4erXGon+a8SoE+GXu7/CCXLWXQdKeRaFQIr01FyQUXnvCSL6cQna9avkudR3pLeu5Wdkcj/t8ZaQ5vhBjZy16AA7m4YhPtWMTvN9yrpmWMBnKjXhKtqFuCSomyKtxJsC1sJxEx/ZPcCfqA9ZB9FDV/p6yLmTOPWvV9AU0o+damHYFyDZ5f5WWzEH5fJ38A9LIlhO7Cr1DD1P1oS3DJqd7VaFTDzwKm169CreklLYEnxDXlRvJeSlYgwA2Or1PI3rFpItiGu2Pty7MMkAgjOiGcaBRoJuXqOzTnJTSPSqAWJjIyHkBIwoUZLtuBQvoJAfwG4sapf4Fiq8K/6w1Es/WuL9Fs+ruHz6aiTUBGp/AcyYuT0YkkqdXhH0l3ktFC03ml2cLDqjYcFhmqXuTeSTBX/EVLQuSm9rHydEwPGKbE8Poq2QQOZb9vLgA1NwKdt1eeN8lN3qqo41myRrOUL6IFHjeR20vPkhTR/ZidBM3gBWZd+ukkKzhOmYFvLvOEm8/hTyRJwpbjt5ndq9+FBWx7VBoo1llHwtDTPVFGIrevaxEcFQCttxSJhVEsoGWiyHE8BTcr43glJgOEjR/UButWR/1Zba0fhTkj6T2+JLs/pSEHSOCdAlw== 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)(396003)(346002)(39860400002)(376002)(366004)(136003)(451199015)(6666004)(921005)(478600001)(6506007)(36756003)(52116002)(6486002)(86362001)(38100700002)(38350700002)(2616005)(6512007)(186003)(1076003)(83380400001)(4326008)(2906002)(41300700001)(8676002)(316002)(26005)(5660300002)(66946007)(7416002)(66476007)(8936002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bmjwrDNNdhTFdzw+0XymRK3Cinw7sF1rRCS0lA+t5ZGK2JgEK1RWxnJZdmoqF4UCGyEQdqnJQGZWkQH7ZUFvRrpG7JBH/IaAkLxfZExBjGlGDSC/804NyDJALbl3pWIejVUNP6VifmUdaz1oA0u28Dzjd7Iri1Fn8EiaXjztCU3z7V0k5R+KQk2eiakslwwUTTjoaHTYZpcJxJwGMHHzL/TdopD3lZ/gixheVB81aLGFJAip592+O5gAq7KFoB2hWp6PxGg7CeIi7JN4LizQizDf3guLPnRQrC0vS185eiecwYGRc8lFzl+zX6uVYOQQzmbZM1MA4o9AjT6UW1mGQS3pJCI1EWRLyZcFpSKZHtmyb3by2n4vO5PBhtvMljPSWyypeJiU3EyUNylv1uMCm2GCTVRVqnGx2XZfr3lNVHvLLDIG8UGug+WU+52lvWz27UsZZPu5vrJYnSsgdSJ9Yvhbkknzwnlltd1xjRrYB3WbaxtgJpuH/UKggZXmbnS+eO+TPQpgZ1rVPl9Rs35Y8U1LuGwascA/SwLcC/tP2Ruw9eB5cEsZ4IVA/S32d7FelbsbiIVVUvUb63AR0c1uKGuEHY9Ikssc2NTr+WoTew9nHyuwZJ60gLmVX9UoYLtpOWUH+YmnWAnqA2cI6K2dV8LmzcWpzklTXIPkEGt1wHTuLZPzMqD6/xSgWCE+MgYPWi6nWupmsRIqsY63WlM9/gnHK+qR9SduyuXAaFMBi8ERDemuO7Md9+HA5NhT6w6t6vjHGd+OFsgCyznXBCju1t/nmzJZfs0SC9AOXGwi7zFyAceuPrpAH33eP3NJN0PnBoyvsb8lwjXrrPJk3/dRCNB5Q1n0F8hWmWn1FantTMnxim70R3UTldBB9TQOs0Akvl7d035CMZYz85GIE2QcWQzfHSSoP2VUsoDgEXdyr7haIgeeASfy9Uk1JlMqsd0d9yCh3wFM8ThvsJ48BuRFubEjaIk/lxz57uLPj3/hH/9S4VQ552QVBUuXOlA13sf0coq5f1FAZhXaxREOjlIWrEJn/8fFRtDCvAYXgDiWdgx/Jvjfm9ru5mX20l3xkzp0onoLIYyrbZ++YjJgJxnuSCW6g5AKsFs3nDbfLu6b0GillIva8S+TRPjvE1UVSqL38xrBb8zrBPGh6xL9QdVVMVaH8ztw3ZzgW5eLqarg04zxAuP+HetRl3+21W+reNoLzS8+cokf+pvadZeRz3N5Eji6yEEGp2AaZHaBRfvmBea33IcZhmRLqC660DQTDxFKwHBFHrIyXRMxD5piM1yYxzdWuhdEN+tAX/5UXxNrkmB6yLP7qmkMQhYBhSsUv9K0oDJOMbDQRmeL6Ip0lh7CbpN+vF1kNBfHx5zQhtpP47Bdqf6GMguaBPeW3WwzMVUeOpz5F6QMlRtEaXLXl0QIb4lAZ34YnzWdzIp+OjMAnBOCtt9VlapSQY8CKSOQUEgLWG8+7MdcpTuLrtHzzp+c/MJqQymFmbCLAiaS8YclK5JUl0X4Wp4T7e9hzx5MBorEkWJajiKqf0j0fvrcjRxz7PGvA27uDF3WELs66UEKK2Vq5pFV7dfImJD7CpHRjE2v X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 169fba44-9c97-4bfe-39c5-08daac400239 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2022 10:53:34.3879 (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: Z8DWFCnKSejdhyo0o0YoBQ6F+JL7zzAU4/vGBrDr/zOwWQ219SaPCmpWZ2NiZIZmMWDFVEyrdP6lTMV7NwHPWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7675 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add imx93 platform support for dwmac-imx driver. Signed-off-by: Clark Wang --- .../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..b670f07ea2a9 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: + pr_debug("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 Wed Oct 12 10:51:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 13004956 X-Patchwork-Delegate: kuba@kernel.org 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 13B1DC43217 for ; Wed, 12 Oct 2022 10:54:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiJLKyC (ORCPT ); Wed, 12 Oct 2022 06:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbiJLKxt (ORCPT ); Wed, 12 Oct 2022 06:53:49 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FA24BEFB0; Wed, 12 Oct 2022 03:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jgGRV2etbOejm2CBgiSXUeY69Ug/xKxFoEBBFBLzPFQHEMIj+u+CJ3JxTM4cMskrfQfqiJdLHoOgM68ghkvWz8lxO4aIja0CKRMTb0QXK/V2/KIiTS8nblFxPGvacr9WJU476Vkn87GKKKm2qo/C9j30rQAikijXuwK8Udx1N3A9GB3+GQAaYTswEGRsCu8zD3e1cP0lOkgCPGNadAx6xmQbRPdIodvrtNeIdclvJFzcsH4sp+Vz9qPDivK01QfiY4sAF4EkhmoI+q/hWjmEacPaAFmVRysSY9xm/+mnzDffr3UXC/smB7ccjSA6OXTsa441bBOmu/dVQzhLT9bbHw== 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=w+pvV3afiDUOQfTaEg2otEN0QHbIqqg1U69u2ZQiJxI=; b=Hs3P/Nj/5JRi9ZDb77e4ECH9T0u7vu5TEvywC7M26sMN2FLSUnEH7XvuKtfsHIx1r1WMq6x1XUdf6sd8ZQiuhhkHjjt8Kyhk87rsQIyWjBKO7DHcbFKDEQo7vlWeOSpwm26hvDjyg2vv0v8R0LTK4USp+VCLSSHF4dY9dIWapmraDqRGndm30z62WnS+170mrbsgdEEXh5f7/SKc92ObtQ2vrpvjRGb9yBUgFmZagrrIjUjLYlg9ABzsA3rqdGDDN+yV0DoENiNTnMwtq++4MoURUNiPRDIWdqxDS2zeSieRndj+dJaNEO6F6KcQeRiAIKkLfGE/J5/SI9SKNcE3gA== 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=w+pvV3afiDUOQfTaEg2otEN0QHbIqqg1U69u2ZQiJxI=; b=b4uA7xvMPGnNmrLSG0O6m6mqBW3UeJAn+gHmeKYbyhQ0ACBZBHqRjsU5BcoEwZXX+3o3zxlDVnDY+U7Mt16Nq2DWHFZsErf9Ol3HrHYlkdJD4W59ZiDke1LLXDadOhWvZV5RHItDt8gOhlYQ6qgYaL/KpE+T01m8nWHC+XQ6UHw= 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 DBBPR04MB7675.eurprd04.prod.outlook.com (2603:10a6:10:207::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Wed, 12 Oct 2022 10:53:40 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a%9]) with mapi id 15.20.5709.021; Wed, 12 Oct 2022 10:53:40 +0000 From: Clark Wang To: 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 Cc: kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 2/3] dt-bindings: add mx93 description Date: Wed, 12 Oct 2022 18:51:28 +0800 Message-Id: <20221012105129.3706062-3-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221012105129.3706062-1-xiaoning.wang@nxp.com> References: <20221012105129.3706062-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SG2PR03CA0107.apcprd03.prod.outlook.com (2603:1096:4:7c::35) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|DBBPR04MB7675:EE_ X-MS-Office365-Filtering-Correlation-Id: 21ccee03-dc25-4ac8-1218-08daac4005b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v97y1sZgY6KL0tJK2IIb3P37HzlzQ4Dv6deSxftf2ebRhCP1ZtiZqrHNU61w8ifJmdah+Ts5UDXyp7rkUYLHkNSaMq93Ncjeqx4eOL64Ijj5YmhLZEQJsGo4TpwIqXQ1r0FTMsXzclLD73zEcClx0d61yBJt4lJfz8f4Rdj9iXdoJfjm23ZKpLNVsYJJWzOSQ4bQ+6b83XZsJJ3yFTamdpWfvsLZ5NpzoF4C5yG85VzC+K0HuI4MrnrgXI8MZdLw/fRwSMboj53SxgipHofs6irLed9e9YmC0BG42UQgKsTYnIRL6DSgY5j4puUw5NECRnBZhdyjRO3UEmdJQT/NsPws5DbBmffbR3q1BwVMPoBqVuea6xUIT6+Xx+477Bs0iFeONpSl+5Prqcyrimr6R4ixpEQBxiptO5tpd+K2jt8sMR3vxWZiYkQb0kiJbPU8iV4LZ/I/i+ohj2nEo46OsvK+qsZNEbK+3cEnnSO3eXMEzrUg48N2yOFhUcVmBm3qzEj4OdUCakYZOdQhRr8nkL5S226pLHWimjEVfuVYmuRD5TW8VAcyD9OI9Uj/Y5L+jM7AzVfutmZt7M0z3yfEPEIDIBu1514gXET/1I5rrpvs68KLqhc6o1+yLdBaJmU5DO9p3A8liyfPFxJhEmcm2srJXHrJDvz25RDZCFfFg6pGXbebS+mf2kkBdxaH8Bx72GQFbr55kB/c7/1Q5kVXD0q9wZ1v6LUZqdIOgbPzxEd8wcOl0uo1A8SYe9Yi4/o2Nvcn3MLNC3KxCI0RzdZo0c2B8uORyftqpUbu7LHiafPe39vMmlTE52inFTXC4QCHEIpk9+3C3BIKVB7kuv2qCDndmVdJrUXoq+WpaxwKjgU= 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)(396003)(346002)(39860400002)(376002)(366004)(136003)(451199015)(6666004)(921005)(478600001)(6506007)(36756003)(52116002)(6486002)(86362001)(38100700002)(38350700002)(966005)(2616005)(6512007)(186003)(1076003)(83380400001)(4326008)(2906002)(41300700001)(8676002)(316002)(26005)(5660300002)(66946007)(7416002)(66476007)(8936002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xCygPlhy5Z4mplzB5ReTmGtFz1rAIA3aoKhaSXDSuFysR8oHnGtPgR9t5TCP7DDJ91Q7Au59Y2SbyLHfUUyzlaUIhFB8GMrBQgNyd6BoB/rOu8JIJ8gLfXkWCPhOhKOrsETX+o+rFUq7kLEZ+TCOeeOKRFCJWolI4Dhixqn65DK4iXrJwh+KF0aItPAfJMirm1knJ4kN7IQCYDSAJ2OMjoyCqH6Ost3RuArvwRVRfhKfGN23RUJUJSI1bUT5yUrxJoLMMT8e0tR0+JJkODRTy4XjbgBpyi6beMNIzq/YqxYDbo6n/5oNYvE8V9X1kQ90FdcblSbq4jVK8XPZHe/vYsWJpRoUIX6RmwdJAI5eNTm8yLA2wefx/vio9JxDn/rISpbwrbLTlzXGVVv7Sr8/QYlZg9yrQkoBqBrG1eL6/2FfYTYGOgIvIZViowRF8ztLgo8JZZDTgDf5YRyNqfUayuGbqzDiLaBJ2eH/oOpp3e/AAN2fK4MBsYrWO16NXJ9LULjXEt412xGHqOLpvORm1v8DDGE7wWTXaBueIK8dVAhWZlh+TteyqnZFcTMOn8yCqiYd/0isTghKLGYCv1gSJFhYIAxMlu1pc7de+H9RBq8YATQb3R7WPEou/3xOJ5+r0leN3/x2zYKpjN8iHn8W5B06KpWNxh7t4v90LLbnc6GG8XC/0tOj6I5VbWLRQfzK2MOAa6Vl3oP+yfl+TcBSpfMiMeywVxdNoUypCf0KfEPXiAZDjlhA8PysmagbjMirH3tYbvCQY9hhBOr5yF5SPtdauWKw5jZU+BEnWGplJMEVfIY4DT9wOnYYuD1G9J/7IlsyMkZc+7e9sQBOSuWofsWhz3voy1+bNFVqgnS4Cjio9RzS7TRt14+VrDh63M2Lv85uN3ZOgSZtQnDPIbYQGgJFk4DO+0j7orRMk9TVQ70JBUwZOQ9soaMaRa7t4P46MFE69eZ83lXv+o4CGgtgXK3r2PimEcrFZ4lmx4AaARA4Anvc/rLYwRe15XqLNSxVqIKWYMIjQpVgMUBnHbXUL91jt0tOwi+cfpJ1muHHUHLL0PvB7j5QD7ClXLUaweC8wZEp7NSm7qsytO/GMJtLXtYQn3lqQbkUkrwB1K86EUhJTdLitujlhPfc/G6XvRxGpW2Yf45IzOSBTL5r7ERxtJAHzGudLG+godjdF6RaHGqqiTiId69OlBH5lhbh2GRs9+kmifIgvnuvj/Z/SEIhcMtVRai25VGIEUAiuD0BOn9GxAtbrN8Gu2fHJwDaX5BZa3Lqj+4ioacZbIXoEEapN7YwpBk+joSATOp8qbm/Z3L/8q0mm2c9bhI3W5VBSTBztPywV/rbxrw8aycVjiuspOjzDlmlVcTM/2ep10tPGJBWaJkyXFTgU9GbwlZhj/9V5nDwtfBB/d2foFtUYpr7u+XsqElL/K/wO5v1ZhzMcShqfUD3oEAsw0nyooFSVbScd1QBWF/Kyt036B0CGcOYQPEq8yYUBvbJ/RdGrNq6ZHxUHiZZzi5vEPa/cFGxA4leJ1WtJl2UztBEmrL3q5RpHAMcrkOXSM1oBN3rGHbhiaVlFTdgk/3S3PChClcKYxW1 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21ccee03-dc25-4ac8-1218-08daac4005b0 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2022 10:53:40.3561 (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: 3jkWbHFcimGxggvOWqrOXQ0Ax+q8mKcn83H7GzOercqCXzr+ehvvKvHsUoa7werbsEAW2dkqjJbmapHzcJx/Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7675 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add mx93 compatible string for eqos driver. Signed-off-by: Clark Wang Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml index 4c155441acbf..29b0d119405f 100644 --- a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml +++ b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: NXP i.MX8 DWMAC glue layer +title: NXP i.MX8/9 DWMAC glue layer maintainers: - Joakim Zhang @@ -17,6 +17,7 @@ select: enum: - nxp,imx8mp-dwmac-eqos - nxp,imx8dxl-dwmac-eqos + - nxp,imx93-dwmac-eqos required: - compatible @@ -30,6 +31,7 @@ properties: - enum: - nxp,imx8mp-dwmac-eqos - nxp,imx8dxl-dwmac-eqos + - nxp,imx93-dwmac-eqos - const: snps,dwmac-5.10a clocks: From patchwork Wed Oct 12 10:51:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 13004957 X-Patchwork-Delegate: kuba@kernel.org 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 D907FC43217 for ; Wed, 12 Oct 2022 10:54:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbiJLKyY (ORCPT ); Wed, 12 Oct 2022 06:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiJLKyB (ORCPT ); Wed, 12 Oct 2022 06:54:01 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9423BBEAF7; Wed, 12 Oct 2022 03:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sj9D+zjfPzBeq+iyHC97CkpQ+8pdG2SC7VPEfcE4Vhx2/Vy4ZwVFITFs3FYDVO3n0w2WH71bBPYwX2CbZyRpyeP8NCT4++rVJNz70Xp034641el7MYv3bvDlu7QqCbRcJTRSoF51t4n3/tFKRmjRo4FTDfZNiH008XhK7VnoIvyVkM0MNuCekNEciDCPdtPxVdOTMgSAP6EAR8HJkYGjzzddOUDDZiJ8SdkX4y67+Vz72DBdGieK9KaPlDjXQWZOqTcTikYAXFTpzJ3ZRqf+4evNYStkIDshueauzprmw3+BZWzww/pHveBPDhecHQZJ1KJ0dBGAypFup/yPNh29Xg== 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=pdvXlDjjS9kPlUPbPjrpPZ70LUH528KWu/+X/M3xPWc=; b=QOjK1LkL/ckNzJuCFDAnbDuVD+JabUg29l1E2dZDkl4DQDRDFegiDJBPAmRplT7OvylkjvtkqAHTiI3Bqvq79MDPWm1csKk+jYovgwT72zYVQuyjoDtZ0W1pFBQ1CwRHXTebuIvmjdFvJC27UmoyWr7G9EO0M2epkZoVOyEIQyaSrPkAzGnjHCSVDw3hmEpMcVDdgEwF00EIHOjyPvxBjkkRWae54zRXFJKHkvIOcL5k6bNKE1m8JuYFvmjiupo4Li/FbEESmjWtvD/s5ivc5adhZQ0vmMVQaksQ5EhlPK4ePhsQPdQcctq2OjleG5O8L5SmEtGU4aCMdOLmE3wcbA== 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=pdvXlDjjS9kPlUPbPjrpPZ70LUH528KWu/+X/M3xPWc=; b=kxdHVxNKv6okREKBBkPYzbME9r3SAk8AMWm4YlrOerEj0kjA24GF12fmKqRTj5Mpn3Log2yJOJOLGgMGL2qVfxhVjy4snUyJS6ppIQ+E1GQLa+xLMHQYEAkBpM+sycEUyybezdp921N9M1lwCTE/ClLWR+7JcvUlY3/pAM1XUZo= 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 DBBPR04MB7675.eurprd04.prod.outlook.com (2603:10a6:10:207::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Wed, 12 Oct 2022 10:53:46 +0000 Received: from HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a]) by HE1PR0402MB2939.eurprd04.prod.outlook.com ([fe80::d8b1:a777:e29:7a5a%9]) with mapi id 15.20.5709.021; Wed, 12 Oct 2022 10:53:46 +0000 From: Clark Wang To: 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 Cc: kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 3/3] arm64: dts: imx93: add fec and eqos support Date: Wed, 12 Oct 2022 18:51:29 +0800 Message-Id: <20221012105129.3706062-4-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221012105129.3706062-1-xiaoning.wang@nxp.com> References: <20221012105129.3706062-1-xiaoning.wang@nxp.com> X-ClientProxiedBy: SG2PR03CA0107.apcprd03.prod.outlook.com (2603:1096:4:7c::35) To HE1PR0402MB2939.eurprd04.prod.outlook.com (2603:10a6:3:db::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB2939:EE_|DBBPR04MB7675:EE_ X-MS-Office365-Filtering-Correlation-Id: ddc7a5e5-a2bc-4640-c16c-08daac40093e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iXMVSSrlk5bLWNJK5QOtFNJDp0JSEyKTDc/KW5C5820r+rvoejH0xnednSOrKfMwRvmR99CCXuX2mAZAnmiIncOSLI9Pqho3hRI0ayhNd4PvgxKkIUEaFGuBC8gzQHw6FwI7VOFrOh6HXQZ8BYQuMAPoGfpwcqonMGTmyQ8pwKDEwsI2Q6ABoTB21VdhrpHDGUd//YVzpqam4rrkhgwAArd2YZ5n3DmX6bJS6BKa4fO4hmcCQn4jh1426LVhgJvUjSsxrYuJ8GEiXm0ThHW34CCH2+n7P0knY3MA5lvYNNsaJUHbjYn1TYCS2ixlnicMsdw3Vx8YJvCL3bQ3xkwHUEtFTcnqrBTeNCkwqFs5Ayx7ip/yMzGXBdsstTw/djVabI9qKqAzjzDXf/QBNiSQQ2hviP+7jgoiiPu+jVww5T2N/plvg9ZGtTimKAultMKH9fuU9S2ffjYzrVsBgPbxqvq6c+3HIj37dbpRhGe7T7QLZtBk9id1qL1Zx63uL4mnPg5YemEBG6mkb96G39SRmJ9A7QWV0a1YE7LiQbXPnl80rojLRnOj2KQhNrgrSoN8iM055KqbgrC4OYZ/iqsm+FIlUYABEgcOSI3elG8yy1ykMpuViZKVhrtwHkBe30Y7WXqrKzzwII62t4QOUyP+XOgcnoE/5H6j63wsYfoAguVnpatbLkmPuqrDkK9eUGFVD3YATLhGQ6SwUyVYZLg9zG9CdbRMK+5yw61oq5wcf+NUtl9k6sptzYEuPDIFCRfJrmYneYesZHerL9Qqf5oUzsfEyYLWhaad6RwJ51XQ/Yi60MgqCHX1yITgc0rakJqF 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)(396003)(346002)(39860400002)(376002)(366004)(136003)(451199015)(6666004)(921005)(478600001)(6506007)(36756003)(52116002)(6486002)(86362001)(38100700002)(38350700002)(2616005)(6512007)(186003)(1076003)(83380400001)(4326008)(2906002)(41300700001)(8676002)(316002)(26005)(5660300002)(66946007)(7416002)(66476007)(8936002)(66556008)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iChq3T7ZsApYwm+0ztV3FFY9nUq64eMawMXO0xBXsSyO4pxM3b2zct9k5Rg6JGlDd923Sfp8D9bGT2uwhfnwU/8vI7cKRrfk0Dx3YzeQGLF4FxrIFGw/L1NTQc3aOZwdl0ZdnBR1SGy0tWbLz7ic2p1NrB4tkWr1z9qw3MVGPya2/FIejiz2woR4w166pB6y26cQmwHV6mnts0VaczO5ClLR6v6dVYNLG2a/wi/DB8+bTXDBdAfg/Ol0u8Xxdy8h2o8Whbu+3cJycTO5ygVMeZFYUnqj1f9FNypaYtEwj1FVU3XNxCpmE1h5sf4NJZKALzOZGCW0yHKTXMysrtGgyHLAHNd1zmVWM4bd9eA0DJXUVmUprv1UawZ6NzD2uKpMMdVDJYJJQLHx2ZhfMl5Fi+d202MS2RFWwG4IbU0IL73FdJDMScP4ZuNqNFR/eUtivTcnUdxsGNw7UbCaedvV/z+AR/onRIH93KRP5aNEgakNCcRIEAmuImUjXSAj9eR4PXGN0BwsiN4Fbqy9Sc+A48SPIPm4YQGH8zbP25yrvuHWjnFh6cUv7W5v88FTi9c0mYoxULCRtZRcoWRK0wdHCwbY+zLrY3wGnTKApYmk2H3k8kZjVWdaPBFn4aypWUwwPjAdxkguDtVaG7PxRZY9+EhqciQyHvIjsKREPzIkjc5jJFwNKSSLy6JyVBHHTrpTakDm+t7+f/ZpEAebdX8Jk49Wkjd4BlA/q+MlNy6p0S40Rfus3pTnGCnGWdBtwgTgFknEKAs+x/A9frJLbdtMLwWJyI57Pxi7sJijoDW6aWNO+O+vnqT10coknfBM/IX9kXkMYDNZG3MYNzjnsK7w9nEjlZlXZX4xU+te2gd6ZO8i0aygwUNB6+EHt94tSQRdySpti2qT4xilgeUODD1TmXmWLIwkuybCckT3v4IJu3b0jlS6NzyBiXxaCaNN4UKrilI0gIfrOm+F33Kur1GwfG1GNNv4JkiH3K9K3jessYG06OVahmrOYbWJ8esn++C1rCAiTUAbVwKFeyRfoLHw9Zh/coKpyWSww3vrMHShlybBm7vPkFuylR7dEnE+e2e7lgfSxlMQagr5oONgsnFltwbhNY3pUAIqBeZZWm/jVesGx03gl+4SeCLAk1rFCdhPyfZGeOJoHgN0iOU6CPXtMIti/WJdwdtNo0treyDUVHJ6T3EfXTUfuOS7GcQo4Fz8InnyJIjAgHCOsmfrcz9d+TzWEWtd3pgUmVB0RNUaYGntKP+0nqKSCtixPYokRZt03NTrTGuqEvU5UouSYkt/903Qm+B/0b2Qz19BDQM1QRg0NfKNrdM9JgCXFsrltP26u+g0Tvq7cwbLUhpj1u59SRhOGybhbOB1Yrnzg9flT+mda7v5C6zQvhmmjpHXmjXjZ+NntuDIIkLVKFvxiwuW0dH4X37j3MVX93o5QxVqN9fNLofgIuaJfK3JPMesD4WI+YoI4dWcfo0A7k0RThhhZAgE/dE2xb4N9yPwBJVjzl6/Ws+BJSXRuvM+jhAJwmSm01M5+RVVxzEMBD115YVE0UxOWejUIA9Vdb3C9D9OZmDTZSxp4iSfCv8+vU9Rc6Tq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddc7a5e5-a2bc-4640-c16c-08daac40093e X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB2939.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2022 10:53:46.2150 (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: Bzl/8GD2DmD79O0y/IAB5hOMdo45DBAu4eTeu7vcAdiZl0RFTRy5nc8DM5GLazBUlPru12Xm8DM+fwyG6lySCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7675 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Enable EQoS functions for imx93 platform. Signed-off-by: Clark Wang --- .../boot/dts/freescale/imx93-11x11-evk.dts | 40 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx93.dtsi | 22 ++++++++++ 2 files changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 69786c326db0..837f8b47ee4f 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -35,6 +35,27 @@ &mu2 { status = "okay"; }; +&eqos { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_eqos>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy1>; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <5000000>; + + ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + eee-broken-1000t; + }; + }; +}; + &lpuart1 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -65,6 +86,25 @@ &usdhc2 { }; &iomuxc { + pinctrl_eqos: eqosgrp { + fsl,pins = < + MX93_PAD_ENET1_MDC__ENET_QOS_MDC 0x57e + MX93_PAD_ENET1_MDIO__ENET_QOS_MDIO 0x57e + MX93_PAD_ENET1_RD0__ENET_QOS_RGMII_RD0 0x57e + MX93_PAD_ENET1_RD1__ENET_QOS_RGMII_RD1 0x57e + MX93_PAD_ENET1_RD2__ENET_QOS_RGMII_RD2 0x57e + MX93_PAD_ENET1_RD3__ENET_QOS_RGMII_RD3 0x57e + MX93_PAD_ENET1_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x5fe + MX93_PAD_ENET1_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x57e + MX93_PAD_ENET1_TD0__ENET_QOS_RGMII_TD0 0x57e + MX93_PAD_ENET1_TD1__ENET_QOS_RGMII_TD1 0x57e + MX93_PAD_ENET1_TD2__ENET_QOS_RGMII_TD2 0x57e + MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3 0x57e + MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x5fe + MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX93_PAD_UART1_RXD__LPUART1_RX 0x31e diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 3a5713bb4880..8cb7d7d88086 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -425,6 +425,28 @@ usdhc2: mmc@42860000 { status = "disabled"; }; + eqos: ethernet@428a0000 { + compatible = "nxp,imx93-dwmac-eqos", "snps,dwmac-5.10a"; + reg = <0x428a0000 0x10000>; + interrupts = , + ; + interrupt-names = "eth_wake_irq", "macirq"; + clocks = <&clk IMX93_CLK_ENET_QOS_GATE>, + <&clk IMX93_CLK_ENET_QOS_GATE>, + <&clk IMX93_CLK_ENET_TIMER2>, + <&clk IMX93_CLK_ENET>, + <&clk IMX93_CLK_ENET_QOS_GATE>; + clock-names = "stmmaceth", "pclk", "ptp_ref", "tx", "mem"; + assigned-clocks = <&clk IMX93_CLK_ENET_TIMER2>, + <&clk IMX93_CLK_ENET>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>, + <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>; + assigned-clock-rates = <100000000>, <250000000>; + intf_mode = <&wakeupmix_gpr 0x28>; + clk_csr = <0>; + status = "disabled"; + }; + usdhc3: mmc@428b0000 { compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc"; reg = <0x428b0000 0x10000>;