From patchwork Thu Jul 4 13:56:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13723788 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 A8794C3271E for ; Thu, 4 Jul 2024 13:57:28 +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: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:In-Reply-To:References:List-Owner; bh=MAD+CngXYS9A7r/WAFUBhILOkdPjBwT3mrBOGhMHxvo=; b=i6cNQsWuhyISLDBEiAJs33Wjt6 j0gkUF1njk1KOzgruGD3Mx3h7G6wmmdG9DyCzTpK3otWteBMAsFdcpa657QxGVXbhd0+HZVPVnzVF j9PnsNgZClsGkV/rMja33xQRe6kVpth/rPT4+jQuQMZfbG56dCC00HmJOXukQ/mCVY8FVv3zuAXRQ j1Uq/G5mkWYBS7HXV9D/zCvZBFYY0FeqIur9Gwgf+ZlX3j2GDOjlxPVO1w9fzZfzMEL7Wv+XBG6Ay 8z81iSpwqtElI1gkhOH/7ez46gZVRz0OqPLjQJbCKZz1hHnhN+Nao/p80jDeEehPh/Is/nrp8Rd8t 4xL5Vd9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPMxa-0000000DM5i-3v83; Thu, 04 Jul 2024 13:57:18 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPMxM-0000000DM1z-46SG for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 13:57:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgzWP6mZzYv23b71JFiaEoeOyF/bo3LD3ZJ3xAYIGqtbLhAMV7b3SXMo5R28IBEaI1ctShtqumdWp2suVM0ZeYMeeRXMurRV1QyyAJxpF6N8yeCJMYQvxxBUNuDpZA5zUZ28DX27+gms6ehZ/xDbeamUHDIzSUK6a+eMAsLQMf9HjPgUQfGHCkXtPJrtrMHdzeRXcn9HzyfoBRJWdTDASdCbRJZiHk+ZJzslHe/GyuAHUTjgrG1Uo9IZc+xtHtS8eeq5BFF5ekD07k9Q86GFXnvxXRWUc1+sq2nIfyZReh4SmKhjnCyjXEhQJIMC2D6XjhWjH0ySScrE3svsMmzxuA== 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=MAD+CngXYS9A7r/WAFUBhILOkdPjBwT3mrBOGhMHxvo=; b=mcJKMRLIWVmjnFBMDngBMhVocvqSsvMfydLbMuJK/H2ohUnGE7sLoCeVJgYXjwpcXC1pLHzUrVEBvQpPbClN96VE+m0LmaB0Fv0Z4Nd7oHnSTJk9tgPlQZIYYKDBZo8Ipm12AP/DUwgLt11DKRDJuN6a0R5c4evs43MOhlbNf08X+rBPGSzB+YC7YTiHyLo6Nui1lffYWYeGbUlzVoKHSqdUQ4WJdGEAIY/Y/sOdfiGbsVXfp+eVqmYJ7DuQ79JK8iDoUdS4BTq311XTDWw2+8nAQRM/i0dW7T+Y8Ht3gg2XX1vF3IvwsuYV/cH/aFh+1vgds+0JWUsbbraZ9oGnkA== 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=MAD+CngXYS9A7r/WAFUBhILOkdPjBwT3mrBOGhMHxvo=; b=Dvzm3WwPVS0hj5llhv5Dg6DmoUUtEEQ4WJdPUopVChkxIplPybW4wP241s7D/V2kF2o6PaTQFsilzJntqzvrXKcbQzGdxIUFYKzb21Ufy5SX+x0cX47JFrKDJ7hFMUvYBPLfVssanxfCmHpLBbFZJ186lLo+tbor/hSHWiEXLjA= 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 DB9PR04MB8153.eurprd04.prod.outlook.com (2603:10a6:10:245::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25; Thu, 4 Jul 2024 13:57:00 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.7741.027; Thu, 4 Jul 2024 13:56:58 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, s32@nxp.com, Ciprian Costea Subject: [PATCH v2] arm64: dts: s32g: Disable usdhc write-protect Date: Thu, 4 Jul 2024 16:56:53 +0300 Message-ID: <20240704135653.2969532-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AM0PR03CA0106.eurprd03.prod.outlook.com (2603:10a6:208:69::47) 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_|DB9PR04MB8153:EE_ X-MS-Office365-Filtering-Correlation-Id: 9951a4e7-c031-4030-7a56-08dc9c312b26 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|7416014|376014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?aG1k7eBa7r9UBHnh6jT5UKuB7TuepkH?= =?utf-8?q?YquYopxNCHunvbQ4GqNvN43vxPRDbt3i4Fh0R23zvhChj2nagpVz+HNmHxAYo0a4Q?= =?utf-8?q?Sy5WVBgJ7pXNJDaZLdnRbdu5+c6PFgqxONCStuKxpsxnDxPirbagVA5asO2VafBBr?= =?utf-8?q?tGch3pSYk0vacXC9fWMj55zIbWqAn2Tc02B+Q1zLmTs+8cPScYQpteQmL7+HPLdf1?= =?utf-8?q?hatkz1l9ZiqgB1hknzhSG7BCWh7ZzRvrn8jhalc8YlLmNQyPgJGdY+FRgu7PgyTTC?= =?utf-8?q?EYHhzoqddKiTvjVxwTF9Lqn3f2lPTLfPtdOTuZhaTMOq8M+VXpfOFOjI1TqVla7Hq?= =?utf-8?q?jB2oF86g1ReGk985wysP2buQyPg+3LV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yixrRkcLK2tNf74w3p6rDBSmWTTVMNNBE4n3IGt3VJ0?= =?utf-8?q?77XEPJ+l08BA3hZCbYAcCpTyJ2UCE7q5j9x1H9zVD0L9Y1LzmKH96SJ06NLDa9dMC?= =?utf-8?q?C1ueOFUA2CAr?= 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)(7416014)(376014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SL8tvLhNkW2VhTIbH0Bi3+JG2KZh?= =?utf-8?q?hEusYgyQ4eKLOJwi2ekPAwtBVehjkKC02TOWDoubfAb8aIOP60JXsuZA77PIKP3kz?= =?utf-8?q?WL6mnbWIni3Q9KwEZQPOTuY+OJOghXlguNAdmXkFf4nhqbV5/DZD4ZYBbeqd8CEzY?= =?utf-8?q?IIPPn5hIMb5bdxtd0Yu3CsmPH+oVgJaCfKUA62xL6YPkdIbw17VkVozFz9e/X77sj?= =?utf-8?q?Z3nvx76+8s0bCb0REwnazVMDR5lp2VP3np+vQ+GTWNfCIOcoMsApFkTcyQ2zyjhhc?= =?utf-8?q?whVJYBzC5+jePs1xtXQUIqLOv3a+V0ET6CaEx98CbkAmeR98Fhc+leOcQ4I/+aI+D?= =?utf-8?q?+AyxZDhgKLrfp90dmYDz1cTRDwBnU7+prT5QAA4Wj23epFWMJe34+QHM3br+X8Yhh?= =?utf-8?q?V8K9Up5zxtxM2sw2HaXHqktDgQKKgRiqCMINa7FyH1idzWabUGsL7BIKeoxSw456E?= =?utf-8?q?MCcGeErHfaBNc6S1Ft33ORPHajHwNIWHwtCvqVCARYoJff3/K3ir3HfVLXFURNpzk?= =?utf-8?q?M02TiRTI6ipiCKQKvQ1s9Le9+OGbxGg/dqF0r6iZDl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AUg/YdTc+0HmGgbHTIP?= =?utf-8?q?50XJJUGRp3NoULgImfbdkM9sygB3c8++4sFT7ZZ03n7I+viiy2T/OIIGpFrvoHCcD?= =?utf-8?q?6YbEjLDOu2xnb5lA9JkDALd6eDNt2DaXuw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9951a4e7-c031-4030-7a56-08dc9c312b26 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 13:56:57.5559 (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: 6w4nwuLIq/XwjgQjyA5DoLF6Z+L4IoTN2DvjGwaIRcSJ97s3oS+9D7xyj1kNFLgGeZgStC8twmqPPxt1YqVvLOXPw+cCsXDvt42Xz2MrfMk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8153 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_065705_708955_C97F1DC5 X-CRM114-Status: GOOD ( 12.25 ) 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 NXP S32G2/S32G3 SoC based platforms do not use a pin for SD-Card write protection used by the uSDHC controller. Hence, adding 'disable-wp' usdhc device-tree property in order to fix observed warnings on SD boot as the following: "host does not support reading read-only switch, assuming write-enable" Signed-off-by: Ciprian Costea Reviewed-by: Matthias Brugger --- arch/arm64/boot/dts/freescale/s32g274a-evb.dts | 1 + arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts | 1 + arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts index 00070c949e2a..dbe498798bd9 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts @@ -34,5 +34,6 @@ &uart0 { }; &usdhc0 { + 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 b3fc12899cae..ab1e5caaeae7 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -40,5 +40,6 @@ &uart1 { }; &usdhc0 { + disable-wp; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts index 9d674819876e..176e5af191c8 100644 --- a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts +++ b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright 2021-2023 NXP + * Copyright 2021-2024 NXP * * NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3) */ @@ -41,5 +41,6 @@ &uart1 { &usdhc0 { bus-width = <8>; + disable-wp; status = "okay"; };