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 Marian Costea X-Patchwork-Id: 13723787 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2058.outbound.protection.outlook.com [40.107.105.58]) (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 1897F1ABC5A for ; Thu, 4 Jul 2024 13:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720101425; cv=fail; b=rQ2Br+oyjcz9zM3YIfyTS8DVX4VOSC1dYxYOY7yqV1X+LROJhVuRHqg7u6IvKjRIeDMWkkIwV3qDywKvPkBp14V0/1Dg6e0JupLbtg1HyuKSkWHmj5dSZPTCOpcABpUJBVcuxF+A9N+9b1M9aJOjiM4Ug1JFroFJPGF14pXpg7k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720101425; c=relaxed/simple; bh=bDlVcz7E8wOZmco5B1wqXFgok+23f5lq1HnCoNdxKrg=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=rqNkYKjDwBQ0Z5kxP9Cj+Coc8A07DSj3rt5vsiHTIlnEnW/JoyyvBficZAcmMv3bOHejcAwXP4kGCy506O3BtbGvtagUYUWvJMbt2mnqvr7rULNmRCzQrFMfmPTuIQWpv7f89jLJmkN/qTS77OeOnSYk5m5RO91d3hRh3DHRZ74= 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=Dvzm3WwP; arc=fail smtp.client-ip=40.107.105.58 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="Dvzm3WwP" 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) 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_|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+VXpfOFOjI1TqVla7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ePkl3kvF6B?= =?utf-8?q?5e+sfvasask9AAd1dfWp/kyixrRkcLK2tNf74w3p6rDBSmWTTVMNNBE4n3IGt3VJ0?= =?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?M02T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wsV58mzF55jGD+75W16KV6M3MtnGwmtsIwoifo77sHvhchAUg/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 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"; };