From patchwork Tue Feb 18 14:56:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24870 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51F30202B2 for ; Tue, 18 Feb 2014 14:58:32 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf32945277vcb.0 for ; Tue, 18 Feb 2014 06:58:31 -0800 (PST) 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=vuwzBciWMxSywYlE1wLvEaHlbkN6Bdhxl9MltZ+4IRg=; b=BJJ08pBlM1PRW+h+SRT0UKB5ww2TDeIVCICsIBbWx6218QyagpvxhP2hfpKM4ScXUX BSccX9+Uf8FwhSHWAyyyDHN5EJJ3VzykBjKh/zn9kL58d5RuruEcZzdrFhcjokayCKCE grxDApmqa8y0UriSSscLufBWd8fct8u7j1BfoRQ2b54bk9Hb/vOdTDUMXO2P/PHfbmvE Dx0dUr8aA7HTr1f1xtZl1cJLicU2k1Uxy0olIw26qPdUmRWotF8YmNNJKGKffaqs4NiZ z6zydBRl6nWTT1MKBaSbViInJANW7YBbNTCkCGa9DL1wsJT1YEUoN3PnHj5m3A919IhP et/A== X-Gm-Message-State: ALoCoQmUEn+L+dJMQeIi25VVJ7jilX6lswlHTN/tl7qg0YSIpohsHQ1o9GowQaE4iAQ5QZ1NgbJM X-Received: by 10.52.94.47 with SMTP id cz15mr11261647vdb.0.1392735511825; Tue, 18 Feb 2014 06:58:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.198 with SMTP id 64ls1377592qgt.31.gmail; Tue, 18 Feb 2014 06:58:31 -0800 (PST) X-Received: by 10.52.251.232 with SMTP id zn8mr4686196vdc.41.1392735511707; Tue, 18 Feb 2014 06:58:31 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id w5si5560476vcl.141.2014.02.18.06.58.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 06:58:31 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id oy12so13874744veb.0 for ; Tue, 18 Feb 2014 06:58:31 -0800 (PST) X-Received: by 10.220.225.71 with SMTP id ir7mr795100vcb.50.1392735511586; Tue, 18 Feb 2014 06:58:31 -0800 (PST) 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.174.196 with SMTP id u4csp222630vcz; Tue, 18 Feb 2014 06:58:31 -0800 (PST) X-Received: by 10.66.187.11 with SMTP id fo11mr33578591pac.47.1392735510584; Tue, 18 Feb 2014 06:58:30 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zk9si18584091pac.231.2014.02.18.06.58.29; Tue, 18 Feb 2014 06:58:29 -0800 (PST) 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 S1756128AbaBRO6O (ORCPT + 27 others); Tue, 18 Feb 2014 09:58:14 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:39262 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755742AbaBRO6B (ORCPT ); Tue, 18 Feb 2014 09:58:01 -0500 Received: by mail-wi0-f169.google.com with SMTP id e4so3498806wiv.2 for ; Tue, 18 Feb 2014 06:58:00 -0800 (PST) X-Received: by 10.180.149.143 with SMTP id ua15mr17948477wib.36.1392735479850; Tue, 18 Feb 2014 06:57:59 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id h13sm46039687wjr.22.2014.02.18.06.57.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 06:57:58 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, DCG_UPD_stlinux_kernel@list.st.com, dwmw2@infradead.org, linux-mtd@lists.infradead.org, computersforpeace@gmail.com, Angus.Clark@st.com Subject: [PATCH 35/35] ARM: STi: Add support for the FSM Serial Flash Controller Date: Tue, 18 Feb 2014 14:56:02 +0000 Message-Id: <1392735362-1245-36-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392735362-1245-1-git-send-email-lee.jones@linaro.org> References: <1392735362-1245-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.128.169 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. Acked-by: Srinivas Kandagatla Acked-by Angus Clark Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2105.dts | 14 ++++++++++++++ arch/arm/boot/dts/stih416-pinctrl.dtsi | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/stih416-b2105.dts b/arch/arm/boot/dts/stih416-b2105.dts index e518eb0..dd7ac88 100644 --- a/arch/arm/boot/dts/stih416-b2105.dts +++ b/arch/arm/boot/dts/stih416-b2105.dts @@ -33,6 +33,20 @@ status = "okay"; }; + /* FSM */ + spifsm: spifsm@fe902000{ + compatible = "st,spi-fsm"; + reg = <0xfe902000 0x1000>; + reg-names = "spi-fsm"; + pinctrl-0 = <&pinctrl_fsm>; + + st,syscfg = <&syscfg_rear>; + st,boot-device-reg = <0x958>; + st,boot-device-spi = <0x1a>; + + status = "okay"; + }; + leds { compatible = "gpio-leds"; fp_led { diff --git a/arch/arm/boot/dts/stih416-pinctrl.dtsi b/arch/arm/boot/dts/stih416-pinctrl.dtsi index 10bb4df..9a48710 100644 --- a/arch/arm/boot/dts/stih416-pinctrl.dtsi +++ b/arch/arm/boot/dts/stih416-pinctrl.dtsi @@ -235,6 +235,18 @@ }; }; + fsm { + pinctrl_fsm: fsm { + st,pins { + spi-fsm-clk = <&PIO12 2 OUT ALT1>; + spi-fsm-cs = <&PIO12 3 OUT ALT1>; + spi-fsm-mosi = <&PIO12 4 OUT ALT1>; + spi-fsm-miso = <&PIO12 5 IN ALT1>; + spi-fsm-hol = <&PIO12 6 OUT ALT1>; + spi-fsm-wp = <&PIO12 7 OUT ALT1>; + }; + }; + }; }; pin-controller-rear {