From patchwork Fri Nov 29 12:19:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 21894 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1068123FC4 for ; Fri, 29 Nov 2013 12:20:46 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf25490808pbc.0 for ; Fri, 29 Nov 2013 04:20:46 -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=s834/In2KS0MP1BTWNA5YJWj03FibCp6aT+jM5nJPxo=; b=UnC/f4GocmovrnBmsj3kbHtFC3vNhK9Gk6SbC1Wv6sKmhX6KuD/WJM7bbley0PLzmj oJGTNPc/xbVRwm1Jg+ENi4twD31e9x2+65K9+qZLgTlslp95zYBDx57cGH5hS366E+TR kdfpkdmEU7hCplXz36m0AoABhWASTTKtcChJF+dLn25mVR5qOEQ7Lr998O8nD+SExycF Hez/3DEN8i0y0ptN/U1s6tuQhUG2s9tKy5MvvAes7fHzgMl8HjwFuIf/jBFeGimXabx5 MRQ8U8oabPSXQPebZzaifEPhwnPuYVdJkxJSEC8IFC0Cb2LWRkO2LaqYw/WSNH7MrATG A+ww== X-Gm-Message-State: ALoCoQkYoU0WWdilFhzx8vt+dPLXdJkEw7xYbeKfYH1L9ZUG6vRYcw5ugJjuZ0rfTO9u4GDv5Hqm X-Received: by 10.66.144.41 with SMTP id sj9mr17894776pab.23.1385727646375; Fri, 29 Nov 2013 04:20:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.108 with SMTP id g12ls415258qej.81.gmail; Fri, 29 Nov 2013 04:20:46 -0800 (PST) X-Received: by 10.53.4.38 with SMTP id cb6mr28005vdd.89.1385727646279; Fri, 29 Nov 2013 04:20:46 -0800 (PST) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id c1si24804649vcs.28.2013.11.29.04.20.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Nov 2013 04:20:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.50 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.50; Received: by mail-vb0-f50.google.com with SMTP id 10so6564599vbe.23 for ; Fri, 29 Nov 2013 04:20:46 -0800 (PST) X-Received: by 10.221.32.200 with SMTP id sl8mr31013vcb.64.1385727646208; Fri, 29 Nov 2013 04:20:46 -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 u4csp87495vcz; Fri, 29 Nov 2013 04:20:45 -0800 (PST) X-Received: by 10.224.69.4 with SMTP id x4mr51727425qai.59.1385727645813; Fri, 29 Nov 2013 04:20:45 -0800 (PST) Received: from mail-yh0-f50.google.com (mail-yh0-f50.google.com [209.85.213.50]) by mx.google.com with ESMTPS id u8si3614035qab.55.2013.11.29.04.20.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Nov 2013 04:20:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.213.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.213.50; Received: by mail-yh0-f50.google.com with SMTP id b6so6704849yha.37 for ; Fri, 29 Nov 2013 04:20:45 -0800 (PST) X-Received: by 10.236.85.237 with SMTP id u73mr1958727yhe.67.1385727645554; Fri, 29 Nov 2013 04:20:45 -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 m29sm101911689yho.14.2013.11.29.04.20.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Nov 2013 04:20:45 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dwmw2@infradead.org Cc: linus.walleij@linaro.org, linux-mtd@lists.infradead.org, angus.clark@st.com, Lee Jones , Srinivas Kandagatla Subject: [PATCH v3 36/36] ARM: STi: Add support for the FSM Serial Flash Controller Date: Fri, 29 Nov 2013 12:19:25 +0000 Message-Id: <1385727565-25794-37-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1385727565-25794-1-git-send-email-lee.jones@linaro.org> References: <1385727565-25794-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.50 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 | 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 {