From patchwork Tue Jan 12 04:57:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 8013511 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9E734BEEE5 for ; Tue, 12 Jan 2016 04:58:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D24E920361 for ; Tue, 12 Jan 2016 04:58:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1519120351 for ; Tue, 12 Jan 2016 04:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758017AbcALE6H (ORCPT ); Mon, 11 Jan 2016 23:58:07 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:32822 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752650AbcALE6F (ORCPT ); Mon, 11 Jan 2016 23:58:05 -0500 Received: by mail-io0-f194.google.com with SMTP id f81so11966455iof.0 for ; Mon, 11 Jan 2016 20:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=BZz8UJ3+jhFj3lqym3lNh8SGu9Ptfi3qwCAOuHrPRWY=; b=1Jl75B3QNUCqiw1KFfnGJSrDSIMXmvVqof4+CHU/i6YZpL6zb0FwMYp34XfrP5qnNe Wbw3h6HJRH5q70KEfktTwbsd+9kjmT/puB40+b6UXWRd/c6i8ooQPNb1r64QrkuNEOg6 h+Vr2gwDthhjTYO4nmOIFc9kmxMbibbJsvdijOGsqfbB9YkcSlTU8wYWdRh8mfsIZumt ib+hjRrdhoevA1l4hyp3ZUUDbKwUGY2z+jpGrgtr1SaIZBvT8ybEr7bBm04icTz2TB4v baqTxPIkL5Zfts4X1rzT2Qzn4gy7D8KetayLeNIkrBYr6pboIb7r96fVXoM1KFWs+urZ MbFw== X-Received: by 10.107.18.71 with SMTP id a68mr133271651ioj.107.1452574684119; Mon, 11 Jan 2016 20:58:04 -0800 (PST) Received: from localhost.localdomain (c-76-113-128-183.hsd1.mn.comcast.net. [76.113.128.183]) by smtp.gmail.com with ESMTPSA id k38sm34093150ioi.18.2016.01.11.20.58.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 20:58:03 -0800 (PST) From: Adam Ford To: linux-omap@vger.kernel.org Cc: tony@atomide.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH] ARM: OMAP2+: LogicPD Torpedo: Add SPI EEPROM Date: Mon, 11 Jan 2016 22:57:58 -0600 Message-Id: <1452574678-9411-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The devkit has an AT25 EEPROM on MCSPI1. Enable this with default parameters. Signed-off-by: Adam Ford --- arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts | 14 ++++++++++++++ arch/arm/boot/dts/logicpd-torpedo-som.dtsi | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts index f926eaa..703ced2 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts @@ -341,6 +341,20 @@ }; }; +&mcspi1 { + at25@0 { + compatible = "atmel,at25"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpha; + spi-cpol; + + pagesize = <64>; + size = <32768>; + address-width = <16>; + }; +}; + &isp { pinctrl-names = "default"; pinctrl-0 = <&isp_pins>; diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi index 071a316..1876e7d 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi +++ b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi @@ -171,6 +171,15 @@ OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */ >; }; + mcspi1_pins: pinmux_mcspi1_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */ + OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */ + OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */ + OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */ + >; + }; + }; &uart2 { @@ -179,6 +188,11 @@ pinctrl-0 = <&uart2_pins>; }; +&mcspi1 { + pinctrl-names = "default"; + pinctrl-0 = <&mcspi1_pins>; +}; + &omap3_pmx_core2 { mmc3_core2_pins: pinmux_mmc3_core2_pins { pinctrl-single,pins = <