Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp278120ybl; Thu, 29 Aug 2019 23:00:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpe6p4ZYHIreuspP2hPXNBMRmF8ewyiv7H9jR7f9K4mywdIKk69YRxteMeCryKrsQhb6WE X-Received: by 2002:a17:902:7403:: with SMTP id g3mr1955791pll.10.1567144843320; Thu, 29 Aug 2019 23:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567144843; cv=none; d=google.com; s=arc-20160816; b=dZLQr9vwlsAUoUvdZjERdhDLLEbKRMUeMLv5OjLZA/oA6e/sH2k5bTqEK5fl3Z7dGH moJ3e6UDAjM6Ucr9fhFn/XU+nnWod6rHpi3heey8elzWDWjqByW9ORn762liet77PE7M tcg/dYEI7En9O4BSXWlvKDAkNzeKlRe79rfhcv2CJmv/UIVV0IbAtof+4MCneuyL3SE1 rkbp575c29zmJWr7gjaBhWr5yIB4HVBeJZ1p9IY66ih97sVTGS/S8CSpFAWu36DWWTA1 qYdeRbUlhirZccFb7Z351gNIKA1H4VXtyGFgFuyf27MGwGXcFqOApHxQbdJIxoGZnmCZ ImKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jO4YbwPpshjRXrRtdnKsiPqTv62oLFxDp0znvn0r310=; b=vRRPb1wVU4DREJqE4hVg8zuwwBw1gXT2fu48sjCxDst7GWfGgGuQOl+uLRt+w9npL+ mizimCQEVOEUJSZYmEpl1rYaf04szDyQu034d8pqx66oBz/TEFS+MRJuyTEP8/gqf6a+ SrW3ePEU6Haf9lPcf/FQl1sz9oJCOexBwHgEwNYcyRLJWZOyZCN3R91/kOG/L/Ed+Wdj DC8N3LEmICYgoMddKSeDx5YntD2+J+5497VLICMbO0bZ9/AB2XG0HOYm6endJHiNDiZt hxVAU/sqrgMEqxf77ACWuOvaJIsEl4/OL0BNbrNaMEPvnJVJM+rIcg4CCZcxtMtSsWhR 5wAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e20AqBFD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3904022pls.116.2019.08.29.23.00.27; Thu, 29 Aug 2019 23:00:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e20AqBFD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbfH3F7Z (ORCPT + 99 others); Fri, 30 Aug 2019 01:59:25 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35984 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfH3F7Y (ORCPT ); Fri, 30 Aug 2019 01:59:24 -0400 Received: by mail-pl1-f193.google.com with SMTP id f19so2844762plr.3 for ; Thu, 29 Aug 2019 22:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jO4YbwPpshjRXrRtdnKsiPqTv62oLFxDp0znvn0r310=; b=e20AqBFDFVWkdR1wusdTgK85hn6qx5BsyLzD414yFsUs9eiUB9AqiR+gl6bTCgHTyi BWDhKMlPm3tA3v3lypx5ITJemWtWG8uA/PsQkkOVqfJ1d7tf/ik2kEF0qleHn6Kx4QCS a1b8fbQjdnMZ350be0Xwa556y3e6xm+/GVdqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jO4YbwPpshjRXrRtdnKsiPqTv62oLFxDp0znvn0r310=; b=a54ZUpBqIv2V+eP9OHMD15J1iSgRLZM9rRw77AkgZU+TvFq//2z2tlApwpb+GG8uiL HOehXk/RQT/zVCy78GZpSenf1NyXTYUfNEu52qE71ceQohBBSrkKgA8oRygqqvP4p+5z gaG+x8cm9Oe0w3PdufM+lhQUWVc/qatZYgG1RAmO3/E4nIf4BcOu4MOEpVo4ufSJZPt1 QE6zEctzaYb019n2IfpajcKKUa8Tgs8AzDbCCNFTiafcVSBafiynBC13MjNJzkFFzKsg D9jo8Kq7prGhEJtJW0p+kadFKDr5HJR4XxtaPMnsP5+O8Y2Pt7+HsK9OhOaXGtos4YG5 sIfw== X-Gm-Message-State: APjAAAXbfd+zu6sTCtZj9qPVNOg9bIWOrF5Nio51g+CutnXjKu96+nRp xkyAxwMKW9ygYgWkiurCkno29Q== X-Received: by 2002:a17:902:8204:: with SMTP id x4mr13864866pln.37.1567144764304; Thu, 29 Aug 2019 22:59:24 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id x11sm9467280pfj.83.2019.08.29.22.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 22:59:23 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sdm845: Use UFS reset gpio instead of pinctrl Date: Thu, 29 Aug 2019 22:59:23 -0700 Message-Id: <20190830055923.11893-1-swboyd@chromium.org> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog In-Reply-To: <20190828191756.24312-1-bjorn.andersson@linaro.org> References: <20190828191756.24312-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We use a pinctrl "workaround" to toggle the UFS reset line. Now that UFS controller can issue the reset, just specify the line as a GPIO and let it be reset that way. Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 51 +--------------------- 1 file changed, 2 insertions(+), 49 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi index 1ebbd568dfd7..611ae48437f1 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi @@ -701,9 +701,8 @@ ap_ts_i2c: &i2c14 { &ufs_mem_hc { status = "okay"; - pinctrl-names = "init", "default"; - pinctrl-0 = <&ufs_dev_reset_assert>; - pinctrl-1 = <&ufs_dev_reset_deassert>; + + reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; vcc-supply = <&src_pp2950_l20a>; vcc-max-microamp = <600000>; @@ -1258,52 +1257,6 @@ ap_ts_i2c: &i2c14 { }; }; - ufs_dev_reset_assert: ufs_dev_reset_assert { - config { - pins = "ufs_reset"; - bias-pull-down; /* default: pull down */ - /* - * UFS_RESET driver strengths are having - * different values/steps compared to typical - * GPIO drive strengths. - * - * Following table clarifies: - * - * HDRV value | UFS_RESET | Typical GPIO - * (dec) | (mA) | (mA) - * 0 | 0.8 | 2 - * 1 | 1.55 | 4 - * 2 | 2.35 | 6 - * 3 | 3.1 | 8 - * 4 | 3.9 | 10 - * 5 | 4.65 | 12 - * 6 | 5.4 | 14 - * 7 | 6.15 | 16 - * - * POR value for UFS_RESET HDRV is 3 which means - * 3.1mA and we want to use that. Hence just - * specify 8mA to "drive-strength" binding and - * that should result into writing 3 to HDRV - * field. - */ - drive-strength = <8>; /* default: 3.1 mA */ - output-low; /* active low reset */ - }; - }; - - ufs_dev_reset_deassert: ufs_dev_reset_deassert { - config { - pins = "ufs_reset"; - bias-pull-down; /* default: pull down */ - /* - * default: 3.1 mA - * check comments under ufs_dev_reset_assert - */ - drive-strength = <8>; - output-high; /* active low reset */ - }; - }; - ap_suspend_l_assert: ap_suspend_l_assert { config { pins = "gpio126"; base-commit: a55aa89aab90fae7c815b0551b07be37db359d76 prerequisite-patch-id: 2f2797d174d16a953446039125978c024c34d497 prerequisite-patch-id: 4020423c7331cee87d7679d325c66bafb56a6b69 prerequisite-patch-id: 46f8bd1aa2aee384021beefc9b6ed7315690f96f -- Sent by a computer through tubes