From patchwork Wed Oct 30 09:01:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 178084 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp979193ill; Wed, 30 Oct 2019 02:02:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHRIEHCA7QLsGbD+N1NGJlqeExE7V0KjAL7UPJuVsFR1U2ruScCSuFl5q1ys0mx9InHTY/ X-Received: by 2002:a17:907:40bd:: with SMTP id nu21mr7891256ejb.190.1572426151628; Wed, 30 Oct 2019 02:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572426151; cv=none; d=google.com; s=arc-20160816; b=0xO1t+d6JM7KTfevykYHb2w0OeksF4o9jpFkDeP1bkNFo+ojVFyWQItV0nP11e3Kis LxEvxXDWzO3We3hQgUbpWHvfiRqCUKjIY8G3d+vkM1z0IQTPAOh17f03ad3NGN14Evz2 dTF/rxjLRUfe+pGPJ12/1WXYBzmIE/86cxmpab5/xa+/FOoyMCSqIBlZjBZW/BUOWttd uNvcJvipcmguOiZJgPF94+a1vAVg7Rbfksc2bJSIPx2TCijCk0BmcCeOpuznKCP0qIV8 Q7+zbBMw5m543YIbn8m25ycgg6BrzUpOy+EMxoMiN9mR0DGDVAhg19Kpr+aTgrhEgaMz dzxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=LAPsnGt1pYtfbduk+JeNTkq03C0NkkTkxfb05DzEQJ0=; b=bHcZEpXZ5K/H2ai+Pyo36YLpG0wTBMDS4p1papq1PjlgCqzTPVDeHq2pUewDBu1mde jUJ41jpbwgUibMn/CNRmPfqPN9P2/GFGEWWaauKJd5tu9xbrGe7F9Fx4lUkgYgDNOTvu 9PAyWmsZKpNL0dBsDf6rwvk7yoMzvyFuT9/zsY2PWXo208PRAU/fw+kjdz7wKWfml9sZ c8K7/3sYia1c+2VMyO7DRvzCJMt/zoBIVzOZvrQ7SprqtMFZLRKlHqp1E9Vo1GXTC2Yr waz57JqwzjFwyX9NdhULpNBv+Ckx+PhnrL54mijJPwV2HOz9ACYAW9X6CycF5Gt71KzD ldVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OjUstP+Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si1071520edb.183.2019.10.30.02.02.31; Wed, 30 Oct 2019 02:02:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OjUstP+Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726705AbfJ3JC2 (ORCPT + 26 others); Wed, 30 Oct 2019 05:02:28 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41062 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbfJ3JC2 (ORCPT ); Wed, 30 Oct 2019 05:02:28 -0400 Received: by mail-pf1-f194.google.com with SMTP id p26so1118359pfq.8 for ; Wed, 30 Oct 2019 02:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LAPsnGt1pYtfbduk+JeNTkq03C0NkkTkxfb05DzEQJ0=; b=OjUstP+ZDVdOGkJvM7Td/6qBjFXM/KJF6OJzUcEP7TyIJ4ZvUAn9T7yD8XjYxDNEJN KHjfvWijYiNtqenb9bwa4Sd1uGk/jU8FssM6dooJ4yDHUi45cn17lSpLQFbVew2amgW1 FPa8iEp/VeagMZARlx0/Hkpd+Tt/g031BieCjXyxwn2gsco2zYNWb50cT4woJ+ovMB3Z fzA4VRtI6KPvbdbp/WHauQOggzc/Pzxm45n53SBGlLJ/X4cN+ny0thBTdo/0mLdX21nN udm+afipjTPSHKncaghH/3F0Zwzwekn1z/WYsofoSyAtuLp7QCy8b/4kPAXWhs5jUQrf Bfnw== 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=LAPsnGt1pYtfbduk+JeNTkq03C0NkkTkxfb05DzEQJ0=; b=q3wQ7hTtn0M9erzd3muajo4jcmVSRm8wZkGPXHnCIUopratZb/G9HOvD/Y8Pt1dPk1 W7kNBNMwQGLDVTHj4+eL2UTQuHBwVnpiK2XOfxkN51RaSpZaHhVE3/L1p8z0jHOeaO+m biD0eYZPvfr+isFSW02cLlk3IZFQwXYOVybB2lqpiEe4Ez6Y4YU+TwZkCQBdcL5+uZmN 4HiIC+u0UX0+FNNyLyH2P/47gXpZm7FEzNsLeDw3PZ1YMKSM/ph0+PRsHGXEDVSYNk02 bgdUr3Pu5rdFoJPy67QFb3qM2+BD47du2uKxO8o1MZY7w2ScIeJiXtjhXj4Cs/a9ivIt yLjg== X-Gm-Message-State: APjAAAUM2gg5lt9Pk9VlhA8qjB4Rh1VMlFS31FdGCsC1JsN7eNdWAjI7 +qcc5jewDyhAElJyN9jRjPbi X-Received: by 2002:a63:6d02:: with SMTP id i2mr33658547pgc.64.1572426146740; Wed, 30 Oct 2019 02:02:26 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:618e:77d9:c9fa:423a:3851:8df4]) by smtp.gmail.com with ESMTPSA id g24sm2070351pfi.81.2019.10.30.02.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 02:02:26 -0700 (PDT) From: Manivannan Sadhasivam To: shawnguo@kernel.org, s.hauer@pengutronix.de, robh+dt@kernel.org Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, darshak.patel@einfochips.com, prajose.john@einfochips.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , Marek Vasut , Tudor Ambarus , David Woodhouse , Brian Norris , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: [PATCH v2 4/4] mtd: spi-nor: Add support for w25q256jw Date: Wed, 30 Oct 2019 14:31:24 +0530 Message-Id: <20191030090124.24900-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191030090124.24900-1-manivannan.sadhasivam@linaro.org> References: <20191030090124.24900-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MTD support for w25q256jw SPI NOR chip from Winbond. This chip supports dual/quad I/O mode with 512 blocks of memory organized in 64KB sectors. In addition to this, there is also small 4KB sectors available for flexibility. The device has been validated using Thor96 board. Cc: Marek Vasut Cc: Tudor Ambarus Cc: David Woodhouse Cc: Brian Norris Cc: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org Signed-off-by: Darshak Patel [Mani: cleaned up for upstream] Signed-off-by: Manivannan Sadhasivam --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 1d8621d43160..2c25b371d9f0 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -2482,6 +2482,8 @@ static const struct flash_info spi_nor_ids[] = { { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25q256jvm", INFO(0xef7019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, + { "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) },