From patchwork Tue Apr 16 15:26:45 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: 13632051 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2081.outbound.protection.outlook.com [40.107.6.81]) (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 C3D5E130A64 for ; Tue, 16 Apr 2024 15:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280771; cv=fail; b=cV+LipRnEYkjyoJrsOsZiAp0YwwBCAFMrx72KB54qrlLEWFaPay7IWundoa0nEQak1fBYGRY/kKb6BoaUlg04m/G5TEsaxUY6btzuiv23DU2L/hWAITya3qYyKSwFl6KQG4oGiEJJmAcsXEYbsIA21prSfnx/kEfsIZHP1K+xtc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280771; c=relaxed/simple; bh=a8Yin9UNvJZ1H69GAJ2Gs9KZmurfHKDKhqvvf0HW9hw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fbxxY3/HxlIcPDu7lWOBltMA5hLpssAdGVQdYpd9LS+A3aS0tEJSlCMsh5++DuXbBcqJyv/ltn4EC5lT1bHxqfOIzCT/IUjJVo9trB74EuMV5H5U7BStsOBVZ6QWpC/07Ky6SFdUkzNrplBP06RVh1dqa1tGjSbHO7/55aEVUbI= 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=ktEZYhpY; arc=fail smtp.client-ip=40.107.6.81 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="ktEZYhpY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RIbMOm0ta2l2IiBdi/4GdtydQxE2MY3FoqINXyj+BL17iZ50uiXKf7mrHMqLmVdTZ4RiDEsv/ls61yTDo2wD6sLUipFZ3qxONaYZC48DGeRTe13wivJYCGXWlSLSd1vW56dl1PvRCd7qfEsna6Jdt/+Hh4UsudL0dxHLcdwrb1yEGz4zhRplz/0J8lRZKNc4jFPoxn546Jmv8KZwNFVLq90weNlq5jdcubBt4xYdXX51SrsnUZd1OJdK4k2FItyONEqCQWHJznuGy/x5f+iqU2jCrAC+5dJZLArxNQ2XVxsHaqht1zByIBXrhPK5GcC7Za1E5cf5HhN4lNy+6OAtfA== 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=A3NVyXgePVeYYgwWIWlhBWJiZIvg/AVy+K9WBcxlvX0=; b=U+1wZHLvmlTf3ttdL09hgmBV53T0GCFwHJo3Ko5JnUzfDweER4U8A3V6vlXi26R0ICajQovfBI2kAncCXWuHP7Wd2mcmqz4BbqKhRQAppfwtbj5hsdB7+qxtBbUYvjfXDepmKQEscJigdTsygcQbYo5r9MnO+X4JPZ4qy0fPw/C6Aj8a1oonTbzdZl5Q5qzNbc3w1eRWRvz2hG6Pvo1rnVegG1xH9gped+JNHTCmSRwPlI8Y6Bj7LcKUJOqJ+k2tKl7LK8Q+OB2rIQNUMYcW3pqQh3y12zOrjuNN9h5iamFNe4upmKWfqdltCrPdC5tSHISpQl29b3tNbLz96gxoOw== 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=A3NVyXgePVeYYgwWIWlhBWJiZIvg/AVy+K9WBcxlvX0=; b=ktEZYhpYnhZzG/jCQMXnmT4KVzOVUWFD8IRuhWDss9Aqaub62qM1zkeKmctnYrxA0XFB2v97cmKJmOTJngYzRzCliYURQKtklHKMcnLZB+DHVwIYZYOSKIX+a0B+eZ/L3ODS+j1CULiyn2wD7yzShr3fjNv79h0vzXVVfpt0cd4= 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 DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::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:28 +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:28 +0000 From: "Peng Fan (OSS)" Date: Tue, 16 Apr 2024 23:26:45 +0800 Subject: [PATCH 09/11] arm64: dts: imx93-11x11-evk: add sleep pinctrl for sdhc2 Message-Id: <20240416-imx93-dts-4-13-v1-9-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=1902; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=IkgkzajW3i1/2uBfzzBinYnK7req5nUwjI0YrZQay6g=; b=cgtKK1BL+Gm9DeOmk6BC7Lj5yOQSoXesqsP6htoWUo9i511SpIefxQoSheojBZ1QN4E+K+qSp KTUk1Fc7AToCwv5bdaxjDmYDrwJY7Tro3UZB8s/FB969Hg1c7kl3LNA 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_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: 163d6662-54ca-4fd9-b7d8-08dc5e289ba1 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: xSfjeHmbtm00ASkSQRutJPQh6tH9UUzE9AycjpXHTKMcAnupqe31GX1lAN9Pt6nzlexwyPBIu1grmzJWk7cqGGTuinHr2ViuEV9in+FObc/TYyqw3niGyvp/fWYjG/GUg6bWbtSykqqYB4fghdawSDoSMsDjG/ereVWaN+2cDkkOx+pcc9F99IODkJJA1l+h1+j/kv3RoBvumur4DI1caskj//tXjBul8hZJmKq4EwluaiUsxsFRhkDVqL+GpEmQkgAwMIKp4jfaKPKKig2bcuRfXlrdNxowoiIjH7wAkAtY+u6MvnKPP8a9DlSu5p68gH2gbzsmUzmWwnZP3wivor0rQcbZY2Euv8sUMOR/nC7Emk0NIqloBfj+HNA+Q7ceH0GRsCtZQjA+d9KicDHZ+1kHpXCLv1VeGQHrDV3G9WEKepFVv0K0xEw1oWhhtDRR13YIPEzOlgURYW98POExaHNwzWs59OtDOSvSeS3IZdIqu3K9+W9dXG8NnPKR39PkBO50r1cKMlJGuOSSBpdCJtJ6p1Yx1BVeF5iTdPkE68EqI2g4Vxv5ny5bHwnYsxsn4E4Jraw87r+bCA0T/F1FiYD6RuN51F2kRAvR7xcfMhwupIiMhEuKpPb6GX9NVCT68UUzDfs8OfAchAbYobrn97mCnzWMOZnWy5oSOdzrLZ7nHRFLfpdd+PqhGG9SgLlQZfz2gPWqSpQmAIwRl8wAkw== 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)(376005)(7416005)(366007)(1800799015)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mgukWa7U1hfu1+bbbY07ttcqgivm?= =?utf-8?q?1MShvhxWuSbpmWOO31E8ftP4vNDpdWYsHTNiHyVdmNjhemhzUjyUMLslKOTRiv3hy?= =?utf-8?q?sSh8GUQbZyY1EaIwnpFj1Ptkf2fmbQTRyHmael2x51hjx4VEsxHf/1PTp6E/t4H20?= =?utf-8?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utf-8?q?p72mYdvIsjYtUM3RPL/Vk0OaKERVFrm7C3PcnkRoK0hE84EM1eUBtfAdMTEKaRpAR?= =?utf-8?q?g0W+N046PCHBz9ZwrS4HzeYTcgvZXvjXXWhgt4dZ98z0pcK2eb6qzgECS8llVH8WZ?= =?utf-8?q?qF8plpYXIyTdqdzV8OtiUG4DCE2Tx0aSrzfKi2FoqY5udceBBuSsX7OT94AfoSNY3?= =?utf-8?q?5pvWDQUgNUoCatcFScH9KsoBS9XsAcx/hN6z1Y5Ju+G05RkSZncVasAEO+fLNdkxx?= =?utf-8?q?yWz+YmX0cXD2PMYI12p6Gw9G/S4WSHll+IqRHwC4Oj6FwF/zsU+caS7y6bvOekKk5?= =?utf-8?q?n8tS1qehBCftvo+y1Dl58aUVawGMsLnDoqTd+tAEVd9TZTPB6/fcWGUp9lkCefeYD?= =?utf-8?q?Xt7a2lAwgi5xZfV8iR5ziBfh5kjD9FUVxq2l3vdRANQVVjgb+ZN6HSb0GGpqiqWci?= =?utf-8?q?gM339B6xWoNxjGCSGqbWD4iuqHz4xPV13yT9RCcLnQXAV9506C6tYRRSJxG7po6SO?= =?utf-8?q?WILy4xkhPHYF?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 163d6662-54ca-4fd9-b7d8-08dc5e289ba1 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:28.3506 (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: puoABZztjnVvePg81/TbY2Bauy4rV5GLf73Vey5tqUUyps5ARF87EjCLm78I02oWT2tkrrYwgNZ8Kd4FUuzSxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 From: Peng Fan Add sleep pinctrl for SDHC2 for suspend usage. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index f848cb0922ef..b29d470d2492 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -169,10 +169,11 @@ &usdhc1 { }; &usdhc2 { - pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-3 = <&pinctrl_usdhc2_sleep>, <&pinctrl_usdhc2_gpio_sleep>; cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>; vmmc-supply = <®_usdhc2_vmmc>; bus-width = <4>; @@ -452,6 +453,12 @@ MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e >; }; + pinctrl_usdhc2_gpio_sleep: usdhc2gpiosleepgrp { + fsl,pins = < + MX93_PAD_SD2_CD_B__GPIO3_IO00 0x51e + >; + }; + /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc2: usdhc2grp { fsl,pins = < @@ -490,4 +497,17 @@ MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x400013fe MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e >; }; + + pinctrl_usdhc2_sleep: usdhc2sleepgrp { + fsl,pins = < + MX93_PAD_SD2_CLK__GPIO3_IO01 0x51e + MX93_PAD_SD2_CMD__GPIO3_IO02 0x51e + MX93_PAD_SD2_DATA0__GPIO3_IO03 0x51e + MX93_PAD_SD2_DATA1__GPIO3_IO04 0x51e + MX93_PAD_SD2_DATA2__GPIO3_IO05 0x51e + MX93_PAD_SD2_DATA3__GPIO3_IO06 0x51e + MX93_PAD_SD2_VSELECT__GPIO3_IO19 0x51e + >; + }; + };