From patchwork Tue Oct 21 05:53:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pramod Gurav X-Patchwork-Id: 39095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E642A203C5 for ; Tue, 21 Oct 2014 05:50:07 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf295346wgh.9 for ; Mon, 20 Oct 2014 22:50:07 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=oSBm43FPw8eAOnumQEEl9XT9CRgqBvlz2tgczCDhph8=; b=GP0fq03tXPN1urE9ELNPxK9bHEyoyU17nvev4HentvIVI1608ysuk4a7/qqs8Fpinc A3Fp/1akMPX5WxFvvVjUOUASSXpURUN1SvZKkP9uY8htCidewapx/TSYBRNIv+TYOFqZ yoCK4C3JgZyhyLg7Xam7/HVUqfKHRYHIltu+MpGdR8bJMFSK9djHDZ+bJKvOdpmgsMX3 tsGo/kou18hOMRPeJbfOt4BH6SiAjVFPR58Q9q4vNzpwfM7G5TO0jV6EY22e8K976snl Tl6xJxx7Fhn9181W5LIcJw4oWyUlhigyXSn7HE9CkRmzAlyaOEsPTX3B4x4B89vNVX0K acbw== X-Gm-Message-State: ALoCoQmznLdSiZGZ9ptnceiFoEy/G+0O7luk5PbdwythEhjNrr1taQ6DpJQ549P2TdYSld2ECOpn X-Received: by 10.152.21.170 with SMTP id w10mr88352lae.6.1413870606782; Mon, 20 Oct 2014 22:50:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.72 with SMTP id q8ls12343laq.98.gmail; Mon, 20 Oct 2014 22:50:06 -0700 (PDT) X-Received: by 10.112.94.133 with SMTP id dc5mr32032762lbb.11.1413870606512; Mon, 20 Oct 2014 22:50:06 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id r5si17237832lal.3.2014.10.20.22.50.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so378293lbi.2 for ; Mon, 20 Oct 2014 22:50:06 -0700 (PDT) X-Received: by 10.152.87.98 with SMTP id w2mr31581536laz.27.1413870606384; Mon, 20 Oct 2014 22:50:06 -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.112.84.229 with SMTP id c5csp437717lbz; Mon, 20 Oct 2014 22:50:05 -0700 (PDT) X-Received: by 10.68.224.103 with SMTP id rb7mr31936637pbc.41.1413870604709; Mon, 20 Oct 2014 22:50:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cv1si9872562pbb.85.2014.10.20.22.50.04 for ; Mon, 20 Oct 2014 22:50:04 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-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 S1754219AbaJUFtw (ORCPT + 5 others); Tue, 21 Oct 2014 01:49:52 -0400 Received: from smtp110.ord1c.emailsrvr.com ([108.166.43.110]:50636 "EHLO smtp110.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754167AbaJUFtu (ORCPT ); Tue, 21 Oct 2014 01:49:50 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp22.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 6BCA61803C8; Tue, 21 Oct 2014 01:49:49 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp22.relay.ord1c.emailsrvr.com (Authenticated sender: pramod.gurav-AT-smartplayin.com) with ESMTPSA id F328018052F; Tue, 21 Oct 2014 01:49:45 -0400 (EDT) X-Sender-Id: pramod.gurav@smartplayin.com Received: from SPINITLTDL00278.smartplayin.local ([UNAVAILABLE]. [220.227.185.53]) (using TLSv1.1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.2.13); Tue, 21 Oct 2014 05:49:49 GMT From: Pramod Gurav To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Pramod Gurav , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Srinivas Kandagatla Subject: [PATCH v2] ARM: DT: apq8064: Add Support for SD Card Detect for ifc6410 board Date: Tue, 21 Oct 2014 11:23:19 +0530 Message-Id: <1413870799-8608-1-git-send-email-pramod.gurav@smartplayin.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pramod.gurav@smartplayin.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 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 changes muxes in gpio26 pin to function as gpio and adds support for sd card detect for apq8064 based IFC6410 board. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Russell King Cc: Srinivas Kandagatla Signed-off-by: Pramod Gurav --- Changes since v2: - Replaced hardcode value with GPIO_ACTIVE_LOW arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b396c83..e641001 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -1,4 +1,5 @@ #include "qcom-apq8064-v2.0.dtsi" +#include / { model = "Qualcomm APQ8064/IFC6410"; @@ -12,6 +13,14 @@ function = "gsbi1"; }; }; + + card_detect: card_detect { + mux { + pins = "gpio26"; + function = "gpio"; + bias-disable; + }; + }; }; gsbi@12440000 { @@ -49,6 +58,9 @@ /* External micro SD card */ sdcc3: sdcc@12180000 { status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&card_detect>; + cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; }; /* WLAN */ sdcc4: sdcc@121c0000 {