From patchwork Sun Oct 27 12:15:59 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: 13852514 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 2BFF3D116E8 for ; Sun, 27 Oct 2024 12:22:44 +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=ntBIkR6CQb9EgDJ+HVm25j2e26/rPxZ/E8QWzwva+Rg=; b=BvhBPglkAShSNwg7WO/lE07OQG j90vaE/PLg87d2g4ed5F4HuIY4FFnAK9OpEMDfZYpBQ0b/5S3oCKrdvCmO5E+34KiFvaOAc4cYrtg Ji0444g7puDIvS5nDuVu0mDunFZ+Gm3wDy+Fp1g6rml/PTZsW4WSIhiQC2b/ih/rIWGZMeEXdC2eQ cjgpcdAQ9Efc8K7pkMbUr0BF4CpGmnS2Uv+AVQFEDVVKG92FyfqPXgPAUxdpqfiWqFvbd6RnVyXE8 Y5HE0A8kSgfn2rwXkbg9qDFUz7AQbUNYzX8e17XVPLQqYnAIKQ2D3iCmA1xog9pi4yQo2y846VNAu IyecsZuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t52Hy-00000008ChL-16tF; Sun, 27 Oct 2024 12:22:34 +0000 Received: from mail-db8eur05on20607.outbound.protection.outlook.com ([2a01:111:f403:2614::607] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t52GN-00000008Cd4-3AMx; Sun, 27 Oct 2024 12:20:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h68J9ZVHzsAuDVUFPbathj+gL/1Um6reqxsL0H8vaxoOqhLjDqlMOKKOmsObl/fq3TelMLFzXprQ8s75O9p77ewHPwdk/ak910oTfFVZGRGO5f1eygh+e2nZ8ynpBGYSGB4Nhq1e8vmTUyyHxRJD1J1sxCKBxAEIxEuMtHfVHXnJFyysQU94IrF2jAdLtewOEu/dag28fYIw49UJ0rNEz6hjVJv+uP+7CKACMu0Mok9VHPded3/bbRV6yX42cEdKrZbNrVH45P2YazUN8EDiDLNCjvAnT+26CBH3wjTjvAE+KQxrTWctOBfaq7n+HDsrtPh9xwQewK/iapKVOamGfQ== 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=ntBIkR6CQb9EgDJ+HVm25j2e26/rPxZ/E8QWzwva+Rg=; b=T3mX20QcA+5Y9JT3cCPMvj9vebXJJO0qPF0uKl39fz7dIvbiyRM+7Knsn5l9RVg7I+e60UPzrglc8TBWvfExusy5e2tLC57f3uSL7574Fi6Bs9vXsw6dXyM53vfnYxYARu/xN3dgjjrgUt0DQDkKVPKFT0seKtB7xmC1YaHza82+KNxGKwWV9cLvpvwdjKAn2sK54Aydjsc1FXZtI+gXQWEQMmFH+WA7QcQAl0JGulT8PIC4Wv3WGDp/N2mbO7608arL1oO0RjyFHwVdwHffjPncyBOzlUB830WDykTa86mE9+0yKDlqf416+cJoa3U4QrZwtQfLSzHV9wfwV4GuMA== 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=ntBIkR6CQb9EgDJ+HVm25j2e26/rPxZ/E8QWzwva+Rg=; b=ckRVJYtBbUiinlItAVHl166/HgthBYdZeV8di+IWQSVlxErie/p5gk2J6QTGaOlyzPfUmf8J9PISNMVlVUPo/iGVdo4EgsY4N8U29zUpoOj+UBuCjCH17P9tyq0y/mrZolOFI8bMnN2OPqChozsGL6T7jNod1dk/pQKmCn7D6lJPb+Bawfe7qk/VRwLlHB9vzvL7Qczd2knroB5sG1ZX5ZcyUshd7V3E01ME1LsMDDUHc9Re9hfY2N3NzAIcx4M4LOwoZ90xHENzC2lz2JrQ8bRcCeSp0C53yBRV8WsqbN8M7mpm669vFjsvwvY+hTJgvLCQ+MBQfI67FFQnGUv+Eg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by PAXPR04MB9596.eurprd04.prod.outlook.com (2603:10a6:102:23e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Sun, 27 Oct 2024 12:05:54 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%5]) with mapi id 15.20.8069.016; Sun, 27 Oct 2024 12:05:54 +0000 From: "Peng Fan (OSS)" Date: Sun, 27 Oct 2024 20:15:59 +0800 Subject: [PATCH v3 1/2] dt-bindings: mtd: jedec,spi-nor: add optional vcc-supply Message-Id: <20241027-spi-v3-1-42e81723bbcc@nxp.com> References: <20241027-spi-v3-0-42e81723bbcc@nxp.com> In-Reply-To: <20241027-spi-v3-0-42e81723bbcc@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.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730031369; l=989; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=+zZjiMBtljlUWiRlzu0/cJbMN4Q1oe5HlK67nKmWK30=; b=8zd6+K3amrU27dVZUdQeR7QlEnyWADASuZRTkQ2cHYs9+2ojyZVjxlQ0nytEW6eiOnXg4Lhr1 aQNRNsnKfn9D9DmxOgFaHrH6NQDqUdBFYqegrCymUM/zEBOTe8de93E X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0116.apcprd03.prod.outlook.com (2603:1096:4:91::20) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|PAXPR04MB9596:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c2ccc25-565b-4033-aaff-08dcf67fb521 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|7416014|376014|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?wGBlDqOh1qOH2Jyw12RMR1fQis2PLC/?= =?utf-8?q?4sn39AMI4tVRdsn1kwz7eGW/LmOd807qpobUW4i2gN8ZZIx25fHd5tB41aAUmowEt?= =?utf-8?q?bRtwLwl6r/hrRVGvrD0afJPLRnrzFr/94cuJ7kFmFJhz4yWdVJyxwqrll+TlClrPn?= =?utf-8?q?M5jtCxMlihDcOqhAc1IMVtZ/qIpFNAumUT9Ov1JNhMNH+2bihoJJcqcRmiZd/fFFB?= =?utf-8?q?doannH/7w5MVgXAb5c4SSQ3artign5TsHJyMzd96z4IO2X0W/GKpPaRQoWKGwJEUp?= =?utf-8?q?PMv4qoZ5GCH1eU1IYKvZyLIe8lk1HQ9sOGCokzu11XYTymlr+OnuY4k+f5xfmEyie?= =?utf-8?q?EzjSFV2oneAjPIoE9lkMZNT30xpCju84J8Ozjgf7AUL2QN+1YVd0YR+LaeobL6r6I?= =?utf-8?q?H92YEFwu+LrKBbxgYkIfv9YQGjJEYyrjGbi//SU70aGbMGVizZ9vEBWHAZGaLky/T?= =?utf-8?q?IKg261ZjoDnBtR7ak8Q/xXgNAmFINPkzohnxcsdINdVDTrnzZjP3sJgkoEJGSljv1?= =?utf-8?q?zDLfnC588Mt1XYrhKO2AI6ZzDsTjtJNarLg5dMmA35ivZrqQ9zpQo2gud+4xi1/Dh?= =?utf-8?q?EzGVMeDHlUaY2PuyQigq9X9n32Dr9wNL4vNUm7+q34yC4MESpABkSkE4ry9ffHKcB?= =?utf-8?q?lUA8SEU2gGevJumGX1AHzLIszfUEsX+M4YUIRyw5fUiDYgFfSyKM5J2yTKqUnbXqv?= =?utf-8?q?is9NxOh0DZcA7CzY1Gxu74234dCZs2MYH0Cvkh+JHDLSrqWwi84OLFhZ2Z1ZIR4e2?= =?utf-8?q?a4orMBefnYV3FIZR6aM8ceBr8yoxgfnH9tZikjC+pdt7uDbezjZ4IAWS38nQKzRSF?= =?utf-8?q?DEa3FiFZV8luTtp/1Q4MMR0zt2ttcQl5xhuSaYPsGR6Sbc6P0pfBtPx1i1dUApqqY?= =?utf-8?q?kyFmqVFxbzE3bj6c41OAe7Wc0vsNGd2o7OKtzkMhGUCRCoRuUI6assTDZcFu34ZAB?= =?utf-8?q?Xame4B/kvqQ/eXHuGyd7Hi/OE9crjqA4FGtfP3RgWv8T0cFn75i2bgoA0ZCR/pmmK?= =?utf-8?q?SCEDlA5grLzLbTtEWGjhZ1lKm418vQiMrfs8jwf8r7WZvnmcac/oacbrvWwwHrOJb?= =?utf-8?q?7eoRUHa0XfoPN0PjrYElyCqeuWqss07cCN8zk/q7q+AZuqB3SOEDBTpgAVyDvYQjz?= =?utf-8?q?v7XVnVVH40xL3GdM20PSSuhBltjAgIdx9hiO4zN6RE/feK/89McuPXbIZuVF8o9E7?= =?utf-8?q?CurEiUg7GVubVixf1FO/AIeK7Bq/dR5fgD4Bgmr3cW5yS57zFYb6rPuH8B96pPYuC?= =?utf-8?q?gA0GCgLVI/mrhdQWVTCcToMj+2Aez2EwQ2kR5iXtrGrORDS7hna7LAGaSd1Zx3EGi?= =?utf-8?q?5JFIr1meXaXB?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8461.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZcRlvCyLxyCt3kNXXo3Ak+HzZInF?= =?utf-8?q?+DhvVtuWRShE+p53Ao+1Z1mTuG9z7Vbf6pvzkbyWC54zvC06qWqtcW1iUYO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JzVIMXJiP?= =?utf-8?q?ZWUIEBotRFkMzutnFS5e1vVpurCToRM64D/VCzOkATkkRsYIKZaXD7nu0uKjSV36M?= =?utf-8?q?1we10oPnjaLrShe1CFxFs8WYmC3mZrC+lGvQwm71bd/TZphbrFjAB4gDgJ6z20+8E?= =?utf-8?q?lsxAVrrDn+M3RhAbD8KaTYBKJ99y9IwFfRS8/iTdA9ACdp09JYlOg86EvOV3ZB23J?= =?utf-8?q?lU0K2luf54dCzwKquntp+/W8rZZrHYk8LJCesfZMnf2BZhJ4lMj39ZPVFj/PgCMUH?= =?utf-8?q?doFhcS67fDcThSZeXww7Ae8hPAdxo8EJZ2+ykp5eX7Us+8I5YuXGaBzwm2BYPsngp?= =?utf-8?q?qQC5GYHvS30lBll6I9L63RlQCnwS08xoL+g+TwKoyiQ7tcp+vplbl1gb7mrW0yJb2?= =?utf-8?q?j0uN7rPHqo7O4r52oonpwUDBj0sidbzTNf0A217dhDZ7HBIrTGc5aA2Z576b9CYkF?= =?utf-8?q?RK356ZFNiHUIvdu6+oW3sRT2GIMxE26cjJTbeR4M0BKbZKDuSLdqBvAxipC7SIB6O?= =?utf-8?q?q/ipS/4eKyrEqNn4XFVdEvnwKYJGCDfHpZHiwipeQG8ZjWWOUCdPQev6vRYv/aomO?= =?utf-8?q?va/59RaHy/VC?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c2ccc25-565b-4033-aaff-08dcf67fb521 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2024 12:05:54.2021 (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: 3FXH2L5iE41eKlP42K6Vf24zBnag6v/6uPNZtle7nvhrC3lS00SmbWWsFdK0tBL11sKPbnV1QA9DlG3GxxQAPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9596 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_052055_811426_681184DF X-CRM114-Status: UNSURE ( 7.62 ) 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 6e3afb42926ea6d22f0dd2ebf39752e115502615..335f8204aa1ebce3d2b4686b2a06d0ea3791667c 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 Sun Oct 27 12:16:00 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: 13852515 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 B24C0D116E8 for ; Sun, 27 Oct 2024 12:24:21 +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=HcYjvNv59wcTyr29nYn4O2TU0tt/uXHgn2zMmuXt2TM=; b=buGxCQYe28olmTcIcXrnVE4ksR WmEzwxTJUtqAPP28ajgfhqhuxhMM3eVBwYvzpHXPgaL9F2ZFvMbz1zl4WrpmA7nZFX9v5eHIMw/DN 0IUISpaJ7IPm9Iy20pGxtPeeIEjqcnxY1DBzM1ck6LtmptDPZqnfWL1vD3VNVh6b1C+w+OIHB8Sxm 3d36H0W0sQ91eUAsxxwOaCwo3cKr0hPOtfSFsr9S8wGJilRtx6NQTvqeuXDW7jOCCeFqle9wAyI+6 oWw22AOWUYgU5kemPh+mXhsf9x1pvE7E8iHB9efT8gQBkBwLQYi7RahCMWdX9Dfx9yhTqsgTBErzh drH8KVxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t52JU-00000008Crb-3g7T; Sun, 27 Oct 2024 12:24:08 +0000 Received: from mail-db8eur05on20607.outbound.protection.outlook.com ([2a01:111:f403:2614::607] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t52GP-00000008Cd4-2atJ; Sun, 27 Oct 2024 12:20:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=d41Jpp2AqeWkxl7KJdBqOCld0z25d03wJ/0DD9JhWwm0bBRs64vXqsScE0/JmFnMWeSOImzv4zxx1oipzCXj86zsd7TTAoFXQCf9myy5+/CDx0bv/Ad0FZ4M0zeuIWB3mh/Jii77yMu5TrInt/Qp/x9e0OF3aQn8krzlNHbfNKx9CeAKJPOSGXODU5qwGfbh4XHfUWLKc7VKsgdPmVG/3R1fS47WrlZkBcoOD3Y92a5DHUT1wZmN2qLhCIb5Zdxypb8LGe4YuhNbnOB0kAr4125z2rEvbKtCNnMyU7MLGw1BG/z5rdPLXL0zCx3uFpjYEqA4SzaoAgsqURsb6vu1MA== 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=HcYjvNv59wcTyr29nYn4O2TU0tt/uXHgn2zMmuXt2TM=; b=siE2ogVELsJoeJ4vIhvmfPqLQmY6h748/pbvI3X8cdy9Mhnnw82r45fSsCytkiBkw2JEWf9sm5RKzenpVAPNo503hPzHn2dwcR9GJfB9tTpDo4VFF6crCq4MNVpq9e3j0t97tl129OD7q8LHLcvqZu7q47ZzNfS30fKCpq7j1R6uR3QGJ5E5CxKNrnP19T8Fu+e8kYCIg71Ps0NPxJJaf1cr7Kamu8ekSNFStYob840SGNYXP9CvM9bKPQnodIq6rkLY9HHTFqHUQ0hWEOpmajcFUpQQivJvfeyMkxQ2ZvgdAV5AzRXEihVF3qvegsPyGSQKOWx+sZ2BQYlhUEtqBg== 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=HcYjvNv59wcTyr29nYn4O2TU0tt/uXHgn2zMmuXt2TM=; b=VXOo9iz45VwPjZ0KUF+rcg0VRniI56snOEM4wfn6lWQJX2imBmq1FzTR2ex4tRsiHfaenolhixjX+qV/AKtau7P4OgQlnqpq3lKRodnJjPK/Uy+CuhAPszRdKk8AAzDM6rwdj4JbagGa/OFxY/rQJVATMwr6jR/W69A+/ZtQe5c6zcBlCyCiC6d/evTm0fZAEZkHRzsevUH/2ZXEUpZskW1BGEfDhGQl7EeZ0FKoQSn8NPDu4GUJrNtuSXk4aOV4m+KAeZPDY0xq8uNT42ZPENv9LgLwN3n+1/AitjC9uX4Hu7Nk0BGf60JH7FvWfy7n1IK/QFDS1/NcwT95pj/2vA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by PAXPR04MB9596.eurprd04.prod.outlook.com (2603:10a6:102:23e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Sun, 27 Oct 2024 12:06:00 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%5]) with mapi id 15.20.8069.016; Sun, 27 Oct 2024 12:06:00 +0000 From: "Peng Fan (OSS)" Date: Sun, 27 Oct 2024 20:16:00 +0800 Subject: [PATCH v3 2/2] mtd: spi-nor: support vcc-supply regulator Message-Id: <20241027-spi-v3-2-42e81723bbcc@nxp.com> References: <20241027-spi-v3-0-42e81723bbcc@nxp.com> In-Reply-To: <20241027-spi-v3-0-42e81723bbcc@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.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730031369; l=1052; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=B0/5kvxZgm3DkhWR/RXzyopxQTI9vKG34FKEVuZdaig=; b=fMBDTlB5qIiTduibkshHTKB4XYptIyFaD1YYf8I1AfZNLvWDIdTzOo1igjElBomPwFAs10S/X RjcE/XMUk9+C2I18hojmk70G7Go0IXXvJP4tVnGQgI/gmIbvp4XHhSL X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0116.apcprd03.prod.outlook.com (2603:1096:4:91::20) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|PAXPR04MB9596:EE_ X-MS-Office365-Filtering-Correlation-Id: 8859e14b-e0c8-43d3-d15b-08dcf67fb898 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|7416014|376014|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?IJCmL3k5YnSdlhkKuzqd3+WLc0UwKjf?= =?utf-8?q?pjb/qaHtR/gjb7BvnqBqi7j0zd9DR6Wkr1GthQn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xpDnNBA1qxUlm9/ZV4?= =?utf-8?q?CZAJFvX+pQFuHwKem2NI5ARiwdhfGd4ysvAlQ40ZaMiHOS1AkKSTpC/G5k9ugU6T1?= =?utf-8?q?MM5QHaBKp2SwvZPo3h3lBG8PrF389FVgUSsciUj4cfVgHfvKGdEOHt6KzgY/zmj0g?= =?utf-8?q?tIpDqBIqS9rIvnR4qo67lqy0zdDVBlw+xhuZeVbSdhB5szp+Q74z2knG4KtSQxDHm?= =?utf-8?q?QGFnJQWY+B81oZgBpCS2U7VVGj7lbFfTkXizONulAaU+thnrYbRHyRCKpveTSlwZ+?= =?utf-8?q?sg2lAZiWPCnsKa1f6dTuFFUyWR4AStZHwyksunDyi/7+cKKYKUSoUGkYp0uFhT/os?= =?utf-8?q?XuRlokdOf3mRV1psvRQsnmdOvDOpqcIrwG/Til+r0TmdXYhtcbSpEkSdi8Mh4s1kQ?= =?utf-8?q?+KEl62cjfZws?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8461.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AeLYp8woisQlPSwo+NVInbGWwnkm?= =?utf-8?q?wvRMrs2EVv2jOO3NAqQ+a3YKzWYrYJyNCMuR9l341TdwF+wCqkufaXFMf1nq9/shu?= =?utf-8?q?xjXqj30dvjTVdZC8et3RErnSDssCB5TG7SRnDz/o0+LADbr13x86Qp0jjMk32Hv1y?= =?utf-8?q?2rLnR5gg39BMZdiKQdRzU7qwPrlgEDiHVQK35iZiL30iAKbhdK3kCXOFcIxSSx1aS?= =?utf-8?q?zN9XvF+yxU54Tybr1c44iQYTTYMwoMN5Ymkv8cQngPrB5XmhgB9yDhLcBMHv/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961e?= =?utf-8?q?RO91JpX6VkYmlunORa1T9zkEESkKa30z5PV199slEXN8nURCwbvcoOkIBJTf7ReKU?= =?utf-8?q?XAfWUfCKjLGOfV0t1tg8vdwuwURwrmERTPeDu+FmXv5bsfQHAWu5dRNa0O/2dopUB?= =?utf-8?q?VVXejE5X/qLfhUYrLfo7PrlexmR0TfZut+YPQt3Oh7ZZEyAaqmI/gXUyRi+O/oz3k?= =?utf-8?q?SugWZY4kVBsdya5xApqL47a8awYWL8FzIdhQPTGvYyZDSgmTCwT/b3LGMgB+2Dvv/?= =?utf-8?q?1CsD23U/XFXSaw/C+ZEeZpG+PlTweLu3Lxo8YwPEI8SllV/Yj4yXXTuJXmBhXubPz?= =?utf-8?q?wy/tYl0AII7vX1YvN1QKmjKzs9/hLkqiJvywzUW0YDIPHuGOEQVkwyIoRBncwev+r?= =?utf-8?q?1GhDXdXZHhb8?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8859e14b-e0c8-43d3-d15b-08dcf67fb898 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2024 12:05:59.9590 (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: 2iXPVQqACmw+AqaIW16Z6b0nnoTCPbOP3NPIVp0ceNJAkRwtmFarhxX52v8pRpHDgmGFwWkc+xeQzMPzskUDpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9596 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_052057_670266_181264C2 X-CRM114-Status: UNSURE ( 9.66 ) 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 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 Reviewed-by: Marco Felsch --- 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 b6f374ded390a0c0429a61dd0579204e0e98bfa1..d95427c4f4d0839c5df348eeddea59582ef99d9d 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 @@ -3465,6 +3466,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;