Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1246209pxb; Fri, 21 Jan 2022 13:15:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4TBYOcaGCYYGdTyHVYxKhkutik52ugWspqcSdiptwR3mvrVsszirgNnuyT0kE7hJTqwxE X-Received: by 2002:a17:90b:384d:: with SMTP id nl13mr2522834pjb.46.1642799735727; Fri, 21 Jan 2022 13:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799735; cv=none; d=google.com; s=arc-20160816; b=XSdIFm4mI/SabqucR5mI4yI8WZ8085CPoaVjEb1Z31JUw/0L3k8vkH/Ec8ZyqI2xrC elOAtnreO+fMUw5jojGbKqNMz2jndLv2TV+/eWxfsi6RHD01ymCRCY2sBHCqOgF0XLOp vMf3EWFhs7lE3iwdx1V89TKihNonkoQGlt31AzILMwLxNYSnQX5ufTuEyYdBA9ygi+Fq nd57OzCOKBO2ghWmo/9CtVUa2pmoNM29+po2W5x3A89FcEmPQQl1xnBm83ecgo4NIS/V puNw7CIKQ6fvBgN1jSfF/34R+iABrPxLwStONFAyxVhO+wUxDzUn7w2e2VXKpNN8QJgq /GxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=nehZ2/Kj/bi/H40TUSBt5PDmvxHq+7M7Ek53ZM5zGgo=; b=nWE/2SYS9WXuRi9pHEoXStHyJWTF7oj20+blwWNL4mfHwmyULQGs3GPHLaaBZHxYiN 4dD0glzO3JFb68tljMayZKOJqYAaT2vTVqyDAVNP9oyQi7rhwiHTj9J8ico5oRiyGw9C mREMQb0SF09hda7OB+ezdwiuPgC6OnJhvJeHvumXBYtTARrBFzmF6CqTcbg/7zEaTbBH xrku7E4ZaPE8+WRdD4r2yBsvgDwnNfnY+tgqmv3u3pgXNsWI81QdZ/j7ovCRPlAzb3cZ ApGsv8roJeUFwFy6Xc4tl1BDDUzgYkfcTzSTSyIcrLWRVv6Al7gfnZjnxh2sgK3DP7j8 u1ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hDtnEWCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si7603503pfj.20.2022.01.21.13.15.23; Fri, 21 Jan 2022 13:15:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hDtnEWCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359688AbiATJzT (ORCPT + 99 others); Thu, 20 Jan 2022 04:55:19 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:48355 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359677AbiATJzS (ORCPT ); Thu, 20 Jan 2022 04:55:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642672518; x=1674208518; h=from:to:cc:subject:date:message-id; bh=nehZ2/Kj/bi/H40TUSBt5PDmvxHq+7M7Ek53ZM5zGgo=; b=hDtnEWCz4UmJa+ekyE/tylVVBnMhO50krU0DUoaA0NMdbSoA+tmdgCMD YIgjUf10C3G8M6MdVNUYrE+92noj6Zd1SXk7UgaH+vgyIbrz7ykbIIC2S QdhZuYXhr2KZIzD/vhLv6JRl3aiJSiG16XgG77hS0reh/uCGeW7F7YFRv o=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 20 Jan 2022 01:55:17 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 20 Jan 2022 01:55:16 -0800 X-QCInternal: smtphost Received: from c-sbhanu-linux.qualcomm.com ([10.242.50.201]) by ironmsg02-blr.qualcomm.com with ESMTP; 20 Jan 2022 15:24:55 +0530 Received: by c-sbhanu-linux.qualcomm.com (Postfix, from userid 2344807) id 64610566F; Thu, 20 Jan 2022 15:24:54 +0530 (IST) From: Shaik Sajida Bhanu To: dianders@chromium.org, tudor.ambarus@microchip.com, michael@walle.cc, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: stummala@codeaurora.org, vbadigan@codeaurora.org, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, sartgarg@codeaurora.org, Shaik Sajida Bhanu Subject: [PATCH V4] mtd: spi-nor: winbond: Add support for winbond chip Date: Thu, 20 Jan 2022 15:24:51 +0530 Message-Id: <1642672491-30067-1-git-send-email-quic_c_sbhanu@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for winbond W25Q512NW-IM chip. Signed-off-by: Shaik Sajida Bhanu Reviewed-by: Doug Anderson --- Changes since V1: - Added space before name of the flash part as suggested by Doug. Changes since V2: - Updated chip name as w25q512nwm as suggested by Doug. Changes since V3: - Updated flash_info flags passing according to below patch https://lore.kernel.org/all/20211207140254.87681-7-tudor.ambarus@microchip.com/ As suggested by Tudor Ambarus. --- drivers/mtd/spi-nor/winbond.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 675f32c..c4be225 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -124,6 +124,10 @@ static const struct flash_info winbond_parts[] = { { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024) + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ) }, { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation