From patchwork Tue Mar 7 21:57:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin S Cooper Jr X-Patchwork-Id: 736372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vd9b84gJnz9s2P for ; Wed, 8 Mar 2017 09:01:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bRacIIzr"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="mrka7zjU"; dkim-atps=neutral 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=LcxnCKFy1cgXp/6wMAf7P3eVlJuRYOKoNFAS1n/OxHU=; b=bRacIIzryZWLWG GdkMTwz/kt5pq8Wg/tRUhjY6+RkJMm+a0F9umOnyINNrPjedXMqtqn4tDcWa89m5SI4rHeNQTQuq3 S6eNzOK+vov3l9AzUiLRkzPwzviKYVn2GYVtV98NSCgeo90vXlXz1AMK0sKwlhuadceg1qLrJM1GC ycJFw0zbalAC6+RDFqsYIQVwtVCClnrQuUg5D7YyDzwj8VzoGtXyBLo+Acv2E6EMxZg6psVMSjfGI HHWt/MgWx8BrNM8ftSYQfP4tgnwD67ZH7p6ZSEXj+EtxEo4uCLhMnUjSXpMzr+PNt8KW+Kh2BHw5a +1KC/7xCRaGZRyy0NTuQ==; 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 1clNAI-0003dr-Dj; Tue, 07 Mar 2017 22:01:06 +0000 Received: from lelnx194.ext.ti.com ([198.47.27.80]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clN82-000178-CZ; Tue, 07 Mar 2017 21:58:49 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v27LwKLq005184; Tue, 7 Mar 2017 15:58:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1488923900; bh=Rx+doh44Y2pLuWs5w9IdoN+MHV/wLwVEPT3CwKA99s8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mrka7zjULP3IRSHOpIaJMCKEK191OJUmpNELnXKtGFGSspGz2sB8sHNF1Ok642mg4 cIIXO7qrx4L/M2bBubfvMPXciyfOHKPEkPVgIE4CQ8udlEp8AHn3iOhvtvW+XSW8wZ zgOPogIB/TURLXurz/XnT4I2SVv8PlFAiRNhvK2Q= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v27LwKUl012660; Tue, 7 Mar 2017 15:58:20 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Tue, 7 Mar 2017 15:58:20 -0600 Received: from dbdmail01.india.ti.com (dbdmail01.india.ti.com [172.24.162.206]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v27LwI9h007441; Tue, 7 Mar 2017 15:58:19 -0600 Received: from udb0273011.am.dhcp.ti.com (udb0273011.am.dhcp.ti.com [128.247.83.33]) by dbdmail01.india.ti.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id v27Lw8Wm019928; Wed, 8 Mar 2017 03:28:15 +0530 From: Franklin S Cooper Jr To: , , , , , , Subject: [PATCH 2/2] ARM: dts: am335x-icev2: Add SPI based NOR Date: Tue, 7 Mar 2017 15:57:51 -0600 Message-ID: <20170307215751.29266-3-fcooper@ti.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20170307215751.29266-1-fcooper@ti.com> References: <20170307215751.29266-1-fcooper@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170307_135846_616780_E37AC822 X-CRM114-Status: UNSURE ( 5.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -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_AU Message has a valid DKIM or DK signature from author's domain -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: Sekhar Nori , Franklin S Cooper Jr Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Enable support for W25Q64CVSSIG which is a Winbond 64 Mbit SPI NOR. At boot you will see the following message: m25p80 spi1.0: found s25fl064k, expected w25q64 This is because the JEDEC ID for this chip is the same as s25fl064k. However, this should be harmless since both chips are essentially the same. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/am335x-icev2.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts index a2ad076..1e643dc 100644 --- a/arch/arm/boot/dts/am335x-icev2.dts +++ b/arch/arm/boot/dts/am335x-icev2.dts @@ -245,6 +245,39 @@ spi-max-frequency = <1000000>; spi-cpol; }; + + spi_nor: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "winbond,w25q64", "jedec,spi-nor"; + spi-max-frequency = <80000000>; + m25p,fast-read; + reg = <0>; + + partition@0 { + label = "u-boot-spl"; + reg = <0x0 0x80000>; + read-only; + }; + + partition@1 { + label = "u-boot"; + reg = <0x80000 0x100000>; + read-only; + }; + + partition@2 { + label = "u-boot-env"; + reg = <0x180000 0x20000>; + read-only; + }; + + partition@3 { + label = "misc"; + reg = <0x1A0000 0x660000>; + }; + }; + }; &tscadc {