From patchwork Fri Jan 13 03:33:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 13099702 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 D09A7C54EBD for ; Fri, 13 Jan 2023 03:37:43 +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:References:In-Reply-To: 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: List-Owner; bh=swkuBarL07zX2bWBh0a0WvFZd0f5s2Ixzpx++z931l0=; b=vHomB3aaC1QofA EkxiJqS+mN24zfPSXBFbEVqPOkNjfgZmamVIXelQqVvHb51cCWwut4NqADGHDAHUbGnmbWCJIm14B TofT2jRt5vxKS95o1kIUA2MAKBUuS7u8CXRpjTJQweYYVqPpGaapdQI7fUThJsMuTxxNCs9EQDsnh vXWKFnW/RHDBaJWHiesoFKx+hRJqiyywZbHTd8olQEfHojpjXhZNN1Ek3MSRswH9vIo+1BQCPK5kP lvWnRuPOfDwdPnL9oJdK9n9mILCt12MrI16z4+ZQchDZ2/JCMrPdXXLEZ6DnAfKxQYvD/+ba+T4jK liyOygM94wyOFYplIsrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGArm-000H8p-EY; Fri, 13 Jan 2023 03:36:31 +0000 Received: from mail-db8eur05on2075.outbound.protection.outlook.com ([40.107.20.75] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGAqa-000GeA-Ra for linux-arm-kernel@lists.infradead.org; Fri, 13 Jan 2023 03:35:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SJST/MWouw9Sy30Tk+K1GSvSakEUsjc2/LS7QRsXQP7RKD0HFTZ6Cj/3JtTTq68z5FEcnPmjmJJ0HVtZLiS1Lm6Bu/COPDOIdfiaO1ylqdIUo4BbkpTiOFY3VWawzl+GI3BFD86IKc+Cq8lBiyjrw3WqkU5haFB93l3+HYiUhqV7aOW6ggVSo0pePCpQwSPZ7Kko3wFxdk9wttjKYecrYCiV8dtTFtubdFdLGXysulxVLbsWWF57suH+IAzgVFvJSroZdsKqnEJLQ5YeogJo/cR+UrqEMxG1mFDuWeaOOrcGS0vv5kGTjk7ECACXmKwh6mtvMx33D+fC78PUbtlTPg== 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=B5iHK2LoDlEv2s3dTLu8Qv2qejvPYPDwPyDoG5Vpqmc=; b=KNYgDjRGwot43NPZhR2df/ojSfkxPdE2JTsSXI/1n4HvRPzMjJjBvkFzv6le/rJrM9DVgKApsnwN02Ve5xBrVDKYYEyPjlkx3g+RkFdwhxnY5WiY1e0yCuwRw5v8Rs6Pm7D+WOID1SC5Fs929t8qbHb8JECWMPmIjqkOje3K9lZKybFgB4DdP3KaZ0Cc+L9Czvh0+xPLkbPNlnB4QmjOacwe6WuuRFqMj2kkbTPfUGoXb84gLV2y2bfdW2ivEy0v361OykpY21H5yY743l1LT3xPc+nHuFKn0t8WrF7rKwP1ujeDCJD0arACBThU3mQ+rQKQ9DoZvUuiuUiinIE12A== 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=B5iHK2LoDlEv2s3dTLu8Qv2qejvPYPDwPyDoG5Vpqmc=; b=GyJ33vk7iZJmwJRP5rmvJB1TmQLTpo+oR6emQeGuerY8JMbn8xLFJClU1Gtijg3NR8RFqLpwfyGuqQvwZ4CWGCJFJjcPWg8YaiOxDfkEb6pJ9ZU/l6RhYMm5tk3gLQpgxfBRkM9TNx+on5qLfo5L/74OgNug8cMK4PdqV0gHvzM= 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:13 +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:13 +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 6/7] arm64: dts: imx93-11x11-evk: enable eqos Date: Fri, 13 Jan 2023 11:33:46 +0800 Message-Id: <20230113033347.264135-7-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: 53ffbb11-e8a8-4e83-f1fa-08daf5172df5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 54JkgwSr5r0o2iyDuWQ/uogoVuN2ZzCMXhJwX2Gw2kuclAzH5piJt+WSDDaO+G/ErSUsuHYWWh/oQV1eUsrqTiifKNBuWWEM3PldHJwUUyKuss+BBTdVo9jTSDGPW2bv2BKzenp8U+gPu02ASoshMZI5mX7ZdcCIU+wQcSTXeKJCafoBFG21slUmkHe4/WyhE/fVTMG/oQ6/tAUbZDvVyv78uhUE5vMFiH5PDUCr3Zm4Cp5MkSWBna3AnLTH0CbZGUIYOB+Zngr+psI++tl+ircg2bG8Zuji9DCai+fFLUSL5PtkHQCgl2UiXOKsCw2sJv7T/ugW5OSwVn1h4qSuCPUPwvgHjzr+jLp1sPQYsS12IYbuPbkjQyjJeqm0dd2B4rWzSV6RPiKJDMe5tv7PEIeMF0czlJMAcNdUzjcX5pyhWFO72c57QHVSokaURaZ8U+zjENQsXPiVOX+Pm3VXqoLN72Ytmb75dNm7+YLtcY2B1pZ1GXn9+qoRMud5dpj7ImrjBi2b8beqNaV4ixB2MRE1Sug0GcpJg5J+043VUq2Gsqwq4q7EjrS+H2G8BPQl5R8Ofz9t1lzoN82p3L1YjUTWC7YKLleN+kyazXUe8DnJztGp73AioUjnMYXCQzl/AdcyFm5fwTyi2zRNkJ+vSknJJco8My2UROGAOwYoszrSHvRNWcxzjRihSnn21IvzKNHkeMVIq7fVO9cwUEtRvp+bKM9+ZMe99aI3BICcaohtRvuCnQGgtdslwLtXMMDf 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: EcnGkfDnBL1FIL6TKFH5Jvaq5DIb0F1AAJx2TXvcA00qALuirnEJIANy8fnoMhmsihGL/PUat5bcGC5eciVjiGogtkYVXUcqSBbQVagLU5KpbKV6u46u6iD0Rkdb92UesMzpn9gVqVj4+3lMYgX9995b1+hqYHvLza3gmVx4SvgeUIauE4DESvQGadLHN05LSvzuETOYUaT7dwnGytNPWnHNn8BLxbi5WQijKOr+CEx7e/PjSlDtZ6mR0nx2CsQhUTr0xBbk2Jp+D74DpNhpy0XlGIKlOPX5Kfd22CXdnuI9z4oIzbaSbNOvjVYETVZ9XuThrO6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5XVjwSf362iXWFV5WcW5dKHAtq3hvcxoHoRmqhpJ2qBgNJ33vEOQquzUTqDCXw0JMXcEEPZ+CF5VUvHG0x9YJu2Wqal+FyJkjkP099FDZPu8TyccsaYxFO1nV+qL/2MKc4CQxNznNKArNIoqlBG2PRH6nGitEpqx1ZmGHUpdMkYK6N/hyS3X8yCvEGFHLbIkY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53ffbb11-e8a8-4e83-f1fa-08daf5172df5 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:13.4242 (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: Gk4d/ZyVMdhCtpJjerWj+XcnOq7uPgOO5yIP6/vPVt9DGfONb/2Q80YQ7AfA1SdqlEQBBo/30XXo1CQ1FIsQdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8247 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_193516_947012_A0069332 X-CRM114-Status: GOOD ( 10.15 ) 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 Enable EQoS function for imx93-11x11-evk board. Signed-off-by: Clark Wang Reviewed-by: Peng Fan --- New patch added in V2, split dtsi and dts changes into separate patches --- .../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 27f9a9f33134..6f7f1974cbb7 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -35,6 +35,26 @@ &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 { + reg = <1>; + eee-broken-1000t; + }; + }; +}; + &lpuart1 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -65,6 +85,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