Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp872753ybl; Tue, 13 Aug 2019 04:04:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRHNmfmU8eHHFq6zfwi/aX/ocBSjROSZN3sE6fwztS1/KffrstjCHmvgKBOZjvlDCU3CJz X-Received: by 2002:a17:902:30d:: with SMTP id 13mr27336227pld.284.1565694290531; Tue, 13 Aug 2019 04:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565694290; cv=none; d=google.com; s=arc-20160816; b=xbxGKcSFQKAu/CZZzcIZPdFLwx6TavtUCGbT4ZLvXZ+ts8RIk/JjP3ya7qgMgERZCb gQ+Zwa0xQLFolR/Ti3cU5rAl1NB1wmMUb12Q053GvKGpAmD4sbUHbwfkWQ+pQPv1BclC hiTm99hhogRkJ2v6iplv/Dz+VuqWfdzQvYPk5DaONlheQbY50cVP2RZtQJ+8x6TRtmxL ua6uANXx6DaJpuEryPq+kdT3DR0gfntXcQTc6zYCtKN9pAryWS2SDUokOKHe5lwTYHNh XV9I4Btzd6aipuDp92sOI0Y/Zieh2hza3AVhdJ6N1G8exNVzybVjnjq7j+XDfE7OyGcW VS+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=+7+IdsaJyfv4lVI9lKTtn3hKSIdhESVeepj1INTT5ww=; b=rCMKmdSd/ND4gXfwHNZnBFj796e0c38LkqVw2cvDof2OHCy9gPOsBT0CF2EVYpwaPS VVx7JR4JcQVE1IMIgHz7xeVizv8WDalOhQjGeh3kVB/IqNOkP5vhuHtpmIXm11h7v/It DXsskIw5aV8QjfyRtvYhKVU5hJpPPGWLrrNyWQQWzToacmARkjLgCjB3IJMCO2M6XWIC t/8vffDLVlYjawylINEnbFveN42Kky9hqhOZCSCtc0W8Zm04T+IavGaJ1TZY8msg4zOn r/ULrBXOAflAfju0te22DiSgikPPo32/aaH4RHc0cJF0k5FwSGkiGVU1IlOEYB2vkWof o5eg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si67602489pfc.239.2019.08.13.04.04.34; Tue, 13 Aug 2019 04:04:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727933AbfHMKil (ORCPT + 99 others); Tue, 13 Aug 2019 06:38:41 -0400 Received: from inva020.nxp.com ([92.121.34.13]:48558 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfHMKil (ORCPT ); Tue, 13 Aug 2019 06:38:41 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7BCD31A00C2; Tue, 13 Aug 2019 12:38:39 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 06B701A0300; Tue, 13 Aug 2019 12:38:34 +0200 (CEST) Received: from lsv03124.swis.in-blr01.nxp.com (lsv03124.swis.in-blr01.nxp.com [92.120.146.121]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6AD82402F0; Tue, 13 Aug 2019 18:38:27 +0800 (SGT) From: Ashish Kumar To: tudor.ambarus@microchip.com, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Ashish Kumar , Kuldeep Singh , Ashish Kumar Subject: [Patch v3] drivers: mtd: spi-nor: Add flash property for mt25qu512a and mt35xu02g Date: Tue, 13 Aug 2019 16:08:25 +0530 Message-Id: <1565692705-27749-1-git-send-email-Ashish.Kumar@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mt25qu512a is rebranded after its spinoff from STM, so it is different only in term of operating frequency, initial JEDEC id is same as that of n25q512a. In order to avoid any confussion with respect to name new entry is added. This flash is tested for Single I/O and QUAD I/O mode on LS1046FRWY. mt35xu02g is Octal flash supporting Single I/O and QCTAL I/O and it has been tested on LS1028ARDB Signed-off-by: Kuldeep Singh Signed-off-by: Ashish Kumar --- v3: -Reword commits msg -rebase to top of mtd-linux spi-nor/next v2: Incorporate review comments from Vignesh drivers/mtd/spi-nor/spi-nor.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 03cc788..97d3de8 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1988,6 +1988,12 @@ static const struct flash_info spi_nor_ids[] = { { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "n25q256ax1", INFO(0x20bb19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_QUAD_READ) }, + + /* Micron */ + { "mt25qu512a", INFO6(0x20bb20, 0x104400, 64 * 1024, 1024, SECT_4K | + USE_FSR | SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, + { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, { "n25q512ax3", INFO(0x20ba20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, { "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, @@ -2003,6 +2009,9 @@ static const struct flash_info spi_nor_ids[] = { SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) }, + { "mt35xu02g", INFO(0x2c5b1c, 0, 128 * 1024, 2048, + SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | + SPI_NOR_4B_OPCODES) }, /* PMC */ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) }, -- 2.7.4