From patchwork Fri Apr 19 03:37:04 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: 13635594 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2065.outbound.protection.outlook.com [40.107.6.65]) (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 7DFF026289 for ; Fri, 19 Apr 2024 03:29:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497391; cv=fail; b=S3EDdS0lzTEooRqJbBFbPUGzMD9AODYg2qJbPF1UagoeTfP7jSdNy0WaaxDNfIDxVDd0Vv9F2wxKaYs6biMl2ui5YJ3SGR/wV85Vy4bjIzYx7424tlS/7Fx9fs5cvy6TRYlUQB3y3ECm9UmmsqWDWfbYgpUAbQBzjIZGlubRN80= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497391; c=relaxed/simple; bh=G5KiBP2fYGV57i4N6Iy2S/SHJ5StjpqTeJPC2rBgcTQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=JrHA0ePA8tOx73P+9HP8WqhxtxlAM3GqQgjmuOdrHlJI0ad38aHiQBCzr9EUVZeq4mGoeGl126PWFLU7LWpoCefz6zGldirxcbVKvmueUXGySD9EwunHnKrn/8UsEXMsL29DmAqj8g+9jnzNQekcZYPqVPlqbC/vDK0JoZDszNA= 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=mgV9vpWq; arc=fail smtp.client-ip=40.107.6.65 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="mgV9vpWq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQdgwxiqaHs6XJvOdZtKR96ksj7QHY4xp/Xl8NqSb5WIaAZJ4kQg76gxmyaO9tZbnOryPmzRa2m4WKCxDy5VQe/LsSI4ROKsp38iSTUsO7uQ8EDQpUXl4hdxlzru/aGBsVxtqHrweqOn/UDUHtAPgG+lrnzvOQgMcCw7HNePe+UQyMioj8gV9Q7y0Bw2VveBKiH2VCl4e6DyBTht6fEZGpkh38YZPaWW1q7mlrZnfVu7XDGhgrTnslriUwq+d9Zi9K6NdtW4nONZw+XzUdLYInMS7Bwymvqxw0j9FGMTEoDgDiw6RYkNe2R8Z8FgFg5LXnhNx7EKnMKRntuuW96paA== 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=Utj7ItaEHtvIsv0ZHYVfFXFu+fj+P2M3yxfR5i0ip94=; b=T66EnH1Rv877j4+s/dqAHBD+/IcKphtVj2sFOoecWmiRrajP4V0HiJhazjCgJfQ0I3AtOqFT7VB2Lf3D8m7DPbg29yCtnxXM2jX6LdWxO1jCrjUl2bHnsuZ8czamv6bzhIG8b7EEJyucu7uisDEje4Bo+sQiwbL6bAhMot0sJeJ9c1qdM2QhvzLiBsPWBJb1kyf4KVwNWJnZiI196I0WJ7X/knr7oiSdYeYiWgyt7FGw+n0AOiZRYlGPmnOQvA+PKvaIfzsKzVOR3ChKV2JXUeSmSkOoSm0YXaxA+imwW5C64VnIKjxvYlpv9USFU2O1mX8+biQFYsU5pQnhJTyrZQ== 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=Utj7ItaEHtvIsv0ZHYVfFXFu+fj+P2M3yxfR5i0ip94=; b=mgV9vpWqbAdEwKfw9Lcu4fZFlLumCg+0N7QFI9zPBs3ktK1Q6fL6mZz/f51e7Wq4uwIA3hHgpLZ+u6zmc7+cd+aQRcBo9muvO6owSC65+CLDW+O+dY6M/kCDg9aPM8CvatgM+KhEA8YNWeOvFIWRGPkFN1e13yoOlUV4gvwRsA4= 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:46 +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:46 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Apr 2024 11:37:04 +0800 Subject: [PATCH v2 09/12] arm64: dts: imx93-11x11-evk: add different usdhc pinctrl for different timing usage Message-Id: <20240419-imx93-dts-4-13-v2-9-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 , Luke Wang , Haibo Chen X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713497841; l=4577; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=llEiY/5OnUc6shhi+Ccz28hv01yOemdhaRxTciJwC4k=; b=xZX59iOVXW+b/glp/r9LsjmXa+DnLTCDtcRz5WRkry4joMT/8pvzl7RQNZItPEWHLpOXdAX28 80muOt8qY53Dv1bqJA99ncMYMwA/sKM3WOIl7qhxpIVPDvyo+jNjnXQ 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) 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_|AS8PR04MB8802:EE_ X-MS-Office365-Filtering-Correlation-Id: 61a58b4e-3c66-48be-e434-08dc6020f608 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: IqzRbTVZ+qHs1E2GtPi9dURk+W98qMZ66aDGU0vKd9YesXqIxrd7IYNtdVLy6xtToNYnNhhBUeqrUY2ztCpRWnq0Bw67yEMd3eKdwnFJ1AYzRE8Un20neX5aAAo2t/XLrweUt8G53LDq50sTuwhKjNEzBBqkTcxmSdHtZR7IaRY+sLTNX44jAXHx8PJywXpwVKH2Kb2LEO7PglbBDk0FpIi5wXjKNm4f5UeLhiUrS7YCUlRGQnzWnH5UQhdI0vYLuOf2i1K7kJDiA6EZVPQCBbOGPl2gBi2dVL2gdCYw2TkJjHpCUMYHicrOvghI9/3fDwbzh1M14wAJgM63xb7FZdG0mjuKcMOK6+dp8qkPwofYZJjVPfSa+eWlKn2UafYPzCrZfTT4yFFoEYaBDtZhLNGJXTgdSiNyzzUXZFozdf7eeG9ZBxE2Mlj5G6IJXzy6oKGARk3Jx3cTy1zYLeMzf5u8a8QEYBZwTia21Pa9++de/9jNFS2yCTJ1K6aJ31h8tkmE25RY0SQBSxWR79zBN14sAAAAxBS0nUJUoWpGsYQRZwyEXxfTna9aAXFC4mD5trQIOELPABY9xfvqz06iECoc73S6G0nJawwDZ6qjUMhofLR4EunPs9rmYot1ZiIarEAFTZVc3xAXKXMi+dR9Cmq8fXmfNFjA1gWMOxi0eYpg8sSTH2+Nd3tYEQFA+OBoYZmHOhonkWqLyi3nW2xEeu9QBAFEqiA4CJyhiqEupDs= 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?3p9nA5yMQEGBA7Gqt39/ntf9pSaA?= =?utf-8?q?vjgw0De5hDpx+1iDdE1/CFXYFsWCd7OsgyKdcAN899kXmDjanzy4RE2calpnWuq1Y?= =?utf-8?q?0IP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IBGme3+yAxpqaXisyNZqBrK/+xi4WnKrLuTbPk4lHyKr1FPft96MbC9XGuGGdET?= =?utf-8?q?EBXuVgRlNb4U334oNz9LxNAo8r1v8uHxpv/Y6w0vb/G8PWD/yhi2wOvkzcYLQpd3r?= =?utf-8?q?c2Sh9M4FO+GAYpugsWR2ML3ZLwUj4zchx5ErDA7S8IwPtkK+McQ2CQrJPXigBrZJq?= =?utf-8?q?JtRPzL5ebcP0HblTzp3KtrDH1z/81dknB+9rUfZykDgrEvSK1GIE+u6ryIKpXlWfh?= =?utf-8?q?x+pLuusLf3AzdGErjbRGx+lEjfw0To9UX9yqK/Dhx9BYPQvLrl6DBEdUzq5ZdB7+P?= =?utf-8?q?/LZmJYlUaStSGi+3BTq2d6ZRXY2/lHQgE2zm0tmnAvByZZBWx3yAcm8T1gnijqGXO?= =?utf-8?q?lClhLv1GnbTsJtqoscjaxQGAxB7rilhWg27nDS/8CXG/FaAmSrd2/nwPQId1gl8qw?= =?utf-8?q?KKtJ4OGrFU0QWkWA3KOWdP4RRB+UTwnrE8WBiVitWhqilefA0ePU/yAcwk3d7+A52?= =?utf-8?q?Xrx8F5qB+j+0C8xzoQR8dNN1KFsbaT15Q+c1mVnvgXdmzzsSzN0zd0O5LcHI+1oao?= =?utf-8?q?BB+pyXTQxqlX?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61a58b4e-3c66-48be-e434-08dc6020f608 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:46.3798 (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: RIUCpTr3/wgYRYkexxY2E/stTSrgTH6ePIZI58a0c4SGCauO/N5M2/Kf2BrYZr84ZuXo2C8TXkDuXjxZoVfL0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8802 From: Luke Wang imx93-11x11-evk dts use the strongest driver strength for default(high-speed), 100MHz(SDR50/DDR50/DDR52) and 200MHz(SDR104/HS200/HS400) timing. To make usdhc working appropriately for each timing, add X1 drive strength to default timing and X3 drive strength to 100MHz timing. Reviewed-by: Haibo Chen Signed-off-by: Luke Wang Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 68 +++++++++++++++++++++-- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 2b67724db685..f848cb0922ef 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -161,8 +161,8 @@ &lpuart5 { &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>; - pinctrl-1 = <&pinctrl_usdhc1>; - pinctrl-2 = <&pinctrl_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>; bus-width = <8>; non-removable; status = "okay"; @@ -171,8 +171,8 @@ &usdhc1 { &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; - pinctrl-1 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; - pinctrl-2 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>; vmmc-supply = <®_usdhc2_vmmc>; bus-width = <4>; @@ -391,6 +391,40 @@ MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX93_PAD_SD1_CLK__USDHC1_CLK 0x1582 + MX93_PAD_SD1_CMD__USDHC1_CMD 0x40001382 + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x40001382 + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x40001382 + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x40001382 + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x40001382 + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x40001382 + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x40001382 + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x40001382 + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x40001382 + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x1582 + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { + fsl,pins = < + MX93_PAD_SD1_CLK__USDHC1_CLK 0x158e + MX93_PAD_SD1_CMD__USDHC1_CMD 0x4000138e + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x4000138e + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x4000138e + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x4000138e + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x4000138e + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x4000138e + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x4000138e + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x4000138e + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x4000138e + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x158e + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { fsl,pins = < MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe MX93_PAD_SD1_CMD__USDHC1_CMD 0x400013fe @@ -420,6 +454,32 @@ MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX93_PAD_SD2_CLK__USDHC2_CLK 0x1582 + MX93_PAD_SD2_CMD__USDHC2_CMD 0x40001382 + MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x40001382 + MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x40001382 + MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x40001382 + MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x40001382 + MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { + fsl,pins = < + MX93_PAD_SD2_CLK__USDHC2_CLK 0x158e + MX93_PAD_SD2_CMD__USDHC2_CMD 0x4000138e + MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x4000138e + MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x4000138e + MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x4000138e + MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x4000138e + MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { fsl,pins = < MX93_PAD_SD2_CLK__USDHC2_CLK 0x15fe MX93_PAD_SD2_CMD__USDHC2_CMD 0x400013fe