From patchwork Thu Aug 12 15:01:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516134 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=d9070Ds3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=P6hfWK93; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld2x37hNz9sPf for ; Thu, 12 Aug 2021 17:04:09 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=KHWP+EqTFkAVcEbH1P3JLdrjLOhk4BL3+2pB6381sDY=; b=d9070Ds377JsmF 1f6i/T0/u43jNeuXmoEfawoTP0kvlf6Y6vkytq/8NDSjEe6paaw/WBoZ5gzWiFabmHXHX7ybnWeNV UXyatJbvd246n2v12/VdkQHolxlHaO64C1nXS0mA/kX6M8ZS82+jA7tuTASFnOVhq7Tnuc3GZG53P 566NSXwb1fKbevbrEMV9Mnbh1m/0gGXqOp3h0M0+1e1255y4f6asUmFCbbzzUeosRyv5G3SVI20/l yisEiFL2Fu3ubZsb6SZ9B/vxHs9Hv+YoDwBUCLcwAQWdt2quEvwKKMub4oZH+PEU6Ax2ntDo56dw+ bhNNBYRnSS4fCkmdeiAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kL-008pZX-QL; Thu, 12 Aug 2021 07:03:21 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4jw-008pTO-Jg for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:02:57 +0000 Received: by mail-pj1-x1029.google.com with SMTP id oa17so7869954pjb.1 for ; Thu, 12 Aug 2021 00:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DcrKtuEV0EN88KyVzSy2enNkvxWC2san2vLL9moX6HA=; b=P6hfWK93meo1BFuoC3P4YYgQPW5aJBAimtwhkrYbkz4wWMd8X+aU2k1qjVaZWW5LUG xiz0c79nD8tLtGOv4/p/KJ/gv6O3iOocyT+EO4cafmcHaUL5ylC/uXCqz/atCuzY7hBc SS2iOh+vErTzWfonBq/dKgVdsZWLRGmk70TglLEzwiLInKDXvWTlL/YS7mK2iGeeIewK dJwO+dyPIU8NWqeK2Vc5rBuHr45fJF3AjwFhZBC3Mlls0uuc1Iag3fqX3O7AEx+vfeeu rz1PrYvAZQ54YKIW9sbEUv/bH8SXAhrv11uxnqrprjJx7wuA/jMcP6DoaisKLJOuYUam dJ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DcrKtuEV0EN88KyVzSy2enNkvxWC2san2vLL9moX6HA=; b=bW+FTK9dk/juw6cLMzubmZXM5cBN2iork90WyCv4GOWkQzTJbXlXvftGH60ZZuy3Vf Y3EhYD5+8FWJHQ05XzKeQXOLspubjh4gMPoA8UvVIumgsI2Uetgj7LGfYLc1L2tE4Ny8 0XgCJVdpLAHKDvy3MI7BTfq+vOlV8W5keYZtbfw25F9KCz7dDhb6Zea7XDdJnndZpTnY /9nUP3zQF/vVWAqjabDcQcHVipZGMklRjfygWnuHzHM1KevZRdvXGiKkUo9MWpswu1dr 9ep+C1NevjW8XWZNZ11NLqyp0ryaPUpDEc4JfBfrqKj6d0DhIeQZwwVj80QnVaoIjLRx g2rw== X-Gm-Message-State: AOAM531gWoMKnTJmDfa9R2tZEZdOIieCRg9KKfAhHprL8z3wP8w15UHc QrGJPCJD/csORcasO/H3fwk= X-Google-Smtp-Source: ABdhPJyVgCa3xSTtRfkDRElP1mAL9NyLEVXMM8ylUqhMbN+1ievZlBNTjL1eY8Dclr5zuZiNxxAbqA== X-Received: by 2002:a05:6a00:1646:b029:3c3:2636:8d5d with SMTP id m6-20020a056a001646b02903c326368d5dmr2727627pfc.3.1628751774780; Thu, 12 Aug 2021 00:02:54 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:02:54 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 02/15] mtd: spi-nor: macronix: Add support for mx66lm1g45g Date: Thu, 12 Aug 2021 15:01:22 +0000 Message-Id: <20210812150135.4005-3-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000256_684751_78B2E743 X-CRM114-Status: GOOD ( 11.48 ) X-Spam-Score: -0.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 support for mx66lm1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2853b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1029 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx66lm1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2853b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66lm1g45g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx66lm1g45g zynq> hexdump mx66lm1g45g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 3fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 6987 0001 1282 e200 02cc 3867 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 6666 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0000 0000 0000130 3514 001c 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 0fe5c9c8de8d..f3c7a89b7380 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -172,6 +172,11 @@ static const struct flash_info macronix_parts[] = { { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, + { "mx66lm1g45g", INFO(0xc2853b, 0, 32 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516135 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=T6PVnrmE; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=RReS9fKy; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld385Rhyz9sPf for ; Thu, 12 Aug 2021 17:04:20 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=KRO7h0LlYMxaGhxFpOl4HwfLcea5G+4hd4jm59UeZgc=; b=T6PVnrmEPo3uuP ZZ1aj1fxpWIvCFb1+6295UMVpHUghTaxJMmpFxZM7VbDUp1J2eiQ8kpXjjpaqHa5OFGYORel2+TvT AUPfR1GOeUTUFg87N0zTUAnkGircs+e/ITsZt9UdBu+BpGMRtVL5VMTi8TyBd/WygH5A4MryfB5GE Zm/I4Wyen/PD+tiXcjJtHrHOTu3MBP5qulCfzVPjh2nyYA4qazS+WHhKdLr2jNwg22yxuwIAx4EjJ vQIzmDcZ3i7dp35XfDpdwa8egVYgO71S2A1shSnanHDx8b7yvHBE2sQ1UxbelfRpsQmimroW84Nf0 jLthanylN+67QC5cFU9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kd-008pdx-96; Thu, 12 Aug 2021 07:03:39 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4jy-008pUL-V5 for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:00 +0000 Received: by mail-pl1-x635.google.com with SMTP id q2so6045170plr.11 for ; Thu, 12 Aug 2021 00:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RGLEmuaNVnnv4mR0hMBwGqQs2u8g34lBoP9IKSg6Z/4=; b=RReS9fKyvWcNmhoXGXbd+J/9fbTqtzlyFTLu1AIuTubfMkDrUauluRX9nMQwRlXzWA eZVaLk+XEkcKRQRqeXIl0+1BEOQFNoEbzID78roUljrU+Q8BMfjslRTSpzQG9BeWVbVz E8jJ1qnFdoX5cbjsBw06ts9dZjocsAnwGmuMZNxugQ3Jv2g3fdqOcLlQdkJxPTcBgMHt qbFymMh0L5H6G8Z1JWgLmEhUAAQD/jzWI5SWld6uPwIHeHN65eXFArwiUTOLGhQvFXOa v1mIWSwU9OKmdYZJCrofrnA3my/wu9JPdHcR7KaEjHcf+snfMmKX+dDJWDhqhjWKQ1Ib KmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RGLEmuaNVnnv4mR0hMBwGqQs2u8g34lBoP9IKSg6Z/4=; b=icAlKL3djSPFvCPM+URZ/GES4gLIRsfKs3JMraEDA6ERg/Y9LBn1OstdfMYGTScmDr +wi3+BM1yxRTeXOq8oFR+zj+ReDMk+aO6s0DNnI1ZvUiGwX83MQRTakGmFbJqe7wlZri pyAinU1hwHSsV1V7yuxdaTDXOPQ3WLEX23aVHjud5if3qvR6dFRj8b4+DhNEja056sKx O73C5syEK8rROSm8Okh63GvFPtxZ3Y1pPCq5x15nVlfE31QOwGRcOT8H1lQl7PfOUpks ZyQgznydQt6nhBuVLSE25N434JkoBilkfu2Z3AjuQ351XrPz1VSDomgueFp6qqZJPuUd s7Xw== X-Gm-Message-State: AOAM533x8uiAvb70z0gVKIIcvUbbs7qUf8A8mu0r6vPJN/s0o7idZFJs UCeRg0rVRX/gFY068gSuonM= X-Google-Smtp-Source: ABdhPJyL7ymGBGF1Z0adgExAeCxV+uhWFlpajRynAEYmjTrzpbsyiZiuBgCTmD1tiCDfVXT5l7VjEg== X-Received: by 2002:a17:90a:716:: with SMTP id l22mr2901025pjl.128.1628751778007; Thu, 12 Aug 2021 00:02:58 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:02:57 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 03/15] mtd: spi-nor: macronix: Add support for mx25lm25645g Date: Thu, 12 Aug 2021 15:01:23 +0000 Message-Id: <20210812150135.4005-4-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000259_043374_45F1B7ED X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -0.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 support for mx25lm25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28539 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer mx25lm25645g zynq> cat /sys/bus/spi/devices/spi0. [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:635 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25lm25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28539 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer mx25lm25645g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25lm25645g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25lm25645g zynq> hexdump mx25lm25645g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 0fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 6987 0001 1282 d200 02cc 3867 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 6666 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0000 0000 0000130 3514 001c 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index f3c7a89b7380..8308bd7b953e 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -177,6 +177,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25lm25645g", INFO(0xc28539, 0, 8 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516136 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=ESyUXABa; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ouXPzNj9; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld404Kgmz9sPf for ; Thu, 12 Aug 2021 17:05:04 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=PMQLNM66fLyRoJO0o+hsj/BiYaecAaxLWMssRuUmwu8=; b=ESyUXABaDD+B6F PI8QJakaoEwMaFomAsCblriiiX2t3HPdbXMv16xVFEOB944L47ak6w8mxaCSgLHE0R6pdu/NaWWpS eAMOYR5Z+46Sc1FM9Q4btvz1ApX0UBkC6dLsoOFoIHSgwHHBjwEs804pFtBtuhfco7XESw8eLherY Oe6vEjc2THpsZK5bJ4iWqFMeEPhGJuZUD9IZhXN0OLaU2za7n6q4P2nm3aiRF5Yc44JouPz8UKjgz E5OLzD3S28ka8MMdULKF7GVxqjWpVIr7kAy2eh9bN2nqnl1rxwmwkVDE98JXC+4cfCBqfEBmufASP z0mAWs7nEr7fOUSMnYeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4l1-008pl8-MS; Thu, 12 Aug 2021 07:04:03 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4k2-008pUv-97 for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:03 +0000 Received: by mail-pj1-x102e.google.com with SMTP id j1so7835560pjv.3 for ; Thu, 12 Aug 2021 00:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C9OFuI5lG+eYTij3Dadko0ByE1gpd4Rx9TnIKWlpo1I=; b=ouXPzNj9XykK11rRfSOio9k4mK/HrGumO7exR9gOiJJyvu/8dOwrLvIZdURGRJOXx5 mg+vjjyLAVDIfVGXHvC6bgfKGzC548d72DMnF0cMjUDz4lEZKMNwATtqN5sSo1wvYc8P Oq9/xt/Y/Cxj9rkVqSYsolTKjFNPBkm8WSaobhMNcX3GvRMCp4cJSZcxp/wbgJnM7SGx WZxG30I1VT61dtC0lkgNJHlK6nhGD+gBZ173FZ9YedChb4Piej4XkJq6366w8ax66Vob e789rnSRSuBoRMrtkx7Aa8dhTxVVHIvH16LzUcnl0LdljkSYQN2BtilmU4qaRGvVtgSi iemQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C9OFuI5lG+eYTij3Dadko0ByE1gpd4Rx9TnIKWlpo1I=; b=fyxjhF0ttyXn3czYuMNBetH23ivWieLpIoB6l+M6p5XUJ8Y2rDYoAyZfYAoWn4lgFd FnhfW7MGJT0YQems4jSGObxwbNZr+1JyxYx/HZZxNu5iSrwjg8AA9p1YTIb+1a/PoBhi T3i5MHYuNBUhr7FrJ89ah55h4/galLGO3u4q/wdr9W5lUiEnrXBJmUym4Jtj3/Ck2yP9 4iR9XZ5gRfDg00nwI7TflbcuU3RbfejASleoFVAdOolu6a18bgiN0OqrRDIUhWPSSDr4 BediuQp7w9F1gGRSlg7oNOpgVWD+Tg6tFD+YbHZhu3NKT7cuSLS3h7s1I8a4rD0pMfft S5Vw== X-Gm-Message-State: AOAM5319C7ChfbIiuGldho8tY9tyRwa4zfklbmKVInJLEXeOTg8rqEsU LSFf5v9yp1W4w31M8GAOHIk= X-Google-Smtp-Source: ABdhPJyS+DQAGnkN0WarBiPtbJI3PFyL7ovKC7jJTu1JrQovaUAf0e50lBD4xcPQXFhWthAzYrEecA== X-Received: by 2002:a17:90b:4a05:: with SMTP id kk5mr15240185pjb.174.1628751780975; Thu, 12 Aug 2021 00:03:00 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:00 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 04/15] mtd: spi-nor: macronix: Add support for mx66uw2g345g Date: Thu, 12 Aug 2021 15:01:24 +0000 Message-Id: <20210812150135.4005-5-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000302_358411_E814B17B X-CRM114-Status: GOOD ( 11.62 ) X-Spam-Score: -0.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 support for mx66uw2g345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2843c zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102e 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx66uw2g345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2843c zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66uw2g345g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname sfdp > mx66uw2g345g zynq> hexdump mx66uw2g345g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 7fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7987 0001 1284 e200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 001f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 8308bd7b953e..85780e9da3bf 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -182,6 +182,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx66uw2g345g", INFO(0xc2843c, 0, 64 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_READ | SPI_NOR_OCTAL_DTR_READ | + SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516137 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=oO5qzz57; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bYpRUzFY; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld4Z26mTz9sPf for ; Thu, 12 Aug 2021 17:05:34 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=eGiGH9NFaI9xcybu6E0d37NUVMSSqbN1ShLId0sCxFI=; b=oO5qzz57yp9Cwe CQw+3Q12zmQ4TsGRJeMQIeYATkybiBGH1KjrrWZbftWTRQht8gbfCcgV4BoYcS4Cxs7oib66w1n02 6U9eyuOINPui4NRnJTKxdCOp+XHYPf7Xtt3F7V4quZ+2SgL2SWk+5d5fmsTUw1I3XGAP/C5TBp4Fo J4eUNlerRcxr35Y8u+h+4nNw2rewqHNsLlVyH1Gp8mrzhOUn0cvNQ35BJmXAg9uftEtK68zIIXRLj hQEnAd0TgTQyIoY+Tgga3Z5WyGg4ghBac7xmeYH7NgnzhPILIii4EXRz+9ZBcYKcRonxRGdtmarr7 hCrqZa6vmZlP/UoaWZ7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4lW-008puv-Sp; Thu, 12 Aug 2021 07:04:35 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4k5-008pVd-4w for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:06 +0000 Received: by mail-pj1-x102c.google.com with SMTP id s22-20020a17090a1c16b0290177caeba067so13821871pjs.0 for ; Thu, 12 Aug 2021 00:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yYJmC8dtsCMeStVeTrbrdJoVJLOoeMSEJTUV9zFrKTI=; b=bYpRUzFYs+fioMuKgkWQ57yUY3aNC85Mk8o8E0LWuxPA+K9RHqwEmBzlLchBzMeVVg y2EkXM4+z8qI68TsNw/njTuxtJUqeyvGgJ8R0y3GO0mUSLr2GYDnfP7mxYvE5ryA3hdC 0uIdTSGcCpMKiILDPD0mGsekiowcx9+MUHSgvaNNqR+CflZibgZQf9HSm8F7nJvu1D3T VzLc0csbl3eURdrLdtkpmZvBp79yk4uWJW+WEGNtPiRfp+1xfh7Clrw1zskhAQyLFTQn 4LXsU+JTw/5XUZKS3w7GUAdM5n4WTdPjICmoXUZ3l2DKfeDj+sexiGRCP3ooXlufVWbJ XwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yYJmC8dtsCMeStVeTrbrdJoVJLOoeMSEJTUV9zFrKTI=; b=S1rpZMJK0mIdBx4IQipCz1In0zOOAW+mM9OaKtnjc2aBeXGcj86KgCK/kIpSUbrDNL TzWhdAKQdfnJJm2TyrepcI2Lx6Pamp42NDtuIfV13CpIyiGvp0u5Cbdw0Go2rnxaJ7UF XkoIWfi/PfvGkvLU8JAPWWXeLVVEOSacuHOHC8B6rsPvP7I4wHpoQr3VNQC3aNja00Oy YWIrrbdzCIgORKDto2F39bPNc5jFl1L/yCkjQmiktZAccmSejRCBC/bDdlOyrCO9FnaC yHkiExtwPYKIWmN/xaonfMO0zBAsvCykVXfiapVj5g1DYAu+OvfSZ1r6RASxKQmkyaqE 9z1Q== X-Gm-Message-State: AOAM530lmjcAO9jiYxZiPWToQB/RPgxg+MVAu3SmF0X4gFKNx6RatmiJ 5rPOOEH7DmHdJc9zT3n1NNs= X-Google-Smtp-Source: ABdhPJwYRDfF4odgyO0KEl0aWNeU6jbHlYmEt84uDn71ejKp5egEdtHLLizvabmME6bzE+SVcTpCzg== X-Received: by 2002:a62:ee16:0:b029:2fe:ffcf:775a with SMTP id e22-20020a62ee160000b02902feffcf775amr2636417pfi.59.1628751784144; Thu, 12 Aug 2021 00:03:04 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:03 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 05/15] mtd: spi-nor: macronix: Add support for mx66uw2g345gx0 Date: Thu, 12 Aug 2021 15:01:25 +0000 Message-Id: <20210812150135.4005-6-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000305_233334_D8B2A23F X-CRM114-Status: GOOD ( 11.66 ) X-Spam-Score: -0.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 support for mx66uw2g345gx0 spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2943c zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102c 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx66uw2g345gx0 spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2943c zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66uw2g345gx0 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx66uw2g345gx0 zynq> hexdump mx66uw2g345gx0 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 7fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7987 0001 1284 e200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 001f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 85780e9da3bf..28cff9843781 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -187,6 +187,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_READ | SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx66uw2g345gx0", INFO(0xc2943c, 0, 64 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_READ | SPI_NOR_OCTAL_DTR_READ | + SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516138 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=C//9uE45; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=t3fQONG0; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld5T4McMz9sPf for ; Thu, 12 Aug 2021 17:06:21 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=h82wIMRg2X5Pe0cQWgSqxKf41nSnqo/eu5gVFsvVKWc=; b=C//9uE45SfExsh oAXxLfzTVfVW5kq9lIn5h7Lt9NH1LMU0ejwo6rJTZbgwjA8tpLcaDZuSugoJNoxyPh4cV84olwWTJ FG54N8Jv9rW0dvY9nVxVvIBjc0lHDZnDsxcmg8w7nIbg5Yd/A8yVMrRL9Z7CAw+BBJgmjeQiIk1ir 3e+Vn4SiO7S33LkA+yqafUsLVRC4OVMiSWyHQd/XfTHJeaJ2xRfXkxZ8Rp1+dngrIi7AfO8Hd1/iC pvpdnGcJbxfGaGWOzN9EOzfC9vIkIMBqL1+EvLuG/AEAPVIY7S4bYbYV2txFuz4sdy64yOFoERBeQ adSOFjbUk4Cb0IItRTvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4mS-008qDg-6i; Thu, 12 Aug 2021 07:05:32 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4k8-008pWV-9N for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:09 +0000 Received: by mail-pl1-x634.google.com with SMTP id a20so6130408plm.0 for ; Thu, 12 Aug 2021 00:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tjv9m0jW87xZ4B3fxldj0vq3QYAZ+2FjcLReDNNKzYI=; b=t3fQONG0lX2FdR4DGy2qRRc66kTZDiGzV5tTruVnCjuKyeGaTV1/P6yI7uAH90fkMo 9Mmq4Xsd4VTsuwZSzWAcl8ymkjAraW/TfyEr8whpvHXdpDVreCk0gRLULd/KO/GFU1Ws SuRekotpEkcmQZrCvDyqn9SpX21bzdNi0JaE+X+PDzrx7lvtA09+6Smvb32KJTAfsvuU nxBbN8QWr7tSDSYtCbdshdsnOGWHI1I6oPbM8ARnXxzt2h4kagBUUBKTY4VHH/o42rkS INLy4Xe+/kNREWoWA0hFiOi+JmM7t7M8w1POjHCKtv5i2XhCICs25GZz5isRBvTAH0+Y ySuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tjv9m0jW87xZ4B3fxldj0vq3QYAZ+2FjcLReDNNKzYI=; b=OaJNbZjqP07QZu4Rc77ijNDv0gaMLRl1ty+GUtkhRZsGpGJhFneTSHS9ISUcQNkoDB LKV6JlXQFhAwv4OuqN1g6NIZWMHKYoUJd1huAKw1Cz9DsXs7FATQEXyHCOKR0QpHf3oA vAC1YSfmMLhJjJXYaZfHFKMU+QLPGFfP68ycwlUAQKAzIk3LNgUz9sfK5rLjwS2z2wRp Z75uatHsJGqK9YypT1Jxb4e1Ftr/4xRw5ryJF4VHNjIcsQ3sC4jCxVXjjqWkobTqHl7d Q8ne/0cBYRft4XrOtI7tlDqLc5QkeFBu3Qt+F1n8VFUSj3/CFo+J8Qun2Y7KAjN8ioV8 FRag== X-Gm-Message-State: AOAM530jeKS6J/dgMi7D3KW+kD410kYPL/JmzwFSUOyHi796KfWvFdti +vcE0dqQDEUney/De/A8MJ8= X-Google-Smtp-Source: ABdhPJxqOMn1Y2AEMgvUaUfbKrdUahhuMpqBBG2QJtByDrwOkKCLcR3fvZh3bzlEzInCCtKIiRhryQ== X-Received: by 2002:a17:90a:150d:: with SMTP id l13mr2843429pja.93.1628751787275; Thu, 12 Aug 2021 00:03:07 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:06 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 06/15] mtd: spi-nor: macronix: Add support for mx66um1g45g Date: Thu, 12 Aug 2021 15:01:26 +0000 Message-Id: <20210812150135.4005-7-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000308_377245_C1F02E66 X-CRM114-Status: GOOD ( 11.45 ) X-Spam-Score: -0.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 support for mx66um1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2803b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:634 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx66um1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2803b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66um1g45g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx66um1g45g zynq> hexdump mx66um1g45g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 3fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7989 0001 128d e200 02cc 4467 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 3514 809c 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 28cff9843781..d9ffba32dde1 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -192,6 +192,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_READ | SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx66um1g45g", INFO(0xc2803b, 0, 32 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516139 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=YUDJ9E+I; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tpS4/s0A; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld6d16V4z9sPf for ; Thu, 12 Aug 2021 17:07:21 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=rue4LCvZOfT31cDq0fQoz5J36Sbfu62VRgbJ8KGX3lc=; b=YUDJ9E+I2Z0X7D fq4+KBNpkrcn0M1Kmh96hH5Wg0Qh8ycPgn9osSZ/BIwjsNkWVHoLhk3zCMNdQ2TEWgzVkbPEMyN6A Q6L0xL4roEl1qdW0cLQ3ugLFwj/9+e8tiEqW4Ii4xbLIDgR7iErmc87F+BYlqZmav0G6S4CfDYue/ VSSAe3nJNRY59oyL2hK9GS/Jl0taCFNq2+nYPt3K51xMGotjQ9BBsfyNnmase79r4JpFeZsBJkmGo Z8DPXio4FqJeolFf5XXxgFqj7cFqlT1E8rZ7rpxudJRipjypee0Rc4azSHDjQZ49O4Dn2cYbhGzCc TlnBpoPotqdaAJ5qms6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4nV-008qWP-IB; Thu, 12 Aug 2021 07:06:37 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kB-008pX5-9k for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:12 +0000 Received: by mail-pl1-x636.google.com with SMTP id l11so6080498plk.6 for ; Thu, 12 Aug 2021 00:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e0OL+Y9dD0HrzJnF0rwEi+Zyd3FbI/NxZD56uSAW3Fg=; b=tpS4/s0AaeWSeMsNqUODSfCixK8Wq9pfkqCYL2NPNrhrqcA9jB3T8RWPpcdRx2YsZb tK8ftEfHDD19WaWwM2UpXb+PHXy+6+9ZFomGpVTEKvG4jqqczDEjqXfXahHlaGQ8vT1Y xG16EzM7RGsOFFNpdQF7WLJNOkLVvIrMDAgDLyRXb5ZH11I7AteEh8WBDQLnCHht6mjx bOuzg2sj4URE0iKUbH9AsHijoj1B1UOSGyzx8dQIIMOMC6asEabE7YukW2o1lUZmK6zB O1U1yS6lnas2MXVLZN/sNzuszSv4joc3DWb7Y1LKs1eqWS/tbKg7+6gXJgtNw/Y4Y70j STrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e0OL+Y9dD0HrzJnF0rwEi+Zyd3FbI/NxZD56uSAW3Fg=; b=AEOXPVPYhXQ3/MMmLHM6mLVtaDAhQGXlijWuq89jCRChWqh4APUqpF788xfXgt6TPC ZufagpZ44Avsrnel4SJANpb7nt7kx3oGDePwK7YwYO5l80cUoIXHXEDIDrgkwhv4jPHn yqWouic8mQfGhtC4Qtf+dS2n2kTsch1VX+f0vs1KegTYQ95qaWQ83s/UufHTvdtOeyHl DkRZcwZLgN65pecz2IE7YLfKIKeJ//WigO3RACQmYjHJtMFlY2i+gV4h/0PZ8icVDg5w e1v4cx4rK4HJdFkLE2LdFXGw7LCPNXxS/UFGZ5COb5cbrHTM69EiZhrwzBEUflSI0zmR neag== X-Gm-Message-State: AOAM531LJpU0R+QwiXdJUny44Gsc2x64FTjU4pWc40gX6Z7KLks/nayr QrFllt9vxNPqIhNCIXrFBsk= X-Google-Smtp-Source: ABdhPJy1PwinnOXbioH/RBrVnVoMQ9LW8Ukeck3fhdK1tqotFubsBYpAocitacq8z51Dob4v5aOixQ== X-Received: by 2002:a63:5505:: with SMTP id j5mr2613618pgb.250.1628751790324; Thu, 12 Aug 2021 00:03:10 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:09 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 07/15] mtd: spi-nor: macronix: Add support for mx66uw1g45g Date: Thu, 12 Aug 2021 15:01:27 +0000 Message-Id: <20210812150135.4005-8-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000311_376609_7D9C2434 X-CRM114-Status: GOOD ( 11.29 ) X-Spam-Score: -0.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 support for mx66uw1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:636 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx66uw1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66uw1g45g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx66uw1g45g zynq> hexdump mx66uw1g45g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 3fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 798b 0001 128f e200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index d9ffba32dde1..0f257b8b0bec 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -197,6 +197,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx66uw1g45g", INFO(0xc2813b, 0, 32 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516140 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=BywOyIo5; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=dnSXu50A; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld7v37wZz9sPf for ; Thu, 12 Aug 2021 17:08:27 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=dLpsIw/CPHfps5Lw9QaNs0Fd+yQmpNfckAlm4M/YQKY=; b=BywOyIo5qU4WI6 GKOeiCD2cJgJKWKxBzlgBql6TmshUijTjnvU8WmaZM10tZfoYgFeVvy7nF/ou3VZrM9grAm4jlONN tXMe8rRlk/JmtX66Bl8yvuSqAjxZ+lFcolYz7VJsVBRqMFNVoZlLrCDBV7xerTbiXIUa3pacjiOf0 uchGPo8Lu8cm3zSHHB2cPFTOkpka3cJECbnM0cs7lrz2WwKE5J+wzmJKcYoYQuck/mOcO7eL7fzE+ 6YqsEiFthYnEVYASL7229FKS1F+pq4AMFWg+1zsmy32/BJ40eQmWiXTZxq4fO2YRbI0cvoNunEfk2 82mQLrWJUOGTA61vQjNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4oV-008qj3-Mo; Thu, 12 Aug 2021 07:07:39 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kE-008pXj-C5 for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:15 +0000 Received: by mail-pj1-x102f.google.com with SMTP id j1so7836427pjv.3 for ; Thu, 12 Aug 2021 00:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B+Snt4HahB7/QZnIyHPlWcBlbpB9TITn3ewoOh/jV6E=; b=dnSXu50AkWax+NB5SkiNG0Qt4bX/KVsUg2vqTQVaWTmnGi2BcX3px2uH62P+GOHvRd 36WwKPsR1IIpWv+kVnPdHdiVoyyn5AmauR2na4xY6ypnlOq5OEIzkcUuMMRBtQzUd5wB BkMa+smgu9HKV/OyhNt/YVxPKg8tuNPGuo6/s+HN4hlPEIAkNcIzfc4CgPsl/WicxqAQ LJthnIUzEgijHA+KKtzMiu5Qdjmm381ird2jlATzMyl7MhGlMRzQt9yhx7VTuv27vIHe 54rKHT1ifY77Ip/QrtH3SRtWye21fkR+LSMfL7LBTeu0DLNLipyq4NdNzUkGriWskCpK Gspw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B+Snt4HahB7/QZnIyHPlWcBlbpB9TITn3ewoOh/jV6E=; b=obFsuLwEFQms7ira4lyxhaRR8cpP9aWvSjDoXWeGHR15F6/Z17QJVu9fz8aeOeojmB FPDcK+/rCa1uwJ0ppnyzqas4l8KQ0U1t97KT+vd+AM84nv0R22Qpzog5b/ycT/7gRAfa aB/Sf2k6Qpjl+juarpAndv6rSkkXIixg8lhyXvDq9WzFbxRbtpBSQy7NmXo29p35k+eW tn8pRI6h9oqgO6NIcI/Qe4BrE4krUsyAM8xdbFQYKC3IaLTncw+iH33YVpQ8Pb9cXgwp MNWwu3wcM/84XuGVATkvfrcb5vyqStbCyKsINuca9Ny0OOQpQwcZHo62DsL7hB7ctcHt XOeA== X-Gm-Message-State: AOAM532gUl5tK6iM+5pYYfj6z1RIL6x8OVImQogGz4//7FguKA/QNLBB DRorX/X33qPLfQC4Q7gqAJ4= X-Google-Smtp-Source: ABdhPJwxs0KQVPzy68bQYRKFi67N+i7Qkwm8XKdiklSHUQwc/RxcYB9pj+jnl4AC4pQFItWOOxgjdA== X-Received: by 2002:aa7:80d9:0:b029:2ed:49fa:6dc5 with SMTP id a25-20020aa780d90000b02902ed49fa6dc5mr2745493pfn.3.1628751793319; Thu, 12 Aug 2021 00:03:13 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:12 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 08/15] mtd: spi-nor: macronix: Add support for mx25uw51245g Date: Thu, 12 Aug 2021 15:01:28 +0000 Message-Id: <20210812150135.4005-9-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000314_448750_09C8D22F X-CRM114-Status: GOOD ( 11.61 ) X-Spam-Score: -0.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 support for mx25uw51245g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813a zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102f 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw51245g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813a zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw51245g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw51245g zynq> hexdump mx25uw51245g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 0000 0000 0000 0000 0000040 20e5 ff8a ffff 1fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 6987 0001 1282 e200 0277 3867 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 217c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 3510 8098 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 0f257b8b0bec..22d508fb98aa 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -202,6 +202,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw51245g", INFO(0xc2813a, 0, 16 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516141 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=1OjAiPZx; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=StmfTYWh; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld9V6R7lz9sPf for ; Thu, 12 Aug 2021 17:09:50 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=uiXAtvhRvZFuIKV6dNt2rYNiJtsCx3YPk1yZj40FA2g=; b=1OjAiPZx2QQbES AfXawLlP/Id6V7fb+6i9pBmpZummq0SOrgjw9+0nSlxprQP6ugghym8iRW7e7Lnanh/l/q8tZKKSS Bv76go7J/LgyPsJSssq6a7XlpMM8JDyoKxQ2P7fWcaRTXJSZNOIvIRBC6AdQGyocDqGfpqB0Keb+K OxgzQ36MSOKevFvE996dYtpshhMhZYrJJ7TryR/oTn1JRLrrLBZKTG2IEFweYouf56JWHo5wimdJv vin5KBmW0b0wUVV6so2C61Qc1ymVSBaxgy4lfpHcW8RkNNrvSoZGVHLDSvJYwRR0+rjuL6CqPKnGT aELMBXRHolpJWogXLlWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4po-008r0F-Kk; Thu, 12 Aug 2021 07:09:00 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kH-008pYF-4n for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:18 +0000 Received: by mail-pj1-x1032.google.com with SMTP id w14so7819581pjh.5 for ; Thu, 12 Aug 2021 00:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ViWPewWTerJUTjl/RgN990IOHiRjOX5rRiDqNZELA74=; b=StmfTYWh/mlIFhylVdxITjH3j59K9x2dQiDSSYb04Rfqk4Lx7217TP4d2Ne5Gx/4P9 S1k2D0KEUpDbmH7i5O0HZwXkCkNCrDqj6cYMVbLr889jiXhEZYjtUbYGCnBcV8Zhf8Bc ojvFIH1F5zAvJI1KwgMK5foJhpoWvCwuULIWLEyo22WzevvU4kndOT3GctGYHngGerfc WtuGGS0bsKcy9IfnN3PRsmtSP/Zv8pOLA4zOdw+VpRQ4vv/IvPUGpUPZGGFkkNh4z0w2 ZpnTSz3reN4sQEFuLNWBXLN90nZPrl7LoYP6Qb64PqzuMUdmOBemR+QkSJ34b9CNeHQg kI3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ViWPewWTerJUTjl/RgN990IOHiRjOX5rRiDqNZELA74=; b=goZ8jOo2kDv/VgYKT/RTuqnrHAOAkFmZwCifHAnvkB20XnU1TmRJGAQcZPv1xMWi0D QGFL5ftX2lbF+DybJ3Ayap+8LuJsdHQpeBh+stNOVhETlgPIUqvPb59CipMTlYKebOLm lcWizlkj0gb0scK22Fv5V0OcVH1YGI1b9uXvWI+j1WZg2fWaiZdPAEzFtzi+vHTKgy1U bN+mVgGyEX//GSz/yP1tXwfhxuUyUp4kW22JeaR2ZudEcNnm/O8IYMN4NhPbyt9QArpN y19dCEbl/0QmzFixLGzZJ0GBGlhO8ps9p1nDxIk22gLhCtknD+luOeyONBBY7CGZlU45 k+aQ== X-Gm-Message-State: AOAM530fZivYuXKehFAdfE9GxJdtv47OzLZ7S22VpsBEGlPkxKBM8iyh t33JnYclH9dIZF6/ioQixKY= X-Google-Smtp-Source: ABdhPJyeMquElqcb1LzLFNfWvhvSa2GNOEgAKMihMxeIto/gqmSyBNB+RDGJxP3gGsQiJWkhzh6yYA== X-Received: by 2002:a63:f4c:: with SMTP id 12mr2646744pgp.304.1628751796184; Thu, 12 Aug 2021 00:03:16 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:15 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 09/15] mtd: spi-nor: macronix: Add support for mx25uw51345g Date: Thu, 12 Aug 2021 15:01:29 +0000 Message-Id: <20210812150135.4005-10-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000317_230725_3A20D253 X-CRM114-Status: GOOD ( 11.40 ) X-Spam-Score: -0.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 support for mx25uw51345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2843a zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw51345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2843a zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw51345g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw51345g zynq> hexdump mx25uw51345g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 1fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 798b 0001 128f e200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 22d508fb98aa..e305fc256424 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -207,6 +207,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw51345g", INFO(0xc2843a, 0, 16 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516142 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=NMhYrvt4; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZIWykiSs; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldC56mpKz9sPf for ; Thu, 12 Aug 2021 17:11:13 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=7EjgWeiDQnu6y8ST63E9rE5BwjUXgXB9DW9gIczB/iw=; b=NMhYrvt4vfTNPL 7nx7yjRf2ERW8CsL63j41dS7AjLGfdca/A4MO5HnKxFp20TCmCPZ2XJbWQWpzbCfbcrh1ClXEYKO+ l650fCfa8RBsjUDGBMteTDMJmm6uBGo64ghbWVYrp/kxjZLVFSTJzCvtoNGkk21gY+6dbhpT5tUyW dXGusjsJ6Dvxbm8Td81opfk4+B6KMVep15IwzEbSYGuYY+jNDL92F6rmttGXcKhhg3Y9taF0PLSkj 8BIeyzZZlQmlBKRZEduTghOSGCtyq2a8NhB/bqbYjZEwsFEV7R5MG98z0boLi0VlTF6JOutYptHLI KWqzZTtnQyo/OpxqnCpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4rD-008rIU-N2; Thu, 12 Aug 2021 07:10:28 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kK-008pZ1-0p for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:21 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d1so6102271pll.1 for ; Thu, 12 Aug 2021 00:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vt5YQvgMyhu6k4grL+0mv+h5JEEQS1aI/U3FzTGO3ik=; b=ZIWykiSseBgvX6i+Ep60PQJPE33oVNurr3PYFQFXJPyz3c2+rMMmKQDu9Mz5tAb26q CDM+TrJYYFNS5ZAIPv2pJb+pRUT1cxUrsP3VIfUAbbmFwljLr/aWwha7rtxfLCREd5ro R1KhVv7Udxpwy+aEjxo/OVACBLera1g4MHPPHLyro7FyuPeO+R29u6DB40bBE6fnQ0om yS3afBEjAGSAGstyrByWg5Bl99I/55h4mrxCVxcO3cyOvkB/qTFWpkOAvcbdbVI4TXtK iz8l0+10mTZOOvf6H8PhW8KVCgNwHXBef86eYTSA4tO+yI7/mhzcjOZcMop3SVLWUxzw mPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vt5YQvgMyhu6k4grL+0mv+h5JEEQS1aI/U3FzTGO3ik=; b=J344DLH/N/7SlqDiftL/HTrSolnFHYBMwAAbebUljzOIp0LnoC7T705M7Dq90SyViK FW55XHvEqc0eV0/bfsD7iomg2MSApqxHhjwqCoR+m2lIIxnzPdrc1EMgwovzjqavHcEV NkSQg+z4SHwf2eG5omgFJA2QYwlpgdy6juTHsLGnnk5kUK0C8pGOvkPMhyA0rN5g+L+e TVLkFrcG8MkYslcy9m5lIjukJnZogSyPxU6RggPqSsTJs75NLc/KytUCr1bSReee5QWB WthsBTt4jhVFvKEs/eOxAbZmA0quviSeeaAuJ9lu0I9bxKXWgIKxp6aNmiDa3lEvsCW4 508g== X-Gm-Message-State: AOAM533royhdG7GiTkjknkctanQNGVkJu8+ADiLPnkPBpnk/7IxwCefq y3gJ1WpwFIWTNrtdNZHt2Qc= X-Google-Smtp-Source: ABdhPJzs/C7zgEotrTDE+HHjqz+fS8Mum3ohaUkErO1t8sjw+O988NYQs4EmN58hwfZDYuBRTVl/Zg== X-Received: by 2002:a17:902:7c87:b029:12c:8f2d:4238 with SMTP id y7-20020a1709027c87b029012c8f2d4238mr2557870pll.50.1628751798963; Thu, 12 Aug 2021 00:03:18 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:18 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 10/15] mtd: spi-nor: macronix: Add support for mx25um25645g Date: Thu, 12 Aug 2021 15:01:30 +0000 Message-Id: <20210812150135.4005-11-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000320_137928_B591C157 X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -0.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 support for mx25um25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28039 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62b 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25um25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28039 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25um25645g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25um25645g zynq> hexdump mx25um25645g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 0fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7987 0001 1284 d200 02cc 3867 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 3514 809c 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index e305fc256424..758b736ec580 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -212,6 +212,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25um25645g", INFO(0xc28039, 0, 8 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516143 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=vDSJUVOH; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=vVhfQrhK; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldDt347mz9sPf for ; Thu, 12 Aug 2021 17:12:46 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=f7K3dEY2YjN7UapRIQhB+pAeq9qT840FjilPfdz2Mng=; b=vDSJUVOHil8iVf coEnNRe8VQV5Eti9PuGcXeqXnHwJWHZj+wQCaHqihMcsR5g6cvDYtwdPTDBiPSdc5tH9Hk15TwbR0 aoKI3RQxZjyodSRdi6ebucIaoOsdUb1DfLoZh+Df+SBRAYMnSDGlouCAacdnMdnCKpXowMODYsqmX c7K4rFxwPMPVcNQR5xIm6FrQCfNVYm2SOcKC8zKvpiUMRpx0KRxUVpAPPfK/N/ph471NxWqE6dWeH Wg/HFdMERgIksODHFXTnUYKtEEVVSzoWbquLbUwTNcnQadDkFEN095dSw42pQbC7kJ4wpjbUrx/DI mF34WMSl3qp4L3kUzwzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4sh-008rYr-93; Thu, 12 Aug 2021 07:11:59 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kM-008pZl-7z for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:23 +0000 Received: by mail-pj1-x1032.google.com with SMTP id bo18so7944146pjb.0 for ; Thu, 12 Aug 2021 00:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=13WBqHAbNDt3UxJel9YPbYq1H8xChgHqzQg96gS+gNY=; b=vVhfQrhKKElpMjzrwXwEm/KnTACIdsZ6DQyzVNXSG17N4bXvTGXt/tbxRdXJvI/Wsn TtcWY6AVZUFF9oHFDmfGXArCGkwnbrlbc2JQWnF3ETW8lIksU0gIeiThbyvYDZfl4tXn HVzILzr6YuovFbN2YmM09TM/Yk0MbTw4URcr+8b10F88gNpQ1GPb9WD3s+cYSM2mzdVP TLB1EqCDVvICbGUPMoAwZsKAQvBjJbqGrgRa+5kv4jsiuN+A3j/KSZaRhyT3CrAdgx8o 3+MiIF7R+Dp44XBoYThXu+g49sZG0gB+OwF6UrKPrLOlzIRjxZaLfUJH1w5k5AgupyP9 CZ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=13WBqHAbNDt3UxJel9YPbYq1H8xChgHqzQg96gS+gNY=; b=ScirvB7wXXsGlq3UFR+gHELs+CO451gLlaTo3eZyCxAaiECnlXiALZ7kZlckvqJjp5 nbevW5TwgGIxHY5cMvCOu5FxERQMUt8E4eVcGNPUx5teyHlPQTH1qlC13O8u+yOy+uhg mVNAS5qRRPkHbccERLbtpUOu5D0m1oeJ52Iar/coP7p1CxPGli9y4vDW5KZF228rvgQK fgjkM8UTCOgmQrNXUabOcrgWuj6wyZwi0NRik7/3LW1N6i800tKyAjIB2ViZB05bA86J nCYPxI+TJVFihPGv8iLlnityZAtEEGDyzIibHAtOCxnTULGEQZhyTnIoPDA7Le0menxu QhnA== X-Gm-Message-State: AOAM532DiFyW6TZXk6Kd2/sf7J/lxGPzUXMTyQ2dE3PPUh1oLIj3ZqJi gOe3ybuSQ4raxt+MelSGjgs= X-Google-Smtp-Source: ABdhPJwJhuBoyKRl5zwvlTMNiB0++JenFyHKmBeFDXm6V1cSq4fRlOCnR734X1wLtEluYdgvQmnIFQ== X-Received: by 2002:a17:90b:164b:: with SMTP id il11mr14988572pjb.47.1628751801694; Thu, 12 Aug 2021 00:03:21 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:21 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 11/15] mtd: spi-nor: macronix: Add support for mx25uw25645g Date: Thu, 12 Aug 2021 15:01:31 +0000 Message-Id: <20210812150135.4005-12-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000322_341473_46000A8A X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -0.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 support for mx25uw25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28139 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw25645g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28139 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw25645g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw25645g zynq> hexdump mx25uw25645g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 0fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7989 0001 128d d200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 758b736ec580..cb8dafcc8d7d 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -217,6 +217,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw25645g", INFO(0xc28139, 0, 8 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516144 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=Nx+UT6N+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iW81e+9e; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldGz0SNNz9sPf for ; Thu, 12 Aug 2021 17:14:35 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=sTclB7Ciq9tCFt/lZaDwkIKyj1t7qF5kA4r1AJsjo74=; b=Nx+UT6N+KVqugs Lc2dpQq3h1v7HU1KHDsszFOmToxThdo/wkmRnlijbLuwUM3JcNRkF4C/ZHoq1S2rMB7/Vesu5w9Ps tf4bbbb+BUCv93mAveg0TODUm0G/fSanga5GHeNal97e5kAyZPO42urlGmDTaeB5hIdQqIDp8jTif l/EtxqQ70gitf4CKOROVfiaDBEzQ9prH/mUjl0hwmIjSDAc0hgq+l71peBRrvuArLEOR8J0cE7GzX u/JwXvlqwoF1LGN9RyH/fJXKcefcjnN+3KvZgPEw7FEm730flHF+rv0XW2oGmsuy7DlcjeDcQR09w t48NY9mFrFBhDr2YZwoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4uP-008rqQ-2q; Thu, 12 Aug 2021 07:13:45 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kP-008paP-HR for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:26 +0000 Received: by mail-pl1-x62e.google.com with SMTP id f3so6086208plg.3 for ; Thu, 12 Aug 2021 00:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nEqw+OcScjkPpxoWg/ircea+lwc/q5ieEEiAYEokqPs=; b=iW81e+9epYh0oROeZmoR83CZ+SKkcU0Ci3Z+2btcvzQ0ZaGCVFFQWWCT9zteq8XNoB fHdUcQLOE+NjS0U0HkoURgYJMvaoWcf7vjbdVLHf7+uQzroEcU7hupR8Oi/3aEbuAsSv 2NcS0xKFUOGXrvXfqWscBRuPXdtdZVmBxUZU+Z1oUoZDI/l0jQghz79ye2HbVmaymEgP 0rC/FN93pE5Fl6/Y7Wq3tzVPBLJY01jRBTuh0urTl9/BbrzOkpvo3z1kJ8zOFEQVtxQx V090uSx/9sdo3pfCsdLFOaY/vdt20oIjIiDJpXj66k85j5evduxvHMEdsBON/tgflYAo LYPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nEqw+OcScjkPpxoWg/ircea+lwc/q5ieEEiAYEokqPs=; b=LtiKIOet5C3ii0SizvqINX/S9NGB3H30Hrkg9pQVPprCrOb5hTEq4oKEwg11JbSwec /J2UwebyHiWJ2c8op3/bV14vRGJQQEyI9BLd2HkcNVJS7n4G629TNtt99LmZ9NauYpSQ HK06rih4WTPA5VL1/XSCcJ6ipV5m9nNtiUAcd5HiqyuFqjRHNuuDACzZcSYoeD0FBBya GGso+lx77ArJdZ5qNo43+AUeoY3jC78Q8EJhRv00xf+pRuXlcfLY0kHLSBnzxMzIIdrt XTOGGo9kCG4t2iJRVBxD6tOAUtFqrDYy6zOwooCLyuazjVkfpoVbKSLdKgpTBQ7HbAeo 4KJg== X-Gm-Message-State: AOAM5309Xcua2asidQnm87izFebYSvA1iuM/wZAxVXdGlpyZczCTw1iP gsgDW3RtGTjlDgl0fsl53rQ= X-Google-Smtp-Source: ABdhPJx0jcFs4SEGui0cm++iHkCPdUp5sl7wFdNECZemBmjOiL7KjhJ6J9RBBVvWpwTEh7WftuC5YQ== X-Received: by 2002:a17:90a:d251:: with SMTP id o17mr2881289pjw.200.1628751804553; Thu, 12 Aug 2021 00:03:24 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:24 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 12/15] mtd: spi-nor: macronix: Add support for mx25um25345g Date: Thu, 12 Aug 2021 15:01:32 +0000 Message-Id: <20210812150135.4005-13-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000325_633743_32984B08 X-CRM114-Status: GOOD ( 11.55 ) X-Spam-Score: -0.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 support for mx25um25345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28339 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62e 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25um25345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28339 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25um25345g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25um25345g zynq> hexdump mx25um25345g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 0fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 6987 0001 1282 d200 02cc 3867 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0904 0000 0000130 4514 8098 0643 000f dc21 ffff drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index cb8dafcc8d7d..aef797b4d3e1 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -222,6 +222,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25um25345g", INFO(0xc28339, 0, 8 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516146 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=x0uat0Pg; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=OX//T86A; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldJz1n8zz9sPf for ; Thu, 12 Aug 2021 17:16:19 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=gMLjbPg7BUwGALkbhMdNvCmn3EfeqbkJQdYCHFvLBA4=; b=x0uat0PgGjUwp4 0mdmy+QZNxNWydDP0EC45q1cD4iSIGoA6LwULceZ+81x04HYrKFtFn7FjYxJCJBMRGXiyKaGjbeg6 EUslN1UDWA/t6h9PUI+eNg+YHkzCejMjL05PKfhcm2P/gLryqF7h7L5+q3QqYaPIDT0nF5+Xp6O/g FWOwLjfDLyUTFzuEDX9wlFyscxHye6uLROJ7D44nVQQgIquHw9ibMyP+XiNdlaEpbgPSYTZjODJxP UX6d35c2RENM4xu9d37pHkQJ4AUYgOsIWKoDtrPLe9yAL5ThIFq4rGE5x/hWvttksm7wp7L9nrV7n 0bgg1Lkph47Q+r+xp4Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4w4-008s6p-Ve; Thu, 12 Aug 2021 07:15:29 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kR-008pb9-N9 for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:29 +0000 Received: by mail-pl1-x62b.google.com with SMTP id c17so783846plz.2 for ; Thu, 12 Aug 2021 00:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vb4EGf15nEimpXwkcn1OCHfcJU0Qitp68QGq+40gZBk=; b=OX//T86A4dbHFqXwcM1p+JQEGzosFpXI/WeoIGjnN7w2FDlpBMhAPw9oOTkHN8BzDB kIXGuaKq6vkVqkk0onX6wH96LaVzdk9krH6U0BLXJ/tcwwzeHmJR8ddVKfHo0HVnLW2a qo7cJ8fUjgCTVq8PsHy+G10keW71ueNYEKXYb3MH6beuG4Cw8vFa1Cv6EOMVNf37G0Xs wQQsjrBVTWPXfko5MsZgfBetCDAku+waxtDd6h0U5kATOf8Y5kq3CFjow1DmpJdBBfzW 19cUc+quzZp6CrZX6yJ/3WQyZFAyWNC1V/my4mfmsip7xl9iYUnLOOlVsSxmPpBfqOp2 GhUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vb4EGf15nEimpXwkcn1OCHfcJU0Qitp68QGq+40gZBk=; b=TYZPraVClCvSW4WQKD3L4C0HASfGwpZme2BnlRroyj0TzTnziFAnAA5Hb2j2jGIi3G ZbFDBX5DJCc7UQv/2auh2HU7EGtf9HdKX4TbsShmjFQhhL9l2BHIdRqz4+208uiyVs6y 1hmrTkflG+Sg8uJcoCHwCzh9l0pZsNnDhym7XJc3f16n6erPS2WThol2PeplMlPAw066 SWD+/zguoeOSOF9d8En6tJFeEFPflu8Gcx0yBGuCYdXfS6Gev08y2Yq6sAviiZJ/1c2m mlxgbxD8FO9ZtilafYzTJgX9CBH9FiZNj6R0Rj69bLTPhd1iQdw2bWz8lzMgQnfQMmxU Dn4A== X-Gm-Message-State: AOAM531CKrikkv6QsORxixrvObzEHpUpskowPHGziRL12KtkeGfGkxns 4IekbWZobA3QTjRnRz4tOOY= X-Google-Smtp-Source: ABdhPJyTKMwPeWzmJukkx/NpkJa0rqlmrLTmZVuIdOaF2ZmpGtz5zbAbHfuAZot7ug0Fz1U3r8AdGQ== X-Received: by 2002:a17:90b:102:: with SMTP id p2mr14986821pjz.126.1628751807321; Thu, 12 Aug 2021 00:03:27 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:26 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 13/15] mtd: spi-nor: macronix: Add support for mx25uw25345g Date: Thu, 12 Aug 2021 15:01:33 +0000 Message-Id: <20210812150135.4005-14-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000327_788576_10E5AE4C X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -0.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 support for mx25uw25345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28439 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62b 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw25345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28439 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw25345g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw25345g zynq> hexdump mx25uw25345g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 0fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7987 0001 1284 d200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index aef797b4d3e1..764832be1622 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -227,6 +227,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw25345g", INFO(0xc28439, 0, 8 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516148 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=muxLsDH4; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tvz9tH+0; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldMV0fzbz9sRN for ; Thu, 12 Aug 2021 17:18:30 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=yCQwemYz8PkuNsEQBo07v3b8OWoFzuNs7p3BI62TbIw=; b=muxLsDH4yPjsnN jpY6qrYGhBgxoIScdn4yWDAIzyroLo7UZPcZ6cDpt5eimZ314ZvksfDZ0Pi3sTXJ4spNJEhTqTT9k Ksx5OsTaapV5PLFIazgW2WXlKXizryWo9AeBThkHAoQZcgmvbn3LElQiSmaezS/asgdGdc+8DvJDA bIfQcVcJsy9YsoVAMrKWiDhs1JLrVPp4ai1GJRVbZrJBN/Me69RqXdL+J7OTnNlOWO2005AV2N/PZ X+pEX9tmrQpCAbgEURWuQs2B/T1/EccIgpdCJGQkzla0t1JQJOK2waaPYOYBVLPFZwX1LiGoec39P Q7F0EsCaVmhZQVCA7PKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4yD-008sSA-PQ; Thu, 12 Aug 2021 07:17:42 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kV-008pbk-0p for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:32 +0000 Received: by mail-pl1-x630.google.com with SMTP id b7so6076137plh.7 for ; Thu, 12 Aug 2021 00:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=04ma0zdR/qHLRU2SqYgZf/6QZ5K/X58K+Cf2FYupRfc=; b=tvz9tH+09ugGtc25QMMG5gf71lWwPWwLF4jAPCZKWyHnPFdbbDcBVm2Sw0xmpvWhtu Z1qaT1d58bXPSCfyeYaHuiDQO3uJ+M4S+tTsTbnzG9jvUBqafwtAqjMunIyQ33vYg1BT qjMclfPHTUmFMGq3A8n+aaXdmB6Bst1+4LA4cI1I2Z/aEjQh7Dp2MNu7b2WYRfht7Tlx U79caLfGwnpM96cNetBeOV0wUbV6mj9Am9RS6juEw0dBQalb03ANipuhuo82TAuk/tcQ /VoBlZRSlTCEDSjOO/XAfux4eLeQao+jBqLvW3OJNJuPgKMT54qWWRae09pblGqpE8Tm a/GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=04ma0zdR/qHLRU2SqYgZf/6QZ5K/X58K+Cf2FYupRfc=; b=YIfnJUjgZEUliEOtoOkGH1jTEmQ7SZe8Nb60M+9UrobgweNgKiodq3tU4KDu7BW+ra 0nqqaOvmAQvYQAz5TeBOiOETY2u+WsJ+PrZwajwdXZ9rhtOmKY7iSUtbrUQQd1/8pyRP qukrbSKNZTsi5N+cV18tGZuFDZfI75q8IP0p8PmyqBQa9mZz9Bqs7gHkQTRkkSRmdmSh TvWqJD3LLMHow3+mpDnms234bnB5gYV4/NgHf+g3vtPXvRoGwPZHcoN93HswOmknxd+n /qzbMF44nRA0fCH4oL6V/0AmkPLt8QxK8vFeNloKIIBAV2OtmzKQ7rJSD/FUwk0qa1+R YduQ== X-Gm-Message-State: AOAM5310CnTJ2k3xpPhmMfGumCNlbfvciBPbwuJVF7PwvKj7+5NMK3T4 yMRniCPbr39BFKAtm66+Gnw= X-Google-Smtp-Source: ABdhPJyMRWG8s1tjxKjhISO91pibepe7qdAM6p0wFM+3Zayn9MRiLpJFNLeTh11EkAsDZgRTzJD4HQ== X-Received: by 2002:a17:903:2345:b029:12d:33e5:d8aa with SMTP id c5-20020a1709032345b029012d33e5d8aamr2473648plh.18.1628751810023; Thu, 12 Aug 2021 00:03:30 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:29 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 14/15] mtd: spi-nor: macronix: Add support for mx25uw6445g Date: Thu, 12 Aug 2021 15:01:34 +0000 Message-Id: <20210812150135.4005-15-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000331_107704_6AD5415A X-CRM114-Status: GOOD ( 11.45 ) X-Spam-Score: -0.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 support for mx25uw6445g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28137 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:630 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw6445g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28137 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw6445g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw6445g zynq> hexdump mx25uw6445g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 03ff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 7989 0001 128d c400 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 764832be1622..01537b5af132 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -232,6 +232,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw6445g", INFO(0xc28137, 0, 2 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor) From patchwork Thu Aug 12 15:01:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun X-Patchwork-Id: 1516149 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: 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=H7MgPF3t; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hwnRP6no; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GldQ96zWnz9sRN for ; Thu, 12 Aug 2021 17:20:49 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=atpSGe0+15O5HQ6iOHi3xbQXLU48PSr+0SdcdjIriWY=; b=H7MgPF3tVq3MFI EAI95cpADSEVbts1vFHM+13fdbecJKm1BtooNYzvV2AYeUI4MiPKxvTP1ccyPc9yr/fcImp90glrp EkeejG75f/LEMF6T1k39PEQCtLFiuxpymTRuoesY4IEGwTlZ0NH911/JFaQSJtB4BQsyCgxDFQeWa MTad7nrLL11lAAdPRL+covHnCuDZo8T+sOHqkYf8kSfD23LEzzaL2doxKqAmHL1u//iusknmkSuTg LrcEVRU1ajnQp8ie5n8HbMHgl+Sy0QGg12r9maOc5UiTt30hR0I3yzv+rjTKf3KN+cQmNVZe8YWvq Y8eJ+r5+n+kbHcRKxXqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE50X-008ss0-9L; Thu, 12 Aug 2021 07:20:05 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kZ-008pd0-QW for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:37 +0000 Received: by mail-pl1-x634.google.com with SMTP id a20so6131819plm.0 for ; Thu, 12 Aug 2021 00:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BDhaCgK4u8WaPVmkpJ3XJ46iIGCANtlHhQFxxStGgKE=; b=hwnRP6nogiQ4cA9x4/ENGOG2UFmAuhsBOL9jG41H7JlTAXteSw5N7pKwo6oGq38L/y gAQTloo/w8Gcfrf1c58rKPkxFBp3t1azflu17FV5iUszFxpecHJrg5or4/7Hyx9BfgZq OrLvpwynzd5iS5MhRa3ML2cOxsA8OcRYIhVVlCAX++1U+NtvjfEtcB7AacZD65wV8Xiv NkPIMHk68HSpDl5jRax+s1SLmzIyNDo72sn5HZeGvPGs8eXYwSrEeFXttL2ht1clKYKw MPc9nhCcp2QQLhL/lof1s2mfxfWnKn6ZK4nzvSrGcwF4yI/3mMwrgjUbSPoGFXHnvAuu rpAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BDhaCgK4u8WaPVmkpJ3XJ46iIGCANtlHhQFxxStGgKE=; b=TzclWEGT7joMCpT3yL0OQSeZnKgnLbub6iEtuYhfcflxxQjWVFDNTCuFN8E+cdg0/P iBA90HAhO/xQUKKGvLnANYaGRTw4DreHp03eHKprQxUtf3dGWd3Xpo/9CW1yOFH5Cq0f 7RVeNF5a3PkopLun74pGg2kl8atmxwD+IYWvVLvL+bOhT1p9VPGAf4q4Y5PTUaEUPmr1 zrtSozLpUGdXLM6PvpMS5wyC1NqPCzcgkUQm61X80Ylhnr0NjpEVfc0bj9YANaIG1io3 QrEkCy7uxoOs3ejy0xE7DtAIOxnHWQHTF/y52+YJfwSEydpJwRexTWfbDi3V/iEVxf3i VlBA== X-Gm-Message-State: AOAM533x2QIaVJFGbvdb2QdggYlGx2lF4Wy96FbN1bgutu6ruivAhsIh k6rDUxiTXO/du13bvSB55yU= X-Google-Smtp-Source: ABdhPJxmHAoN2Vjz/ZSaJJq1YIxW2EZIT0G3Ts1uasbAmg9+QAwNxYMql2Mvf4bOcXU1ClT76woPHA== X-Received: by 2002:a65:51c9:: with SMTP id i9mr2587009pgq.102.1628751815440; Thu, 12 Aug 2021 00:03:35 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:35 -0700 (PDT) From: Zhengxun To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun Subject: [PATCH v6 15/15] mtd: spi-nor: macronix: Add support for mx25uw6345g Date: Thu, 12 Aug 2021 15:01:35 +0000 Message-Id: <20210812150135.4005-16-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000335_908122_F70C6567 X-CRM114-Status: GOOD ( 11.34 ) X-Spam-Score: -0.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 support for mx25uw6345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28437 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:634 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add support for mx25uw6345g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c28437 zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx25uw6345g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx25uw6345g zynq> hexdump mx25uw6345g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 03ff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 798b 0001 128f c400 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 237c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 01537b5af132..05dc3210a556 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -237,6 +237,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx25uw6345g", INFO(0xc28437, 0, 2 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor)