From patchwork Wed Mar 23 19:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 64268 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp232690lbc; Wed, 23 Mar 2016 12:48:10 -0700 (PDT) X-Received: by 10.98.70.138 with SMTP id o10mr6794270pfi.123.1458762482841; Wed, 23 Mar 2016 12:48:02 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b74si6354001pfd.69.2016.03.23.12.48.02; Wed, 23 Mar 2016 12:48:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932744AbcCWTrs (ORCPT + 29 others); Wed, 23 Mar 2016 15:47:48 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34806 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932710AbcCWTrn (ORCPT ); Wed, 23 Mar 2016 15:47:43 -0400 Received: by mail-wm0-f50.google.com with SMTP id p65so247328637wmp.1 for ; Wed, 23 Mar 2016 12:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zh7RuYj15jgVg507QMQL5SWNApanwjmNQlfRWA0ovlg=; b=AZsCTpi34qwdGqOQkg7nz7HfvhZPR3z80/07wPyVOxpgPFM6nKEMhqggxR6ci/zoi/ /zWxlrFLwqIoHhp+8tE0QA8JlwpdhjVVHb9u8MlbfgZMXsJcemxv2PdwrwdRQv34sB4j s/ZmoptyFL+2Ot+lVdcb99nvvGoHLzF6sV4u4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Zh7RuYj15jgVg507QMQL5SWNApanwjmNQlfRWA0ovlg=; b=iCvZSJr/XXapRUX4k8ZiOo19ebvz+1e667WesfkI9Wcb/epfBwZzWj7NgIbkZioPRN L+8gobGA64G5zICmeT0gzat9+w7E71/mP5pdrjAc0XFImBKzZ6rSOwsN9NdRKKxVWhMx qV9ZIOqRLkHxvas58fkpFvqlv5lvEQZ3ZXmroZnL06sSL3w23GdAMFPyQCS4ikqDNIFg Zs8o7LBbjvP36NJd6yt1XXICfWeqRdXOpghNYyNY1skT1yWyJWwRyY6q7zJgwXVvhowa lRFlVpisy6t6efRyWcyHK7+TTWPuajV0lk4K6sEsXCsALCr+A3wtrKj3esXsljOBWuBF f9tA== X-Gm-Message-State: AD7BkJJIjPxQ/83q997eOAjWcmIGG+CiC6N2fb8ZpNqpPbj5hSpm2y+s+1Qk3TGgx9eayTcp X-Received: by 10.194.115.132 with SMTP id jo4mr5112934wjb.156.1458762461792; Wed, 23 Mar 2016 12:47:41 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id s66sm23890032wmb.6.2016.03.23.12.47.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 12:47:41 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross , linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 06/12] ARM: dts: dragonboard-600c: Add eMMC and SD card support Date: Wed, 23 Mar 2016 19:47:38 +0000 Message-Id: <1458762458-9584-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458762366-9233-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1458762366-9233-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds eMMC and SD card support with card detect and adding required regulators. Signed-off-by: Srinivas Kandagatla --- .../arm/boot/dts/qcom-apq8064-dragonboard-600c.dts | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 2.5.0 diff --git a/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts b/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts index 0a0bcfe..a977314 100644 --- a/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts +++ b/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts @@ -1,4 +1,5 @@ #include "qcom-apq8064-v2.0.dtsi" +#include / { model = "Qualcomm Technologies, Inc. APQ8064 DragonBoard600c"; @@ -22,6 +23,16 @@ }; soc { + pinctrl@800000 { + card_detect: card_detect { + mux { + pins = "gpio26"; + function = "gpio"; + bias-disable; + }; + }; + }; + rpm@108000 { regulators { vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; @@ -62,6 +73,18 @@ regulator-max-microvolt = <1300000>; qcom,switch-mode-frequency = <3200000>; }; + + l5 { + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <3000000>; + bias-pull-down; + }; + + l6 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + bias-pull-down; + }; }; }; @@ -87,5 +110,23 @@ pinctrl-0 = <&gsbi7_uart_2pins>; }; }; + + amba { + /* eMMC */ + sdcc@12400000 { + status = "okay"; + vmmc-supply = <&pm8921_l5>; + vqmmc-supply = <&pm8921_s4>; + }; + + /* External micro SD card */ + sdcc@12180000 { + status = "okay"; + vmmc-supply = <&pm8921_l6>; + pinctrl-names = "default"; + pinctrl-0 = <&card_detect>; + cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_HIGH>; + }; + }; }; };