Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753222AbdL1KEx (ORCPT ); Thu, 28 Dec 2017 05:04:53 -0500 Received: from mail-eopbgr50121.outbound.protection.outlook.com ([40.107.5.121]:29376 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753150AbdL1KEu (ORCPT ); Thu, 28 Dec 2017 05:04:50 -0500 Authentication-Results: spf=pass (sender IP is 131.228.2.240) smtp.mailfrom=nokia.com; nokia.com; dkim=none (message not signed) header.d=none;nokia.com; dmarc=pass action=none header.from=nokia.com; X-HPESVCS-Source-Ip: 172.27.221.129 From: Romain Porte To: CC: , , , , Romain Porte Subject: [PATCH v3] mtd: spi-nor: Add ISSI is25lp080d support Date: Thu, 28 Dec 2017 11:03:24 +0100 Message-ID: <20171228100324.2214-1-romain.porte@nokia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171219134325.3315-1-romain.porte@nokia.com> References: <20171219134325.3315-1-romain.porte@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240;IPV:CAL;SCL:-1;CTRY:FI;EFV:NLI;SFV:NSPM;SFS:(10019020)(376002)(39860400002)(346002)(396003)(39380400002)(2980300002)(438002)(199004)(189003)(16586007)(316002)(49486002)(6666003)(50466002)(106466001)(2351001)(47776003)(68736007)(81156014)(81166006)(50226002)(26826003)(6306002)(54906003)(478600001)(1076002)(106002)(6916009)(76176011)(2950100002)(5660300001)(51416003)(966005)(8676002)(22756006)(8936002)(97736004)(53936002)(356003)(86362001)(77096006)(107886003)(36756003)(4326008)(305945005)(2906002)(48376002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR07MB1328;H:mailrelay.int.nokia.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB5EUR03FT016;1:Yfizir5eopVrCQdkZe8a0AGaOEvNKBR5MNUjdDGdPO1BWKyE2po+AOGWoOjHMOqdCibvJYC/02vm51GoRYUNmVXLVopDhH6aoZ+AXKtxSWggs/pWLuSqnGG3N10Rzh4i MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 231f6fbb-807e-4b75-0548-08d54dda6d56 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307);SRVR:VI1PR07MB1328; X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1328;3:OtGNPzEXtXYAw4qMyaTUhvQDgyiPpm7E1mkPJZVXKMKRl8Lbte8qg8NZO1YkIRMgx4TdkfEqO9/f2WtJc8/KEmQgZ18nDqQy+LNukierTkUTeghzT6wSEojurKFcKAiS1/dsmy8ZC3kyaVrRX5afwg5uDr9+fy+PU0XsbVqAdOkYMPeollRVwxP37jK4sFPI9uDYHHiSjuKqAUgbfGRrlaAsR53t/uhKLuvEYyOFj1djLrIVvp3kEZo30VW05Tvhqpg2RMb7Qu7afHclvi6YrQevQdmdfpFIVzlK8eS+U5SDa0P+EK6ndyF7NBCnRTGB7Y5UNckwrQZllOBbPn6PrOZoPUp1nnuy6uakBgrVrQk=;25:n9zmyg4QY45LAfgyExUWRSK4yBJtF2+sIkv3Zu656c/o6bbowyILPBNTWAjBRiOdeaKkHsL+arPvj2y3RZWq0QOHqNOA3zHhSbK9TG4jZc7Znx+lBzdobBiM73qR+ugw92ZphBJLVvnVZiTk5GjiK82yaYh2nQ5qGdgqnTKaFRnlZGiD1LAs+lfXJiM/9lItaSU5fZ470BlV7hxdOGI4a17JFGR3/tdo0vFdZMkKuTMt7zpk4XUg9+Tu8DDrpKyZXfXafQELLsGmZRnL8hwx7KD7AhR7WH0nzcRPcqiVPsj4oDJ9u7JsGNAGJN5H2yQkDUV1TNRJJdi/F93EYQOS8x4TYfdYD5/T/y0nKn7mAas= X-MS-TrafficTypeDiagnostic: VI1PR07MB1328: X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1328;31:mJSskUP7XRjm7qzaNw5R29CNOrwCrQ/cJD3JyWWIO+mRTwyxoXz63yVvfCIc7HA0Y/mhj++TLk7DU/xLECljxZX605TFMmrv1I1fIiyZJfXzB2Mxwa4LIsG0DjYmF0Dif4ChdkSOxXKbvJF/hGdzpjCvhv0lSCsFESIPQjDCh0ShprLwLlZbcuUlHlJh2LKuobRqqM0kBU21P2T6TSLfjpAh6Ww+CLGGmJdRmqeBSqI=;20:UlvCDNRH2Y745TEF7TM6LhcAbHPymyxo1/061qFwdJ5iMlfDh4O+xoEzXaY/D9fWiPNHRArpqeiIIuWtDtbdbUOVjRWew7WKadgPuCdo08fqJvHve9LgNEnXPp4p5rsjSnaX/7/vQOhL738RNiXxz3Ham9uDYv+ZrdO5Pw+2wwO6e30KkWDoQfPShfcGowDU+DZ/IeCcfOfMA1R4BAUo7JCLI4GzRMtOKuXTKbRZKsqG1EVGweImAgNzT7WmIE7yTrTTXV72Yz2TiOIZlBEfKpjSWHUHUdCaJ5OwEJ/W95IE0tCM3Cb9/5p60XbvgBawlaKQHpLGuDnAkoIgo3C1xfrE7J/p42NUU7ldyREd/gQvzgWGrIPLx4HRn+4ZvQqgXH2QOGVELFD3AQKpDETBnFpU5dl2320OPVo6m0WS2/pzcgzuZaZtJj5FxBr7JieWP8wUvwN3MZWgXaWY5khA7d0yHGzpIg9bBRHCz0kVtH+PYzCM7HGW5vqPfKrg/SUjGIHqNQ1hh9An4wjlfz4YCMltfoYQCRKVb/2h2so1IxlMTZmwFj7v1psLSic93tFdCgsfRs/T1y/lEkZv9BTFfH0GJ5gFMvXvwrMKzLu7HY4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93004095)(3231023)(11241501184)(806099)(944501075)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:VI1PR07MB1328;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR07MB1328; X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1328;4:lDZXmPSg2oFREe7QbzBddFaIf8mfH163kZajXeUkKLf17sPoR8mQWMkd/ft76gUdNdmndLDz6UB+HvbaLDp2FnMO6PTdUO7Aewx9Lm+eAnEFDRLULrpqQ+lHabw31HdfHfIXmFw+cljtQx0RJ9nHXqEDFYYw+zkjbZPf1aX1mjLamIvwmbrHOzSmWhtCJOIG08f8zoD/iv+sPkIczsZgZuXJIBF0QtQBEppZ+FNZoOE7pKtRk8x5iLcBt53U4Bng+KCpY3vy7N2jWIz4HW4TwzXK2uyJMCcJlnChPT/6o71cP0docqDw+8VgovmL05CP X-Forefront-PRVS: 05352A48BE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR07MB1328;23:1sZU0L/iTSvPInSbwtxh0UWOhnENHHwHhJoB2Iaol?= =?us-ascii?Q?VI0jsaJBe7v5Wg5kl8LScnzBmx1VOSLQ3ZhLVB7SSnioS7lCNy6sdA/iYbsD?= =?us-ascii?Q?KIkwZZ/CS0AeaytNFU2ErZjzJTYe4gBV6lteBNhHtrUR4waDr6zPccDZ4k2P?= =?us-ascii?Q?bEPEUo5xHaot0sW0DeQau0L7k4OFLAw1kpYML0RXHlNe8YQRauuuiNJBi2r4?= =?us-ascii?Q?yi4/P7bNvV2+Rg4KRZZjKis1q1HeykqFgoRjMLvG9GiAyjKFI5jhejLNTOh/?= =?us-ascii?Q?zneO6J7pLExl93r9lbRv/uuzlx/DdSdVXu2AvOpTPaKuQP/LSicXDKRCDmAS?= =?us-ascii?Q?v+C8ZAWQKAGGRwHIauLF0+mzDm+sy2WsV5Qh6F6MnA+JF5q6zHI23FON7ok6?= =?us-ascii?Q?B8V+MLkfUk1LiIbWZnXG6tYBZmINNYWUJMcpQohWJLrcIulxmts+XpkCD0gl?= =?us-ascii?Q?rXFTEZd2lHtHqC6AgSKm0hvN055sRRMKSnOUcuhSmbtKnaojOcyYE+WHPubF?= =?us-ascii?Q?+EaJ/ca2fQS16NqXwEw4H9wWUshyYRrhjVflOw0biIuFIs3V2nQ4tW5ahjaF?= =?us-ascii?Q?3dH1hthxYCaU5W4ekdRg+//uHhRTI1f49jGAImviuwlAI+bljvuK0fUcMxny?= =?us-ascii?Q?aBsa66Jfi5nOZcO0BEWnWT09IxvNepkzVp0Zn/aMr82cobuBIQ20ZVLOv0nk?= =?us-ascii?Q?AgmMliLX4cfAMN74vpdZXEOm+4MoV6XBG4bS45G3IA0esKFiyizk6pk/2HF2?= =?us-ascii?Q?2gIm7S4xMhTWYXviESfrP45ua2ncbdjN7+u4TN2yUy3qtDBOzFXJKUbvGGjI?= =?us-ascii?Q?/2oGMJfZnVZhkWq7yZs4xNhuJYdY33Go2TPYwOTWJ0ds1p+iRgbRoQZDw+lk?= =?us-ascii?Q?ZPcX97vvVXHZQeZXnFdJ+cXnROnAni78uT8h9K15GY6/IV/ocOvvbCshYjbg?= =?us-ascii?Q?tZ5bMG0XH/yyIgTMWgL9/N3XI0r8YmUqpb/RK8B146yIZT0oWmNgTOr4YvRX?= =?us-ascii?Q?zL9+0kE1nmgKlhcnx03qKUo+5bhT6JFvHLYpgYc4vC9oFTg7ADo9Lc7YB4pj?= =?us-ascii?Q?3K85cSae73elrdF2b6qYTbnsh3BDr4Nu3I63my86YLBWQ5VOQ=3D=3D?= X-Microsoft-Antispam-Message-Info: TCKp86J4pT0kgOarwokEvQVKZkzJLvqZKhA8giElPbwb6c8ywe70bit7rTSZy4kyEkMs8EfE4ntUrIRsoaYMAcL2NBay6SzRn5/ksZh5gn+xpQ/QNI0Gk3oQovuCHEYB X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1328;6:ourJq/1HKSXcBPfvKUQezs6jhU5iabsQ5dWPPmt5rujCwCJmsWo7AamWSJF6cGBdL5P3+XQgprdnU7Spkrah2qyOYX9GM7eMnSe45eMVBj7jC5hn0yxOr6pLD47UfpNQGg2pMudLvv6KVMa8iaE1DlAf1uRbvfI2ueXXl75nVn+brmk2wBFFPsORfk3WqAjcy+I8f+NGbt31jjkjVqXzpQhdg4/dJf22AjhUQYersTUHBcdGU143JCIuF0yThTgqFeow9D8zLjbcKKqUeQBFG2uYNSMm+V9/kN4DRlldWj3T1zT07p0otQ+aDAriay6997fWoqTrIxuw4DtKKZjr/xlzk6IJ8sRJBxWDLy8ROj7VsUIVw+ukzDfV0gPMedDp/spyw9JGSB+ud/GVdQiXEw==;5:hA0l2D3RQQ8DYjWPrkSRBHHXqsUvUWsEJk7axcLQGQApu+a17GT3dcmpWlCq7Y2GeBneHx5gaut6929RaZg3dL7+gPN6lpSYGCa3pwCwJZ5TEKqmmYapIY5l4XImi7844xn7KsQqsWK/5gq27zMqhSa808TnfHZs/GQ/mEtnTxk=;24:CETP6NKMVhnV75lbz/08FQQqiRwM8wMw0p88WQh2c+uVKqUndl+TGeSCOEcpcYD92MjMmUhAY2/erhLz0FKCBiTYeSBR18Ks1Za4pQLpI2w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1328;7:kvHDs9n3GodDV/ckJngEvQa4iEyME5MWywBGNKQJ/toi1fUhW7JmfeOX817P40IiC43cwtmP9Qhlj5si4+ffufjicn2N4m3zUk3dh+3SSwRpHK5bk1/O9zsfs/fsi87SwH4gj0n95/oRAs+n7Y2jmvTaxZ2cLSGIkC9+S03vBXHutYFvv+goLOMeM2OHUF3Xk3NVX+ksDZ5yjajWfPBQWN6AUqMTOhuZWGJIcQRUSQWAqp1t4Sdt71dV8t6qgNX6 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2017 10:04:47.3481 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 231f6fbb-807e-4b75-0548-08d54dda6d56 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0;Ip=[131.228.2.240];Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1328 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 28 Add support for a new ISSI 1MB SPI NOR chip that was tested in our lab. Datasheet is available at: http://www.issi.com/WW/pdf/25LP-WP080D.pdf Testing was done only without the SPI_NOR_{DUAL,QUAD}_READ flags that were added later, according to the datasheet. Tested-by: Pascal Fabreges Reviewed-by: Alexander Sverdlin Signed-off-by: Romain Porte --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 8bafd462f..18e826d36 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1050,6 +1050,8 @@ static const struct flash_info spi_nor_ids[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ) }, + { "is25lp080d", INFO(0x9d6014, 0, 64 * 1024, 16, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, /* Macronix */ { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) }, -- 2.11.0