Message ID | 20240917094956.437078-1-erezgeva@nwtime.org |
---|---|
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=X+qMAB9n; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X7HDC3pQZz1y2d for <incoming@patchwork.ozlabs.org>; Tue, 17 Sep 2024 19:53:47 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To: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=HRa0BoQmKebQIOlYc9/Z76pVMmRANCEwOB5p2QPuseY=; b=X+qMAB9n0G/0iW NFnduvT903UeB55IW7FR6OD8HNE3Mu/x+pxr/RJbD/KLJ9k9FU/iPGMdpDYg/9Pcz1uY+sSnAASXI hVNDATPC8vZtL4qal/KHrTZ03dOzslsXwegz3hkK75D4qE6WlhcAQgb5YPYZCZhkFZntgK72Cp+pq BCMcMPeh8i3QwYVz+x4Cu/jM9pRSaKPct9PK9/sfm6fMooYzc9/2p+/Nggg6UHN9z22QkDxqg2WVR RA/rROiOd5SqzkzNT1snZiVDY+8lR7l/RIps+b+DQ/6xjJW81qSRHmgtkZmQ41qlvmP1d1s7qlS51 ygj9epRVMPW2X94zT51g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqUts-00000005sYw-3h38; Tue, 17 Sep 2024 09:53:36 +0000 Received: from chessie.fmt1.pfcs.com ([66.220.13.234] helo=chessie.everett.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqUr7-00000005s3Y-0cU5 for linux-mtd@lists.infradead.org; Tue, 17 Sep 2024 09:50:46 +0000 Received: from localhost.localdomain (unknown [31.16.248.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4X7H8P0bxYzMR3Y; Tue, 17 Sep 2024 09:50:28 +0000 (UTC) From: Erez Geva <erezgeva@nwtime.org> To: linux-mtd@lists.infradead.org, Tudor Ambarus <tudor.ambarus@linaro.org>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <mwalle@kernel.org> Cc: linux-kernel@vger.kernel.org, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, devicetree@vger.kernel.org, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Esben Haabendal <esben@geanix.com>, Erez Geva <ErezGeva2@gmail.com> Subject: [PATCH v4 0/5] Add support for SPI-NOR Macronix OTP Date: Tue, 17 Sep 2024 11:49:51 +0200 Message-Id: <20240917094956.437078-1-erezgeva@nwtime.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240917_025045_211164_7AAC9415 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Erez Geva <ErezGeva2@gmail.com> Add support for SPI-NOR Macronix OTP. And add MX25L12833F with OTP. v2: Improve description of mx25l12833f. Add note about mx25l12833f using the same JEDEC ID as mx25l12805d. Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [66.220.13.234 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [66.220.13.234 listed in bl.score.senderscore.com] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [66.220.13.234 listed in sa-accredit.habeas.com] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add support for SPI-NOR Macronix OTP
|
expand
|
From: Erez Geva <ErezGeva2@gmail.com> Add support for SPI-NOR Macronix OTP. And add MX25L12833F with OTP. v2: Improve description of mx25l12833f. Add note about mx25l12833f using the same JEDEC ID as mx25l12805d. v3: Improve description. Rename _nor_send_cmd() to spi_nor_send_cmd_internal() Remove MX25L12833F specific changes. Add reading SFDP to all Macronix chips. Add support of reading OTP parameters from device tree. Reorgenize patches to 2 SPI-NOR patches and 2 Macronix patches Testing with MX25L3233F using BeagleBone Black. Test results are in "mtd: spi-nor: macronix: add manufacturer flags" patch v4: Add DT bindings of new OTP parameters Test OTP with 'flash_otp_write' and 'flash_otp_lock' Fix macronix_nor_otp_lock() and macronix_nor_otp_is_locked(), Macronix uses a single flag for all regions. Erez Geva (5): mtd: spi-nor: core: add manufacturer flags mtd: spi-nor: core: add generic functions dt-bindings: mtd: spi-nor: add OTP parameters mtd: spi-nor: macronix: add support for OTP mtd: spi-nor: macronix: add manufacturer flags .../bindings/mtd/jedec,spi-nor.yaml | 37 ++++ drivers/mtd/spi-nor/core.c | 166 +++++++++++++---- drivers/mtd/spi-nor/core.h | 34 +--- drivers/mtd/spi-nor/macronix.c | 168 ++++++++++++++++++ drivers/mtd/spi-nor/otp.c | 6 +- drivers/mtd/spi-nor/winbond.c | 2 +- include/linux/mtd/spi-nor.h | 9 + 7 files changed, 354 insertions(+), 68 deletions(-)