From patchwork Tue Apr 16 15:26:43 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: 13632049 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2047.outbound.protection.outlook.com [40.107.105.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D68CB133284 for ; Tue, 16 Apr 2024 15:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280764; cv=fail; b=Iicbe6GE8tEu08BplxVTTpKcYsik7xeNdLPak4h7JF2sm9LOCc9C3G+qpnewChZbscNOFCZAnXTqZGWk9DbOGdXcVUOJ7f03PgjMstqitoqxPi4H6KwQrosTQK9suDrLWdDyx6w9ovS1h+8BzGQxjq4XnJi9Gdbo61CBpemvMtU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280764; c=relaxed/simple; bh=rCXQfCCspkzGniKwFuLpmzstHntuvG3bS66sT5PAxiM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=sJt9jjf1UH+dj2/ayNkejTvqk5KA+3UAB+zXuYoxnUSnpjrKCvD6jxTbG2CdakEAwFadeUhBZLRdyFzqQ0qpkqZGTvqi+jXd4Ebbdn88AC9vWVknl4PRHjPP6X8cm34TbuUVG+FIUxFMx4FrPe7V0/ayPoLwFinecj0gHUlpqEo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=OH18DYND; arc=fail smtp.client-ip=40.107.105.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="OH18DYND" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bAndsr0KN5tSPv8A4ZFiVx5/Ov3hPIi55cG1ibAZ6c7vJdMRCVwBvWlnLN8XMLvJVCyaD9Yi6zzVRcBlw/GRKQ3KNHdUakNaickaFfRo/NHRnTWS9v9npSaXwHsrNqmL4bR8/tXeMoB45Zpcp750Y5CYgzGreeK+CwN+e9k3OH/sIYEjDUwWcZBMQ8dWQ8fkbr0V7Akdt28sRHjJyW4GHDPKSxMxpZXEwq0MP1tEYXID3w5vN8yK42OykijxNUOjTD0mAO4RSRwm0+bS+5r6JcpNpncolhrGb/uyd89GWNPSCT1giDWtxAj7LKISxoO384MCXP3PJL0Ax4g0yvMWzA== 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=hvghnYQSf8VDD4JracHMC5Og8FzORqeNnJ16JmLsQcDI2SnyzvkeQLwvqc3b9xvpReN1KGhWYMJ/HkzzD/FotaZ+j6mzIZs8eWqcD0Mq7joDc5eaIXIIQBNH+dU4tXy/LVVyV3egsrGwfeDtKXTAz1AJRQ7CRa5Bh03fCm0ObyHjcGWf80A0Vj40cZ5ed0EvMHBrkswIGoAN5yyVBO37E7tF0aHobxDP22oFfcpLHYh0jVwX9rvOEFZDyEisyM23umIl/xboBx+WZZ1uwkCKQ5XajLqztpIA/Qf6iB6wSodaqDKBjwAjJH5T8idJHXEv0OdNh1vuMsVUq6dFpzmq+Q== 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=OH18DYNDOZNEJEhcjt4qxIek/2wEP5TVWNZ/i1TVOCjTqyUXTNqmSHgcdd2JhyGNiFDdIVyrs5mbRISqubtbKzcx49C+D9b6gOep5hKxL/BULYxkLQOelgKTbKIYJLLmvj7B34ahWDeZaq35uD9xqUl3G3cKa7RWvnZ2X6ffhkY= 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 AS8PR04MB8183.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 15:19:20 +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; Tue, 16 Apr 2024 15:19:20 +0000 From: "Peng Fan (OSS)" Date: Tue, 16 Apr 2024 23:26:43 +0800 Subject: [PATCH 07/11] arm64: dts: imx93-11x11-evk: add sleep pinctrl for eqos and fec Message-Id: <20240416-imx93-dts-4-13-v1-7-da8ac02e8413@nxp.com> References: <20240416-imx93-dts-4-13-v1-0-da8ac02e8413@nxp.com> In-Reply-To: <20240416-imx93-dts-4-13-v1-0-da8ac02e8413@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=1713281224; l=2999; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=nfM6Wo+VmL/ZWUcSpFUHf0VCuNybDxhQy3VHzlu51Ro=; b=ZbCOHDZ8GTppE7zbFQV7RqnqBVJy3vWQeu9AUjQx0vLwwIltGxYinngLVsHfFTeEV5gLIhHyK lAs1139DkvyDP8u6IRTmKLq2aWUcZuEfyTdPjMbmHmqoN0Ed2+bLXhs X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0012.apcprd04.prod.outlook.com (2603:1096:4:197::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS8PR04MB8183:EE_ X-MS-Office365-Filtering-Correlation-Id: 6439247a-f915-431e-441e-08dc5e2896b5 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: 6kumEte0x6cIuK+bdL9Wc7j30+SvxiezblOfPT+Typ+Qlb1QuLehErVyvCUvRWQhhyxYqTWPv0JpQ+dBADgWqcHYhTNbmuOen++gHHh4YPbPSHqV/Z9rzkJW8xZo7+HX3XvGecRAGpxW43FhboCMn81X0t1ZhWzP1kAjhaRBmE0Nk6l/li2P1iIPukYHoX1zZvUrOmAiS5dgM0mD8VDgGBa5BpGjn1uhHtvng8EUU7ZCNPtvcoyE6x7GoQil7p2nUGLny48PlMEHGNO3DzhX5yFp6OqSj3+81yI/8VnE//2eCKFhv+bgZR5miW5hwUnjCtiKIQt2T2DVptKHUudfi8zW58yySy13sLhfh8T1p4zbV0yYT0dAgCVLqNQyr24k1nZgtxhAts+iPVPqJgsFd9yp+X4K2QoHDih75YLgQp+h0qyfdaeFHjiBw9h5XGsJBWi28xo8LG3mGpemGdl+/f2T0O/m/Qw/q1Zx2KMKnUPWYeyKWLU6TLSB+wGe7xiM8U/raUnnvFS59qFdQhy4ahLaLQYTfnW8EKoKM7RvBZ+pI9zIGFUEBLulc4TIW+E76Hc9jcTNJVCoMIErJge3ligG5IiSAbk7km84CMwzQ9UW7jfL2qr/oQCo8ZKpno4ZJ9ckAYtNQUei/GtcTeVdpsseX7v5RN8hvxmIir9jZgeXLK6RGdhYe/g38XIH5mkJDBOZiZYrmwCnVyrSVCNT3okCIeF9EXzbJA1gcjlfmKA= 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)(7416005)(1800799015)(52116005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SVBWhjYoOnC78OdcChE601L5d5C6?= =?utf-8?q?v37UIclyzAxTXk3HHS+/tE9WFw+0dliSeEOUaqJXFy3oIvJWgSZcav/CHHXAftUC5?= =?utf-8?q?SFGoY2jKH1NB1Up550gM6vAtzezCkc0A8doPfe2PNwnd+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qMXUXw54YknW+ct4uYTtCT+lNgR?= =?utf-8?q?T4Bs/tstQwaHlK5XLDNr9vaBHMJbUfolnaH7XqSRzOnjaIYtTTsm/b6TMjkpgZw9B?= =?utf-8?q?euJJ7ANtJtoLoQYCyhn2kmsDihxemCrec2WdlkvBJimcqIiiIhibsrK9It+aZZBbA?= =?utf-8?q?Y5dtc+ypuOKKGMMC9sXbkGz3x1+G2o9aEOeyXBIyHwXiNky4EvPAWZHZHPvHiVGJc?= =?utf-8?q?VNtsJXKiVl6Z0PTGPazyh4Jf5k51M2leTTU3miVB962uGWa/OxXCb5mOQXDxScY5N?= =?utf-8?q?fVnYwiyQ0thfSwqD1K0vvxCna0Ko4Ljzc9EfMMb3JCq41RrBMpfrdbocEQ4Yc8rpn?= =?utf-8?q?wJWx1F/UqnaAN7KMxo8U4BwNl/m/7mbFEzx6QxjuVGmJA61aDXu660bkSEg7Iuuhi?= =?utf-8?q?EDxZjBMwaAPh37qp6/E2scVDSX/OiOk2BLbTMA30wg03aTFt2c/BXuNW+AVi+kM0l?= =?utf-8?q?moRNHn4zjUAFfmO35PtzkuEKbDWqPvIH//lmyLv7gSEnEddB5Zt2oMJXhL9WB44Ow?= =?utf-8?q?bidQwBP5VEyX?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6439247a-f915-431e-441e-08dc5e2896b5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2024 15:19:20.1152 (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: oJJe2Yn/n+RFYtF+Ht25hhJ2951dHX1P2WzIpP5qgcOa9s0u1O44RiYRa4q6Z2Jo2S24GhI434jwcvfGsyuUdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8183 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