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)