From patchwork Mon Jun 20 20:01:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 70481 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1677065qgy; Mon, 20 Jun 2016 13:04:43 -0700 (PDT) X-Received: by 10.98.63.199 with SMTP id z68mr24069612pfj.41.1466453083866; Mon, 20 Jun 2016 13:04:43 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f5si11436349pay.145.2016.06.20.13.04.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 13:04:43 -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 1bF5Q9-0002LR-TE; Mon, 20 Jun 2016 20:03:45 +0000 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bF5P0-0001LO-BD for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2016 20:02:36 +0000 Received: by mail-lb0-x235.google.com with SMTP id oe3so301782lbb.1 for ; Mon, 20 Jun 2016 13:02:13 -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=OA1mTPRyG/HuUhOxvV5NpEqBMYlcFEnYNAi2YV4JXYA=; b=a7vE3OxCaOc8bJmCp0oU90/LTkAptB6R7F3yD1Z8A4MqCZ9Pglurkx8+Vmepdtgh1E KVbSZ8gaqorb1ZDV65/XV0sfqujfPycNgoKHguS0tKDmw+nyk+Kac0UgA7njV7pDMOtG KQvF1SUG9Rj/SffBfkBlBkFVfFWp7bQldA4TY= 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=OA1mTPRyG/HuUhOxvV5NpEqBMYlcFEnYNAi2YV4JXYA=; b=lO+9Qf6UEJrSvNan1tBw/k0a+WEL4ZgcMvPv+ohvsG8MI9X1oY1mrvCvo9aVbm8uzb HycHNtdUw0MIBXXfXbKCaj3ycFwEWT3E7hSu7/wBjyIXChUOq/W9R27FnMP/Y9l4lagY 32yEWH+CnkhDBRmHuBGfsCFXFRKw3bmKFYSIYgytTzALQ/zqA0NYMDDDVC68kqWqOB/n uHEavfgpuLmmPnZ1ZH37Bg6qebqh9v/UylCNGMP3XJ8iTnm+MFNk4Q6UdgFfZtX/0jV3 PL4oj4CDSEKbRLOqfXUowcXlshe0XWCFLFHoIlfNx/EUOzEH4l8+wYM17YRyzQp2176b wNdg== X-Gm-Message-State: ALyK8tIBZGx+rIr69AXRiCltVJYZhkDiT38VWNWthPQja8/UE6rycqaqLWL9Io375qiDwEum X-Received: by 10.194.43.131 with SMTP id w3mr15908045wjl.76.1466452927293; Mon, 20 Jun 2016 13:02:07 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id el4sm32409342wjd.23.2016.06.20.13.02.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 13:02:06 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross Subject: [PATCH 8/8] arm64: dts: db820c: add support to external sd card. Date: Mon, 20 Jun 2016 21:01:47 +0100 Message-Id: <1466452907-23290-9-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466452907-23290-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1466452907-23290-1-git-send-email-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160620_130234_699234_B8D64E95 X-CRM114-Status: GOOD ( 16.58 ) 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:c04:0:0:0:235 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..3fbd23e 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"; + }; }; };