From patchwork Thu Nov 14 14:22:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 21507 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA49523FDD for ; Thu, 14 Nov 2013 14:23:14 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f73sf3923878yha.10 for ; Thu, 14 Nov 2013 06:23:14 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=TlCE02OuarB8AOrTVTQlzFBH0oKCztoMDnUaPw9dAPQ=; b=iuWflNkSSkzuR1KQBHV3vNx7NnTNCkWbrHFVAHLlxdIBPkZSsnj+P7M/KPkeJ5miY2 BszLcGzGzwo3cXQH1sXQHkTcybasyPSupZnsUfPCQg2sD4PjOj3ipVKz18a65nTgIpWi 2T0YeJ8jgimXTca6UNbfzLzdhsFYA4x+g8+5Aqn/bWTvVV0uy8BfYqcse0kG1NB1c8+g Hvz7A/8iF8WeTUb6vdPw9kNJ5o8q/SbVqUQUP9Nm/5bjXgvIDPg/EPz8qsRhpNZNXKeu p/6r63sKEb3lPTgjoWtnAYrLIpL63/sPGLW1lhwhystlwMm3fMCWI1v2lKCfs1zdvMJP Rn4A== X-Gm-Message-State: ALoCoQmjO9T/75mSrUFrWBbY1grEm2byf51jbjeJR3HFijABCG2EhnBf0+QTuYsaz7VChCy/mnbt X-Received: by 10.236.26.202 with SMTP id c50mr817485yha.14.1384438994644; Thu, 14 Nov 2013 06:23:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.229 with SMTP id n5ls982603qeh.73.gmail; Thu, 14 Nov 2013 06:23:14 -0800 (PST) X-Received: by 10.52.33.44 with SMTP id o12mr800045vdi.7.1384438994560; Thu, 14 Nov 2013 06:23:14 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id il5si17154705vdb.49.2013.11.14.06.23.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 06:23:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id jw12so1900356veb.34 for ; Thu, 14 Nov 2013 06:23:14 -0800 (PST) X-Received: by 10.58.23.33 with SMTP id j1mr930939vef.27.1384438994473; Thu, 14 Nov 2013 06:23:14 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp319822vcz; Thu, 14 Nov 2013 06:23:14 -0800 (PST) X-Received: by 10.60.58.71 with SMTP id o7mr1625635oeq.51.1384438993326; Thu, 14 Nov 2013 06:23:13 -0800 (PST) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id rw1si4459159oeb.152.2013.11.14.06.23.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 06:23:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.214.172; Received: by mail-ob0-f172.google.com with SMTP id wm4so2207110obc.17 for ; Thu, 14 Nov 2013 06:23:13 -0800 (PST) X-Received: by 10.182.92.231 with SMTP id cp7mr1602154obb.82.1384438993006; Thu, 14 Nov 2013 06:23:13 -0800 (PST) Received: from localhost.localdomain (cpc15-aztw25-2-0-cust493.aztw.cable.virginm.net. [92.233.57.238]) by mx.google.com with ESMTPSA id z5sm5585965obg.13.2013.11.14.06.23.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 06:23:12 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, dwmw2@infradead.org, linux-mtd@lists.infradead.org, angus.clark@st.com, Lee Jones , Srinivas Kandagatla Subject: [PATCH 10/10] ARM: STi: Add support for the FSM Serial Flash Controller Date: Thu, 14 Nov 2013 14:22:36 +0000 Message-Id: <1384438956-31153-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1384438956-31153-1-git-send-email-lee.jones@linaro.org> References: <1384438956-31153-1-git-send-email-lee.jones@linaro.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.175 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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. Cc: Srinivas Kandagatla Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2105.dts | 10 ++++++++++ arch/arm/boot/dts/stih416-pinctrl.dtsi | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/stih416-b2105.dts b/arch/arm/boot/dts/stih416-b2105.dts index f14eec3..29b09ab 100644 --- a/arch/arm/boot/dts/stih416-b2105.dts +++ b/arch/arm/boot/dts/stih416-b2105.dts @@ -32,6 +32,16 @@ status = "okay"; }; + /* FSM */ + spifsm: spifsm@fe902000{ + compatible = "st,spi-fsm", "simple-bus"; + reg = <0xfe902000 0x1000>; + reg-names = "spi-fsm"; + pinctrl-0 = <&pinctrl_fsm>; + + 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 eb426a1..3106ea2 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 {