From patchwork Fri Aug 30 11:33:46 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: 13785015 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011048.outbound.protection.outlook.com [52.101.70.48]) (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 3FA5917BB1E for ; Fri, 30 Aug 2024 11:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725017641; cv=fail; b=XSv/d2BwptnYLwS4KblN1XhKo8qVc7q1S3ijYegXI7sZAqeEZU3kIUyAGaOLu9YqS018jxa0wgCCZIjxP9miIP823Nz5e1AkLTH+9QzcKOkB2AnfDbPFZNrh8oFUIs82FVj4ytQKphW98s1FYGuuO0Ux4FAfLvn4Os32a5kBxwg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725017641; c=relaxed/simple; bh=k2scHyf6OSuMxh5CzZ/MP7k6s8cxb53ZLbVQlE+byVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=k/Uis7RcDiqnTapKAv6U28fZDaxak9de+7cplpsMBHDwWthQ5gYbybFQYImOcjO+qtgQLhOswelu/LFhcyPIO8A0h+I3Dm+OC39Iy4do0abnJPgARiTXu95RiGnLmB3GvoNfDN9JJEvGg0c8gOyWH8zmz3tHZ4QLfe66GjvSBFQ= 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=ZGJ6VYGR; arc=fail smtp.client-ip=52.101.70.48 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="ZGJ6VYGR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w1yzJVPJaE8HCTBBihN7/JTV/N9/7hJ+xJbByX7cxIVygmPtZljwcT5/n5UBkTq48wVg72OC2RxIxcrBnWBQPWprkj5+toqJ9XsVKaYbr9/eiaA2qV8sw3UxrvSTDYySdlstc3k01+fap7QL0mV+lk0G3yv0MXS6gNfkfJqghyCZbuZWhJ1Bp11Cqy9+R8RCn979wyVICZwhmQnbnk/BaXAb8sw0HoEP3nvINKEjZoVXDcgIqZU5ErX16vVPjIUOFNxSVpCaccERF9mmfltzqUUhA8QBolvslf7Pfe7W8XAR2P4SmICE6DNAzEXtrBA6WbgGUhqFzYsdc7zBtbw17A== 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=sqO1yM02EPVE/MRqZEDoEpructK2fSSxMXpHFhTn5Pk=; b=KVkvksB2c5vxvsPXUTsmkk7j+2BWpL8hSxp2/iJkRCFLy59I0/gxxadvhZZnlBgZd8I1qz5lheDhDLvSmqIuSIosBStolPTJtbMEm10jQIwo3kNmW/4T2ZsA5sFDdcHwoHR8lSJYv0ztlypSiVVDTr8zvlz6jD/HUIubnAcJgKP1X4e1zbjOuWOCr4/FDv3ko5NCHCVXpi9tLo8zHjJRF9G9xfbpBVtiEkvWEHwRQG/Bhw+x07yENBOOIiorEesHtIf0BKXJ+h1QgFZWaaH8ZFLu66QFAh4/MvF7p9j1CIpfewc/9rncRkhUmWCCYV70kAtIGQsJaGQopV2NjI+gsA== 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=sqO1yM02EPVE/MRqZEDoEpructK2fSSxMXpHFhTn5Pk=; b=ZGJ6VYGR/pTyd6ibMbgybpLJePyox8zjkIE+phhCVUeHtrrIzKeW92aN9SgHk8exzzSdMuiGYM8VkbHrMVixbLUDXFVJlNoCk2rTZz8JG/ByMN3pBXi9IYyGzwSvOYpdS/9GNkW7eDW8bV+xfBecd8rTFslouCdEdPSIQlnFeCOEtP7tzxHOa7XFxcX9sC3u1ZBShIMRacL0i2owi1iCSuhkd4tAMxNGAA7Y/gBjA39CLNVQPSu1S8oed7pAH1s++TDWETETRwtUIyXgdjIOMAxEZJa85jRZqmuCVrwH1hrYsTSBYrXDhXpNe6zR2c1bEah9Adp0qfGywZeSZuL0cQ== 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 VI1PR04MB6989.eurprd04.prod.outlook.com (2603:10a6:803:131::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.28; Fri, 30 Aug 2024 11:33:54 +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.027; Fri, 30 Aug 2024 11:33:54 +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, NXP S32 Linux Team , Ciprian Marian Costea , Radu Pirea Subject: [PATCH v2 1/2] arm64: dts: s32g: Add S32G2/S32G3 uSDHC pinmux Date: Fri, 30 Aug 2024 14:33:46 +0300 Message-ID: <20240830113347.4048370-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240830113347.4048370-1-ciprianmarian.costea@oss.nxp.com> References: <20240830113347.4048370-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0022.eurprd07.prod.outlook.com (2603:10a6:208:ac::35) 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_|VI1PR04MB6989:EE_ X-MS-Office365-Filtering-Correlation-Id: 350342ae-3518-4deb-f4a2-08dcc8e7a0f0 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|1800799024|7416014|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hDobyQGNnEhhvJnN31Sr05cTK0FHzhf?= =?utf-8?q?Ts+qB9oFh6wEdSqu/hyitnj+023lxv3bb+e5C/6A4UojkD1o7//cdi39RSZKfYcsl?= =?utf-8?q?glst8gk7sW3h7y6hTmOEnMXJe7KwszcETjx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VIrLJZTOtpFxvlQ0gV1RA2d9GpJ1pX?= =?utf-8?q?u4R+WwQuP009A60q8cJChaj0mb7Ft+bRRSL47wMg4YZMJVwRcV79e1PUzR8qx3Z/s?= =?utf-8?q?WY0RpQ4TyOm75iaDxm7JJMG47vdpG+G5b3DPcpCNHCgYxZguxcsXjqQD0+GA2vQts?= =?utf-8?q?nIAHKwQEoDJsMrXYxEXd0pH1M/T9F/lfR+TcZBEPFWVi3fTNXuYD3bGby8ziOcVvA?= =?utf-8?q?WSpq8vjKej1ljm2L5I/OInf9rrA5hw5KiLm+acMQPUCPYwatdbbSfQLB5QnCy3gtq?= =?utf-8?q?MmET9bqns5SAElhfHcS/Io0kW2ZpoaTbxNA=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)(1800799024)(7416014)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7rxGonPwiJrPEAPKVKcymoVr9kIv?= =?utf-8?q?oZ1AvL1LROijzsTbJEH1YRKAOzXpzjThM4LI34TyM4eVEo2JU3RZUKYPM8FGNghuZ?= =?utf-8?q?olHx01F9TJnwnmo14e6wGrvuGp5Z+IZdwASbhezFvYjGjI9fsrhL1xw+7wTA7sbCl?= =?utf-8?q?r4UDI+tyKf88kJyQ2mu3u6B7fHF/xgTXcbypaZFyqo0G+JV29AbaUk0YLY39xPbH7?= =?utf-8?q?JTZd8klVffEbjwetJbWD4HO0ZBnFDtUhtzsSvKRsNW7JQQpDOh9bRLo91GXv3G//9?= =?utf-8?q?N06+hEe6TMjcds79pV6O2Vqp3rNSZaLS1PI6IkU3rmRwWqOViRp40cH2WUjcW+sqF?= =?utf-8?q?cF/LHvIZsXH4166czcQPZANSaVfmMwvTSYVZz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lnAcgkDywFOmeL7BlkLcoI1rukMK5E4?= =?utf-8?q?SfBNb0e+JuwK7zZ56q8NTK6gQGHlf09bFM0QnMiPw/9kexwxQQnA+JeU20EId2a6b?= =?utf-8?q?vsao4c9pToqj1Hdqj7mdCmVitUUmR28fG7rm/EiiwpSCJP6YnWvpbEivroC33motM?= =?utf-8?q?/oAcz9ZRuDQkTwnsKrlpYi8X8xpcRT5bz3TPbrd3CJnuJ3XG6NYnbropZgan5gqQQ?= =?utf-8?q?5G5LhTWwLZwNazKeAGsXfI2MXFNLgefehDME4ME82YgEHgSyYjRojlM8hY0hjQKi+?= =?utf-8?q?TeeGXE4vmUDsTGvpE642VjTKpRfr38mPWg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 350342ae-3518-4deb-f4a2-08dcc8e7a0f0 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2024 11:33:54.4388 (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: WFfN0BXvgfTX+WbNeYmAgxiqs7uqTTU+lfc1JSM3/sktoZgEP4tyXPNFil7NLtB7EPXl47tpIaq+6kCdEHCc382sbtzxx0l1fNJrmNlWsw4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6989 From: Ciprian Marian Costea Adding 100mhz & 200mhz pinmux support for uSDHC helps to enable higher speed modes for SD (SDR50, DDR50, SDR104) and eMMC (such as HS200, HS400/HS400ES). Signed-off-by: Radu Pirea Signed-off-by: Ciprian Marian Costea Reviewed-by: Matthias Brugger --- 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..7be430b78c83 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-pins { + 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-pins { + 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-pins { + 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..6c572ffe37ca 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-pins { + 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-pins { + 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-pins { + 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";