From patchwork Thu Jan 23 10:31:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 23608 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9FB6B218BD for ; Thu, 23 Jan 2014 10:33:21 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id c9sf2662030qcz.9 for ; Thu, 23 Jan 2014 02:33:20 -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=HlBd171ZBBHarpdiT4EGcwidbW+V1e9BAVJ70PjVMto=; b=RyicUTEGmiVkaDbqCjgkyl1lvIXgg3kEqMbMu7LVTOKtbCstJRR1tzRKlTynOj+FoJ VpW5yv2Z0OVDQWwIC/xFlbW3U8/HlarkLP0BppK2fXkPVjV/s7LOLK91tkN2dqI8hRvf hK4PqdYfdP9WXz8a4xrD8ZtmKZWGZihh+MjWNDo1EQuSjyIPo9POcNw/hkp6HoEqTQkz n9RXs5blygeRXgJI1cGKOPJa6LmMQv/1xkHLNLZ0nNGICrjnc4w1FFRogBrJIEymyn7S JKCQ4YIM71F5yy5rVdO47hHEOUlC9GfUk3lkoQ9fRd7YEmU5x1+o9qVEBBhrrN/hMP1y B9nQ== X-Gm-Message-State: ALoCoQkkFP7hb+v3T2ihgdHmtf6mY2sLriUiHNNBLugjH5rJRXKZTi40Qo/fyxSddKwT45Znca4I X-Received: by 10.58.38.137 with SMTP id g9mr2801632vek.6.1390473200840; Thu, 23 Jan 2014 02:33:20 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.200 with SMTP id j66ls251120qgj.80.gmail; Thu, 23 Jan 2014 02:33:20 -0800 (PST) X-Received: by 10.220.1.131 with SMTP id 3mr4139558vcf.4.1390473200757; Thu, 23 Jan 2014 02:33:20 -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 b20si6421469veu.98.2014.01.23.02.33.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 02:33:20 -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 c14so970986vea.6 for ; Thu, 23 Jan 2014 02:33:20 -0800 (PST) X-Received: by 10.220.193.70 with SMTP id dt6mr4107411vcb.17.1390473200683; Thu, 23 Jan 2014 02:33:20 -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 u4csp16042vcz; Thu, 23 Jan 2014 02:33:20 -0800 (PST) X-Received: by 10.180.79.38 with SMTP id g6mr7125428wix.60.1390473199795; Thu, 23 Jan 2014 02:33:19 -0800 (PST) Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by mx.google.com with ESMTPS id pc12si8902996wic.38.2014.01.23.02.33.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 02:33:19 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.171 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.171; Received: by mail-we0-f171.google.com with SMTP id w61so951436wes.16 for ; Thu, 23 Jan 2014 02:33:19 -0800 (PST) X-Received: by 10.194.2.70 with SMTP id 6mr5985897wjs.25.1390473199285; Thu, 23 Jan 2014 02:33:19 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id ay6sm21257831wjb.23.2014.01.23.02.33.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 02:33:18 -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, computersforpeace@gmail.com, Angus.Clark@st.com, DCG_UPD_stlinux_kernel@list.st.com, olivier.clergeaud@st.com, Lee Jones Subject: [PATCH RESEND v4 37/37] ARM: STi: Add support for the FSM Serial Flash Controller Date: Thu, 23 Jan 2014 10:31:25 +0000 Message-Id: <1390473085-24626-38-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1390473085-24626-1-git-send-email-lee.jones@linaro.org> References: <1390473085-24626-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. Acked-by: Srinivas Kandagatla 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 {