From patchwork Sun Oct 11 15:46:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 7369101 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2CF6A9F1D5 for ; Sun, 11 Oct 2015 15:47:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A9E9206F8 for ; Sun, 11 Oct 2015 15:47:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 736B4206F5 for ; Sun, 11 Oct 2015 15:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbbJKPqf (ORCPT ); Sun, 11 Oct 2015 11:46:35 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35701 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456AbbJKPqe (ORCPT ); Sun, 11 Oct 2015 11:46:34 -0400 Received: by palb17 with SMTP id b17so16267773pal.2; Sun, 11 Oct 2015 08:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VcJFf1mvwym4aA/HsLRQjNrVAsvDIKGJfOWT/jYJcAI=; b=TEDdaUg6/Kf5cKyFAEbgAI4/CaiVah2lHocFVjjCAF4ArXipQdaZJoaZn8tY0auL/2 MOCEYNwVrUOzn8L8EYTjFb0mvQ2lkMnFYi/4ZmHqRw1wFE36zL+7jVbBIgbipHB1WdKw g9/phB5JK3LS21dgY0eHV2vuOHjgmzDkGFxo3RKhfLfO2kK86DrBRfX7WzDd0+uao+gu Mj+FdG9bxTSQm6Gbbhm2XEIEgAkptyjRoAN1NV0rhPwMtIaeaxxllUvJ2kfybZrAu6Dx CPNB3ulS/LlHa3vPoCagElaYTbC/Vw16yZov02cHLeTlaZdoqSvnku5cuyz3S5FkobV3 +sQA== X-Received: by 10.66.102.106 with SMTP id fn10mr29409035pab.156.1444578393936; Sun, 11 Oct 2015 08:46:33 -0700 (PDT) Received: from localhost.localdomain ([103.249.90.248]) by smtp.gmail.com with ESMTPSA id xg2sm13407381pbb.2.2015.10.11.08.46.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Oct 2015 08:46:32 -0700 (PDT) From: Anand Moon To: Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Anand Moon , Lukasz Majewski , Jaehoon Chung Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: dts: exynos5422-odroidxu3: use cd-gpio method to detect sd-card Date: Sun, 11 Oct 2015 15:46:02 +0000 Message-Id: <1444578364-1384-1-git-send-email-linux.amoon@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 From: Jaehoon Chung To detect sd-card use the cd-gpio method. It can decrease the interrupt for detecting sd-card. Signed-off-by: Jaehoon Chung Signed-off-by: Anand Moon --- Changes based on git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git v4.4-next/dt-samsung branch --- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 1af5bdc..26decbd 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -352,8 +352,10 @@ samsung,dw-mshc-ciu-div = <3>; samsung,dw-mshc-sdr-timing = <0 4>; samsung,dw-mshc-ddr-timing = <0 2>; + cd-gpios = <&gpc2 2 GPIO_ACTIVE_HIGH>; + cd-inverted; pinctrl-names = "default"; - pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; bus-width = <4>; cap-sd-highspeed; };