From patchwork Mon Sep 30 09:22:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13815705 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 F1176CF649D for ; Mon, 30 Sep 2024 09:15:18 +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:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject: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=u3tBpcwTarJeabAbIf+aX3vaNBLJPXySUxiUY2Yl5m0=; b=VDgsam0m2aLb8/G9vE8ruCH8wn jhPi+pcomQ+X/rCoq7WBfZ5QBisV/IDhl+sdJhkWU+0ApGi478V/PEpxSmXER/aZ1a0jJXvHVWswk 2Hz+jlxUlcYPuBFwr13MSg80YM8VRIekDzoXZEn24jw96y0zyC3Oh9N0QTMLGosSaUUydEvcLhI1C G7gvHo9+Y5odJ2K80OLObTOXpZbJZI3XrnPnuSplix/Etqs1gJt7QPhdLkFEvZFhBh03sis12pg6u thnI7B56lvh6ZAAEmHORZxwmxCs+CN15xWpQQ1t3gfE0K791HImlH+kxyaaNqc2oaiEdfnrRVP9RI qXaYbjSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svCUi-0000000GSe8-0lOy; Mon, 30 Sep 2024 09:15:04 +0000 Received: from mail-vi1eur03on20621.outbound.protection.outlook.com ([2a01:111:f403:260c::621] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svCTV-0000000GSRQ-1Se0; Mon, 30 Sep 2024 09:13:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ScPEb2RAPlFAAuOR5iOuYH7qXzKUVD8Y90D5jqXiX79qaZRae18ALkofKAQyr2Pol+D41cBGJ8W+sucCbC/1c9y2smCSAYkU5sT0VH5WuZ65KJ3xTAAuagg9DNMkdWrBic96rOIOC3HjLl7QDeljD6xlAZf4ODzHPUWMKAuoKiffZh6KRiQ9FI2c3GqsM3gKyP8p/4/1Vc5CcIqGUeBAI3W5zY8qKvsqWVNoQtJtHMcG3G7PyMCu9/VXyOfrgWh+iZoGWh7Z4U9u9LuEM6KpATa+yxhjbayMTy7HO+Gy4R+stTc3TlXAw4mJTLtB0z9uxy0HvemSf/70QSywsdJs1g== 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=u3tBpcwTarJeabAbIf+aX3vaNBLJPXySUxiUY2Yl5m0=; b=FLCMCZwNaMlZ4PrLx4f93+iIZv3OUNCXdLL8W3BR9cx28fPbvf2V5erF08J3WFAeAkDgsMsOMDxYN+v4AggFtJrLt1YSTb+HJzXUnKGSOadnU5hi1LG0DJBfhobPv588RNw6aLgK2pcROdcNiCZ++eKRoD2CfeWTLh8zBqTrcFUt3bQ9HLfdX1oHpxQ438tHyksBLxyekCrak9Ij0EeZqZ51TYbHSo6Ci/JTZj+xuOimSJm3WxjPYX5f0JEFR1ZfkuzAz09l2+6yIFd4DogdtmVXyFhdq+9NMx4o0o0lRoDYM0N+nlMt3t+YchCjpmMgcXHn5CSjSZzUCw/xguQnFg== 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=u3tBpcwTarJeabAbIf+aX3vaNBLJPXySUxiUY2Yl5m0=; b=n62MaAWmzL73qytB+w9JrIb6o5ILyraAl0h2sd6sSxbcW+c/meN1pi4SpeT9syt3jenmQY2F8sDFtl5TAoFEFnULxGZ7wj4fRJ39hvKZ+PjtcDPrBY2pxu/PlkXMQMCQOfVWtIVcn9/BwPCwmEbJikmqbGHw1dMdls0cqnYyBZlaZBhY2516MgGWBPba1KuEZRqH8TukyqFxz9+RLyo/rTRi7ozB9Y9Te2jT5jXhPFqjZWMT3LyzRnMmahwr4nwZ3wVdnRZxZtUkMr+X0jQFmygxG5iCX7RDXL9Nmh/bhr3HnHVTyZICBBHhQiliPGkio6KAUD5VvzqTZpFWFRE73g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by AS5PR04MB9893.eurprd04.prod.outlook.com (2603:10a6:20b:653::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Mon, 30 Sep 2024 09:13:43 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7982.018; Mon, 30 Sep 2024 09:13:43 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/3] spi-nor: add optional vcc-supply and enable it for i.MX93 Date: Mon, 30 Sep 2024 17:22:23 +0800 Message-Id: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> X-B4-Tracking: v=1; b=H4sIAM9t+mYC/1WMQQ7CIBBFr9LMWswwJZK68h6mi4ZO7SwEAobUN Nxd7K7L9/Pf2yFzEs5w73ZIXCRL8A3o0oFbJ/9iJXNjICSDA6HKUVRvqNc8WWNvGtozJl5kOyr PsfEq+RPS94gW/V/PftEK1WAXInTEGt3Db/HqwhvGWusPDbN5spQAAAA= To: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Marco Felsch Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727688153; l=1258; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=PtI8014DMZnYOudcm7pF9CrJZXj1JvHbY7LS+zXVRLE=; b=LVU3VcwsL/KbzN6WbG3qBy4BHZ+6dQbMNLCoECd6puaKU552ZGVBeghTx6qqiQUalHxA/ImFf 437v6rBa44wDAp0prVSMRP6HOHA0aw+lxFsIYOJ2quLmoy5EGg4Ld88 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|AS5PR04MB9893:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fdc1d84-75ba-44bf-7f99-08dce1302e54 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|52116014|7416014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5NBGgL4u3Lxx/9Jbd+ocPe4fCBrOf2x?= =?utf-8?q?m9FkP7qO46HffkZT5I316nWqQBFwaUSVqP0pEloCmEO+7iVTz8hz0PJwWOQrXe6cR?= =?utf-8?q?bw+e0m2GMl5We0hEcLvTzaQFRjkIgzF4tgxXdYoTb74EKvH/aCpTya/TpMiH1xS5a?= =?utf-8?q?Sdz5iH5AvFR5Enp9skqdwY12RskGE+gG82AoIocoddCfl4npv5E9b6HvAGEb9eZ31?= =?utf-8?q?O0G2PpjCqxynsA/UzTp5JF58J8cJ41XCOiyYFjR/1gyVoxX8x3k889Cq7i58trvGc?= =?utf-8?q?vcdTklFSAvTj3w0/EFsUmVCOyWCHV8N1TEMHy4+FSBDEpjY2r5zcTKxUdN5B5y/r6?= =?utf-8?q?snqp7AMlFWOj8YiH/v+DE5vBBxCkyHUIPp67I6lq2BvLtciB9GLo8B4zBPlUko73n?= =?utf-8?q?D0/der62obwnnqiv26ohtKPEP3CkK03Hu1ESR9UxFQHQbqxbyyFJcz70DMlqofLLr?= =?utf-8?q?i0Op/aPoRPzHONwBXptOYq4Og9qWsIkCGKnYDDrTXbRLcwbwB33281brecr0XIIoa?= =?utf-8?q?uWVnk8FinTY1sFsFqgiB2kGwP8QAdhphspN1QPKNHdeh9G5a8/0tzJJGqtk1Vr8sD?= =?utf-8?q?d7ad+l7iOve4cFd4zRRdvl6vgCBtmeoeyDQGWFqGGvfBr0BlPlqDoMBJpodE8wxTi?= =?utf-8?q?r2u316R0Ck4ombzXwmBCOBwWOHG5q0alysPLRR685RJ2Cw09SZS1rGdw+WpO1/rQe?= =?utf-8?q?QQo77yxmryaNv5cMM0bRGTy7x9qcVLGYsC8317bQ7VZ+2cklGqjdVbRGYv9v2r8lp?= =?utf-8?q?VKwwHkDQLyR+jnqeyBNtCJgeWH/PawFsgCBO7Wv0A91/kEnnV2IgRuWAVQc868oIf?= =?utf-8?q?nVVBZPw92P4sXMLRr26DDbM5zxcyQOqTylmCQQk7f1o5Su+msl4cmL8YtwwFnnz69?= =?utf-8?q?MipbHvOBamUJf2bLuE1/nmQX0sA4JZOEhkwjLTGvnoYxGfKwG0HUdqlEkJk7lkuGY?= =?utf-8?q?iOoANSfIFLhKACHnZ9tJZOduLGJC5eFcUXGcB3McvAb+SdghJcbasZ+SM6yeylQ+g?= =?utf-8?q?lgeRVfT8z1OI/hC6/F6A4BkAxTmQr3UvrrOJ9c5kr7Uf1f3kNus0Cj4OM8bjQBo3L?= =?utf-8?q?hPyA/9Pm3Icr9CLLRafASJ+NWat9nDIGQgffhUA4uXMaNqFW+29tvm3gIoCcw8eFD?= =?utf-8?q?lt8D0EZlQvBDa6BsCIT5zjdEpBBdMgb2sbCu1Ay3DIbipjk2F048XacBehoxy8Jij?= =?utf-8?q?zqus0lj6iGMGtxRQGx12gEZofDg2SmkfuV+p//lANyovwOlfjm4wpiuccuYn1yScL?= =?utf-8?q?wKsOeHFmTHdFNh3f4MuOKSNue978cMvXwsJyJfBV+MSKMtqQ5n1iS3Xw=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(7416014)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TSFa5E3kK6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4tPbYsZuVoe3?= =?utf-8?q?iUJpgb2/rzLq4ghGcTsmS2uC5/2+5HfqooLYTyOvtY64qQQn2F/osk3EyvlzuDqBP?= =?utf-8?q?gm6MIfSz+vGFMWcc1PIIrtx1MAvdGsKIpjiEKqMbxrj86ME65BQbX87XBQOP5PTZ6?= =?utf-8?q?TdzJbMiurw2TtAkKyLmc9sRrvRCHnO6qK9U8ejD4eaacWuVUAEL3D79FvzCCdBO92?= =?utf-8?q?qwYYvIpKQ6X+Vll/dqqeftfIgYOZOU2hWU35AxQ8HWzmUKGK5kn+B+evn4Atwirza?= =?utf-8?q?k3YJdlNixKhgZoFCsuOjXAuuL0IKnWvgMAxlXQEHp1D+WlfyGhDtpJE6fxqXCfsr8?= =?utf-8?q?yXN15kVuw7BW/tup2IRbvqd7L44DIHA/U2RGTq20RMUkU0gg7WrY64JxlXrsC3da3?= =?utf-8?q?zSRmzI3t2351hkk+scDcmxhdhbhQFyCRSpKUiPk4m8j6OvLfts63+FsC1l8a3MpFE?= =?utf-8?q?vhZNcY+v3KtubMKXs8o+tW2IWwFCT0pGRlE4krjxUtpr0BFNoRYaHivAxzYvThIFY?= =?utf-8?q?/Fdu9CWqDR7ph539d3YJaBfPWABin8lDdCAHp32KOgnpxKHzyI+nkK3Hqn2I3QjdP?= =?utf-8?q?hYUVbKRYQ70BHVSOsbHDcJc8MV6HSCvvxWmkDpmumHSTrkkxfpD0c5tcDr0e0oXKm?= =?utf-8?q?f0TYo0EpuQ5+?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fdc1d84-75ba-44bf-7f99-08dce1302e54 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 09:13:43.4082 (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: UKRJ7+69z5lnDoAsSlX5dF5PbgutHXyk/y91pPcBgOnfgR3eBjZmmCgOcLdV45P6eIxhdb6JJL6l96pH3R9GIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_021349_426826_D739EB57 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. 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 spi-nor flash needs power supply to work properly, the power supply could be software controlled. So need enable the power before using the flash. Patch 1,2 is to add vcc-supply for spi-nor Patch 3 is to add overlays for i.MX93-11x11-EVK Signed-off-by: Peng Fan --- Changes in v2: - Add A-b for patch 1, typo in patch 1 - Use devm_regulator_get_enable in patch 2 I still keep it in spi_nor_scan because it is in probe stage. - Link to v1: https://lore.kernel.org/r/20240920-spi-v1-0-97f220c2e10c@nxp.com --- Peng Fan (3): dt-bindings: mtd: jedec,spi-nor: add optional vcc-supply mtd: spi-nor: support vcc-supply regulator arm64: dts: imx93-11x11-evk: add overlays for flexspi flash .../devicetree/bindings/mtd/jedec,spi-nor.yaml | 4 ++ arch/arm64/boot/dts/freescale/Makefile | 3 ++ .../dts/freescale/imx93-11x11-evk-flexspi-m2.dtso | 59 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 10 ++++ drivers/mtd/spi-nor/core.c | 5 ++ 5 files changed, 81 insertions(+) --- base-commit: 1dfc4eba4ed353d2c6b26acc0f3518d3eecf28c3 change-id: 20240920-spi-34231ea74761 Best regards,