From patchwork Tue Jun 20 14:48:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 106006 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1412412qgd; Tue, 20 Jun 2017 07:49:31 -0700 (PDT) X-Received: by 10.99.158.18 with SMTP id s18mr32254026pgd.113.1497970171555; Tue, 20 Jun 2017 07:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497970171; cv=none; d=google.com; s=arc-20160816; b=XO8RsY0exBwYwtqau2n5EPu1Wkp9ndfnmhr+WKwLDEhMHuG9Vv4XAnHau+bAKvU3VA YazrOjrr4iLaLGi4Vvtwdtb6hyUKgafUn9VR7Arn0Lh9j4Fbx2O3VqCy764bomxKL38Y bsV2nidoTZtMIF5RYU/qNvf43nNkP4kMSa6pnKo0/ptK1b2SXXG28iW7PY/x46jX9MiR 2m6vCAlC6qgDjW5F5OA1TzArm8NcTrHZ7W0Gt1rgybETcNcdJpvfghY4RaCRedtJRsqT Wit5a3X1OTihFMCm7GDs4aVVvphMWH6FegLxMcihLeDLS0FNjHXSRLHuGk+UHfvZUstn axpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=v9TR10AqF73v8TUnMvChiT9J2BESleztt5sJvbXB+JU=; b=kP015eeyUJnEgnkP1gCS9dSLiDBxofz9bXgGoOhyLUXvAXppTsUXXNf7Y9b5NS4DBu fC26ZKMh5Jr9gI+S95G+oawChytWNI6lVWmu4kJ3bSU6M/epBD2zSKG0cZvgx9cN3dIw hE1eVGmnobkTwVlbZ3eh0CloPktz/wKWDtixcJx37+P9cncZYN0P3AQIhiIZkJyEZ6He QFECPFhn9/HKDFUNpnJhjkcLSAb3s+QavVvU1g9sM2KAQ1zBfxDok/6ywx7Gio/G06R2 ZQ0+5Ja1d8Lv4qeIk0LrP0m7fN3JbsYEeuD6FVFDZuWKw3g1wDZUH3LDObMGGVdl9SKk Qcwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=lk+xlmWu; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=eDtO/qcB; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id g34si11433572pld.336.2017.06.20.07.49.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 07:49:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=lk+xlmWu; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=eDtO/qcB; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=v9TR10AqF73v8TUnMvChiT9J2BESleztt5sJvbXB+JU=; b=lk+ xlmWugMgWzb1JsHEupvydVi8VZ0P8VLZiluLjvuAuOPZMxkwvtLgl6dNZQZHVQhyotp+HzKginbXr /olbag9SOe96XbYAdFmsalU+h0V6+KSGPCQgb8dzGXZSMG7+nQKBoklCeiAPpL8LpGS/rl4sOwmva /m5gqBdaB5ZQalpn5m9Oq94WG8qLCoNOjZtAehvs32aGE8BYbscaLXRxNbGkT1UZVchG5Eooa2e3F FvR+PHptDUKNh3CTMYh2/Wu5S0PUz/fL8/4p1B5cDJ4XZzA7/Muyge2RQi68s1TRwmMzXhxkMf/5/ l4I0JuPMqZOlP2Xqq38rLkJxoE0Pvjg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNKT4-0004dP-K8; Tue, 20 Jun 2017 14:49:22 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNKT0-0004I2-Ji for linux-mtd@lists.infradead.org; Tue, 20 Jun 2017 14:49:20 +0000 Received: by mail-pf0-x243.google.com with SMTP id y7so23616315pfd.3 for ; Tue, 20 Jun 2017 07:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=JJo94nym7/rwEmcz39Hz50l3A6odXnGvr5RHTOHFcAE=; b=eDtO/qcBxC/DaLBwV5jSLmOMci9iE6l3G4Bk5v9ZKIbOnsXqRi2O04wb8PPcCax4ZQ Eq/JaCcXbo8qW37OcDmYvD5OQ4lDiSb8dk4qxaf9qLBP92RTJkc3wWX3tQfPS0McjJdH vPY7hAejt52vxnycKXEHPUjj3UuxdxFxF5vEcHg1BzY1F1t/rBoq3ERb7aP05SU1vsI0 2aupetDvntdSWTwWJM6xDpSg/KeZbPKLdRO8R6m1jw2hXb4C0BlXaBVHa8WDHnIVh8ru Fv5+bcMuZXOCpUFl0ev+oxN8JYXvgUaF0zMB8qKbkcny4pwlyGQhsQZ+u9VweWWA1sMH nibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=JJo94nym7/rwEmcz39Hz50l3A6odXnGvr5RHTOHFcAE=; b=fUTug8NFHzkcVLxTUlw2ZbG56V2TKwpF4JY/mWXh5LJcojOUZ2rLQzxTuPr5mA1jAV FesKaquKd+Hj21EWaPMXz+MTNDv+SkM40VIy5qA5deWs4hFrmmv9HdITAziaTJiQw6a4 wIzy3VSOC/PMaG9j92fbGLdOzXY4BH1RSOLZXEUGcJfr137eYsDI7Q+VkPm3kkzR2LOD JSkrcgi5kNkwuG7t0IRqybDrCE20PIsyNByM1fHupH0kbzckhjpSLnw9m8xBXmXugdao ySs1xMrU5pGpwswUSVcEoj9hBOZ8Xzi4gONsLVr+zMNlMeyKXbLD0CnIbAc+qG/hFKOj h0zg== X-Gm-Message-State: AKS2vOw5hSG342JfoUvGv8ZhbAqEajE5sP5osDZzXuKB6byrkS2OrfYR ZJ9WSyttgdYFpRpDspjITw== X-Received: by 10.98.11.80 with SMTP id t77mr30869183pfi.104.1497970136957; Tue, 20 Jun 2017 07:48:56 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id k73sm31415310pge.13.2017.06.20.07.48.53 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 20 Jun 2017 07:48:56 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 21 Jun 2017 00:18:50 +0930 From: Joel Stanley To: Cyrille Pitchen , Marek Vasut Subject: [PATCH v4] spi-nor: Add Winbond w25m512jv Date: Wed, 21 Jun 2017 00:18:43 +0930 Message-Id: <20170620144843.23913-1-joel@jms.id.au> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170620_074918_693820_ABAC892E X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (joel.stan[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Benjamin Herrenschmidt , linux-mtd@lists.infradead.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org From: Benjamin Herrenschmidt Similar to the other ones, different size. The "JV" suffix is in the datasheet, I haven't seen mentions of a different one. The the datasheet indicates DUAL and QUAD are supported. http://www.winbond.com/resource-files/w25m512jv%20revc%2001062017.pdf Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Joel Stanley --- v4: Get the name of the chip correct v3: Added the DUAL and QUAD flags for Ben. Tested with aspeed-smc driver. drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index eef55b597ec7..43de5adafcb7 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1146,6 +1146,8 @@ static const struct flash_info spi_nor_ids[] = { { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) }, { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) }, { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K) }, + { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, + SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, /* Catalyst / On Semiconductor -- non-JEDEC */ { "cat25c11", CAT25_INFO( 16, 8, 16, 1, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },