From patchwork Fri Apr 19 03:37:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13635606 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 D1E66C04FF8 for ; Fri, 19 Apr 2024 03:30:38 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8s5YWWOWpAMai23lW3ZDPAqVKN3gD7sz13yLw4/IkWQ=; b=YNsTp+NB1y4zqoyJyCwjB6Aa0l q3Ji7vJhKURfDsk1iUfx/dNxQUs4QewGTn4CDJikAXdMLZzh1dL6j73nnQvsb7pmjoGHGorN+SrzS Cizn60p2xHT2Yr8L/7hbugnzBqpWNjxhNNy8aJUgQIsTNyurSDlwoohf4WnF4YaLt7lV59Ay/evQM /ffdjMooyWmQgdE6ZW0Xq2yIETxJoR4p6A5otM2cM6FdWANqTwebSvJt0FgBrEWeBpzley4euLgFb eBAXPSqBJ9vHyRpJLxcPSdJxZEyEW7+oj/pqKzjWeyPQaBNJJHfD3wUERk+M6yXY4ufUHH2MliJj4 41EaklmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxexG-00000004EMT-0Tvj; Fri, 19 Apr 2024 03:30:26 +0000 Received: from mail-db3eur04on060e.outbound.protection.outlook.com ([2a01:111:f400:fe0c::60e] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxewe-00000004DlW-1Og0 for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 03:29:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ja2PYHrK0hnGOXIY6af3OI8Xah3txPOSHKMWNrz4LPb4P++hgu8MtewmQL2b13DqP/kytaDDwwLh5vDVqI64AnQ1RmZF40Ti14czFznzjH3MOdMNtwwn8Hb1hHyQ0IGL5rNaqQ+R1t+E375BW++WCmyzObTCFkJDYo1vjOGurG10eY3KPvxUtIznADTSS5dPVzjIjwdtAL2CmxMIDMjXjJ1qcrIU+OTQb37J1z6fXkyWV2ti6smGnA7YaYDNpfvFuqnLhYGwdGA/YA5Ae3Ac5NDwCj788GY26mHX+MIcT4S+67UuVnstdhwh/qH5uIY+tiuwGEylISqYNIgJ3mIadw== 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=h7Z1E91NTteX96MebwxrBMYq7DIWOfOT9dKPSgrWvQw=; b=HoVTvlak0zj7zLvDpES5tTB5EeZ78talZ+07dBsswmTOCxwLlMgW3kaYVnCm+jZ3jCpcK/atU5mdmSfQ8jSjU2uljmvuxg1BbGKfjyfJbjV/iPZqiyY6NyWu1SC21SlW6GgQas/ZuRXFnaxQHe0Jz7msd77cjsMdL7Qi7y3aNsomiKiTy+GqfUgBOft3/DQuvwbBkZWuziIPoXcc5tC5kWLR1T8uhmJZfpjT9+cduU5Q3w/U/mHRBagoUsXDvpPAPIwYnrkyMKgqTwyAg5okWI2VIiKh0TffCf91zqfWr+nYIyJ0twra+lbZfrPdIuejmlbZBQCqYTQKOLLyziqNvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h7Z1E91NTteX96MebwxrBMYq7DIWOfOT9dKPSgrWvQw=; b=PEpmnfpMbA7YmM6RySzD//+RN88n8K2ikBihzq8J+BXDB5htgD5q2YV1jNR4NGE0KCrXu5yKUvXNaUgcbHgw2nG4HdWMcarSZztJ3UW5fMpVoryA0O6Z/xuRWSq85p1xU8/vaf0IDd452fTi+AXv/W9iAo13/A8Vfq2KwZRO3uk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS8PR04MB8802.eurprd04.prod.outlook.com (2603:10a6:20b:42d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 03:29:42 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7452.049; Fri, 19 Apr 2024 03:29:42 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Apr 2024 11:37:03 +0800 Subject: [PATCH v2 08/12] arm64: dts: imx93-11x11-evk: add sleep pinctrl for eqos and fec Message-Id: <20240419-imx93-dts-4-13-v2-8-9076e1d7d399@nxp.com> References: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@nxp.com> In-Reply-To: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713497841; l=2999; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=nfM6Wo+VmL/ZWUcSpFUHf0VCuNybDxhQy3VHzlu51Ro=; b=69zHQHnyBiNGfTmNdO5DvJ5B/vcZW1QwtzpEGBQjR5jPpMMnUSV4+0+I/DYUjMYskxm5b+ycb 2y2TOiq41lRAvBdOPOHHuZQ6MtkZX3ACEC1FJuE3KAfkGHt28I5z6WM X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0025.apcprd02.prod.outlook.com (2603:1096:4:195::21) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS8PR04MB8802:EE_ X-MS-Office365-Filtering-Correlation-Id: a937934d-59ac-484d-cf2d-08dc6020f37a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CqQHaG0u3cD/FFYqjH/nVuF88lZmbvzeLduA1e7I0jE0opeenkYuRWIqy3jI5YtWXTqNoebHUz3eFHvnQUpxwVV8OLO1acRDi8uMZnqF00q+4zbUQIv1NuAmEDZIwM/PyRpJnVc9sAL/dSb+nTFp7k93x6+KNuDF8YN9MUC34kohIA8RgKO1ktA2u5T76F4mjrOjEPjKhpcEwT24Kz2s0pRfezA9YcC6oFd0wFuRSk8eropcAlz3XvYVLq+feJOXHL4b5EvJ6JHp5YYJ59NZUUcVga1ebdJswL9hBDQdF12WKH9bb+AwIJqGROJQjXeJ0cs0XH5ogBKc9/J70n7gFFfalj2yyB+THauuKO1rclQhpM9mkcvcTIWI62tA4O13YgHg9k4b8K7h6NyLLSePW8A4cC1hd+YI4HZ+8F+YAVWkHwCA6RJCdEjuSxSeB7heFm1m70cbeK+D1MwSxtH2nmGjFGxRKBrTtvv/gVIqe1dbMvL/FjghfWw124GyjZ41CuFTG2agKOfq0WEhimM0xlsuoTxfwDbRSWls1+Iobio7NAeFYRmI6Gb5v3aZFvELz0Xr9n+SVzP2SCOyl67Kj29f5s6HW1wjNfI3KGI+5ycb9eFAc8Pl45nOsJBsshhW1D3+jSDGKjy4A3sorbuOlSMNv4qR57IQnUeAgKobcXtLu1MlL61dlKNhtd8Dief3FE/r+jhTnQD8jveaCqU6nEJuG84pcZdcyTXMTmnqHg0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005)(7416005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4NFzVQ5bRSbAh6LUtkx1EKPFUZPS?= =?utf-8?q?EongdPz5eRfekSYTA0Vu0/5QE7/2Wdj0ZGodyD8dwiZ7wAqBRM19h7dpF8DqTjVhr?= =?utf-8?q?uc+AxzKZjErsM4qsr81uIoOE4p8GbcB6vGsogZeiqw/WrLswAoJYZiLvifF7lbxy1?= =?utf-8?q?TEZDXwJZ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3yioqYXThBrUqZIJO+6UTRc0bI+cUHvM0+L9?= =?utf-8?q?i63Eikb71BjX4hP/erXHDfHGHhEpe+stZrB7SWY1Dk7qqGaR7xHj//hpLEjq4YEp4?= =?utf-8?q?APXEa+Rp1o2mEt2MUlVaqgQTi7DMPjmJ+rNaWLvEllEcLejNrAZLvrlaQDd4KctO5?= =?utf-8?q?4TbpgSedVzBACpbh3Yy8ekzlq13+uYeu+D0LhYM3Xps10haYe+6QOLPfspK1fP8bN?= =?utf-8?q?Fq8fxLUhiaS+AAU5Ra6NcWS+TdQ0XLN1yGJDfj1JydQirTnbN9CZ3b2c5Fe0wmwJx?= =?utf-8?q?EoLdEvULHQ9mbh6f4CH9+3tGCmUNziGfVjM7kxNNye19T14T1Df29ibR82wbKWymG?= =?utf-8?q?DkXYpiEHK8kTgam63z/x1Qa2Cs66908XA1C+teGX4scivgBWOx8KhDAAMVfF0Ib8s?= =?utf-8?q?KzgEP+vOyoXTcib08HVVgM9ZDqLBjb/nhm7ai/7qPsdwwrf/evZG0GsvzxrXkUx0s?= =?utf-8?q?G94mxwg8vtlo?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a937934d-59ac-484d-cf2d-08dc6020f37a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 03:29:42.0959 (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: o4W2wmHD7Nonx8xPql0MSfIt+36pk1l8QFpWcvsRiDBunbP9iQ2bs9LLddd0BQkfDE57Ogv/2eDHJ+3ByhA3QQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8802 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240418_202948_540914_4A696EF6 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. 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 From: Peng Fan Add sleep pinctrl settings for EQoS and FEC to save power when suspend. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 44 +++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index b7b52576586f..2b67724db685 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -105,8 +105,9 @@ &mu2 { }; &eqos { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_eqos>; + pinctrl-1 = <&pinctrl_eqos_sleep>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; status = "okay"; @@ -125,8 +126,9 @@ ethphy1: ethernet-phy@1 { }; &fec { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_fec>; + pinctrl-1 = <&pinctrl_fec_sleep>; phy-mode = "rgmii-id"; phy-handle = <ðphy2>; fsl,magic-packet; @@ -301,6 +303,25 @@ MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e >; }; + pinctrl_eqos_sleep: eqossleepgrp { + fsl,pins = < + MX93_PAD_ENET1_MDC__GPIO4_IO00 0x31e + MX93_PAD_ENET1_MDIO__GPIO4_IO01 0x31e + MX93_PAD_ENET1_RD0__GPIO4_IO10 0x31e + MX93_PAD_ENET1_RD1__GPIO4_IO11 0x31e + MX93_PAD_ENET1_RD2__GPIO4_IO12 0x31e + MX93_PAD_ENET1_RD3__GPIO4_IO13 0x31e + MX93_PAD_ENET1_RXC__GPIO4_IO09 0x31e + MX93_PAD_ENET1_RX_CTL__GPIO4_IO08 0x31e + MX93_PAD_ENET1_TD0__GPIO4_IO05 0x31e + MX93_PAD_ENET1_TD1__GPIO4_IO04 0x31e + MX93_PAD_ENET1_TD2__GPIO4_IO03 0x31e + MX93_PAD_ENET1_TD3__GPIO4_IO02 0x31e + MX93_PAD_ENET1_TXC__GPIO4_IO07 0x31e + MX93_PAD_ENET1_TX_CTL__GPIO4_IO06 0x31e + >; + }; + pinctrl_fec: fecgrp { fsl,pins = < MX93_PAD_ENET2_MDC__ENET1_MDC 0x57e @@ -320,6 +341,25 @@ MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e >; }; + pinctrl_fec_sleep: fecsleepgrp { + fsl,pins = < + MX93_PAD_ENET2_MDC__GPIO4_IO14 0x51e + MX93_PAD_ENET2_MDIO__GPIO4_IO15 0x51e + MX93_PAD_ENET2_RD0__GPIO4_IO24 0x51e + MX93_PAD_ENET2_RD1__GPIO4_IO25 0x51e + MX93_PAD_ENET2_RD2__GPIO4_IO26 0x51e + MX93_PAD_ENET2_RD3__GPIO4_IO27 0x51e + MX93_PAD_ENET2_RXC__GPIO4_IO23 0x51e + MX93_PAD_ENET2_RX_CTL__GPIO4_IO22 0x51e + MX93_PAD_ENET2_TD0__GPIO4_IO19 0x51e + MX93_PAD_ENET2_TD1__GPIO4_IO18 0x51e + MX93_PAD_ENET2_TD2__GPIO4_IO17 0x51e + MX93_PAD_ENET2_TD3__GPIO4_IO16 0x51e + MX93_PAD_ENET2_TXC__GPIO4_IO21 0x51e + MX93_PAD_ENET2_TX_CTL__GPIO4_IO20 0x51e + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX93_PAD_UART1_RXD__LPUART1_RX 0x31e