From patchwork Tue Aug 27 08:48:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13779107 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2046.outbound.protection.outlook.com [40.107.22.46]) (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 494ED1991A5 for ; Tue, 27 Aug 2024 08:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724748506; cv=fail; b=TWEys7gqI1CE6GwS1LploAGwGN8nV0wss1yDjySzpkjBTw2LS0RuHhiwu5j4WkZfR992aR6KAYEEtnZqnJ0QKyxIGl7ixB9sLdDauuis6IXpOM2V/dLz3L8m7+K2ZemMuU3/RewRWw8dpjaEPijQBhuxeIqK9p+3iRnAGlkhj9U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724748506; c=relaxed/simple; bh=k/CZEQCZeuOz8W/R1Mcj5DsTtSkXAvg/SK3LTSiLHcM=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=hJ80PLjzyeHjcaot17QPGaOsI+h6SnMW/c+K9PoWGeKMwF1imyfnCRfosN1yQbKW0ron8iriaksJQJ+Ot5PkeKjT5FxopR0t3ZasGnEJ6DOvrwkGrfiuLd85rMDilikh4Dh/eUIgk+B4dl400nN3eSEioqrqREwMilCsXCvqyMA= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=cPSRAULn; arc=fail smtp.client-ip=40.107.22.46 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="cPSRAULn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M35gduQU6CryEGbNRrL2Z+d5Qhmf2geaPf6Dn/gXZPFafTYfsTaLvXKu+QNnW6fycYRQi3mUPdIZmnNtTJ5N7N4YtqmP23G7UCyVi/Y5oMxnlfaHSOJjvlfe0EX1i+kaavy5z1MzZBdpB9qvbnK5waPOaErPZykjhT1+rY31kjae0BvZIgInzrGYJir71V1zXswXeB85lpD70zOMqWWjXRAzVWYgz3fuxcC5YWlWjPTQByspgwaRC9OdwIEE3U7hyN95QKbVHmHZL56eRnmWhS28C2Drd9oyaklXG+RAjCW2slG/tqJ2GPMhN5J4d1ZWjGXR4zab1hm6y57VNW5ZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=bBywNm9rCx8O1nhpFZBty3IRaL/1NgDpLT3TMOPaOVk=; b=lIq8XvWigL+Jo/P10L2qulbeupPPwAATds6gti/OEK1Hmp/ZiwdqABAtSFGystugpaD1F0NZ7fjNfi0jD3vGW+Brc7acfG4UatVd4KODzVc759LLF9TO5P330HQ4bqYN6jbTWhYzwCR76287SSEInT0rPeUuzRLgfeYjMatkyzASRVtMn8tD0AQedTu5HjQOq6KxFn0AJvJ+FxtMbrrpoEnR3UdXjGyrbw922ijoKzsqzTyU5Yobe7oZEt/PCCUBMhVqbVC4uaHeQ1woW0pP1f0BHBptPl3eCJ1ySHxdtG8Q2yEXobFKuoIxAn/Cnqkh2FXMNRpLzc2gqBk1KPMvzw== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bBywNm9rCx8O1nhpFZBty3IRaL/1NgDpLT3TMOPaOVk=; b=cPSRAULnh0/RsXl21UJjQJWp02avr9YUxGf5vuE7YZNnw0etGIAIS+3fIrkHD+F04AMptHmfPJVHxq0OAufpiGah3Zb+xaJdBdvz6ABtRnoGRqHzMmAYX9xghZ6BJ5jbXaFjGF1j8nAWbyf7WZjmWZNf/yAH6Z+h35zwd9NEjhhzrlLqbzniZ/UV51EGwhQ/XHw5nnElTaCVHVv+4pPuneYkrtQUH6yy75J1kVhY0zal8GYnmp7MZ4p2oPyH47tjDivLhdDNoAiXF2+irn6yChK99plNKEJz9c15sTDAXrWE+dsgYIhWdskEo8kpb/kfMUSW58C4JDZCDfIgJ+ozAw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AM0PR04MB6948.eurprd04.prod.outlook.com (2603:10a6:208:187::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 08:48:20 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%7]) with mapi id 15.20.7897.021; Tue, 27 Aug 2024 08:48:20 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ciprian Marian Costea Subject: [PATCH] arm64: dts: s32g: Add S32G2/S32G3 uSDHC pinmux Date: Tue, 27 Aug 2024 11:48:15 +0300 Message-ID: <20240827084815.1931169-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P192CA0052.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::6) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: DU0PR04MB9251:EE_|AM0PR04MB6948:EE_ X-MS-Office365-Filtering-Correlation-Id: deb35a01-8cfb-4d45-b9aa-08dcc675008b X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Eiuc0iEgsTpTl9dRWNszGnuLOMSJOp0?= =?utf-8?q?+8zLJ8pYl3WtYHtZ3/MWoezEsp4Fu+7qG5FullduaQjMlh76A2uxwvrc7J9Y0I3PO?= =?utf-8?q?FeXlj1sbRCQkpXGpz/YWAWikWENVefl+2SHt920S5PPO4QR9EDHL+kDgYHIviullT?= =?utf-8?q?b7rlabJKEFOJFg5e1D/Ux4HK7+6KcZ3mEr+5PS6Mj5O4+j0pxdZO3VItrZgEZbWCT?= =?utf-8?q?esC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-8?q?gBQVO1rT9JOH/hUAHBymMrTb7JIQ5TQMWbx1ifq9+wAuxBeOQ2YX8x2/P1Cy7d9YF?= =?utf-8?q?/LatcMgvV+ta4n7rTvQsYkKbBihXhHGkCzV4VnbVUd+gYa35vgjYGzraj6J49yWrx?= =?utf-8?q?pYwbj1LDZjpG01cYvUiVQ0E0LUQGRB2uNrQAaZoMcKvl84BA98FYRk6I4NTEjv5S/?= =?utf-8?q?A7/EvVHyxG6cWfmrvsj2B5f4QTrTGMKKQ2Q=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?9Cp08cPZoh16DznrR5fvZiaZv/Om?= =?utf-8?q?H8x/W/z7sHUJ8UEc8gLuQqJ1PsG90R0qHQ+FyqDFEMGY5UqHFDKCEkAT3WZZ+he9D?= =?utf-8?q?dA/C2qDrVos1aBfcCwMBWohhxbPVrJlaVnWjKcw6zgR1rvwIfWagcsf5lWYzZP5oH?= =?utf-8?q?rh+isIkCeN0MHKv+b5pEpo9dLvyBO5/UGcrugjBeBGKBR+UupfCOKzS+ffuYSE+gz?= =?utf-8?q?8Wx1zJdOLhdckTK3K6zWbq7VK+hzdMMy2jVW9/A7yWmuLFkarRF58CVzl0H361OQL?= =?utf-8?q?aPxI/ESQpahEGoik3pGVYzMgUwPb/7hp9LRqOoUyci7fw1YIyXOtytmHpHSIX+ULP?= =?utf-8?q?Wmu6P4zYIcAdyOdlNaCsGKDBCdGjia6xWybTCKldlLZRe0YDNndjODJJPWrQL8l9v?= =?utf-8?q?q4LCsMfxVZi9I/VL+IUdrO+wteCs+5AjzLp33DxFeu9eBwn8BEHYIFGH4tc8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f-8?q?7JeVx40rlVHJOMwsiJExYxKrEzzSJiS2joO3iM/WRwLOaQ8yCYvMXuN3iU2j5w79L?= =?utf-8?q?/K6mkqlZlW7dLk+yiP8zUIiRqbPiB9SSMgbNWiSOB7kkMUNY0J1ROPOM+iyHr15Sj?= =?utf-8?q?M36jzp2BrACfafR8GMzKLVFrXMNUEhrwCGTLHkKpsPrEEVN9d9zjyoqXRziJYdg76?= =?utf-8?q?QhljMxHjAsBZdQHdipmppFj19B6RVUGpHA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: deb35a01-8cfb-4d45-b9aa-08dcc675008b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 08:48:20.4442 (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: bqvi+v4W++6xmZmxfLBO0R0ejNmHpSvCTPZj8ZB+cjXqMK6OmzN/KYCF3SBYd3A3OP7wjunNDv2TJ+MhpkkYKsmJbRghH8W2IiW0nam3rTQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6948 From: Ciprian Marian Costea Adding 100mhz & 200mhz pinmux support for uSDHC helps to support higher speed modes for SD (SDR50, DDR50, SDR104) and eMMC (such as HS200, HS400/HS400ES). Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 153 ++++++++++++++++++ .../arm64/boot/dts/freescale/s32g274a-evb.dts | 4 + .../boot/dts/freescale/s32g274a-rdb2.dts | 4 + arch/arm64/boot/dts/freescale/s32g3.dtsi | 153 ++++++++++++++++++ .../boot/dts/freescale/s32g399a-rdb3.dts | 4 + 5 files changed, 318 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index fa054bfe7d5c..303be64399b5 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -162,6 +162,159 @@ jtag-grp4 { slew-rate = <166>; }; }; + + pinctrl_usdhc0: usdhc0grp { + usdhc0-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <150>; + }; + + usdhc0-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <150>; + }; + + usdhc0-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <150>; + }; + + usdhc0-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <150>; + }; + + usdhc0-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; + + pinctrl_usdhc0_100mhz: usdhc0-100mhzgrp { + usdhc0-100mhz-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; + + pinctrl_usdhc0_200mhz: usdhc0-200mhzgrp { + usdhc0-200mhz-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; }; uart0: serial@401c8000 { diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts index dbe498798bd9..7ab917f547ef 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts @@ -34,6 +34,10 @@ &uart0 { }; &usdhc0 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc0>; + pinctrl-1 = <&pinctrl_usdhc0_100mhz>; + pinctrl-2 = <&pinctrl_usdhc0_200mhz>; disable-wp; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts index ab1e5caaeae7..8739f63771bc 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -40,6 +40,10 @@ &uart1 { }; &usdhc0 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc0>; + pinctrl-1 = <&pinctrl_usdhc0_100mhz>; + pinctrl-2 = <&pinctrl_usdhc0_200mhz>; disable-wp; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index b4226a9143c8..0d6f077b1eb9 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -219,6 +219,159 @@ jtag-grp4 { slew-rate = <166>; }; }; + + pinctrl_usdhc0: usdhc0grp { + usdhc0-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <150>; + }; + + usdhc0-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <150>; + }; + + usdhc0-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <150>; + }; + + usdhc0-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <150>; + }; + + usdhc0-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; + + pinctrl_usdhc0_100mhz: usdhc0-100mhzgrp { + usdhc0-100mhz-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <150>; + }; + + usdhc0-100mhz-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; + + pinctrl_usdhc0_200mhz: usdhc0-200mhzgrp { + usdhc0-200mhz-grp0 { + pinmux = <0x2e1>, + <0x381>; + output-enable; + bias-pull-down; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp1 { + pinmux = <0x2f1>, + <0x301>, + <0x311>, + <0x321>, + <0x331>, + <0x341>, + <0x351>, + <0x361>, + <0x371>; + output-enable; + input-enable; + bias-pull-up; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp2 { + pinmux = <0x391>; + output-enable; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp3 { + pinmux = <0x3a0>; + input-enable; + slew-rate = <208>; + }; + + usdhc0-200mhz-grp4 { + pinmux = <0x2032>, + <0x2042>, + <0x2052>, + <0x2062>, + <0x2072>, + <0x2082>, + <0x2092>, + <0x20a2>, + <0x20b2>, + <0x20c2>; + }; + }; }; uart0: serial@401c8000 { diff --git a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts index 176e5af191c8..828e353455b5 100644 --- a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts +++ b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts @@ -40,6 +40,10 @@ &uart1 { }; &usdhc0 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc0>; + pinctrl-1 = <&pinctrl_usdhc0_100mhz>; + pinctrl-2 = <&pinctrl_usdhc0_200mhz>; bus-width = <8>; disable-wp; status = "okay";