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: 8653771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 21C5EC0554 for ; Wed, 23 Mar 2016 19:52:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4501D200D9 for ; Wed, 23 Mar 2016 19:52:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 576C12039E for ; Wed, 23 Mar 2016 19:52:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aiono-00068c-FJ; Wed, 23 Mar 2016 19:50:48 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aiol9-0002pf-Ai for linux-arm-kernel@lists.infradead.org; Wed, 23 Mar 2016 19:48:05 +0000 Received: by mail-wm0-x235.google.com with SMTP id p65so38046575wmp.0 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=XPvA1iMygMWtcjX29Dj3mVxv8ucNQ8kGlnX8iABSx1EZxB5MvmGD+9DPTWDKmN73DQ IfEWnKWcM1qEZ6I1/wpQSkE8wFSqTTAFzgLf7zi7lkT8V7FzjL9vYiuySlW7AK8dEZRN 63/RhHCEmmnWHizmCv1AOaMaqfgAJqol5Ta28npk3pTl6rfYtF6Rve9kXVTz5H50I9SZ 3X+Ea+UNzGL/I2Dt8076pAOEMF7QUOb05lVOtrHcfU230v4jmgkbvnDb+LdcJbp2JeTC oLT50NYIXPHc5NApK87mVQ2zSnbccaw/HgqHSkYDcWYvF1REDGF00OwHW6+dSwjvsCEr tuPQ== X-Gm-Message-State: AD7BkJI+pZreUpa9w4QI4zEP5aJ/f7oveE/tCJG0m51HchGDFnz7YWAcWqp0+85t/akh1AmD 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160323_124803_692910_208EAB95 X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Srinivas Kandagatla , linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds eMMC and SD card support with card detect and adding required regulators. Signed-off-by: Srinivas Kandagatla Acked-by: Bjorn Andersson --- .../arm/boot/dts/qcom-apq8064-dragonboard-600c.dts | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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>; + }; + }; }; };