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: 9188677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 406C16075E for ; Mon, 20 Jun 2016 20:05:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BA8020748 for ; Mon, 20 Jun 2016 20:05:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DF0827CEA; Mon, 20 Jun 2016 20:05:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id B2FAE20748 for ; Mon, 20 Jun 2016 20:05:07 +0000 (UTC) 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-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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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"; + }; }; };