From patchwork Fri Aug 30 11:33:47 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: 13785019 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4366BCA0FE0 for ; Fri, 30 Aug 2024 11:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mvHzmfEJzKOOu0trhKsIW2ufkKHjYtYZp708X87SZIw=; b=gNG+h8oRDIZ3ybs7l/GKCqqP5c pVOTk+Cg/6JSK3zEWtg84Um4EFjGFAh3BVf6tEURgEmJiwTHIEjvgDLbBKYjWJOqHEL7oaJOj6NiU +olHm9uVpCy7ZOD+DvpAE15YuNWrmYnFbVaxq5d2He2Gn8iYn9295T1NcQXvWy7Y9gM/W8e6igpa5 EV0m1ocTyr15Lr/odaNiG/OXfjrNjegdjGYul1W2BCl/s2YAYD/0eFBq0PGtWJQcNrS98HbcAIA0i IPt1yQdqehR6Rbpt17SXQUeuPCQ+bFxdWN4zjJgxWHs4VQziICaYxqg2MAgOsZ5rfSw7uDKakOIHX TVi1MybQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjzvf-000000065nN-3iRd; Fri, 30 Aug 2024 11:36:35 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjztC-000000065J1-3oAD for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 11:34:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p5xrDDIihyCL4/4Jn5o4zJFAdwgb+gJnxxlR5pU5uaM3lGgfAoHNMPgVmgxiRnpFhig0tgOAXJq9AJlHikYULfOrR0wjTieDmsHAat/uPtUHVL8mEiIRLgUXU5BQRzsHZS3YXcVf3Ix97dY+qnDez0T6mU/TggyOIp2KVRRn0H2neny3juFkoosLI9+jasKzC6NtzYA3OuKmiN+m0ZpL654FbDwSIYPOEyx893BHwK4b1BHBgUztMMwFvSnPoPXrA4vpntLEcQt7q7WI97djFJn+i7rvJMNMRZUYm1p8palEA8GrRBENyGamogSqL2tURPfvaEPbqG0AQnrJgVdNKg== 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=mvHzmfEJzKOOu0trhKsIW2ufkKHjYtYZp708X87SZIw=; b=ha2/PGhrDLE0zDpsv9DvaQdONH6HEytjkM7SFgqT33yB865onvDuFyspsMmgNbtyj9YQRD3NmCgouINBEL0jjzDBsRpuRBx66/BnlXDiYftvLQTBOt4dCXMi6kr3P/H4HNPdGEFBHCUME/qNUmhs8QbVXrt/VM6BJF87L85/CbRZsPy/o+2PcWmX2zqzAIwlvsWxBof32/yYUKz0f7cbSmPCTDUbKCGx5Fs6zdfuNxgvfror6Cp9DU5lyYt0p/a0vHhaRjdrHP8cXyg/qiNpMfP43xz5rQ0d4c3g1GVh7xReHEvhqaIxpfFIWbJIXSv+wC7JxMgZw5zgznvQoRUlzg== 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=mvHzmfEJzKOOu0trhKsIW2ufkKHjYtYZp708X87SZIw=; b=AxFW/NxR5UqFMYYxu7tNj+eTjKuuJuBymxSq+SZvbR1saWWVpsOFb+kepJt6jD6JEr+VDZn5+NDlLwZ6wRGbJeGq3IkjBxul2x2EBWROaDEu4WUsECHVKLkXUQ6RJGi0zSmrgKJevLyX59e2i8iabSR5g38Sn0QD+ehU/bMBmX84KeKj63yvh6Vk8LOyzYOgpICWKgLEq/744l98M8WzPSuwq47W6xbBhe5/H1PK18NDKvDFHflIf6n24QwRfUpgg5bLsvuQW9s5XXlo3xNvS0AhZpSGuBcU6kkw8+w3TIWG/yuB+B4Lfu3rU8BjNkIvX7fa7fhG3ns9jlSUrQ3ODA== 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:56 +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:56 +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 Subject: [PATCH v2 2/2] arm64: dts: s32g2: Disable support for SD/eMMC UHS mode Date: Fri, 30 Aug 2024 14:33:47 +0300 Message-ID: <20240830113347.4048370-3-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: AM0PR07CA0020.eurprd07.prod.outlook.com (2603:10a6:208:ac::33) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: 147eae14-b570-438c-4f7b-08dcc8e7a1fb 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?0e97ot2VpfkBlql9tD3RofEOs4JXST0?= =?utf-8?q?FAMQbnDtXUMO5VT8hD7bOZ6VhuHtI7ABpKhlfE1c6mdK/YJMvAPq5aJxPaA+3E0zU?= =?utf-8?q?OFbzZF+Zx3uWRiEa3nqqzu68I3tzEttaP46+a3KNHZ3+k0lBikD9BQmuVtYX268Co?= =?utf-8?q?EeSzk+22KKj6grv8NV7i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QT0rZCt0lj0DZza6z3qCn+85xYbbUK7mE4gD9+73mA/?= =?utf-8?q?ijYyNyfYpwLdMQ3ijgN16DGT3KWDzek4QLD40U2oeM1klUzayio5T4B0Sr2VGgMmN?= =?utf-8?q?R3Igu7rsTUwKA5dYgc/7dkLkIVaeIQWVSpWSXMbC4bkhiFcesczNlm+HJPd0F4PM4?= =?utf-8?q?PNSEzFzKxFCUD9Bs8TtrXubY4cMBNk/Zpvk03t3teNVIRt1ca3XxO9U+nI3GupIKz?= =?utf-8?q?fQzF9lW/HjuXlq7xDYlHg4b1CcYIT5jP/TQ=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?MvlECf7VHF5wQmBo+HUo7wHAaCEh?= =?utf-8?q?4QhqvvJ+/QrqBx2KlfgskCByBC5norFnJlzc2zefxFoh1ITLgubq6OtzA5UqhT6P9?= =?utf-8?q?uC3TeruazJjHGNZrEg5fkUEoVawMaTczry+NUTgGQU8ydfk47soaam7Lpsm9tJf2l?= =?utf-8?q?LX8KvPUQ6MkkyF8twiaBRghAPJbscPeynLcgqyglEfKx5Efif9RLV7X1Aeszm8txG?= =?utf-8?q?XnjUQ6bo9neWMg77z/eInPo4TaRbVsYRBPLF/yqr5g4qLb8ytbAhrllYDZLjfTObe?= =?utf-8?q?FJoWmlUcMNf0PzByMMn/ZMoMxYuPjHzf+A0cNbH0a3qqRQNtGKkHQy7XlTuuuX0Hr?= =?utf-8?q?lm5OYUO+hx9MUrs3FFW/mfBEPc53evKquBSIVM1ZOaiIdzjPkklbAPiSM3Ei0VZdX?= =?utf-8?q?nAR9rw3scTtj/GLowDqQzmphH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3VPneSGb6LTWNtC7BcA1E7LPnekw?= =?utf-8?q?yEPTZjC8sKKv/qHu6UzNnUGtJekKzuG63V65fvPinK6V2fYGNa3OKHRbtrdoj3IZG?= =?utf-8?q?YTKP+nTcriy5mlaTAxB49ijrqIj1OSaUC2fNvwkQbFG5M663HH4i8/BvosGsxsHIf?= =?utf-8?q?wRafMB8RZSKondKNs7bpjMWwucPfhhj5tVZKOOYtMhPASpBe4ayjm3DcMqwCeUJQp?= =?utf-8?q?DWLE0JCW+QNFDSNDYJwavXcP51S99PnSAw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 147eae14-b570-438c-4f7b-08dcc8e7a1fb 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:56.1709 (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: U5/GBxhBhiA9NN3VipitvQlRUp9yOIzeWuP+hzFGKHRAzIVSrWK9Vjf6caOoOep6HoAXclJCEMN7VQit/MmUv9Spg+5kKUuH7MEHOKCOdvE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6989 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_043402_977697_36611D58 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ciprian Marian Costea Disable SD/eMMC UHS modes for NXP boards which do not set VCCQ voltage supply to 1.8V by default, such as S32G274A-EVB and S32G274A-RDB2. Signed-off-by: Ciprian Marian Costea Reviewed-by: Matthias Brugger --- arch/arm64/boot/dts/freescale/s32g274a-evb.dts | 1 + arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts index 7ab917f547ef..b9a119eea2b7 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts @@ -39,5 +39,6 @@ &usdhc0 { pinctrl-1 = <&pinctrl_usdhc0_100mhz>; pinctrl-2 = <&pinctrl_usdhc0_200mhz>; disable-wp; + no-1-8-v; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts index 8739f63771bc..aaa61a8ad0da 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -45,5 +45,14 @@ &usdhc0 { pinctrl-1 = <&pinctrl_usdhc0_100mhz>; pinctrl-2 = <&pinctrl_usdhc0_200mhz>; disable-wp; + /* Remove no-1-8-v to enable higher speed modes for SD card. + * However, this is not enough to enable HS400 or HS200 modes for eMMC. + * In this case, the position of the resistor R797 must be changed + * from A to B before removing the property. + * If the property is removed without changing the resistor position, + * HS*00 may be enabled, but the interface might be unstable because of + * the wrong VCCQ voltage applied to the eMMC. + */ + no-1-8-v; status = "okay"; };