From patchwork Wed Jan 30 04:11:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ding Tao X-Patchwork-Id: 1033265 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 (mailfrom) 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; dmarc=fail (p=none dis=none) header.from=qq.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aKJSEBzx"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=qq.com header.i=@qq.com header.b="fdVvRdtJ"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43q93Z0nfBz9sBQ for ; Wed, 30 Jan 2019 15:14:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cZaGcS73YlZ/Q+UGMF0UPhKn97evDKB8Exh/AZov/og=; b=aKJSEBzxLu+FP+ lNDfW4UPdIsTJxijol+F/nr2wl+six6/epMjj0lgckcJUJMVi7Hkb7PtXWocOe16nXyUPK9cPgVXo o0WyD7aeqUvpfKmlvbAc6VWozFHyejuAmduzOOXF59C+vAXxvidiuJAJ+A6OgUUERiJ0XDabuzfkn DpWP13gk5nWn35VwFadMo931xuHdKNE/YrtgPoq9dC2nkSjfxNuf7+VAhMQ+SDfdj5Nvew9/0wWCe PnMWFmVfHvBNshzVp4Nz3CZvHl9x5nnc/VnsRaN9A79HmPYtZE0xKPW8riSU6EXIdy7rpLa+oessF SOxfCQMrBC1KBLyfx3TA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gohG7-00022k-IX; Wed, 30 Jan 2019 04:13:55 +0000 Received: from smtpbg303.qq.com ([184.105.206.26]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gohFx-00021y-9w for linux-mtd@lists.infradead.org; Wed, 30 Jan 2019 04:13:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1548821514; bh=YUa3jaRB5mDrOoOXvBMffAyj7NxBV118ZYKJDFBWdC8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fdVvRdtJbr+zyKmtPleu/SojJBpNQqDb+YxR8CR3rKE2vhhtu0xrOcYIF1GUeYrUo cvv9eMThQzF0SZKyB0/UPdz5mecx/GbsuJmQQk6KN/HcD4qxiXtMHHGbfst7BfVu1f sob6JG50S39UFeMSJVgY83IG3LrAzfX27RPPqCRw= X-QQ-mid: esmtp7t1548821504t0qf44yvz Received: from work.lan (unknown [175.0.122.109]) by esmtp4.qq.com (ESMTP) with id ; Wed, 30 Jan 2019 12:11:43 +0800 (CST) X-QQ-SSF: B0000000000000F0F8202F00000000Z X-QQ-FEAT: j16GwkBt1Eczqgy7ja6eO/EMLCSmTZewf+Dkm9Orf7uiKuCcNMLR8Ky7QtpoS ivSnTMLPQHnvBsZPbyGzmXYR720EhDEx17T5xv/n6I34Rt3/WHJDh15HGXsqKOshX7kJtC6 ejcgAL/THNn+eL9CT0UNN3tmoln9jB64YonxCpHUugySEo4J85xnXJ9IN+x8BDp20O3RFU9 DY7K2X0QT/+kqhHaOegruYQ8C6uA0eaRKUSyQdIrE0J9S6uyQqpBktQjM4eDYWdaBQ1zEXN vfgMCgWAQ2+Ubqu9nG6utcUxOQ9RRNpIGSbUpnVmqrXDhK X-QQ-GoodBg: 0 From: Ding Tao To: avalentin@marcant.net, hauke@hauke-m.de, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, richard@nod.at, Tudor.Ambarus@microchip.com Subject: [PATCH] mtd: spi-nor: Add support for mx25u3235f Date: Wed, 30 Jan 2019 12:11:21 +0800 Message-Id: <20190130041121.109735-1-miyatsu@qq.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 X-QQ-FName: 8F7D6C1B4489425D8048B59E97CFDABE X-QQ-LocalIP: 10.198.131.167 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190129_201352_098143_A2AA94B4 X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [184.105.206.26 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (miyatsu[at]qq.com) 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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ding Tao , linux-mtd@lists.infradead.org Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: André Valentin The mx25u3235f is found on the ZyXEL NBG6817 router, therefore add driver support for it so that we can upstream board support. Minimal tested with u-boot tools fw_printenv/fw_setenv on GlobalScale ESPRESSObin v5 board. [miyatsu@qq.com: Remove unnecessary white space.] Signed-off-by: André Valentin Signed-off-by: Ding Tao Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 6e13bbd1aaa5..01ac2e4babaa 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1836,6 +1836,8 @@ static const struct flash_info spi_nor_ids[] = { { "mx25l3255e", INFO(0xc29e16, 0, 64 * 1024, 64, SECT_4K) }, { "mx25l6405d", INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) }, { "mx25u2033e", INFO(0xc22532, 0, 64 * 1024, 4, SECT_4K) }, + { "mx25u3235f", INFO(0xc22536, 0, 64 * 1024, 64, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "mx25u4035", INFO(0xc22533, 0, 64 * 1024, 8, SECT_4K) }, { "mx25u8035", INFO(0xc22534, 0, 64 * 1024, 16, SECT_4K) }, { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },