From patchwork Tue Dec 3 10:38:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Rebmann X-Patchwork-Id: 2017685 Return-Path: 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=w6UfNjJY; 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 4Y2czc6N5Wz1yR0 for ; Tue, 3 Dec 2024 21:57:00 +1100 (AEDT) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version: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=jZk32Ngi0N9nkHWsOtu6f4pae+yPDEI3ECAbuNU43G0=; b=w6UfNjJY+AqL0w M4fjwSMNMV2Q6GdgvUBPl4+WwIV50z+gOYHJp42wmZmkYrroW0UWTkjJuqGHq5H+IYLF4TkVjOKb+ h1V1q6+2XgNStQOmyR1yL18JwCt5J4DxEMmfdLTpvyzjY8FRwlwtSX3tI0m2L8UA+Qn83ra9FP+cC FSuW3Xl12kpzSrsLVXAbomPOceWbsxv/njfVHZFFVeTIDizQq0vZnntCmDoWGznbFKaayAaQjEyk/ rxpJvybAzmlJDZkzQPICZ+7pxJlVBM/wDqexrWUmqljuzVks+0S2Ye0va7+lvBiMS2W+jrMSFHMKy dmDHSAUlCAHScGuyA6VA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIQaJ-000000099qf-2Fn6; Tue, 03 Dec 2024 10:56:51 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIQJH-0000000964H-2l3l for linux-mtd@lists.infradead.org; Tue, 03 Dec 2024 10:39:17 +0000 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tIQJ6-00012Q-2c; Tue, 03 Dec 2024 11:39:04 +0100 From: Jonas Rebmann Date: Tue, 03 Dec 2024 11:38:35 +0100 Subject: [PATCH v3 1/3] mtd: mchp48l640: make WEL behaviour configurable MIME-Version: 1.0 Message-Id: <20241203-mb85rs128ty-v3-1-79107d54d839@pengutronix.de> References: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> In-Reply-To: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Schocher Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, David Jander , kernel@pengutronix.de, Jonas Rebmann X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1743; i=jre@pengutronix.de; h=from:subject:message-id; bh=pmKV2DTV1hVzHSifSfG65uDKd3xGW/MuLvE4Vczmd2E=; b=owGbwMvMwCF2ZcYT3onnbjcwnlZLYkj3u39kRrfVeSbBia9O6pavmebx4fPZzxbeURUp7xY5N NstuqHh3FHKwiDGwSArpsgSqyanIGTsf92s0i4WZg4rE8gQBi5OAZjImiBGhov+KzlOrX24eMnM TeHp337E+ddOem10bnf/09x+J9bex4oM/90vdGxy31PVs9mhg2sj44Nf6+dHJhgs0Hh8e7HvxBO GHGwA X-Developer-Key: i=jre@pengutronix.de; a=openpgp; fpr=0B7B750D5D3CD21B3B130DE8B61515E135CD49B5 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: jre@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_023915_702612_CAFF6DFB X-CRM114-Status: GOOD ( 13.96 ) X-Spam-Score: -4.2 (----) 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: David Jander The 48L640 resets the WEL bit (the Write Enable Latch bit in the status register) to zero on the completion of write operations. In preparation to support chips behaving differently, introduce .auto_d [...] Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a0a:edc0:2:b01:1d:0:0:104 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: David Jander The 48L640 resets the WEL bit (the Write Enable Latch bit in the status register) to zero on the completion of write operations. In preparation to support chips behaving differently, introduce .auto_disable_wel capability, and, if it's missing, explicitly reset the WEL bit after writes. Signed-off-by: David Jander Reviewed-by: Heiko Schocher Signed-off-by: Jonas Rebmann --- drivers/mtd/devices/mchp48l640.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c index f576e6a890e859e7d20aeeb2ede4ca0acf4850fc..4cdd24aaed416fc7e40a8060b5c7eaf6684fc6d5 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -27,6 +27,7 @@ struct mchp48_caps { unsigned int size; unsigned int page_size; + bool auto_disable_wel; }; struct mchp48l640_flash { @@ -194,9 +195,15 @@ static int mchp48l640_write_page(struct mtd_info *mtd, loff_t to, size_t len, else goto fail; - ret = mchp48l640_waitforbit(flash, MCHP48L640_STATUS_WEL, false); - if (ret) - goto fail; + if (flash->caps->auto_disable_wel) { + ret = mchp48l640_waitforbit(flash, MCHP48L640_STATUS_WEL, false); + if (ret) + goto fail; + } else { + ret = mchp48l640_write_prepare(flash, false); + if (ret) + goto fail; + } kfree(cmd); return 0; @@ -293,6 +300,7 @@ static int mchp48l640_read(struct mtd_info *mtd, loff_t from, size_t len, static const struct mchp48_caps mchp48l640_caps = { .size = SZ_8K, .page_size = 32, + .auto_disable_wel = true, }; static int mchp48l640_probe(struct spi_device *spi) From patchwork Tue Dec 3 10:38:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Rebmann X-Patchwork-Id: 2017684 Return-Path: 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=ddARa5hN; 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 4Y2czc4jtdz1yQN for ; Tue, 3 Dec 2024 21:57:00 +1100 (AEDT) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version: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=Pei+Bq5q3qQ/hZAT+fxYL642aK4g56qIAake2meO4cc=; b=ddARa5hNMdDFZ+ h7PTDH5mZufOQ51krc5CLLsPBKtuABfFHVTMW8NJTQ5SzNJ+SzMU/VpgO/IXcRuG51Kk1v9atDekI 5WDRYghIVKMp3/bwPb4hQNHqCOdy8B0/4flIH0pPkS/Q6bNNxTHADcho5+H0Wd5SdlPBq9JNM9v4j AhDviTbKUSJZ0PLjJJVCRUVNK33WSIMA7Y5ySWMQ/Ggp9cbChTkXxaViBhvXJSBJJa3jFMljbcPuo kR8hUE4VHvny/hbRIntMiNvLme+GaNA02tpqiXNB46GPnrEwricee+1DNfi+4OEqI8YWC4tQpXK6T u0ztFp9D/rs4I7nxoAQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIQaI-000000099qH-2IJn; Tue, 03 Dec 2024 10:56:50 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIQJG-0000000963l-3Mjr for linux-mtd@lists.infradead.org; Tue, 03 Dec 2024 10:39:16 +0000 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tIQJ6-00012Q-4o; Tue, 03 Dec 2024 11:39:04 +0100 From: Jonas Rebmann Date: Tue, 03 Dec 2024 11:38:36 +0100 Subject: [PATCH v3 2/3] dt-bindings: mtd: mchp48l640 add mb85rs128ty compatible MIME-Version: 1.0 Message-Id: <20241203-mb85rs128ty-v3-2-79107d54d839@pengutronix.de> References: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> In-Reply-To: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Schocher Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, David Jander , kernel@pengutronix.de, Jonas Rebmann , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=918; i=jre@pengutronix.de; h=from:subject:message-id; bh=WCBRKK2EpvRkqNqUvWntlT5eb/TfdsDmqZAXrw/5Qos=; b=owGbwMvMwCF2ZcYT3onnbjcwnlZLYkj3u3+ULyvz5JLvvcET/CznH69vUdITCOs+oLwsu/5Zu UnZ49bSjlIWBjEOBlkxRZZYNTkFIWP/62aVdrEwc1iZQIYwcHEKwER6rRkZzrow3brd5vdozk1B A+5d7Clh3m8S5A+oprqVqt9Lmq4wiZFhvWRwivuhzhuF65PrYuucrfP2CUvM/JP/45znF4lfbcb MAA== X-Developer-Key: i=jre@pengutronix.de; a=openpgp; fpr=0B7B750D5D3CD21B3B130DE8B61515E135CD49B5 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: jre@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_023914_840425_C0019A1B X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) 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: Add a compatible string to support Fujitsu MB85RS128TY. Acked-by: Krzysztof Kozlowski Signed-off-by: Jonas Rebmann --- Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml | 5 +++-- 1 file ch [...] Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a0a:edc0:2:b01:1d:0:0:104 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add a compatible string to support Fujitsu MB85RS128TY. Acked-by: Krzysztof Kozlowski Signed-off-by: Jonas Rebmann --- Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml index 0ff32bd00bf6aee279fa78c624d8d47c6162f7f1..5c6b628c608d82515c7efd5dc74dfb8469894bef 100644 --- a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml @@ -16,8 +16,9 @@ description: | properties: compatible: - items: - - const: microchip,48l640 + enum: + - fujitsu,mb85rs128ty + - microchip,48l640 reg: maxItems: 1 From patchwork Tue Dec 3 10:38:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Rebmann X-Patchwork-Id: 2017687 Return-Path: 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=PxyqIezk; 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 4Y2czd1Bqgz1yRD for ; Tue, 3 Dec 2024 21:57:00 +1100 (AEDT) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version: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=e3HTTNibxmw00Y9+smBT9fO+4BbXJPwdYRRmLcttmWI=; b=PxyqIezkotQlAt 7H/CyFs0yc0wtrDD6HYq2NUahetlLTRdxdn5XmmRjTEwccNhHIuLAXSYAJp6LRx5W3ihDqefqn18O RIUSmZ2Srmo3i8QZtwgSJN9/mBk2L3kiW0TllIOnR2hJk5hm7Cu3HKRo6/B8aFQ7BMlJG+XR6zEKY yzKBOk4WbPGTLVowA+/RsNEeYXPuGa0nBj0L3r+hUSa5QrD6s6MYGFvtK19xh6HsVeqf0ZQonAidR Fj5gPI7XgJIQaWHFAZk/DKiThW8rWnYDwahZTj0Tv6Z31VWaKLV0+Vp21h+xbf6KaSGIK9KQY3iDR fRWh1hvr6kSo6gdA+VRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIQaI-000000099q6-0Gwa; Tue, 03 Dec 2024 10:56:50 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIQJG-0000000963j-2gft for linux-mtd@lists.infradead.org; Tue, 03 Dec 2024 10:39:15 +0000 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tIQJ6-00012Q-6Y; Tue, 03 Dec 2024 11:39:04 +0100 From: Jonas Rebmann Date: Tue, 03 Dec 2024 11:38:37 +0100 Subject: [PATCH v3 3/3] mtd: mchp48l640: add support for Fujitsu MB85RS128TY FRAM MIME-Version: 1.0 Message-Id: <20241203-mb85rs128ty-v3-3-79107d54d839@pengutronix.de> References: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> In-Reply-To: <20241203-mb85rs128ty-v3-0-79107d54d839@pengutronix.de> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Schocher Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, David Jander , kernel@pengutronix.de, Jonas Rebmann X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1668; i=jre@pengutronix.de; h=from:subject:message-id; bh=+bDwq5NM4Xl7M67XvTmDhZ7VVVdtopt5c2rjbQ9eTGg=; b=owGbwMvMwCF2ZcYT3onnbjcwnlZLYkj3u380w5PpwpmLlzestba8Y8io3JGXZ/1Jv2Dr9vrH+ maPn/FIdJSyMIhxMMiKKbLEqskpCBn7XzertIuFmcPKBDKEgYtTACaydyXDX9H35qpWTZ+vePQu 2N2kIn77pbNZ/oXflyP3d/3MfqSSZ8fwv2ZVybychp+/NW0689MS+Df6dd/rq2t99Gmr8l/pmA3 HuAE= X-Developer-Key: i=jre@pengutronix.de; a=openpgp; fpr=0B7B750D5D3CD21B3B130DE8B61515E135CD49B5 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: jre@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_023914_681958_84484A7F X-CRM114-Status: GOOD ( 11.21 ) X-Spam-Score: -4.2 (----) 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: David Jander The Fujitsu FRAM chips use the same command set as Microchip EERAM. The only differences are that the Fujitsu FRAM chips don't really have a page size limit, nor do they automatically reset the WEL bi [...] Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a0a:edc0:2:b01:1d:0:0:104 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: David Jander The Fujitsu FRAM chips use the same command set as Microchip EERAM. The only differences are that the Fujitsu FRAM chips don't really have a page size limit, nor do they automatically reset the WEL bit. Signed-off-by: David Jander Reviewed-by: Heiko Schocher Signed-off-by: Jonas Rebmann --- drivers/mtd/devices/mchp48l640.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c index 4cdd24aaed416fc7e40a8060b5c7eaf6684fc6d5..7584d0ba93969d79ba3d9c7a97bc63bd0e5ef327 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -303,6 +303,12 @@ static const struct mchp48_caps mchp48l640_caps = { .auto_disable_wel = true, }; +static const struct mchp48_caps mb85rs128ty_caps = { + .size = SZ_16K, + .page_size = 256, + .auto_disable_wel = false, +}; + static int mchp48l640_probe(struct spi_device *spi) { struct mchp48l640_flash *flash; @@ -361,6 +367,10 @@ static const struct of_device_id mchp48l640_of_table[] = { .compatible = "microchip,48l640", .data = &mchp48l640_caps, }, + { + .compatible = "fujitsu,mb85rs128ty", + .data = &mb85rs128ty_caps, + }, {} }; MODULE_DEVICE_TABLE(of, mchp48l640_of_table); @@ -370,6 +380,10 @@ static const struct spi_device_id mchp48l640_spi_ids[] = { .name = "48l640", .driver_data = (kernel_ulong_t)&mchp48l640_caps, }, + { + .name = "mb85rs128ty", + .driver_data = (kernel_ulong_t)&mb85rs128ty_caps, + }, {} }; MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids);