From patchwork Thu Sep 26 09:28:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "STLin2@winbond.com" X-Patchwork-Id: 1167794 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=winbond.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jsauWifE"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46f8kS5qyYz9sCJ for ; Thu, 26 Sep 2019 19:28:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TczU6cyfFPOgvnKCnPNLlzts1+58sKvIHoa5nwlnPcw=; b=jsauWifEY7OWNx B6WfzWI913eqbH5t8FJwWBNDvlthJv9FCQbspUMI+q+6Rel5VU2srtH2bSZEEFONe98IgOb9GXSFs ki3Akhdpc5uFf5Z3koTiUxJ2HHDa+QZqVclSKxDK6EnWQS1TSCjYT2bTInnxpyPenyVrTCoKdMCmA ssbs9JXyMctfzHoIViH11swNA6r/pRRmX0cVQ6Vk81sftr4OPoCQx+N7SppQqAc0HZeWCqwK+4dP1 GYGbQdI+wa1RVQtFQeYXh+y7v/cT7LqjS0dVW6dWncs8wGdbNfn6SSc4c3lPQgqDfJBx5THMS/J3m 5TeIpkTyG97x04EXhmPg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDQ4q-0000sc-SE; Thu, 26 Sep 2019 09:28:44 +0000 Received: from wehq.winbond.com ([202.39.229.15]) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDQ4n-0000rt-CM for linux-mtd@lists.infradead.org; Thu, 26 Sep 2019 09:28:42 +0000 Received: from mail.winbond.com (wectmlgw02.winbond.com [10.6.10.76]) by wehq.winbond.com (Postfix) with ESMTP id 3B727342429 for ; Thu, 26 Sep 2019 17:28:26 +0800 (CST) From: Shih-Ting Lin To: linux-mtd Subject: [PATCH] mtd: spi-nor: add Winbond 1.8v SPI NOR Flash ID Thread-Topic: [PATCH] mtd: spi-nor: add Winbond 1.8v SPI NOR Flash ID Thread-Index: AdV0TLr+8Rk0PqjGQBmzD1KAUfW3uw== Date: Thu, 26 Sep 2019 09:28:25 +0000 Message-ID: <745f82b2f6a34b87a4c356561cfc11e2@wectmlbox04.winbond.com.tw> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.8.58.50] MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190926_022841_561346_8F7E9265 X-CRM114-Status: UNSURE ( 4.26 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Winbond SPI NOR Flash have new product for 1.8V production line. Following is the patch add new device ID and part number information in spi-nor.c file. Signed-off-by: Shih-Ting Lin --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -2153,6 +2153,22 @@ > { "w25q256", INFO(0xef4019, 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) }, > +{ "w25q32jwxxIM", INFO(0xef8016, 0, 64 * 1024, 64, SECT_4K | > +SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | > +SPI_NOR_HAS_TB) }, { "w25q64jwxxIM", INFO(0xef8017, 0, 64 * 1024, > +128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > +SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, { "w25q128jwxxIM", > +INFO(0xef8018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | > +SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, { > +"w25q256jwxxIM", INFO(0xef8019, 0, 64 * 1024, 512, SECT_4K | > +SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | > +SPI_NOR_HAS_TB) }, TEST=rebuild kernel,update to DUT check DUT: cat /var/log/messages | grep mtk-nor --- localhost ~ # cat /var/log/messages | grep mtk-nor 2019-07-08T04:42:51.636356-07:00 INFO kernel: [0.301351] mtk-nor \ 1100d000.spi:w25q32jw (4096 Kbytes)