From patchwork Fri Sep 20 08:54:05 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: 13808335 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2042.outbound.protection.outlook.com [40.107.22.42]) (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 BE57834CF5 for ; Fri, 20 Sep 2024 08:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726821930; cv=fail; b=UYZl5HOlsCskbgL3/hEVeuOtpGc+Wfd1diSJGs2sAO+BuE5RPeizlGtr3PHBbOHYGTwgEEGlZAAd9awhT/9AnLT74hEN8E0Y2myS7ouZyt8VHQK4ncyOQnV619CDWofEzLXsWFjZpm/1wyPP7o2hvLXxo9CaFB4RioWy96Ab+NU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726821930; c=relaxed/simple; bh=mM5YWdGMlyFIZvU+TMavK2zjucp6BFrroGS5l3VCGD4=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=KdjDiqY82BVvLOBcb+KvZBQajvm/wcfsltI0I0ET43TP8FhUZgZXpNQQ+dWgdx8lrt3Q1nSGYalQc2Xsj7V/1fwau8slI83OK7ePVgGvQjs8Iq+/wOp1lrRz4f62//hRjgvwDGwAF6cLvh6nTpPVOa09AowSXCNB6h+9efoRx1Q= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=dBlF3NUK; arc=fail smtp.client-ip=40.107.22.42 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="dBlF3NUK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lcYpqVNGQKXnTxYki7Pd/3DETWfGRlbBUt1fT2dcahRr+m8OjESQSCuviIoEoa4sbC4rlipM382P17XKtRf86j6c3fcX4ljWE6o/jSTepjmMEAmyZELrK6bZTkUNLEuh8I3ynZYGf8bI0McC//Ymm6jcvAa0LK3t9RiJaIYvEU9kuYUP9Cd9qJ0fAi5LQJc5586QP5F262+NzoiyWZQVL3lobSCYJV5N5/qqVKWW4dMJyDNqIa9Iqs27M/80yxbufjts/QRy1IGhMZ8WPdG2xbGipuVJi1A6LgY//gMBtC7h5Y6Q4Ssm8XZWIXbodCTl71ySwHqZ3FZCGOCl8r45eA== 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=2nJEkCeS2b7IRxJPmMwnoBaCyhIZ1vwplkGfyE+XmT8=; b=TfVts324y5F0OOeGuJaoGdxmhBG7/HFCUdPOWHxapPVKgaxn5TKCu8q3afP/BlOj9GcDeONZDs50xoef2GPuiRou6rT+VlSxl4qq1hlbgqZdy+FSka3kLNDmwbtdAnkoH6KoC8oG8mD1IsIKHrn5wuVK3HDriSjqQ3NXurKovaAHsfwTqHDJEBGC8R4QOfi4AIUoYf+zIicy446ve2GnDiEMtDL9avo6hVIkcUEsBeMOPgqd7J+GV9IcUHUvweRAYchtoAKyRQwbWSMzYBf9f/aj5U0ioc/mfNryBE2eraaU59UNHYciqujipMN+cj9xAYmCs/N8VDXR3aRzvSGgkQ== 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=2nJEkCeS2b7IRxJPmMwnoBaCyhIZ1vwplkGfyE+XmT8=; b=dBlF3NUKGxYW8YrhEKi9+AqVQkhbxM7cnFuUg4UuHd8DVWav4qPLgskB+9Q4sPxq5Jc0WHXa5QNacXGLeZ8TkQQ8xayrUiipYi3V9U3N4udckwZfOYFPLPCIz79wTkD6FN6bDWVrKdx+BoPjvK56Nnc1uTRkDPl6f3wqixoyNpeAwwYrAjovQ7UoK7jXXc0IcKsAwyGVukYAN/hkG0qE0GjT3WFOEHnznrSBboa7l+hO0K0HTz99j9k1sFZL+sptskaCmnizh6ygp0C3nwWnWqFWSOqOQIegf8AoCiumHq1D8KeWHa8LA21k3L4+e4CuzJCbToQ5cY+TKM0PUv72CQ== 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 VI0PR04MB10613.eurprd04.prod.outlook.com (2603:10a6:800:25f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.16; Fri, 20 Sep 2024 08:45:21 +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; Fri, 20 Sep 2024 08:45:21 +0000 From: "Peng Fan (OSS)" Subject: [PATCH 0/3] spi-nor: add optional vcc-supply and enable it for i.MX93 Date: Fri, 20 Sep 2024 16:54:05 +0800 Message-Id: <20240920-spi-v1-0-97f220c2e10c@nxp.com> X-B4-Tracking: v=1; b=H4sIAC047WYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDSyMD3eKCTF1jEyNjw9REcxNzM0MloMqCotS0zAqwKdGxtbUAKe47vVU AAAA= 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 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=1726822454; l=1006; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=mM5YWdGMlyFIZvU+TMavK2zjucp6BFrroGS5l3VCGD4=; b=9RxxfhMd6/Z4GruYDmDf8phCfAWzMb1boB6c5Fi63NRF/JWgpZtmE3HHt6g4eqdSURbpC5JH2 Du8XaY5D9p1CcsyL1tEVuOySjWR75OEi2ZkjCdjgG+hincGEwFC0N8L X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0035.apcprd02.prod.outlook.com (2603:1096:4:1f6::8) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::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: PAXPR04MB8459:EE_|VI0PR04MB10613:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d975751-d6b6-4cfe-27e0-08dcd9508fbb 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|376014|7416014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zhNPC2e2EMu/RdNdVHUOf980M07m8Ny?= =?utf-8?q?XFwWfO5W8G6mC5xGDxr4wfQJo09jMxYwM//xU2vNhO1Y2JIHMerXO/j2G5YFmdtpx?= =?utf-8?q?l0k+uDIEtvM9fZnh7+r5zc7jsjnxPBuxrRgKhpoX3wqPVQ8yvGhWhVhBL93nKyMDD?= =?utf-8?q?ldmTYeqEnxqE+fjiUn6s4L5xMUIJoCaSYWTgH9zvyjLfpMr047DjSGX4OGX3q3K6P?= =?utf-8?q?VhfANK7lCzJh9Bjf4HfHT/DIMSI1lrO3AoLbEVIP94ugHHkFcQF49MIsjpnSoM/1R?= =?utf-8?q?tlbExoDmxhwjJ1W5HcIrTgkAkux1mqrSg/FgDrYFLu7XFeuzeurE6EJa/MOue6nSf?= =?utf-8?q?blzGYirUpiTFVkOLu60PpMc0CUret3pyhZs6vWACsP6PQOla4Fofwk9R2uSJR7O8E?= =?utf-8?q?zhPQq6lpHLKIaklN4fLpfohzoEp1p8dyQuFFMk+QPBJvB/f4HtdTQ8yaA7pJKDgoP?= =?utf-8?q?zwTpeHZlsETYhE1JsMtQJvgQ2C54/mMqEmo7nVPJ0fC6KyyebDQf1rvAiLw/jcuPC?= =?utf-8?q?KjUyCAlndzYUkgPo24rXGG3kOYVKr9zlcBqTZA6FrWTy7s1c4+6qBOd1HXGjOrtiq?= =?utf-8?q?6xUS8G133nQU5ebJf0Xs/7Si4tLZgTHye7k4ZcPpEF1XlsH9yl96uYZTET3MRX9zK?= =?utf-8?q?UR+B3inqnC5cDEWNQzhjM+byDjja1DqZfVKbR/f+AQGLTa4of1nDMcyTSZ3jTFrr3?= =?utf-8?q?jkxFldYOGgeP4Qt+y1QsEmwMGmb2R3ziaL3IDFGyDVOAhakvm3pi93cVtibYB0Sgr?= =?utf-8?q?kEGJpmvR3hRz0rlXzHyZEmFrS3u+9YKIeSZ8WLJL64YV7AWTBeBcDjij1sTC69xCK?= =?utf-8?q?ykeafhDNR6AoN3J3UkO1BcBRPjYY6S3BptsABYUatEgo5FFZ/6qVN1Rw6EFJ93rPG?= =?utf-8?q?lcASFGw1QXduGyEUNH70vVPqYxU9kHZAFKHZ3FPPjAvp52RH7H6w4tAuOVCaNAdYX?= =?utf-8?q?vU928/UZWIiiqt8BN9Ys5a9giC2JjGjfHqPjaOgUI1/CWLgBYeXoIW27AD1IrVTZl?= =?utf-8?q?oHtP08zc/UmTUE+S0qub7+56ewtQQDF8QAeBLjT+SYb6tXKNmHYj2nu9lBvdiBqes?= =?utf-8?q?69q1pp68lmD7SDIXSWyu9La3V9Dq1m9cTVMSa4npfgJcrtpWaSbyEl59TH4ZQm5rN?= =?utf-8?q?70dHJywB7YD58ERACxATrzZ+zXkyttY9hTdtpPUguJQVFie0vNu4BP0A5E2shvcgH?= =?utf-8?q?H6N/oi1NWHdMPzE7HS/eWmwZNEYyP0WVCWpbixGBrZQMCoo4HnPSpqOgAzlPkVJRX?= =?utf-8?q?vK44ovTpk4dOUW7HMe9PmM1525cUTJunmnbUZ/09X+tSkMZbtAI5ZpKrKxJhBXxq5?= =?utf-8?q?eE4V2Q6AcY4G6zrcCrlZh5UOumVPDw9JxQDHRf7oiVhiJ21SqN533m4=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)(376014)(7416014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-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XJUJzNVHaKysjYiOXI?= =?utf-8?q?LhtFF7iIYTMc9mJ250bIYhOcg1/8GkqamCLcSb7iKRenympJ89YT2U6RaS9lt3ING?= =?utf-8?q?6A/Uqyufh3rtSQJUBv/7q33ulhxqVaHocR0SYTJoHcurfkrbV3oDdAGmuc4t2EEKy?= =?utf-8?q?67snOShfF2TiUm05bw7p/xH2g4C5iuI20cLt/vLwbXJHGNwyIBIHdqea9MaM+kYYC?= =?utf-8?q?YCXjsSQPP8UZt1tF0EgSDjGMJbYdjfGSaiuAOQkpZ7houXqoI2pMN7BLIFJn4YOsi?= =?utf-8?q?w6KUNlB/QccmAg91AGas+u9J79JDFy+islG2cMfTvl3sao/gruSO8MTZayvUeasBi?= =?utf-8?q?Qp8028BPH4mL7xv0PFKeXdFF1bw89pzMwXXPbaKS3dQjjaetr3JOYuPQerSP6Mirt?= =?utf-8?q?4kxejeKN28iwEZ4aAVfUJYIcqbPp/FPSXq9/LYFP1g3eEF/lx62r9wQbT/04zJTw1?= =?utf-8?q?+cA+wCKrpSapld2X6Wqy1NoGWTUkuCC9fdbgmt+I2s82sMnIVMN8rbB++VdUzB6Ve?= =?utf-8?q?irjGCA+WseERToop94LBLcf6prV8B5+mKQHeRCqN5D9OmVNhbs+z/6TRPXd4whKsh?= =?utf-8?q?14FO/xfNVe/uH3gMwt8IUCpIwQ9VXVS5Ga26Ae1SnPfcT1doMjNmI+8glrSf+hEPA?= =?utf-8?q?FD6U5BYpYfnnpvHVoKhzk/XPwxQjQNFTqcm6G94QbkVehIh3E6be/a7WKpz7QuseB?= =?utf-8?q?6P1b9K7Nie7n?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d975751-d6b6-4cfe-27e0-08dcd9508fbb X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 08:45:21.3392 (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: IFsBJ5QtkCuSJaxWfewGlsDnVH8ELaH6QxEw+a0dl+M1HKU9S8QbcSThobbDeK4U3ExEvsr9ld1QzyaiNtAsWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10613 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 --- 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: 3621a2c9142bd490af0666c0c02d52d60ce0d2a5 change-id: 20240920-spi-34231ea74761 Best regards,