From patchwork Fri Mar 21 11:33:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 26803 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 56768203AB for ; Fri, 21 Mar 2014 11:33:28 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf5636990yha.8 for ; Fri, 21 Mar 2014 04:33:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2gbVR9YMknmIcsJfHgj5DlBIyo8KqFzlyx7OQAxETOk=; b=SKln23ncZ8hIh/ZOSXLhomyrSH14xJI2ywawPJ3k6Afhd2Hw6Uv8Jx5vvoRT2SkKyy rUHsUWG471UbBXln5CWczHI6hrWGaf8g3dqzCmYWWS+Udb76IKWzx+pqphwsY3rbH1yh vYAiR4ggCJo856tSPsbuFaUkCCAn2X6F8k0SjrNsNgOM9kaETsMGKtWWMtaaggXjqpaA 68OAo7bIYcS7T/rcRdh3eXTjLk4mw0dsMSbAfkkNNumvPbIiKFVk76l4TBawPi1kFPCF 8HWNpR3Q92rkbR6LEa0Ci+IVp0dNH4lblTzkIsjmJrXIAyyj6FTIzlwvJ50sE68J0rZ+ AAkw== X-Gm-Message-State: ALoCoQnu42t73UDzIRNC2OnV8fxQbhES8F26AAlnSDZBFr6IQbtK8e3CyyaCyI9UAOTcL8rEmWp8 X-Received: by 10.58.57.4 with SMTP id e4mr9239279veq.24.1395401607882; Fri, 21 Mar 2014 04:33:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.9 with SMTP id k9ls618339qgf.78.gmail; Fri, 21 Mar 2014 04:33:27 -0700 (PDT) X-Received: by 10.220.192.71 with SMTP id dp7mr173259vcb.45.1395401607782; Fri, 21 Mar 2014 04:33:27 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id sn5si1087675vdc.173.2014.03.21.04.33.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 04:33:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id id10so2407022vcb.40 for ; Fri, 21 Mar 2014 04:33:27 -0700 (PDT) X-Received: by 10.221.22.71 with SMTP id qv7mr7068799vcb.34.1395401607701; Fri, 21 Mar 2014 04:33:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp23522vck; Fri, 21 Mar 2014 04:33:26 -0700 (PDT) X-Received: by 10.68.136.133 with SMTP id qa5mr52963767pbb.63.1395401606328; Fri, 21 Mar 2014 04:33:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si3251206pbd.288.2014.03.21.04.33.25; Fri, 21 Mar 2014 04:33:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760790AbaCULdS (ORCPT + 26 others); Fri, 21 Mar 2014 07:33:18 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:53671 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760766AbaCULdQ (ORCPT ); Fri, 21 Mar 2014 07:33:16 -0400 Received: by mail-wi0-f180.google.com with SMTP id hn9so388513wib.1 for ; Fri, 21 Mar 2014 04:33:15 -0700 (PDT) X-Received: by 10.180.182.199 with SMTP id eg7mr2155227wic.13.1395401595370; Fri, 21 Mar 2014 04:33:15 -0700 (PDT) Received: from lee--X1.home (host109-148-113-193.range109-148.btcentralplus.com. [109.148.113.193]) by mx.google.com with ESMTPSA id f3sm4068246wiv.2.2014.03.21.04.33.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 04:33:14 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@st.com Subject: [PATCH RESEND for ARM-SoC 1/2] ARM: STi: stih416: Add support for the FSM Serial Flash Controller Date: Fri, 21 Mar 2014 11:33:07 +0000 Message-Id: <1395401588-8825-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395401588-8825-1-git-send-email-lee.jones@linaro.org> References: <1395401588-8825-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Here we add the necessary device nodes required for successful device probing and Pinctrl setup for the FSM when booting on an STiH416 (Orly2). Acked-by: Srinivas Kandagatla Acked-by Angus Clark Acked-by: Brian Norris Acked-by: Maxime Coquelin Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 13 +++++++++++++ arch/arm/boot/dts/stih416.dtsi | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/stih416-pinctrl.dtsi b/arch/arm/boot/dts/stih416-pinctrl.dtsi index b29ff4b..81df8e7 100644 --- a/arch/arm/boot/dts/stih416-pinctrl.dtsi +++ b/arch/arm/boot/dts/stih416-pinctrl.dtsi @@ -210,6 +210,19 @@ }; }; }; + + fsm { + pinctrl_fsm: fsm { + st,pins { + spi-fsm-clk = <&PIO12 2 ALT1 OUT>; + spi-fsm-cs = <&PIO12 3 ALT1 OUT>; + spi-fsm-mosi = <&PIO12 4 ALT1 OUT>; + spi-fsm-miso = <&PIO12 5 ALT1 IN>; + spi-fsm-hol = <&PIO12 6 ALT1 OUT>; + spi-fsm-wp = <&PIO12 7 ALT1 OUT>; + }; + }; + }; }; pin-controller-rear { diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index b7ab47b..1e24b9e 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -145,5 +145,18 @@ status = "disabled"; }; + + /* FSM */ + spifsm: spifsm@fe902000 { + compatible = "st,spi-fsm"; + reg = <0xfe902000 0x1000>; + pinctrl-0 = <&pinctrl_fsm>; + + st,syscfg = <&syscfg_rear>; + st,boot-device-reg = <0x958>; + st,boot-device-spi = <0x1a>; + + status = "disabled"; + }; }; };