From patchwork Thu May 22 15:18:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 30634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CFB4820369 for ; Thu, 22 May 2014 15:19:14 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf11432786pbb.2 for ; Thu, 22 May 2014 08:19:14 -0700 (PDT) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=27Igp8R9CikFk0mVfCl6cAnzJidiJfQ6RQHrN5XOTB4=; b=VkGmb/FgqatCN8zy1fYFtZcBcAR27kZ0E1txx8D1sBrbOHu6yHyo9p18AQ6PVNQl9P 6oBT+kYE2spaxefJXgHg+HwpwLFiyzQU0n4vnCS2GYytI8etL3GCR+7qNGxcw3D7TSnJ jcL0YrJZGS5See5Xj9Gdp8mhFAfkYJ7ml140aSg/waqXFXOTz/zNh5xfMpMRZMlx4jGh 2qN10AEYv2ncfesk0UAtDNBCKsrJvveMhz7yRCG/b7PGlk5vTsYqz++0N0IEG5V1IuqZ CyBnulsOHStNo3doLdhGbIG93CzCRcim3BoDG5Fo1I2zdMj6NWXHe5ouZK8ubhXhSY/c F5sw== X-Gm-Message-State: ALoCoQkGsUZ/XfKpks1F/zEmP4ytOP+P3RXw5+GFuq2CD2A+x3W7AS6z75nvVrfdm8awiwTzxmP3 X-Received: by 10.66.66.109 with SMTP id e13mr25323857pat.1.1400771954009; Thu, 22 May 2014 08:19:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.118 with SMTP id x109ls1262325qge.74.gmail; Thu, 22 May 2014 08:19:13 -0700 (PDT) X-Received: by 10.220.94.8 with SMTP id x8mr1045623vcm.67.1400771953841; Thu, 22 May 2014 08:19:13 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id ve5si65738vcb.76.2014.05.22.08.19.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 08:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so4621651vcb.29 for ; Thu, 22 May 2014 08:19:13 -0700 (PDT) X-Received: by 10.58.186.207 with SMTP id fm15mr49860252vec.4.1400771953756; Thu, 22 May 2014 08:19:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp207787vcb; Thu, 22 May 2014 08:19:13 -0700 (PDT) X-Received: by 10.66.141.144 with SMTP id ro16mr67787928pab.131.1400771952947; Thu, 22 May 2014 08:19:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xj7si172734pbc.33.2014.05.22.08.19.12 for ; Thu, 22 May 2014 08:19:12 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbaEVPS5 (ORCPT + 27 others); Thu, 22 May 2014 11:18:57 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:61370 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103AbaEVPSx (ORCPT ); Thu, 22 May 2014 11:18:53 -0400 Received: by mail-wi0-f182.google.com with SMTP id r20so4500699wiv.3 for ; Thu, 22 May 2014 08:18:52 -0700 (PDT) X-Received: by 10.180.106.194 with SMTP id gw2mr17100349wib.47.1400771931913; Thu, 22 May 2014 08:18:51 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by mx.google.com with ESMTPSA id dk4sm848205wib.14.2014.05.22.08.18.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 May 2014 08:18:51 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@gmail.com, chris@printf.net, ulf.hansson@linaro.org Cc: peter.griffin@linaro.org, kernel@stlinux.com, lee.jones@linaro.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Giuseppe Cavallaro Subject: [PATCH 5/8] ARM: STi: DT: Add sdhci pin configuration for stih415 Date: Thu, 22 May 2014 16:18:19 +0100 Message-Id: <1400771902-26553-6-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400771902-26553-1-git-send-email-peter.griffin@linaro.org> References: <1400771902-26553-1-git-send-email-peter.griffin@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds the required pin config for the sdhci controller present in the stih415 SoC. Signed-off-by: Peter Griffin Signed-off-by: Giuseppe Cavallaro --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 21 +++++++++++++++++++++ arch/arm/boot/dts/stih415.dtsi | 12 ++++++++++++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/stih415-pinctrl.dtsi b/arch/arm/boot/dts/stih415-pinctrl.dtsi index caeac7e..eee2373 100644 --- a/arch/arm/boot/dts/stih415-pinctrl.dtsi +++ b/arch/arm/boot/dts/stih415-pinctrl.dtsi @@ -429,6 +429,27 @@ }; }; }; + + mmc0 { + pinctrl_mmc0: mmc0 { + st,pins { + mmcclk = <&PIO13 4 ALT4 BIDIR_PU NICLK 0 CLK_B>; + data0 = <&PIO14 4 ALT4 BIDIR_PU BYPASS 0>; + data1 = <&PIO14 5 ALT4 BIDIR_PU BYPASS 0>; + data2 = <&PIO14 6 ALT4 BIDIR_PU BYPASS 0>; + data3 = <&PIO14 7 ALT4 BIDIR_PU BYPASS 0>; + cmd = <&PIO15 1 ALT4 BIDIR_PU BYPASS 0>; + wp = <&PIO15 3 ALT4 IN>; + data4 = <&PIO16 4 ALT4 BIDIR_PU BYPASS 0>; + data5 = <&PIO16 5 ALT4 BIDIR_PU BYPASS 0>; + data6 = <&PIO16 6 ALT4 BIDIR_PU BYPASS 0>; + data7 = <&PIO16 7 ALT4 BIDIR_PU BYPASS 0>; + pwr = <&PIO17 1 ALT4 OUT>; + cd = <&PIO17 2 ALT4 IN>; + led = <&PIO17 3 ALT4 OUT>; + }; + }; + }; }; pin-controller-left { diff --git a/arch/arm/boot/dts/stih415.dtsi b/arch/arm/boot/dts/stih415.dtsi index d6f254f..6579b1d 100644 --- a/arch/arm/boot/dts/stih415.dtsi +++ b/arch/arm/boot/dts/stih415.dtsi @@ -218,5 +218,17 @@ resets = <&powerdown STIH415_KEYSCAN_POWERDOWN>, <&softreset STIH415_KEYSCAN_SOFTRESET>; }; + + mmc0: sdhci@fe81e000 { + compatible = "st,sdhci"; + status = "disabled"; + reg = <0xfe81e000 0x1000>; + interrupts = ; + interrupt-names = "mmcirq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mmc0>; + clock-names = "mmc"; + clocks = <&clk_s_a1_ls 1>; + }; }; };