From patchwork Wed Jan 8 13:47:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 22973 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 30282202E2 for ; Wed, 8 Jan 2014 13:49:25 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf2881771qae.3 for ; Wed, 08 Jan 2014 05:49:24 -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=Z8bOP+7mHo4bLmb21ltsITabSQD9KS5j9OrQqDyB8QUbNdY3QrLT7yI0I/H07vbB8e 9lqM7TMwDp2zr13awqftI816RY7l0xT6Azm6UjZ2A6djAzj/QaVmql71IfjY0E+lJHLi /ePmi8n1jZ+UX5B4JGZGMY8z4uAfRoqt8hQBJIpIAaGeU2+84+3YOIxV6mTkIXAJ/12m mB9LxwbdrtcI5Kr8XVAR4oP8I4vzpbXne40971/to2nAC5WOOZWoOqp12HYNbQipDX5b i7kzIrNYzC2GgIsXbHPw58wmQq+YfUroRjgiJ3OW0xo3Rofvq/d0CeUQwpWzKsH4S55k Mpqg== X-Gm-Message-State: ALoCoQnwR4Y+FKy8PyBLAx3WEFZhEmb2XhBDUNpCEOMdHwm0RnVOdabg6V5ets8neZGixq+iT8ho X-Received: by 10.236.128.243 with SMTP id f79mr964334yhi.27.1389188964391; Wed, 08 Jan 2014 05:49:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.60.37 with SMTP id e5ls606573qer.84.gmail; Wed, 08 Jan 2014 05:49:24 -0800 (PST) X-Received: by 10.52.166.6 with SMTP id zc6mr66733181vdb.10.1389188964325; Wed, 08 Jan 2014 05:49:24 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id wz7si613250vdc.39.2014.01.08.05.49.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 05:49:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q12so1158463vbe.35 for ; Wed, 08 Jan 2014 05:49:24 -0800 (PST) X-Received: by 10.52.227.233 with SMTP id sd9mr2730954vdc.53.1389188964218; Wed, 08 Jan 2014 05:49:24 -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.59.13.131 with SMTP id ey3csp226668ved; Wed, 8 Jan 2014 05:49:23 -0800 (PST) X-Received: by 10.180.38.8 with SMTP id c8mr21698213wik.48.1389188961912; Wed, 08 Jan 2014 05:49:21 -0800 (PST) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by mx.google.com with ESMTPS id jx8si30455033wjc.143.2014.01.08.05.49.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 05:49:21 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.173 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.173; Received: by mail-we0-f173.google.com with SMTP id t60so1449473wes.18 for ; Wed, 08 Jan 2014 05:49:21 -0800 (PST) X-Received: by 10.180.94.164 with SMTP id dd4mr21610944wib.20.1389188961383; Wed, 08 Jan 2014 05:49:21 -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 j9sm48125217wjx.18.2014.01.08.05.49.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 05:49:20 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: computersforpeace@gmail.com, angus.clark@st.com, Lee Jones Subject: [PATCH v4 37/37] ARM: STi: Add support for the FSM Serial Flash Controller Date: Wed, 8 Jan 2014 13:47:20 +0000 Message-Id: <1389188840-14306-38-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1389188840-14306-1-git-send-email-lee.jones@linaro.org> References: <1389188840-14306-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.212.48 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 {