Message ID | 20240219-mtd-flash-interrupt-binding-v7-1-206e30a656fa@solid-run.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-71498-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1326939dyc; Mon, 19 Feb 2024 06:42:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqFBjxMnLD1Seu1WXQ8EeOt89EjUhrz4Dt9OlMcwNbwRUaxvWFHiRQOrw7r+Bp35Z8qTNFxZsjgQCWlhn9l0PNLz4Zsg== X-Google-Smtp-Source: AGHT+IGSqHkaT1H0wOz3M6DmwJPpJa2Y7va+2oo9CYWtRCUHwnXKB2u3pQK36BWUfiPb4ZQv8lEJ X-Received: by 2002:a17:903:98c:b0:1db:be91:c5f8 with SMTP id mb12-20020a170903098c00b001dbbe91c5f8mr8107257plb.29.1708353749047; Mon, 19 Feb 2024 06:42:29 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y2-20020a17090322c200b001dbcbdef126si3939965plg.357.2024.02.19.06.42.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:42:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71498-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=mAlqYg2s; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-71498-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71498-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=solid-run.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D6F0A2811C4 for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 14:42:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75DC3376FE; Mon, 19 Feb 2024 14:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="mAlqYg2s" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2103.outbound.protection.outlook.com [40.107.8.103]) (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 2758420319; Mon, 19 Feb 2024 14:42:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.103 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353722; cv=fail; b=arvW7bGDInznN4svXtHiwuLRSpvbuPTqAOw10iSzbYg8xbMS4VRxUOQM3/ifBupCwJ7XtKnSzp8OEJmAF2w13tPUzWQaV6aD0WjqY/oZQi+Z6Q0lXv38I6dCykR40nHxMe3tCQx/dJClRKLJXlEPpqWLLsoxP2AJbin6KG40IxU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353722; c=relaxed/simple; bh=iIoIiMys9ZhjWOXInnCFQuiaNVz438Z9LfkTyU8f1hk=; h=From:Date:Subject:Content-Type:Message-Id:To:Cc:MIME-Version; b=jNZevzMtwR8iLJWXE14PVVgcoobx2uMSy4Dun1kw6PHsLTvoncPGg/7WWX1PDcWHIGsLyJJHSQRmBDGHj0V47zAuOB93i5Wxx+Vj36PS66ppQCNBEP+4t9YllsJ/mlrifF2XTkmFa545n8C/iaaZKxyslAwyBVUWQbfx32h4qMU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com; spf=pass smtp.mailfrom=solid-run.com; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b=mAlqYg2s; arc=fail smtp.client-ip=40.107.8.103 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oa4Lm/IoAb60E4HcMHICyC+WHLOoItTRZDFJXbaNHFoKvyz7cy0XryyNgtGNmUpmx3IUZRkZyHVmXXcF1iWzw52p2Jr9jjD4V9yNLK9PPzEx9lDG2g4hnC5DhiYLxj4T5HDfNZNAXIO+hYVYKcc90LgENMJdGQsQ3LHjB1xXA1kRVGs4PcgX1G74wseDk9wG0WEAqw1t3MkrGZ25GwAeYlYrc+cOy1kXxRWNeIFmYwimC2AL/IuunU86OZPBotKefPd8kG8irrD1ii6jpE3xNrxsOmVbi8ARdgQrHXsVvlNGmlg5QRuNjXMCO7zcTGs9vOf1VjKc2+IHUbDVRsi+FQ== 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=Iysi81QcxMkh7xwJQNcvfrcaX9e9U+OBz60Rrl6hZVo=; b=Oe+t7aKG+cc82sPW/yGsTfVLcDTaNLxl7Qxnz1KpTbXpIQZ2SHtk57LMdAWPePR1Jx2UDMPnqsVBaGncwxgUvx4xnuGDbObf8XfTUNc6z281Vz7HrNwLjfFGOEs4+SORlC4hSXTTaf0pNvBR4GLIadxd7L3dODHJNg3GYM+T8BK1om7N37FmcH6KvotMhSFyn0gLKOZUEBfhhwYNOvth7EUoLJsd16r/wCzMLsTkFLD6kQr8uW3WZuwp7rg/AMPo9esZcTzjbDkolcVOM+8QOPuMNvjAYSpJ2yO7GP/tI+boueySy8hTX/L8RiqfRzlO89AdQNSpaoGoXTYQBE/nCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iysi81QcxMkh7xwJQNcvfrcaX9e9U+OBz60Rrl6hZVo=; b=mAlqYg2s/0XVgJWPx04i05/Eu9W3sgtl8Z/l0kLKZApCQRMQB+zlais+9mxEsi6jt83VBcAT/lYiTB4tGSfsZAe+X4w0LgkPbsiQjZWVpJ1uaH7cBVK+m08RVY1PxBCr4JNkdE6PQadAeB3KCjFTU3+Dl+iDZfBDhdLcud4p8YU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by DBBPR04MB7563.eurprd04.prod.outlook.com (2603:10a6:10:206::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.39; Mon, 19 Feb 2024 14:41:57 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::3b94:f607:ebe1:7d6c]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::3b94:f607:ebe1:7d6c%7]) with mapi id 15.20.7292.036; Mon, 19 Feb 2024 14:41:56 +0000 From: Josua Mayer <josua@solid-run.com> Date: Mon, 19 Feb 2024 15:41:19 +0100 Subject: [PATCH v7] dt-bindings: mtd: spi-nor: add optional interrupts property Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240219-mtd-flash-interrupt-binding-v7-1-206e30a656fa@solid-run.com> X-B4-Tracking: v=1; b=H4sIAI5o02UC/6XNSw6DIBSF4a0Yxr2NIqJ21H00HchDvYmAATVtj HsvmnQFDP8z+M5OgvaoA3lkO/F6w4DOxqhvGZFjZwcNqGITmlOW06IFsyjopy6MgHbR3q/zAgK tQjsAZ3VfN6qgpRQkCrPXPX4u/fWOPWJYnP9eZ1txrn+XQqcUdIYzCM7AxiEHUbVaCSpkI8tnc BMq8Ku9S2fIiW00FShTAZYKVKkATwGO4/gBmwz+ZQACAAA= To: Tudor Ambarus <tudor.ambarus@linaro.org>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <mwalle@kernel.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, linux-mtd@lists.infradead.org Cc: Yazan Shhady <yazan.shhady@solid-run.com>, Rob Herring <robh@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer <josua@solid-run.com> X-Mailer: b4 0.13.0 X-ClientProxiedBy: TL2P290CA0011.ISRP290.PROD.OUTLOOK.COM (2603:1096:950:2::14) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7563:EE_ X-MS-Office365-Filtering-Correlation-Id: c3e30da8-4442-48d0-3c64-08dc3158ec15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jlcB379X/WnwCbusxLWSEZEuXZG1M3elDtTGZ6S5fXOX1Ig8EJI+O/NJLY7s6VXCrbZ/8T3chLzQjIgZXGb/8bgVQE6q5D2XTveKaN4DLLqvszk7lILzbTeSFa3vUqvZjQxj0xhTDAzNzjQ6FPowLe14VOGHHiZo+oXmPte6R+iY264hXVAr0488kApI0IFL+L4CNAb2FBI1DwHLGX0rkpV7rChka9kpGhxTHdDtV8/zNPTR0fAwcIefz/ZiCRbNmRQQGzcXShP5EGcwdTrsCQoDv8oH4HeKQkU1Y4wXFAr6M5Gw8q9j46o+fFliZyj7n65k9IsxwUqRLhW/EYZMO6VDw5ORmH0hXnhJh74QtIi1JkKGHcdkieKJFIypaSBrd6FwOqIndDng12psZi7Vo8bhhwa6XSxhl4udnUOk75mR77/fxaFDIaPLvGEAo7LPhe7WdmpxovnNphJxL7IkiPNzgHm+pM30Ljo+JUR1FQ7NOxPYJN9hCKRcyvtqd+FpiR6xmFDGbrk3EpjZK2GVb+Fc5icX23TJzsmj5QfK2BwOlndSK6ffo+ofP9eAfzh3K3t10Vbj54zofiIVpOiAHbh7j8bC4wZ5zyvcfZEEze+HtarBu8MsbtHV+8lpAJvf X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8xXil37/1phiZV1WzCC9I5Pdsg50?= =?utf-8?q?iBlZZcwHmMz2pT5hkFmd7WwD1XwOfasRvQ9NGkEDe5Klwfvhtb2JGya4wA0v3jqbC?= =?utf-8?q?XYeu0Gq/rKTmFrsx8m8+Yb3nsrIShzr5XxEl2UqNoXcn281K9UYJ481Nf/qYZ3S1Z?= =?utf-8?q?5x2utbhOPEXe8nz7zprnFwShUOOwj8tb7Y1dB4/W+io5l3SxMCuDhSnoaNL/UG+Ex?= =?utf-8?q?UqBREeUmhousm6UFl4WU47TAXUlQyJ9rj39K72Js3xzGZSvg4XQqCNUxyNFwkJRom?= =?utf-8?q?cE57GpLzaGh6NQnpEC+7M8GQIMhncMuyIbywJ/90sCfl2ohAkK5OfjUzT5dnwFYdU?= =?utf-8?q?FCHQt7Ci8lk8HnEhmCXL3564DAtheuE0V9lJNWaVXPtL56kRT8WLbqHNBNID4q82/?= =?utf-8?q?yHP9gCDUo/uURzJZ2Oju+p8K8mffDgTwW3En5cZ2kOFzH/4Q9sLDpjjtETcWN9uB4?= =?utf-8?q?CVDt0qjZDl3kbbb77jFBZanHrE/xjMadcoM4KMKS3IRDuQfMCqFa2veHmZQp8taO2?= =?utf-8?q?9K7Hf9vivoa2McgNyNYL2CMAqvOYg5spzEZZ9dCQYEjBh6AtduNeSXHukEQT14PyE?= =?utf-8?q?plQ0r0RR7mcFgeO9wXwd2rXGGCEE9YeA0W4gbfTlKxY7Wf4YR3dWefq/7OP/x3FVt?= =?utf-8?q?q2Dd6l5+DITw9Dir2lFRjmUVmCeSQvhFnDYN7Wm3e3twUNw7SM3Zfi4aLC2nFC+qQ?= =?utf-8?q?xQX1IYB94cUd72tMgEisEBMFQJly+hR0YuFaTpDpwf07WThyGGaEK4cp4060PArRQ?= =?utf-8?q?W7ISbAfG/XMcFGeP4EvdsxAjiactbt1wsGyFxvBIUTj/FPMG7qn0BxQbbi7Xx1K9z?= =?utf-8?q?BQfwzHYfdpBIeIqpfZm9LKz3gERhxKv/sUSeehwAjTLE3VtJG4TPtbrb8R06P83v6?= =?utf-8?q?bCWfr+64YhoG+sE79dw2a8dudnhw1TLYwYZ+OQJwKPuYj8ARMHY60y8EuimIpJTpL?= =?utf-8?q?OrpnfG9wr8E5Tz18yYjklKjigXwoT89Id1e8+YSX1AOw1NIjYviUyOqcoEarGx2VX?= =?utf-8?q?I17JwsD9iz+8xA2PqkNTZp42AeVs1UwrFghfcrnZ6oDyPD9rB0l5asNJpMx1CFjBZ?= =?utf-8?q?7lA4a54qaIHp1LC/Tt5X/dVnG8sF3B9P3uIVGNTsL1RWLcJqZ/1QRTFRwIz5ym4M7?= =?utf-8?q?mgwTd5NGIu9Lb32R61otHyR9rC7EQnrXb9RcFwWovWcU1wLCmPrl+eks9WGeFvCOq?= =?utf-8?q?4dUkzbWpIA4eE2EruJQJgzgb7v8Njg2WAwCZGTLJrNgU5Qq6SssDleDfw+EWT6StY?= =?utf-8?q?mPqZN2E/76qdcc2e7Zhljf/HOcQCOoeR6wM8YUuqMfsXy2stJyMauETKUxTC//26X?= =?utf-8?q?tDnA68x79NaU2VI2sk47n1W8AsUCryOYqGTIpW8eMewCYr/yA1sd/ERKLZeWfMXGZ?= =?utf-8?q?D5GGqAVNUly6rOozg6pfTnhJ2RS99kv6LbsDFqVUNrBb1nN9FGDcqr8EWhIG3kTnF?= =?utf-8?q?wpG1YwpJHRNAmCFwzOlf6u8TEqA+7RRFE1ID3wBeNBT+KKumkFaPmHhtjTxEaNxdU?= =?utf-8?q?wncC77iv8hSF?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3e30da8-4442-48d0-3c64-08dc3158ec15 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 14:41:56.8401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iGyA5cowRf073hvvNRbRUJ8uPdHXzCcRNGeWYROpitb7tMnMW2a5WF3G6hz+yyflOGnZgRhh8UdzTk8eYKpJjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7563 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791338741187681055 X-GMAIL-MSGID: 1791338741187681055 |
Series |
[v7] dt-bindings: mtd: spi-nor: add optional interrupts property
|
|
Commit Message
Josua Mayer
Feb. 19, 2024, 2:41 p.m. UTC
Some spi flash memories have an interrupt signal which can be used for signalling on-chip events such as busy status or ecc errors to the host. Add binding for "interrupts" property so that boards wiring this signal may describe the connection. Signed-off-by: Josua Mayer <josua@solid-run.com> Acked-by: Rob Herring <robh@kernel.org> --- Changes in v7: - split out of original patchset because it should go via mtd tree - collected acked-by Rob Herring from v6 - Link to v6: https://lore.kernel.org/r/20240212-add-am64-som-v6-0-b59edb2bc8c3@solid-run.com --- Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 +++ 1 file changed, 3 insertions(+) --- base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d change-id: 20240219-mtd-flash-interrupt-binding-647f78d123cb Best regards,
Comments
On Mon, Feb 19 2024, Josua Mayer wrote: > Some spi flash memories have an interrupt signal which can be used for > signalling on-chip events such as busy status or ecc errors to the host. > > Add binding for "interrupts" property so that boards wiring this signal > may describe the connection. > > Signed-off-by: Josua Mayer <josua@solid-run.com> > Acked-by: Rob Herring <robh@kernel.org> Acked-by: Pratyush Yadav <pratyush@kernel.org> BTW, I don't see any support in SPI NOR for handling these interrupts. Do you plan to add them in a later patchset? If not, what do you get by describing them? > --- > Changes in v7: > - split out of original patchset because it should go via mtd tree > - collected acked-by Rob Herring from v6 > - Link to v6: https://lore.kernel.org/r/20240212-add-am64-som-v6-0-b59edb2bc8c3@solid-run.com > --- > Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > index 58f0cea160ef..6e3afb42926e 100644 > --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml > @@ -52,6 +52,9 @@ properties: > minItems: 1 > maxItems: 2 > > + interrupts: > + maxItems: 1 > + > m25p,fast-read: > type: boolean > description: >
Am 20.02.24 um 13:19 schrieb Pratyush Yadav: > On Mon, Feb 19 2024, Josua Mayer wrote: > >> Some spi flash memories have an interrupt signal which can be used for >> signalling on-chip events such as busy status or ecc errors to the host. >> >> Add binding for "interrupts" property so that boards wiring this signal >> may describe the connection. >> >> Signed-off-by: Josua Mayer <josua@solid-run.com> >> Acked-by: Rob Herring <robh@kernel.org> > Acked-by: Pratyush Yadav <pratyush@kernel.org> > > BTW, I don't see any support in SPI NOR for handling these interrupts. > Do you plan to add them in a later patchset? No current plans, I have little knowledge how spi-nor works in the kernel. > If not, what do you get by > describing them? Foremost I get to submit a correct device-tree (describes hardware) to the kernel, without maintainers getting all over me for introducing new dtbs_check errors. And I really do prefer submitting a complete device-tree so that all knowledge I have gained reading private schematics is readily available the next time someone works on it. > >> --- >> Changes in v7: >> - split out of original patchset because it should go via mtd tree >> - collected acked-by Rob Herring from v6 >> - Link to v6: https://lore.kernel.org/r/20240212-add-am64-som-v6-0-b59edb2bc8c3@solid-run.com >> --- >> Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml >> index 58f0cea160ef..6e3afb42926e 100644 >> --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml >> +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml >> @@ -52,6 +52,9 @@ properties: >> minItems: 1 >> maxItems: 2 >> >> + interrupts: >> + maxItems: 1 >> + >> m25p,fast-read: >> type: boolean >> description: >>
On Tue, Feb 20 2024, Josua Mayer wrote: > Am 20.02.24 um 13:19 schrieb Pratyush Yadav: >> On Mon, Feb 19 2024, Josua Mayer wrote: >> >>> Some spi flash memories have an interrupt signal which can be used for >>> signalling on-chip events such as busy status or ecc errors to the host. >>> >>> Add binding for "interrupts" property so that boards wiring this signal >>> may describe the connection. >>> >>> Signed-off-by: Josua Mayer <josua@solid-run.com> >>> Acked-by: Rob Herring <robh@kernel.org> >> Acked-by: Pratyush Yadav <pratyush@kernel.org> >> >> BTW, I don't see any support in SPI NOR for handling these interrupts. >> Do you plan to add them in a later patchset? > No current plans, I have little knowledge how spi-nor works in the kernel. >> If not, what do you get by >> describing them? > Foremost I get to submit a correct device-tree (describes hardware) > to the kernel, without maintainers getting all over me for introducing > new dtbs_check errors. > > And I really do prefer submitting a complete device-tree so that all > knowledge I have gained reading private schematics is readily > available the next time someone works on it. Fair enough. I guessed as much but thanks for the confirmation! [...]
Hi, On Mon Feb 19, 2024 at 3:41 PM CET, Josua Mayer wrote: > Some spi flash memories have an interrupt signal which can be used for > signalling on-chip events such as busy status or ecc errors to the host. Do you have an example? Maybe one with a public datasheet? -michael
Hi, Am 21.02.24 um 09:27 schrieb Michael Walle: > Hi, > > On Mon Feb 19, 2024 at 3:41 PM CET, Josua Mayer wrote: >> Some spi flash memories have an interrupt signal which can be used for >> signalling on-chip events such as busy status or ecc errors to the host. > Do you have an example? Maybe one with a public datasheet? My example is Infineon S28HS512T, however datasheet download requires user account. S26HS512T has interrupt line, too, and datasheet is downloadable without registration: https://www.infineon.com/cms/en/product/memories/nor-flash/semper-nor-flash-family/semper-nor-flash/#!documents > > -michael
[+ Takahiro] Hi, On Wed Feb 21, 2024 at 10:13 AM CET, Josua Mayer wrote: > Hi, > > Am 21.02.24 um 09:27 schrieb Michael Walle: > > Hi, > > > > On Mon Feb 19, 2024 at 3:41 PM CET, Josua Mayer wrote: > >> Some spi flash memories have an interrupt signal which can be used for > >> signalling on-chip events such as busy status or ecc errors to the host. > > Do you have an example? Maybe one with a public datasheet? > > My example is Infineon S28HS512T, however datasheet download requires > user account. > > S26HS512T has interrupt line, too, and datasheet is downloadable without > registration: > https://www.infineon.com/cms/en/product/memories/nor-flash/semper-nor-flash-family/semper-nor-flash/#!documents Thanks, as far as I can see, both are hyperbus flashes. I'm asking because I'm not aware of any SPI NOR flash with an interrupt line. -michael
On Wed, Feb 21 2024, Michael Walle wrote: > [+ Takahiro] > > Hi, > > On Wed Feb 21, 2024 at 10:13 AM CET, Josua Mayer wrote: >> Hi, >> >> Am 21.02.24 um 09:27 schrieb Michael Walle: >> > Hi, >> > >> > On Mon Feb 19, 2024 at 3:41 PM CET, Josua Mayer wrote: >> >> Some spi flash memories have an interrupt signal which can be used for >> >> signalling on-chip events such as busy status or ecc errors to the host. >> > Do you have an example? Maybe one with a public datasheet? >> >> My example is Infineon S28HS512T, however datasheet download requires >> user account. >> >> S26HS512T has interrupt line, too, and datasheet is downloadable without >> registration: >> https://www.infineon.com/cms/en/product/memories/nor-flash/semper-nor-flash-family/semper-nor-flash/#!documents > > Thanks, as far as I can see, both are hyperbus flashes. I'm asking > because I'm not aware of any SPI NOR flash with an interrupt line. I found this datasheet [0] for S28H flash family from Infineon on Google. These are SPI NOR flashes. In pinout you can see there is an INT# signal. The signal description says: "System Interrupt (INT#). When LOW, the device is indicating that an internal event has occurred." Further in section 4.1.1.5 "INT# Output" it says: HL-T/HS-T supports INT# output pin to indicate to the host system that an event has occurred within the flash device. The user can configure the INT# output pin to transition to the active (LOW) state when: - 2-bit ECC error is detected - 1-bit ECC error is detected - Transitioning from the Busy to the Ready state [0] https://www.infineon.com/dgdl/Infineon-S28HS256T_S28HS512T_S28HS01GT_S28HL256T_S28HL512T_S28HL01GT_256-Mb_(32-MB)_512-Mb_(64-MB)_1-Gb_(128-MB)_HS-T_(1.8-V)_HL-T_(3.0-V)_Semper_Flash_with_Octal_Interface-DataSheet-v03_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ee6bca96f97&da=t
On Wed Feb 21, 2024 at 11:48 AM CET, Pratyush Yadav wrote: > On Wed, Feb 21 2024, Michael Walle wrote: > > > [+ Takahiro] > > > > Hi, > > > > On Wed Feb 21, 2024 at 10:13 AM CET, Josua Mayer wrote: > >> Hi, > >> > >> Am 21.02.24 um 09:27 schrieb Michael Walle: > >> > Hi, > >> > > >> > On Mon Feb 19, 2024 at 3:41 PM CET, Josua Mayer wrote: > >> >> Some spi flash memories have an interrupt signal which can be used for > >> >> signalling on-chip events such as busy status or ecc errors to the host. > >> > Do you have an example? Maybe one with a public datasheet? > >> > >> My example is Infineon S28HS512T, however datasheet download requires > >> user account. > >> > >> S26HS512T has interrupt line, too, and datasheet is downloadable without > >> registration: > >> https://www.infineon.com/cms/en/product/memories/nor-flash/semper-nor-flash-family/semper-nor-flash/#!documents > > > > Thanks, as far as I can see, both are hyperbus flashes. I'm asking > > because I'm not aware of any SPI NOR flash with an interrupt line. > > I found this datasheet [0] for S28H flash family from Infineon on > Google. These are SPI NOR flashes. In pinout you can see there is an > INT# signal. The signal description says: "System Interrupt (INT#). When > LOW, the device is indicating that an internal event has occurred." > Further in section 4.1.1.5 "INT# Output" it says: > > HL-T/HS-T supports INT# output pin to indicate to the host system > that an event has occurred within the flash device. The user can > configure the INT# output pin to transition to the active (LOW) > state when: > > - 2-bit ECC error is detected > - 1-bit ECC error is detected > - Transitioning from the Busy to the Ready state > > [0] https://www.infineon.com/dgdl/Infineon-S28HS256T_S28HS512T_S28HS01GT_S28HL256T_S28HL512T_S28HL01GT_256-Mb_(32-MB)_512-Mb_(64-MB)_1-Gb_(128-MB)_HS-T_(1.8-V)_HL-T_(3.0-V)_Semper_Flash_with_Octal_Interface-DataSheet-v03_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ee6bca96f97&da=t Okay then, Acked-by: Michael Walle <mwalle@kernel.org> -michael
On Mon, 19 Feb 2024 15:41:19 +0100, Josua Mayer wrote: > Some spi flash memories have an interrupt signal which can be used for > signalling on-chip events such as busy status or ecc errors to the host. > > Add binding for "interrupts" property so that boards wiring this signal > may describe the connection. > > > [...] Applied to git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git, spi-nor/next branch. Thanks! [1/1] dt-bindings: mtd: spi-nor: add optional interrupts property (no commit info) Cheers,
diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml index 58f0cea160ef..6e3afb42926e 100644 --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml @@ -52,6 +52,9 @@ properties: minItems: 1 maxItems: 2 + interrupts: + maxItems: 1 + m25p,fast-read: type: boolean description: