From patchwork Tue Jun 21 17:22:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 70588 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2132552qgy; Tue, 21 Jun 2016 10:27:23 -0700 (PDT) X-Received: by 10.67.7.3 with SMTP id cy3mr28440142pad.156.1466530043287; Tue, 21 Jun 2016 10:27:23 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id z8si3324425pae.115.2016.06.21.10.27.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 10:27:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFPRR-00013q-Bn; Tue, 21 Jun 2016 17:26:25 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFPQG-0007M8-GT for linux-arm-kernel@lists.infradead.org; Tue, 21 Jun 2016 17:25:13 +0000 Received: by mail-lf0-x22e.google.com with SMTP id h129so34141503lfh.1 for ; Tue, 21 Jun 2016 10:24:52 -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=juxR+ds5aB7lP46nOl94daZVe9mkGE2EnISLwmXnupY=; b=OJDtGhFQLELdVYaD+PMC4uJmzi3tL4lNUwbOfW/ZR7KH9MESeNukfDKeiZj4UQQkyD Vxa0w7qcOhG9SQpegLO73bliRXG5bW0WK8px0tJqX9P6xeCGXlW9rk7tnQ9qWK7nhdQl NlIvfkVhSwlxFwYb3qKqb4Pw8svOgS4MQIq9s= 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=juxR+ds5aB7lP46nOl94daZVe9mkGE2EnISLwmXnupY=; b=Lbov4tH71VYYi3ygeQtnnic1QHQZMZ8+RNHQLNhe5D6pVN3kARiUAex4vUvs5q1Z2y 8Q+P3aUmHyZ0vCMlWvRKv06YoKJBF3Z08I4ajB96kkSzyIstmPAFS36+Ic2zNmnN2z0U dUVbBfORzI/B7wZQHMRYEE7yTW+NVQpRFGk7RhOBDg1K8uk2dOKQ95N2+h5jvi7dgTbJ u4luN0GlLtxJJqQh8XttCwI/O8EbYcmR4QRnxmD7gbKt74q6/LgC551cuBWDv29neWPg ua8nvKbQHNb69pH8QjG9nMvyodzef8l9P3guejWBcMTV81BA7ew7q/doeUeizdAL3q0C QY1Q== X-Gm-Message-State: ALyK8tIJHzmcD1VawT09XuqHvnrWNyRreQN+7uq5OjjcuwEO5UjLkSp86KS7MCsPKlWGv2RA X-Received: by 10.28.150.81 with SMTP id y78mr4329770wmd.37.1466529890380; Tue, 21 Jun 2016 10:24:50 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id bf5sm11829355wjc.12.2016.06.21.10.24.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jun 2016 10:24:49 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross Subject: [PATCH v2 8/8] arm64: dts: db820c: add support to external sd card. Date: Tue, 21 Jun 2016 18:22:49 +0100 Message-Id: <1466529769-2674-9-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466529769-2674-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1466529769-2674-1-git-send-email-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160621_102512_771565_2C91E865 X-CRM114-Status: GOOD ( 16.82 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, David Brown , Rob Herring , Srinivas Kandagatla , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org This patch adds support to external sd card. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi | 39 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 10 ++++++ 2 files changed, 49 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi new file mode 100644 index 0000000..24552f1 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&msmgpio { + sdc2_cd_on: sdc2_cd_on { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + bias-pull-up; /* pull up */ + drive-strength = <16>; /* 16 MA */ + }; + }; + + sdc2_cd_off: sdc2_cd_off { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + bias-pull-up; /* pull up */ + drive-strength = <2>; /* 2 MA */ + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 08b063d..5aa5553 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -12,6 +12,7 @@ */ #include "msm8996.dtsi" +#include "apq8096-db820c-pins.dtsi" / { aliases { @@ -74,5 +75,14 @@ label = "HS-SPI1"; status = "okay"; }; + + sdhci@74a4900 { + /* External SD card */ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + cd-gpios = <&msmgpio 38 0x1>; + status = "okay"; + }; }; };