From patchwork Fri Nov 22 16:22:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 21691 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 0F7F723FDC for ; Fri, 22 Nov 2013 16:23:53 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f64sf2406070yha.6 for ; Fri, 22 Nov 2013 08:23:52 -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=PYaPskPJ1n+BMEevlGUzSay82LFb+aCZoa9jGZLnCG8=; b=H9ROSLjWR4YlmQKkj//Pkr49Oin+ZPz64j/5t0of8OFOFKondEGW+nRN9Uc5hzuGYO rqnhpQCVK0k5wTAOiyfDz88lQFFeaDzEm4CL7G4m2MzWT0l19k+aBD2sS+CwanuNyLSH Z2iysEw3Q+GcDMCH4aULS14KjyihJ3RnRLGTCIusjF7Vm6jmwSqmoEpHhtkmme459C7L s2vFyLtulNItmIIbBQlXMGNX565KgPT0zi0jktp91MWkb+dS1jvafEDWH6yrl35gwCNk DJqAW9uvb+lvCVOA7MHjLE+o3jaybZoaPtUB3H69XswBV8NwLsLzLZJgPBhH41fQI2iP KjmA== X-Gm-Message-State: ALoCoQlMIk1xYDS6CHRksE2moATx9b3vvyNEEAuoa1ojKVUAIuTZ7f6hYtvTarrMN1Kn1qpuNAGY X-Received: by 10.58.238.199 with SMTP id vm7mr4156736vec.17.1385137432823; Fri, 22 Nov 2013 08:23:52 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.195 with SMTP id og3ls1038230qeb.62.gmail; Fri, 22 Nov 2013 08:23:52 -0800 (PST) X-Received: by 10.52.98.99 with SMTP id eh3mr2170982vdb.29.1385137432652; Fri, 22 Nov 2013 08:23:52 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id l1si12885872vcl.64.2013.11.22.08.23.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 08:23:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id db12so1032530veb.36 for ; Fri, 22 Nov 2013 08:23:52 -0800 (PST) X-Received: by 10.221.44.136 with SMTP id ug8mr12066982vcb.13.1385137432573; Fri, 22 Nov 2013 08:23:52 -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 u4csp51526vcz; Fri, 22 Nov 2013 08:23:52 -0800 (PST) X-Received: by 10.68.88.161 with SMTP id bh1mr11886035pbb.49.1385137431714; Fri, 22 Nov 2013 08:23:51 -0800 (PST) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id ez5si901527pab.309.2013.11.22.08.23.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 08:23:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id y13so1443520pdi.5 for ; Fri, 22 Nov 2013 08:23:51 -0800 (PST) X-Received: by 10.67.1.70 with SMTP id be6mr13155147pad.9.1385137431343; Fri, 22 Nov 2013 08:23:51 -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 qz9sm52962938pbc.3.2013.11.22.08.23.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 08:23:50 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dwmw2@infradead.org, linux-mtd@lists.infradead.org, angus.clark@st.com Cc: linus.walleij@linaro.org, Lee Jones Subject: [PATCH 11/23] ARM: STi: Add support for the FSM Serial Flash Controller Date: Fri, 22 Nov 2013 16:22:48 +0000 Message-Id: <1385137380-28968-12-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1385137380-28968-1-git-send-email-lee.jones@linaro.org> References: <1385137380-28968-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.177 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. 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..7acdfdf 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", "simple-bus"; + 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 {