From patchwork Thu Jul 4 12:03:00 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: 13723663 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2070.outbound.protection.outlook.com [40.107.241.70]) (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 7E8861AAE12 for ; Thu, 4 Jul 2024 12:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720094591; cv=fail; b=QY8R5p4yJgvf/UjlpQW+galUkMe02B4KpTCmm9TBJZZSTNBUv8hT+8wrFaVUIknO4h197iGkpHIKN/MfniXL6MIWFhPWY3wAaXIDMItWY2CCuTKAm0W6Ee0z0qNxBAz5VdI8ZsRe2RibBLSKNvY0HSUPW9jLSaebZVvFrBdpu1c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720094591; c=relaxed/simple; bh=d6DsN70DE3vxP51P7rgQgltcBTKwBkGNZyK4zLE+7vg=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=OUzPjVf/IJYS6k84ZJADwTt94wnMmmT4g6UQv9CIirSm2K/Sd3K2Wqg+tYCJncZvSosUX3dmEgdK49U+k/D7pdkGL77slvGjtTV+D17RC49pWW4+qaa5rGje/jrYXNvGViEziHOrMhqfn51gPMAr1rPH9u9Glkt9Vy5YZJ7R/14= 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=WKjjog0b; arc=fail smtp.client-ip=40.107.241.70 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="WKjjog0b" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g1P2qPm839GLf4gOz5TyaVz3hZYqt2JVcc/OfErNPxijfDWNIAYhA3rumkKmqFohHhYu4M+8cQRwDbxgjtDl45dCCMVSyducAdp5uaNv0K5i2pklRld0Hqc+DqX9xA7SM0Nc1SxqTDQFsIZNkzNgYROkGpaXldE43pf3qDQvqJOnV7nDZVrgEKLcC8FgKFsDHsTbokJkDwD6TWF+fypSmRL5z7sJy9zF+YuplXovJ5NYPDUkjE+m+fo/Wy7bVkvoEUoi9+tlMOEOzdciZsXrpknws+Fa6dKsyucZU+w4+bmgKFTQUAj4cRxp4aBjvaoqeaqk/61QPyCF4B9itNKW7w== 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=k0sdSqBJWwrJh8J3xzxxEfaqgLcJvz4ECVIUMsAknCw=; b=kvx4QTa16Pqi++Awtda+kibr5XBvRtnHJEeqEnih226yzrG+KdMToqbuK6eSNTyHF/1WdV22po+0GCrgflpQyX/csYSpVSmZahvz4EB8CWHb/4byvnulgaTbsY4k9S57ZJcZmv3/Wb40fCwLfuzwMn0Dg7pxytMyY+Jmkc0iB+FqfVfECZXX2yPtHehkOGBkg5YT96NaMQIYu51vXQxNEknA/37omG99mYts1cbVyQ4cJuU4s7jCWCiPtVlUC+Nb8fXR3nSYWx8AOcdsaAE13rFof4I5qT89E/KJ/2UEjFKfvWebNf9Dif9sxueEfeq5IuZKpGKzv0jn4LWI0JVnLQ== 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=k0sdSqBJWwrJh8J3xzxxEfaqgLcJvz4ECVIUMsAknCw=; b=WKjjog0bDOEXB/szxWMnaT5JUrVfI5RRSyhB3kCE6egi51noXk7lYoELmdhyqifdkVPIOfb0T3hZfct7wHfCoygtR03GkwlAJLE4OEtRU93243CAG4rq5I1HYLBRx8LdzHvWggTukvbC5vYkvRioJg8zQY87CmewNXFG64Z0KNs= 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 AS8PR04MB9192.eurprd04.prod.outlook.com (2603:10a6:20b:44f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.29; Thu, 4 Jul 2024 12:03:05 +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 12:03:05 +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] arm64: dts: s32g: Disable usdhc write-protect Date: Thu, 4 Jul 2024 15:03:00 +0300 Message-ID: <20240704120300.2849264-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AM0PR06CA0118.eurprd06.prod.outlook.com (2603:10a6:208:ab::23) 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_|AS8PR04MB9192:EE_ X-MS-Office365-Filtering-Correlation-Id: c7eb9429-8aa2-4ba9-7c5a-08dc9c2142e5 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|376014|7416014|366016|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?7JobQG7Y1zTr6CcjLbwWzEEBEeUBdyh?= =?utf-8?q?Z4oHzQABipOczRCBmRpcQwm0McneBguB+Tyu6BDEg2rZBKo76uZm00+Qp9BeGoxDt?= =?utf-8?q?BO25dSykaaoUrkKUU7Q/fAFGIzeF/chrYYWtW0iX5XNBPPOHip9n1pb5NKpr2Etz8?= =?utf-8?q?cW7/1opQdSQ0Fy4VbMSmzVupW9H8hiBfvwh/h5gkgJRywvKbSZvtWkkdFaIV4f1Kd?= =?utf-8?q?CWsr5usBbNL60Tem/HTzbQ4+IWSog49R+FUch7NcCiKsr/so/n8K5/ojcK92G2y7c?= =?utf-8?q?wyGeCPtGCXMxWUeLOD8MjAXTY/+9yjmlwMSgfLsB7VyBCpkcaiRUAuFUCShNhFGem?= =?utf-8?q?dpL6mf4Q+sVtKinsnwOoqfPAketg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N37psuqUeqjV4tfBQ4DcS24AgcyRPEZ?= =?utf-8?q?rgaCVOOkhwx3P4eLlcnK40NLln1YJcXtkLS9aIAV5myswW1cP89N3AqIJVI4LAJfz?= =?utf-8?q?PvQkMoPbu6E8?= 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)(376014)(7416014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?S7aa98+IdvfhqXDHLYWUV3ZQqCu2?= =?utf-8?q?EJd4m08tPQBh5BtnQKEMhxW2Lb9f6C7lSs5H7995bdbuS2zUebTasM1orvfbfi0yF?= =?utf-8?q?4KrIbpspb8cS4Rmc6li7qTZDDyb1Y5LxpmX97HT6Mng3txLXW87WDNIgdLAhv4cBp?= =?utf-8?q?l2GUHhThJfizVkQMUe4GirR6zCepIIbad1KztI8M77tUuyS1O5a0eqfqn8nyzE/kL?= =?utf-8?q?qqUtnfzYv5KQu+ZuVxo8+avNX9t/dlFgnsy4y8g3n6KrzRFFg3f7u6tl9X7365p0m?= =?utf-8?q?/uvt0VBDV13Dnw9n/0DdLI9c30TXBS64/iU2UjeMPpDmOZq87zfdwh9iv0q+frdyU?= =?utf-8?q?3TAAn0Untg4fJN/quXpqlFwirDAhHmI+7Ol0RJ/epTY+rdD7TlZJ8vN5s6gfw+ZMC?= =?utf-8?q?kPWEc/5N6yK1MYdsSBL/8Xd2Ev0GH1waAgzdN0luT4k1CbmI5LmOD1vNcDs3JJrjY?= =?utf-8?q?HqSFLlXTI6QA7a++cvJ4NfT8xV6iTBTQ7nty+yGCfixnF54cEbkI2V/GwcWfeq8Rf?= =?utf-8?q?TD53ho0oiNi1xIyMdvTXVJSs8sApY3E5nKRy4kIyv0z7pFyPFg11cMa4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-8?q?JZyG8yIc5bGUVSV18CFXxC50QTa4KSxWnbKsMVoZ/V+ZDwHfcJnBtjyq85dOirwb2?= =?utf-8?q?LlkKbqk40FDaC+wIbzgSX1rhIsOZeAB7kA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7eb9429-8aa2-4ba9-7c5a-08dc9c2142e5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 12:03:05.2788 (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: XuA4Gv+1qdAs0cJQhSXX5SGRryKeK0AKev5dLoZgHd9+Dcdy1oZpXJ/QwDNs2nJ5iyXPBd/lTQgJGGqNMiGUSnFMOXxL9onFM2+Mi8vSG5s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9192 SDHCI controller found on NXP S32G based platforms do not define a pin for SD-Card write protection. 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 --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 1 + arch/arm64/boot/dts/freescale/s32g3.dtsi | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index fc19ae2e8d3b..2ad8cfe964be 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -145,6 +145,7 @@ usdhc0: mmc@402f0000 { clocks = <&clks 32>, <&clks 31>, <&clks 33>; clock-names = "ipg", "ahb", "per"; bus-width = <8>; + disable-wp; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index c1b08992754b..9d38bdc23cff 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright 2021-2023 NXP + * Copyright 2021-2024 NXP * * Authors: Ghennadi Procopciuc * Ciprian Costea @@ -204,6 +204,7 @@ usdhc0: mmc@402f0000 { <&clks 31>, <&clks 33>; clock-names = "ipg", "ahb", "per"; + disable-wp; status = "disabled"; };