From patchwork Thu Jul 7 17:17:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 9219281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9F07460467 for ; Thu, 7 Jul 2016 17:19:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E41628405 for ; Thu, 7 Jul 2016 17:19:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8265B28407; Thu, 7 Jul 2016 17:19:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F7F828405 for ; Thu, 7 Jul 2016 17:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753410AbcGGRSO (ORCPT ); Thu, 7 Jul 2016 13:18:14 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:32856 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932238AbcGGRSB (ORCPT ); Thu, 7 Jul 2016 13:18:01 -0400 Received: by mail-oi0-f67.google.com with SMTP id w141so3491208oia.0; Thu, 07 Jul 2016 10:18:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IRnWsgeWf8qMxD7tt3wfdePsUg1uu3nh73oPA+DjMKg=; b=cui97jqq8OEsx5WZlKTZvC0MA4Uj741pmuLnV5LLnR1kHnJPBSIqyMOKpPdezOSyBB rh3K0Wgl70F/4gzlVyFc28crCWufKJ/9GCzs35TkiEik1tqykMwUK5W80X608lEL2VOz 1tXJUxSSs6cqwzjvf6njdhUs4SBiMTzkY56xdP2ejm2v8xiIcOkCsJPUrxIuMQfRDeQM YvBx5DAC3UrzWBxilfYp9YReEQuY1DyPjm5QZIVJKkuu3Yjq5wbmLLNg6l/2NpBU95df WiGcE3rOD9tFMzuy60QSdtZ8UUuYKRpWSYW3XAwub+Eqp+xaP/c229hvM+DGDaa5+xlq NK+A== X-Gm-Message-State: ALyK8tL9BJx1Z7724Qx34GY2LpaIkqlNC6eUNgZpKPbqcESSfk6JvhEM0/iMbbf+74iC1g== X-Received: by 10.157.14.103 with SMTP id n36mr836669otd.175.1467911880199; Thu, 07 Jul 2016 10:18:00 -0700 (PDT) Received: from beast-server.fios-router.home ([108.19.207.229]) by smtp.gmail.com with ESMTPSA id 187sm12288245oid.20.2016.07.07.10.17.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 10:17:59 -0700 (PDT) From: Franklin S Cooper Jr To: tony@atomide.com, robh+dt@kernel.org, broonie@kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, andy.shevchenko@gmail.com, robert.jarzmik@free.fr, nsekhar@ti.com Cc: Franklin S Cooper Jr Subject: [RFC] [PATCH v3 4/4] ARM: dts: am335x-icev2: Add SPI based NOR Date: Thu, 7 Jul 2016 12:17:51 -0500 Message-Id: <1467911871-4508-5-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1467911871-4508-1-git-send-email-fcooper@ti.com> References: <1467911871-4508-1-git-send-email-fcooper@ti.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- arch/arm/boot/dts/am335x-icev2.dts | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts index e271013..e4d2d13 100644 --- a/arch/arm/boot/dts/am335x-icev2.dts +++ b/arch/arm/boot/dts/am335x-icev2.dts @@ -208,6 +208,45 @@ }; }; +&spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins_default>; + + 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>; + }; + }; + +}; + #include "tps65910.dtsi" &tps {