From patchwork Mon Sep 30 09:22:24 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: 13815706 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 F04B1CF6497 for ; Mon, 30 Sep 2024 09:17:46 +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: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ClwKpgBOVfl87Lhi+w5cm4Qn7yAezK3XX/iyO5BkGTg=; b=qgzpevVBRnQqDVHAqJjTC5jE4A u/5r4JEaMp+6WOeeWwL867iMAAPTcP89v4rhSfmfvZ1LbIuJvr4QcspnmOIJLyqTtlrtd6iCESjx2 8MhLzWMuHcrAkLuOM/3JIb3lIbTuxIxMPwNowBRUG3189qCknhFffbURcSF85tBfcW7OD74+dQ+Nt v8yJiquAWWcFhFuyfBIReZYwljAyGBxhGDlBWIuLj9avvqNjGHeT2l1mZshrdj/UQSkaz8PZbzPpD tO/EolX2yH7RMEeKtVvYjGjrpMYyc7diYRNKRaH1DM8hhKbqT10vUeA3br6csb7BL0I7WcCeFjOPt IqK6pkYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svCX8-0000000GTZu-1Ubq; Mon, 30 Sep 2024 09:17:34 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svCTh-0000000GSUd-3aL4; Mon, 30 Sep 2024 09:14:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nri9Pu1QZ0xKkVs0KtKqbp3qgyVt96ejWeUNQMUBu5eRCk4LMjjLorxlbiYSbGbgZ3KgY6747gN+/PCDwMSk2ENccl+J0Yb/BZYVc5G5fZrFWeNou06Syx7TJB62NYqBU22hQcxVXS+Jc4WFc+EXePfFLb4C9IiDegIcYKnRfYDVoYh6plCHjqXEQluqFlS5atom7nt2oJ91uPj7x/tOmCKNOoAVjiZ3wYrcAZdDV3Yf+g7LnqBV1HsZNc5Jg17IzV8LcVWqXwKOFw+pR81IgKuieueGOLjAcXawjQdslM8M/SoBCGPTO47F84kE3qWm1/OF3elnYsUUEaquGCGCpQ== 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=ClwKpgBOVfl87Lhi+w5cm4Qn7yAezK3XX/iyO5BkGTg=; b=LSmHq4yFMxA7LHNikAXQ5CluR2bNV4iPLi7NmD/TVk5yLFM7iBD0NbiIqtkhXpWnaliUlQ06ZoV9C+QSCsMnYktqIsfPGCr/0nfOpZHXLZH3raG0vxn0UJBOwsrnOQy95sLn82i0qrBRi8fhsZCD3WHp8gE3ixtH2Bxw5v64AYGwEFG9a0Y93kBqo03iUBbV83CXtnRaqBfG/7Wr8C5fcgIThAW8z/ytGNwEwHulwgXNnzIZxaHpPVyMoQQXtINGYl49620xh1mjD54YknBxRtgm/ziizAjNZOq+a+brS35gVP7Eouff0i7IXNGIdbi5yCLfPAqNx7Y8UgVm3VOrqQ== 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=ClwKpgBOVfl87Lhi+w5cm4Qn7yAezK3XX/iyO5BkGTg=; b=AoByEE1yw3Ti5Gqb1azjG0bu68vfBBXGMWH3zQWZhPUFpW4uCz05aFpI8z4V9WM1aUjHnuqbedkIb6DTs+sdEIf8rc4jZIg10xBMqaH9boY2vvLwGiUKI2QvcRwkWrfLwVpsRzX+7a8XiLxCNxxhzHAl/FULZ8WXpSfQyqsXAy14ebmkw8ZfZZ1W6CJcnmZ87iHsGbuvxBgv1TXuaoje2QYV+lL7+4HPSkke3rxggEk0J86xvQah1+0o/51PEjqyV1EqIBKrCXBgTJXhgh2ueZseBr+5Qa8+F5IiBrO+dKsvym77q30F1DB6/fTHH6Fr7naHdQ2SKDSvdU/WM2biwA== 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 AS8PR04MB9173.eurprd04.prod.outlook.com (2603:10a6:20b:448::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Mon, 30 Sep 2024 09:13:49 +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:49 +0000 From: "Peng Fan (OSS)" Date: Mon, 30 Sep 2024 17:22:24 +0800 Subject: [PATCH v2 1/3] dt-bindings: mtd: jedec,spi-nor: add optional vcc-supply Message-Id: <20240930-spi-v2-1-ed7f6bcbe0df@nxp.com> References: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> In-Reply-To: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> 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=933; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=KCwcdIzFjSB6OYMltfMvwaZ7bZQHSPTg+5JWl0oJQoA=; b=dy3pION3h1kxIVo/g6mzdp9VXckxpbdN0L42pwwN8+Gb1v5yUPLA3yQWtbAKKRL9QnkDhukwa Intim+KGbOQAUUdZgQ+7qwy4zvQKSFn7UsMGv+FdeU6xFPLb0uCxR7F 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_|AS8PR04MB9173:EE_ X-MS-Office365-Filtering-Correlation-Id: 96039ac3-07ed-42d3-c7c3-08dce13031ce 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|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?3R8glv9FPGtt/HUlfDJsO8DL5QiEDFZ?= =?utf-8?q?jGJpJJRG1CX8Eup0PJ55mP08b9A/ZhRyZuXa649owDSQ6ZZHGtBulzZ+6soBTJcBh?= =?utf-8?q?6b3+sYjaBnsSmuc4jkVkRq61/Q9BfB245xfch6Abeq4+qIIwZ7yFEXT3aBmw08nB6?= =?utf-8?q?vtwpHvw4hY/FyEZ3yswwz/TDhdQ+XbfswPvP9pkoJUC+PzQLfv1BQnrLWjCWcUf0f?= =?utf-8?q?qCEHqD8AJG2FQgxffnp2ooBVhVW8/h2MQaya7eIsti+ZCDJyIxla9x6sG8wS/A7Us?= =?utf-8?q?vlzNZY/+5cs2rpXRkoGw2D+mXCe3UpAO5eHoOUlr83JwSPOVOCXQE8NePbfNa1KFp?= =?utf-8?q?jKJE3gngPIklAloD9FELECP+2T1Jwcrs8tC/9o0WXGrFh4WkL2kB/BUolK0yTMW7L?= =?utf-8?q?mO2MyflKHnGPj7nPAHaCnZ9yg/82mlzfzIbelm1Xbei2lXQpMNYvARRUywB/JmCgE?= =?utf-8?q?9fU8cfB25hMMjgSWexpJGhNI1usVzB48+wj0IU7LfiDPUOab+WVWIVnAl9TJ5yV1Q?= =?utf-8?q?Jb8O2UABM2vYYdSmUbMCEhLnmsGVxDLOGLWpMyEzuM3qfCFvTNqD3eCObm3rZ+dcg?= =?utf-8?q?SyfEO0++e2/DGl/XVWSJvaQpuXhwJapQOkuczxb5IdVWyrAdpuFmfKgHqtpHuqCD7?= =?utf-8?q?8gZnzWxqmDFXLsCn0eYRggi+9LrqIrTU04GSm08sMD8GbiR7ZYrW9iV0k8cUiclac?= =?utf-8?q?HR8pqr7wWM40YJWOODV1Xln8GKVygFi1eyHUYMyt0MU8quDZCwsbkppMt3+Kp1l3s?= =?utf-8?q?uGoPvOpcJ1YXqJwYv7tF96czvBBEAWjFhNbMnKQbTCWElEXprmgY8vIz1MpLINtdL?= =?utf-8?q?DDWz+aIDYlhzj3qK53928LhKaZ3RfNgVUlWeISjkGSfw8hOiwFfN2shS5XXWGKfyU?= =?utf-8?q?38YW8cMAkezfoJhA7eq4my1C+Kd1VTxTuT76ie151/DIavRsku1clqzAsjub1QjSf?= =?utf-8?q?mwDrYZzc8ZuN/LdsTzvfQH+cbTCHMpvmukF4Yni7LTfe/sZy2Kprx0gDRacLVQXb2?= =?utf-8?q?woXvQ4O7CxHuK4q8+OYj/HNhZjDMZlxNnkgjBnDQtO1YSlD50ShiwyJfLPtUN4rMd?= =?utf-8?q?0oP52FYDlWR2CA0ZmDk8VjQlohokEPwH3TjmWZuZjYACB0GIpy2N84DQu/7mt6bBS?= =?utf-8?q?L7yhHJaNb0G0jBzc3UG/Se/kZ3zHS+DxWvLZXTQR5dHcjkkVd3R8Ou+8/QTIxY8WY?= =?utf-8?q?hL6DjNuVnaiAwU1d2dKtb68IY2quFCqEAPFo/rGo1C4Low1IWmJZbt2eN11kLnsMA?= =?utf-8?q?780q3f3xsLjTtpM7M8zO195E8uLLp9ywJykMKY7BwNYvyduDDDHmbDPXl0p0MtH0o?= =?utf-8?q?h1IWjwhwQnOKrgo314y4L8/k+LCrmSydXBCDJmRXn6T2aoXPo1EQDXA=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)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xlHFJtOy6AiPsluZKGDpUjJHQoL2?= =?utf-8?q?fNC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+bRg8qowQRAF2KbrtetRFtdiK7fS5GlYf7Ghc0IRESQ8jHfz2Ki6r4+g?= =?utf-8?q?yaE0DZArJfojmbs/YRvqvxfJ080ofMafYyaEw0mmNsP6vSts9yWtVACf0lgdD7BhH?= =?utf-8?q?QBw+WQNdYV/5iHnkierCxA4clTIJiExaDS1mLNQ1Y1UqflpT3/aZdf4PraXNsTrPt?= =?utf-8?q?/iDFR5MOSkK3yo17WBOt2z0dYNZ0eZtgCgcN8cV9P3ZbYWPD5iw5l4BT7QQISyxWI?= =?utf-8?q?1k+tAZ6B2RdvjY+pkoZGajVNKqWkt1mcMRwNmC4A3dmFWBBWcb9BU/5gOtoKawwX1?= =?utf-8?q?2qvF/YTeeM3Anqsy4UyWidjMbTDPiT3baDF6+1S41IktfX7a1GA/5MDTChZ3pmxP9?= =?utf-8?q?xtYW88PszWix9HqctzRDImvhVLu9j3aL0jpij4anSCaf9fXpG6MvnscY48SVRgPaQ?= =?utf-8?q?jKwr+wy3fcEs7ZhWQILGd2vRl0H7bKIRxSWMSrdKBUI5YBJqMh4ZFd/YZBYyNHXif?= =?utf-8?q?tGtC+yZRjn1n3PYFrV2Xmmkw4pqLe1rpPbG69Q1qhr7Fp95UZ6gL8F9PWmWDw+53p?= =?utf-8?q?SvaPxJACmdQpXXxZNDKeQsL5fydMSs2/IxVm06uU5ynVBLxJ/iyoS7hrN5YG2PajN?= =?utf-8?q?CsFTWZH1JfD4?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96039ac3-07ed-42d3-c7c3-08dce13031ce 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:49.1823 (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: oOUeTxTDOMCJBvY8eSY7v8WPBNUrf9FLovu6DvKzlBdmNf5pjlVOt7aUyXgQdLgZbL9p1xdhtd9tVGRHWr6DIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9173 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_021401_936759_D557621C X-CRM114-Status: UNSURE ( 8.27 ) 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 From: Peng Fan Introduce optional vcc-supply property, SPI NOR flashes needs power supply to work properly. The power supply maybe software controlable per board design. Acked-by: Rob Herring (Arm) Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml index 6e3afb42926e..bab0617a51d5 100644 --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml @@ -96,6 +96,10 @@ properties: If "broken-flash-reset" is present then having this property does not make any difference. + vcc-supply: + description: + Supply for the spi nor power. + spi-cpol: true spi-cpha: true From patchwork Mon Sep 30 09:22:25 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: 13815725 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 6273ACF649D for ; Mon, 30 Sep 2024 09:20:14 +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: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WJxXxrlHpwX/Eu/ZiLTbL4cMsexhdhsIJLEthRe+9nA=; b=ImU8f8zWlu0NgEJltWLtFYyG4s XuFAn1l9UiT2H2qejnZayKhC75PbJZ106lkVxk/G9mdDpYq2w38xsMl/z+KZJ+D3ltfhnLAawSlnk Fa1Cvs6dWr+Vi2U0WSC6LSPE8ulorMfTzMTsH93AOmsfvfoHieb0uQLMMvJfGECiTnckxNvt9gfdx y2ccp1kn4CuJURyD7GTa3ApgrOp7kSw83xBQwmQSDm5SArv4GbsY4I0ioZSDE4u79XofxDOwh0HXO 2bWX52rJnnzJBEQf787SpPbUkJ4c/AKMYLNnjMrpX8BzHdyBM2KgY4mjlhHDqkH5jVZLF1q6RENYz zmrBczUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svCZW-0000000GUCa-0zJs; Mon, 30 Sep 2024 09:20:02 +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.98 #2 (Red Hat Linux)) id 1svCTs-0000000GSVL-0SPj; Mon, 30 Sep 2024 09:14:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K/S5084/Vw77jFCBdFXjFPcefuZcc94uXKtSDlXtboh1fXWyDvq2Tpw+yIOUmafVPK57+RIO+4h/hq3Dj0kea1kzSD9cLSfGyBxb7n3t4q2Rl8UUH9psgJ2zo+p9ZedhFkT7ztew1ylHUsuKdBSRcXPrZH6uzGmJ1K5aH+lQL/HExOD/69+tRQQGfrQmJ+LyS2OHU9fXyOdcIO5Nwl37as6iKEGkF6cCGJkCTK+3mozFknmIY82/xqteLzuDs84Z57GabnPEhJMObDkwBWQOXWukgle7lmGkatjLn+v69ihGZef7HMxAfWXx0wIKyv6k30A8uKtt6C/+dCCIkaOdVA== 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=WJxXxrlHpwX/Eu/ZiLTbL4cMsexhdhsIJLEthRe+9nA=; b=g6M+a8hxCRH5/PuLe01eYEHCEvnoctncSTbLNWIwQprnsfWMOP12Y0xtXL1Z9m2wWpsZSD5dB0t2e6bBo/Ct0/aA/sKI+/oaKifxVGDqr6OhvIgWEsB2Uf7SvAO4IBbaKxNoNG+DFtq6OoUBeMd6VFx4kaz96tI3IRMGIHdZGVejLFww0hpJLmFE7HDZ6tXqqrR0Kk75TALgKvHObBdYgy2y5LJR3NPkhwh3AWXPOpP1YLbFhiGSqrBtcC/I7v1g8CX3a1iXSeQ9vTs2DiCneOg26h1hdXmtvntAaGtcyE3lm2gfjkWXFiaL01nwKbJQbf5hRJSBn2Fkao1ZTB6J1A== 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=WJxXxrlHpwX/Eu/ZiLTbL4cMsexhdhsIJLEthRe+9nA=; b=lz7JRPybhoRcrpZAK7Jz8X5SzmJKuOka2tk7l1gCViHiglusFqBpQZSH5ObNaRtmF/jBDWclF84IFcCb1xuxHJIZMRWD4zhvbTmwxXhYJwFalg3Z85HxitfSUKKA1wT8Ve4BXCFjzJYOvPiiftnZrpo1SZ+pryf/1Ai17DQ+JAEGs+EM8RbQCXFVeDO+Q/8FJgpzAJshQOF58AT71bpwqG4oPOGMzmohqcBo3OXu4fPN7sDBLbpuWgxTMhlHplBgyQsCnMXl7lGMNaeCT74ThUorHv91HdIojx/Y4s0sGfwwTOcwbimHg00f/CXZUmZkVQ3j5Fu5fgqYyZxDM3da2w== 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 AS8PR04MB9173.eurprd04.prod.outlook.com (2603:10a6:20b:448::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Mon, 30 Sep 2024 09:13:54 +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:54 +0000 From: "Peng Fan (OSS)" Date: Mon, 30 Sep 2024 17:22:25 +0800 Subject: [PATCH v2 2/3] mtd: spi-nor: support vcc-supply regulator Message-Id: <20240930-spi-v2-2-ed7f6bcbe0df@nxp.com> References: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> In-Reply-To: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> 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=996; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=dVCNuxQH9oNdFfF5MUkgWc3vVRweKipeFuo1LvEXrzs=; b=bR8UGuXmbJo6ucaUTXB5Ri2jK2TqHJcrvfJ9PkDVOqmld5U412wSFY53kUJtRMMKgp5QG7b6q ZtCmBHxRbl5DH/BZKc5Ix8KbdxI1LWSf2q4aAq2Rb9ctQGoPvqMVOCS 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_|AS8PR04MB9173:EE_ X-MS-Office365-Filtering-Correlation-Id: f755ef97-398c-4c49-5778-08dce13034fe 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|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?l2+eiSSDXaZa65YtMMFwX5TT4dtmjgD?= =?utf-8?q?qL5ssn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NXuOUt9RcWyJ4Khhtdz9DLIv1j5G6MgZgiR7tQLRvaOIUWbDUL9udGd?= =?utf-8?q?O2M8M58LSEwKT6dC1j/kAfz5ht3JDkxJ5E9gqzVGCxDHWPSQrs8OSKJf1UfAeFrZF?= =?utf-8?q?xeCNfZl3S/Rm055CqjVsj8+aYYbrblYExocK0r/sWf/S4IU2TBapZU8uFVxJYAr9O?= =?utf-8?q?CA3Pv2CKEOUEjwgeQ9VobqjBvSkx0+WCIPwO6B6GmfS0biCsrIzZBjEedVsD3WJux?= =?utf-8?q?igbNzh5+WJ9MFx+d72/mFJcM4dMo+07cJMRg1F06XT4DVDsco62XOwXP7zzNRzTch?= =?utf-8?q?LCoZj/J1EIhfOPPo7Z/lRGD6iFHsytxZr/D4mP9XPMseedoYqcV3LjIZzA/5K4sgS?= =?utf-8?q?nL3sDnFTQktCMwRHYTCLWSj3+t64pxeKOVMg7H7mIVPbirztwgsA1GukFwIC8AfZH?= =?utf-8?q?e6onyIxZGBW8scslLtM6KIWI192OGzjEVkwW+ybcwLEmSiaxHQRjohA=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)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?IV3WY3xXjG934fsXlAp/8YZyLA3s?= =?utf-8?q?9BmSr3WUtQNLBLJHJu0/TeUM4q9Xx0UfjpDEiQyL9ljx4gQ72DyYhORB1KX5mOCCK?= =?utf-8?q?buahqcTnCC0ZV8xnStmi1ZtsBbcuClD9mrouKVWcVgJleATwW2C6wlTQR4wHBKQwX?= =?utf-8?q?ZvvlXVeH7vqQmQWSG1G49913EQpcYD6UIk5fBIIsr2QqgKrOIVNFFY/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wR5nkxnoEvcI2FScX8K/nCOzKpDCi8ccfF7/1D0oxtk8/jIn47yKSUcvuN/6Ftwb3?= =?utf-8?q?5Hz0qY6WsNJsIOCpi4+48Xm4em6Q+KkGbV0iYJr1jkmQEkrL/6AD5rVN/DglxoZQe?= =?utf-8?q?vFg9MGA0urZJDLaZN/7/KVLSGczYHxePOAvkJQZha/5FQbZLZiYim0C+5LTg8/l1S?= =?utf-8?q?FXf6dYdAaeS12CBzsF7gie9li8xypD/OAdssrFOjhl7feXL8cbpznqJPKFP8gwJmX?= =?utf-8?q?foJw8MszJUzMQ01nyIW+qvH6j//YTlGNarq4XcGy04BztwSuTLZZEvpnf3XIxhiuy?= =?utf-8?q?lQSRc3ZnhWdEtoECozgu6gjQl2wgVY7iyOLsmMqrJ+6wEMsnGc1DqR11mPc9J8wZm?= =?utf-8?q?bsXuw1BLErCc7tSFdk7UR/5jRuWfT9qvnRE56rCy8kOPq5O2qAHt+ynJjKBtl4Y6u?= =?utf-8?q?gCOkRo5TLSUR?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f755ef97-398c-4c49-5778-08dce13034fe 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:54.4931 (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: jxK/NdDT5iH+5A1ApJGD4Rm/dmIuVSayVJVIgbfj4k7ZpylebPDk1mK3JzQkL7UtadW+fCby0/nT1ZIydHe97w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9173 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_021412_193609_5AEB5898 X-CRM114-Status: GOOD ( 10.40 ) 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: Peng Fan SPI NOR flashes needs power supply to work properly. The power supply maybe software controllable per board design. So add the support for an vcc-supply regulator. Signed-off-by: Peng Fan --- drivers/mtd/spi-nor/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 9d6e85bf227b..5249c8b13916 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -3462,6 +3463,10 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, if (!nor->bouncebuf) return -ENOMEM; + ret = devm_regulator_get_enable(dev, "vcc"); + if (ret) + return ret; + ret = spi_nor_hw_reset(nor); if (ret) return ret; From patchwork Mon Sep 30 09:22:26 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: 13815707 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 24C42CF6497 for ; Mon, 30 Sep 2024 09:18:57 +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: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MboKSzgGk6AJ901e0vhMqshKxikNQu03vaA4EA+qlj0=; b=xJsALfvHLWk/67EVVP7tCwB4Dl UIJ4x4B7jsqiH4WE0TNbIA9UoL7NqNNgrtWyLpAcI24qmJJdBgwvJsFwWbOS+p8RygrEs1rg4xZlu aGBpGPynA33rJ4PNi8KWNPmahN/KjfXAK7nUXRGw3tGZUF1iIiGZ4dJdRpE4CrQq227cFfMuwxRjU WAiH+b+w04tfDHzHG8P8E2p3cKp5/vAWeejL99xTw1cuyZHCckn5LRieiRLVAORhx/n1l2wW/KMIZ 0wlldYXngDIkHDexk416o1+RrwN+F2c9x6vyoGGhUCJAOLePpqsH5riiVOi1fN2QM7M5CvAy4mov6 WA975Xeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svCYK-0000000GTvy-22og; Mon, 30 Sep 2024 09:18:48 +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.98 #2 (Red Hat Linux)) id 1svCTq-0000000GSVL-1gLV; Mon, 30 Sep 2024 09:14:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sFe9Mfz0MMnzfmhgrSe50ZNNa32RCmvQAMF0D5RoaFWbknamF03evtHM1bfbioTh//6A2HJZvl5H1/Uidhaq22IFyCP7tdiJ1kGK7aU8JyzSC8xrFyX2njPwbVzuRJ/Eq44s1pFcIfISr7G9jJ0CpnmUVl+0IdEahuMTUGofys6S0bSB73GpOQsXvOK4xJ5X8MRNn6oxdfR/FoWWWMmOe8DE/Mi6QKjPUWNLm36g68A5P047ps7b6zNevK6xeZP1tYk5xtbQBY4LquNgoN/WqayC32Fr3QuKEmfzv18bI4zCsoy29MIaGVFG+7EUfUBk5h0bCidjkUyqB6QDiSJ1LA== 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=MboKSzgGk6AJ901e0vhMqshKxikNQu03vaA4EA+qlj0=; b=wF5xumEkaayOMu5xZWWF5ur/dc0jVfrMxPkydLX2krjqw9Cp8xf42AyyVB0oQvf3wTMB0V7QOXNpI4U6T+m3HOMYGKguuQkTZlyv4JiSzhfOO62MjaQ2/CFpkJ7hjbiw6uCeie7Iitdsr/i5T5543NUsZ4mElsW8kJFEAfirAzkY2uJ+CmXdAz6pk0RZL3zG2zzb3e8xmLYn9Qz8lvMJ+BZ+FKuTG1xSa4rfv4bhqKuzQw0/hpjocS+t0erv2vvGp/uZh7WZQc76KMZ092Siiu8c5w1EzgD3tgYjY13p3rFpwRiDJWEFuBZJ/ebg2NsxoyCtM12RkeXcUnFoNAEwsA== 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=MboKSzgGk6AJ901e0vhMqshKxikNQu03vaA4EA+qlj0=; b=otHwHU16+iv8z1AlefpY26WRVMKnOhBCXCZh9kvCK1cU1EKw78887o1xCXmyD7OZNrlvNt8hA44g0mbMXkwWvHN+vTsjh+beu7Mb3mww0Off+jfqazw7u9hqEDS4QcraBcQKkTg2HGx0IrKOrwsyx1dD8Em9Qe7CuYnoPraZoSD2eWDagJcwuSV94B78S37UZ31QBkjn+hMvSBQZ66CyC5r7nfuKXXDnhoqEL0uxNA5WfXuqvtAHr1bZ18On/HbRu3qTmMYgNB7b+F+W96y+hvX1BKeUyXF6fWLxdeRWwIMZWaL5I2odb+cwDBFR83OlM20xwFyBot9/SzDlFpR6KA== 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 AS8PR04MB9173.eurprd04.prod.outlook.com (2603:10a6:20b:448::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Mon, 30 Sep 2024 09:14:00 +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:14:00 +0000 From: "Peng Fan (OSS)" Date: Mon, 30 Sep 2024 17:22:26 +0800 Subject: [PATCH v2 3/3] arm64: dts: imx93-11x11-evk: add overlays for flexspi flash Message-Id: <20240930-spi-v2-3-ed7f6bcbe0df@nxp.com> References: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> In-Reply-To: <20240930-spi-v2-0-ed7f6bcbe0df@nxp.com> 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=4277; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=ZqvguUiQsUfx/RBcd1BVPDtrroCvCtLF7yJnubT2Mz4=; b=NrByZ6zIMtBFwZOJI+jpgueiNSa6/G9WOd/uvB3spSsVdpKYHvCz1H9h3qH/1INWOhxVW6wXc Kv8paa9YRhlCZPAtySrnsSLYDu/4k7NttoafUKXON/NXgmEF5neuy+T 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_|AS8PR04MB9173:EE_ X-MS-Office365-Filtering-Correlation-Id: b3c29497-0f23-43e3-683e-08dce130386a 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|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?T6w0ChrNhUGHLDLc/wKJ9hci2Oo36Me?= =?utf-8?q?5P0FovEdjqHu0uIio/KbeC1/mnwib++WtvgsMzM1uJEdAvtDXMXoGOoNZUYt3LBp+?= =?utf-8?q?jfEA7u8AU6dWMcjkJ2Nwk/eNXhLd85CG1N6xVFMbtFT+KGA7FoNhCNSkyn7c7Rzc3?= =?utf-8?q?G23mdzGnIy6PqkzsxiVgcoIGPiezYwOF+OTDyAlkLIBdV2esHYpks5t0TcTS9IdrN?= =?utf-8?q?es+ssOxIlfLX7htzN2VKYpXSyXaQE5mPRhE7EpWWlA+hJK7jw9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nyQkLRe+pdHk8H?= =?utf-8?q?0rtBZxRWrvDPRic3j6uWylmV8WjTi+8JvAh4qbqzywle3BtL+RJWrTIztEvVAwyuc?= =?utf-8?q?ljYEE9xpVLAxCI12cm82OLmQRJSjAtMDzy4/13u0v0hz4eVL6hCaO62edhyL5S1cd?= =?utf-8?q?XsxtWOIIWOgLrgSXsMne5mGd7EYI85m0FIGTqCxX49lM48EUaTvoW5eLNNo8QkQ5m?= =?utf-8?q?vLOWT0mTk61fciHS7X0GC/TtmHilgETYw0LDTWQP0qZ0I3+yWXG/y90=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)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?C8R+HuD44cNJnWea27WkpcyEj0oU?= =?utf-8?q?8zufq6G4XM2qsPEmCS7yKFLD8dPLRrvFt4Q7gecw1tWSOtGMJ7kBMsXNMMbCp8Mne?= =?utf-8?q?wxGiuU0gdGextZXA5O2hfsMsqi5r6o7JasVkMfjhAmQG9QEd3mefqLOM4OaBE6BL2?= =?utf-8?q?M3nkj0fhRp5j995i9E5mb0sh8N31tnvMrtYXl4lbFR/3KZu7gcDFqAKT5i4z48OdB?= =?utf-8?q?5+a3IrKZZMG27SXbqiD1tRktJ8Jph1+NwJGyCVzCuFneb+EVUxMevboJTpZcHrbxT?= =?utf-8?q?qyc/wSp5ZCrU7Cl3JPJyLZE4FkeHX/HzZTWSTg+8bucyMzxqkmmjsufFRXEzQY7lS?= =?utf-8?q?ioZvnOl4oPkN5alfSIRmyY/sNY0TiBaqaRX5QhEaUY9cigBW+CpQ8YJbRQlDP9tTL?= =?utf-8?q?nu3ZdnrWJcoH66QAPD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S9A1DWYXOkqzueg6kidYWBSJn2afl8qCp3HSKd?= =?utf-8?q?u3sTNKWcu0SBqsq3V8gcPoG0JHHmO9YKdgqYg8+7+nzf0vgGDBMFJVOxdJ2pl8nQO?= =?utf-8?q?B0Mhh8IVlfwHvoxCGm/taDBhwAjmy4XQoNiuYMoIYop4vP3nRcv8pGWu4ZZnanqP9?= =?utf-8?q?KntrsUSA/aF7+OW3TCtarq11C/xsbjhW3ax10lBiR9ZwBa0FaQZnCcBF0pOHh1A14?= =?utf-8?q?DelO6V/i+7EK?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3c29497-0f23-43e3-683e-08dce130386a 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:14:00.2677 (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: aIS7jODKp8D6VpLlTDTINRFEQGTIGqc4bt5A5dbVJxFeq9h7eisrXTXqkPwvysW7P2uwD58wimUXW9tORr9T3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9173 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_021410_641740_D04E4170 X-CRM114-Status: GOOD ( 12.99 ) 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: Peng Fan Add overlays for the flexspi flash connected using M.2 interface. The M.2 interface could be connected with M.2 flash card. The M.2 interface needs PCIE power to work properly, the flash card needs 1.8V voltage to work properly. Signed-off-by: Peng Fan --- 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 ++++ 3 files changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 9d3df8b218a2..8f82aae85fe0 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -241,6 +241,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-tqma8xqp-mba8xx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-9x9-qsb.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk-flexspi-m2.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-14x14-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-kontron-bl-osm-s.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin.dtb @@ -249,6 +250,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk.dtb +imx93-11x11-evk-flexspi-m2-dtbs := imx93-11x11-evk.dtb imx93-11x11-evk-flexspi-m2.dtbo + imx8mm-venice-gw72xx-0x-imx219-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-imx219.dtbo imx8mm-venice-gw72xx-0x-rpidsi-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rpidsi.dtbo imx8mm-venice-gw72xx-0x-rs232-rts-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rs232-rts.dtbo diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk-flexspi-m2.dtso b/arch/arm64/boot/dts/freescale/imx93-11x11-evk-flexspi-m2.dtso new file mode 100644 index 000000000000..f307789546a2 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk-flexspi-m2.dtso @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include +#include +#include "imx93-pinfunc.h" + +/dts-v1/; +/plugin/; + +&{/} { + reg_spinor_vcc: regulator-spinor { + compatible = "regulator-fixed"; + regulator-name = "SPINOR"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <®_m2_pwr>; + gpio = <&pcal6524 20 GPIO_ACTIVE_HIGH>; + startup-delay-us = <2000>; + enable-active-high; + }; +}; + +&usdhc3 { + status = "disabled"; +}; + +&flexspi1 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi1>; + status = "okay"; + + mt25qu512abb8e12: flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + vcc-supply = <®_spinor_vcc>; + reset-gpios = <&pcal6524 12 GPIO_ACTIVE_LOW>; + spi-max-frequency = <133000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; +}; + +&iomuxc { + pinctrl_flexspi1: flexspi1grp { + fsl,pins = < + MX93_PAD_SD3_CLK__FLEXSPI1_A_SCLK 0x3fe + MX93_PAD_SD3_CMD__FLEXSPI1_A_SS0_B 0x3fe + MX93_PAD_SD3_DATA0__FLEXSPI1_A_DATA00 0x3fe + MX93_PAD_SD3_DATA1__FLEXSPI1_A_DATA01 0x3fe + MX93_PAD_SD3_DATA2__FLEXSPI1_A_DATA02 0x3fe + MX93_PAD_SD3_DATA3__FLEXSPI1_A_DATA03 0x3fe + >; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 8d036b3962e9..2eefa65fbfa8 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -78,6 +78,16 @@ reg_vref_1v8: regulator-adc-vref { regulator-max-microvolt = <1800000>; }; + reg_m2_pwr: regulator-m2-pwr { + compatible = "regulator-fixed"; + regulator-name = "M.2-power"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pcal6524 13 GPIO_ACTIVE_HIGH>; + startup-delay-us = <2000>; + enable-active-high; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default";