Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp171070ybh; Fri, 17 Jul 2020 23:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjsgwpiZdJJdSEy/nVAjBPWAbPWujElYstPtHI25Bq6T8bGGkfEhszmpxPFdYwihIhHQ+L X-Received: by 2002:a17:907:1189:: with SMTP id uz9mr12138833ejb.478.1595054142055; Fri, 17 Jul 2020 23:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595054142; cv=none; d=google.com; s=arc-20160816; b=xLI516pUcjirydie2gHX2uKO2rbrtfsFcL6uS3uleNrwFHlAxcrHzE0mXg/GV0/R8s FMnPbQQkeHCUO6g++8L7vFnjc70fJE8HFZy30Qtk5UroClN5yQxAIs2tx2i2iYU89BWM S73tAk3qvHlVWvSlkYPvZQ72rKTGx03U63hEJ8al9n/88QE5ZS0mprfuX6wnhgxso3F2 NLZf20oXfAIlNaPBi7knQermA9vUY+A19XxVVX25hvtntlI+f1ISgdixbX+XusWqTJ0B KyBBEn+8zUNX/ujRpOODMMB7wn3xLGbUL4MbMMRik0QGHT0s1hO4ZWBL+lef1dEgGAJj Jd4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kGohJbgwvQEPISdvi3kV5ZAmC9jvG8Nh9lmY/f5gaRg=; b=tUK7GA2wOJRvh0ERKwcsbLKrMn4Xn7QHHo/Fci4a/U40Wrplbpxs96efaEDprwiiv1 5owFfN38uTcmCeXJYvH0LMYHmc1o4VE+0QrH9lfaUWQ0SrFhUMjiq/GepbcGleWQarSP 7rOgpmvSYf3FJtDz3VwJLkopHXrZREc9ZxhKBcu3792Bvd+sHq97wN95xHUaHJS933Hj GaQC77uowV5bm8xJ/49UYvXZ70iJNpV0MY7YS2HKxb63QdPP5sNNUW/XNwxTPKaObvaY TvvWJOFNRgdeK6V8naPBpqJ6GSZ/R0WgIfFbfti+m3vW6ua6EiDTtI9d7hgo41yIt56l Xdfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si6901128edm.294.2020.07.17.23.35.18; Fri, 17 Jul 2020 23:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728045AbgGRGeO (ORCPT + 99 others); Sat, 18 Jul 2020 02:34:14 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:43444 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgGRGeN (ORCPT ); Sat, 18 Jul 2020 02:34:13 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 17 Jul 2020 23:34:13 -0700 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 Jul 2020 23:34:11 -0700 Received: from c-sbhanu-linux.qualcomm.com ([10.242.50.201]) by ironmsg02-blr.qualcomm.com with ESMTP; 18 Jul 2020 12:04:08 +0530 Received: by c-sbhanu-linux.qualcomm.com (Postfix, from userid 2344807) id A6F1B3FD5; Sat, 18 Jul 2020 12:04:06 +0530 (IST) From: Shaik Sajida Bhanu To: adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org, mka@chromium.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, Veerabhadrarao Badiganti , Shaik Sajida Bhanu Subject: [PATCH V1] arm64: dts: qcom: SD-card GPIO pin set bias-pull up Date: Sat, 18 Jul 2020 12:04:01 +0530 Message-Id: <1595054041-6872-1-git-send-email-sbhanu@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Veerabhadrarao Badiganti On some sc7180 based platforms where external pull is not present on cd-gpio, this gpio state is getting read as HIGH when sleep config is applied on it. This is resulting in SDcard rescan after suspend-resume even though SDcard is not present. Update cd-gpio sleep config with bais-pull to fix this issue. Also include xo clock to sdhc clocks list which will be used in calculating MCLK_FREQ field of DLL_CONFIG2 register. Signed-off-by: Shaik Sajida Bhanu --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index d78a066..8034fcc 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -682,8 +682,9 @@ interrupt-names = "hc_irq", "pwr_irq"; clocks = <&gcc GCC_SDCC1_APPS_CLK>, - <&gcc GCC_SDCC1_AHB_CLK>; - clock-names = "core", "iface"; + <&gcc GCC_SDCC1_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; interconnects = <&aggre1_noc MASTER_EMMC &mc_virt SLAVE_EBI1>, <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_EMMC_CFG>; interconnect-names = "sdhc-ddr","cpu-sdhc"; @@ -1819,7 +1820,7 @@ pinconf-sd-cd { pins = "gpio69"; - bias-disable; + bias-pull-up; drive-strength = <2>; }; }; @@ -2481,8 +2482,9 @@ interrupt-names = "hc_irq", "pwr_irq"; clocks = <&gcc GCC_SDCC2_APPS_CLK>, - <&gcc GCC_SDCC2_AHB_CLK>; - clock-names = "core", "iface"; + <&gcc GCC_SDCC2_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; interconnects = <&aggre1_noc MASTER_SDCC_2 &mc_virt SLAVE_EBI1>, <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_SDCC_2>; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation