From patchwork Thu Oct 24 14:42:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 177529 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2289735ill; Thu, 24 Oct 2019 07:43:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyONQwCTW4rg0+z8DjTCdtVGD46cdXKKMEEL5LIUTeOnaZH+g2tYqtzjlLlN5S4XSt41tAB X-Received: by 2002:aa7:c502:: with SMTP id o2mr4917105edq.223.1571928206318; Thu, 24 Oct 2019 07:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571928206; cv=none; d=google.com; s=arc-20160816; b=La/SR4JlYlILwMK6t1JviZ6h1aXiGTnXB/Ts8iJZ4JEusFM/P1hq9Aab4xkCD9ubDe OY3B28zz3zXPddYfV/LMkDiQHVGRWOAtCwwDWPZVusoRmAhABdMk589u13l/LAP7QgZT jsLAygEEQBZU8m1S2/uYBiTC/+VvcfIqQ7GKKGSuzlqdtHUkm1p5R004bs8ssJTGPVOP Aj8kWsALML+JRPGk+8efkIB25L196qZChAB4hW6SxGJachfEFPh70ELI85L+S3tiH3Xh WmSb6YO6rYk7GmoPVRCzDQt7VyXlRE4eoPgPJPYAG98DxGP4RFl4QXE7Jg5sweYQm53D pwpQ== 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=ej8B142hK6d03XKUGaQLuYVY6IpXZx2RmTPiqw40xi0=; b=bRWdGn3+GSrt+Fj2v47bBj/PVlKMJz96M9FqXW4jn6VgOdFdE5iBReaOunRE40rCSe o2GVn81u+3sszA2FMUJ0tuUiXkkEiOMsaX0Gfurrj9KCxysRMyP4EFv0XzwdXN0ov1lD Jx8c1JkmfumqMjfTk1/0MOJpwFonHljG57i39GNjZnd6FJnN7DMoKpeXjWjf3MOvMXZD HWR2EJqFisaVajhcvt2g/00nJen0eJum35JEoln7fZArUI/HgsQtFmLXKgdDK1uT8I3O J2RzA5n6p6KRzrpOx5PX68v1HnoInPxTbTFzbgGHq/D5Vl4DdfOQV3hGqpeET0TK87Ad nLOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aebygqwd; 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 ng2si9290029ejb.80.2019.10.24.07.43.26; Thu, 24 Oct 2019 07:43:26 -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=aebygqwd; 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 S2502929AbfJXOnV (ORCPT + 26 others); Thu, 24 Oct 2019 10:43:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44685 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502818AbfJXOnU (ORCPT ); Thu, 24 Oct 2019 10:43:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id e10so14370729pgd.11 for ; Thu, 24 Oct 2019 07:43:20 -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=ej8B142hK6d03XKUGaQLuYVY6IpXZx2RmTPiqw40xi0=; b=aebygqwdzbyjiw1HI65W5nDqWVi//gOTnjJUMoWKjfynVochCmJY083Di3Z6fMd+2Q B4E5dQMYgWhkj9ZkFE1XJlPGurpFgXZoXwPoXN9Ix9sKAib91IXfaGWLfPxNvf3fkPvt Xa9/13iNYaLa/6P/LIUpcwIl98F2OusacFiQ5mWEss9viOnVX/ClAM4b5QmYv1JbmKef vgw4dOPpdDlsccirWZmcKsk8IZ/+SjhU/yAP5tvX6oZiodBlWz2livl5Kjma8204ZPEb EyxBRzhDqTzo65FthvKiqj3+vbKNzEYTYxRoop5a8r+QIENcwNZzUUNTCsxJxSwt8D8e NFSQ== 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=ej8B142hK6d03XKUGaQLuYVY6IpXZx2RmTPiqw40xi0=; b=iguuVwe+W5OS8PIN7NLUZnQ4cIY3I16B3pVGlsDt/wZ/q7yq0XP5FjN+a1dE4v7TgO 55GeS/eo7KhrwkSEO9ntp7/cpJnRTjZuv2YmV9N1DFTfy2bOFRR/rRfrDe2imPz3S3XX 5Lm9YQnHk+Egh/R/T7GEcKpKXoGMJVUhpK8Xkt1o/ze94JJEl61igCXfjTDzYjsSgStM Ez+H28Or7qXr5O04kL3qv4g4Yu/tzHGZ3uzizFMgVPsPbkPsUU3+v0Xve5sFoAWatFgS OrWk4gBKUsYpqi/3PiU45G+xS4cBwuR2OALIsTeVhBzYdVNmYzw724Di9oQiuMe5fLOD xNHw== X-Gm-Message-State: APjAAAUHs3EuhESWMSGHtFZeoAJf3ijOf9z6UEcIvFKwga2tEwX8lg01 18YDDWMqj1/XP14e2yECUFek X-Received: by 2002:a05:6a00:51:: with SMTP id i17mr11035059pfk.8.1571928199878; Thu, 24 Oct 2019 07:43:19 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:997:a0de:81a:ea25:468a:5918]) by smtp.gmail.com with ESMTPSA id 193sm29059810pfc.59.2019.10.24.07.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 07:43:19 -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 3/3] mtd: spi-nor: Add support for w25q256jw Date: Thu, 24 Oct 2019 20:12:35 +0530 Message-Id: <20191024144235.3182-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191024144235.3182-1-manivannan.sadhasivam@linaro.org> References: <20191024144235.3182-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 4KB sectors. 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) },