Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2351112ybi; Thu, 18 Jul 2019 07:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRTfiStjStJcaPZ97G99ZvMMJ7xVb8J6beL51JsygljoqYzgy9gPUZhuRxQaT4JOcEXcls X-Received: by 2002:a17:90a:f98a:: with SMTP id cq10mr51346293pjb.43.1563458843817; Thu, 18 Jul 2019 07:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563458843; cv=none; d=google.com; s=arc-20160816; b=umOx3Oq58y68P47jpRWPfOPXRvCxuMehLw853abrptcNGOV1RM8cRR4FuyKxqMoenA SXzBFzjXplAm0N3SYW17nBUDt8KOQR0Y8e+0UGTd6Zdr3+UrTJChP37sMjTrRnBvjUn3 zfgFDEAQ6xHYkH5NQ/SfVAkZRzsiu+ezi3up9h1I70hGceoq6QphtSUI0ZtdHfM3Bqbo RwjtOiHGACVwPnNiD8flYpVq7nOpPPMDuHFTl4uOZ5Lzp+xbeDqcPJ/ZQvtwdUNky49u 4Uxv2j8hsYYlpVFjwZywDR7xgLFnyIx0etQmkaHTgk6vtfxyuQnsSV5W93YaH7MldnXn V/EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7KSUv7VlVUVqieBpb6WvLgbnXLdw8UuoQ8RRPT6ibX8=; b=p5U5AFIpO+4VFxBpqa0ALXIb4G8dg9lJcDfC4Xhnk64aPmWscUGH5oIFBEghyNf1e4 txGJCaj9juAkxXtVQxWFgNH/+gR3ScupGl4HUwrgaeTazGdZazhwy7GVIjEHo7GQdJJJ cFChDEDP1HNeQsDl4ZjizXX2sqiCegYgWxmpZuou6t3uV4dBlLWCRixBKhoCMA+h8Bp1 Yb8UIsjVdPb8LtfU9alfCbJtqemj3yTIePiaGKAPb2IFBjBG267LRBuN1TiPvRTUOEJQ 9XK52m9HNpaOKHvQXfeqz4Eq90JAFE1FYHJIohgNWgyHtM78DoAdH/7r+nIH8O7EzmH8 oWdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=S7yNsI2y; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h38si1539708plb.149.2019.07.18.07.07.07; Thu, 18 Jul 2019 07:07:23 -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=@synopsys.com header.s=mail header.b=S7yNsI2y; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390452AbfGROGd (ORCPT + 99 others); Thu, 18 Jul 2019 10:06:33 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:46622 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727708AbfGROGc (ORCPT ); Thu, 18 Jul 2019 10:06:32 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 03C8AC2955; Thu, 18 Jul 2019 14:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1563458792; bh=v6UNc6lWngEqHMHQcuaMIXOAFhJfAEwqk3fGKGKinmU=; h=From:To:Cc:Subject:Date:From; b=S7yNsI2y/yubF+7p6A5F42g8p26e4OA1Y6mToIn0s9lyhL+ZYuHj29AYohiRQy/Wk eMiOHJyS4CNd2aRbrsEPkV6XTd7+w6dqRXp0IR8pSTAeYkthcGFWTpCCiGrK/gCWp6 t61HtxsINfAtnBS3al6jieXscvGSl0b1di+Nt7JMdtOFDEDxlzvFYPLTNS2G+kupT4 RyKK/m+QFidkp/gweb7hsznweWgme9gm6+AEafPDH6BI9myVlbDxMVF6jSDiJRDulN j80wqrQIoeQroLsjfk4GOI2EpqlmaM3Dc7D+imJZIS0qWrS7QaWvZZa6Db8o4o5hex uZwdvlB8zlxlg== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.121.8.79]) by mailhost.synopsys.com (Postfix) with ESMTP id 9CB84A0057; Thu, 18 Jul 2019 14:06:27 +0000 (UTC) From: Eugeniy Paltsev To: linux-mtd@lists.infradead.org, Marek Vasut , Tudor Ambarus Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, Alexey Brodkin , Marek Vasut , David Woodhouse , Brian Norris , Richard Weinberger , Miquel Raynal , Eugeniy Paltsev Subject: [PATCH v2] mtd: spi-nor: add support for sst26wf016b memory IC Date: Thu, 18 Jul 2019 17:06:23 +0300 Message-Id: <20190718140623.20862-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds support for the SST sst26wf016b flash memory IC. This IC was tested with "snps,dw-apb-ssi" SPI controller. We don't test dual/quad reads however sst26wf016b flash's datasheet advertises both dual and quad reads (and support of corresponding commands) Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * drop sst26wf032 support as untested * add note about SPI controller used and dual/quad reads to commit message. drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 73172d7f512b..0beed856bad8 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1945,6 +1945,7 @@ static const struct flash_info spi_nor_ids[] = { { "sst25wf040b", INFO(0x621613, 0, 64 * 1024, 8, SECT_4K) }, { "sst25wf040", INFO(0xbf2504, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) }, { "sst25wf080", INFO(0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) }, + { "sst26wf016b", INFO(0xbf2651, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, /* ST Microelectronics -- newer production may have feature updates */ -- 2.21.0