From patchwork Mon Dec 16 18:32:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 181788 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4683769ile; Mon, 16 Dec 2019 10:32:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzBY02mrBfCiCoX394zaY48hTNzREBK+T9aLv7YcBYVlEvGgUTB/gViZ6N9lL7it5lrHNYw X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr33216709otp.241.1576521175540; Mon, 16 Dec 2019 10:32:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576521175; cv=none; d=google.com; s=arc-20160816; b=FzdXF3W7ZZVQb7TdoTzKNOsMfeg0tMV/kDyfUKJdSJacp/ur87c2CjZwtuMAFANmA7 +MthXoWV9Wnn+ke7ENJxnCGrtYv4Lwq4TJ/6tOFvfI3RQPBOvA5OmNZrZjPp0PT822rY gJS3Kq3u1ubP3slhJ42ETPzF82PR9jTdbcc2knp5A2Pbru0AKxHE5NrXGrfmq5hvnrp2 xyROh78oI1whGrCTlgN3DLBSxLT4ysGKxT/0b1rrkvRKTb2zcIF+u7DhJpab1yFo2say dC38zy9B5yKvdclvnyY9wngpUAnyuIAXqGcboIBDh1UQmAxrh59WETcQUMO9OeEmOgXE I+6Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UnwdqbeayiRCJE1pPArdWs7+Hiw2uVoKo1P5t1q+evY=; b=yHMyhil1aHOJvTNuGgUTy0zWRjB2Qfa7wwQU+cn1oqanFLXh2CifdKOapRhy/PN4QE WD+dhDfB15pl1vCoFs+VKfhdR/WL4KWnrDwWMw4R73Z5Dq8CeoW8ImrZVZFSdES+zWIn KMr75Jjm/644JsfbrMFPEqugqTYrR9nAi9zIaNo9YxE597wcFxhpJXXPv8oBi67lWEdB CACOVxJaVnumNdAG+sq67g3Nr8OCXFgDW+c5vHvTxGEHvIvBhLdknnjdz0VZWnEmMwIs os1qaCQ+yhIJvum0bPlaLiE3g1FFc/CpAd3JuPZzA5JoUNjybN7mIKb2YlyrMe52fRCy i6CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Bn0vV2z; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si10592652otp.289.2019.12.16.10.32.55; Mon, 16 Dec 2019 10:32:55 -0800 (PST) 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=@kernel.org header.s=default header.b=2Bn0vV2z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730519AbfLPScy (ORCPT + 27 others); Mon, 16 Dec 2019 13:32:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:60232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728309AbfLPScv (ORCPT ); Mon, 16 Dec 2019 13:32:51 -0500 Received: from localhost.localdomain (unknown [122.182.192.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1A44207FF; Mon, 16 Dec 2019 18:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576521171; bh=ymG65eyYvOkGT/a1o3YdUCpKSlzLO0odxHAPgjHBxno=; h=From:To:Cc:Subject:Date:From; b=2Bn0vV2zeXZU42Qw/Iw9TpgoDoWqkVhKIjIuQJH4XiImIpywXcXN9r6B/r9yN8nxN UNdyhISxhr5AgbOi71Oe3VEUwchQi9DKK026Cj5gmyebGmfAnRa5zAvmAmGO7qvzK7 1vy46WuyaWgjjgx2ElTXOTWZXfS5RcmtXxFg0qq4= From: Vinod Koul To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8150: Update UFS resets Date: Tue, 17 Dec 2019 00:02:31 +0530 Message-Id: <20191216183232.1570675-1-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reset described is the phy reset so it should be named ufsphy, so update it and add the UFS card reset Earlier reset description was incorrect as phy reset was pointed to 'rst' as well as 'ufsphy' so both phy and core attempted to reset this causing UFS to not come up. This was discovered with 870b1279c7a0 ("scsi: ufs-qcom: Add reset control support for host controller") Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.23.0 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index f36d621a53e2..6a351e0cb3a6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -517,8 +517,9 @@ phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; - resets = <&gcc GCC_UFS_PHY_BCR>; - reset-names = "rst"; + resets = <&gcc GCC_UFS_PHY_BCR>, + <&gcc GCC_UFS_CARD_BCR>; + reset-names = "ufsphy", "rst"; clock-names = "core_clk", From patchwork Mon Dec 16 18:32:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 181789 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4683823ile; Mon, 16 Dec 2019 10:32:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyP5OvgDKQIE9IhIiBgheYgK0hLvDfzar6uIzgHyG1fX+w+BIJWzpRCH0i8ooc84Prm2Ycu X-Received: by 2002:a9d:7483:: with SMTP id t3mr33384920otk.262.1576521178537; Mon, 16 Dec 2019 10:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576521178; cv=none; d=google.com; s=arc-20160816; b=wEj7kFggpQynfZ1BWvZUB9fay0Q5wJrXzjDVTrsQnID+2q2sjdzKhERxbJxU6gGeqg +aWqupeNdIS9HxC/rH99GsWpChUmtcuX+DtitDeyou4dlesXZKQJnvgu3VYyg8rfxyKZ WEXCJj6WCI+a/TvWmZswP9coEpSTR5SFypgp7K6FBb4STU7zdz24WmeJLy+M3rGbqR8z v19ncyJ7pOvUiILFLKCO4OQJaWEvs+YXHRKsyAxXPgqrl8BjNqp5adQvBpByTZfIu0qT b25DdJF5IgMWunD9ikRLAaUCZgAKAZyjDGF1BZGuPB1IKSb1rVpoQLR+W9einGZooKAM oJwA== 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=f+wqgmVELx6B507VmtDuUx2x3L59VIhbV4+QCOJUGkM=; b=XQkqATaeMlNoQV7uPvtRw49v5NRWQv5t6V3settPnptlkwJlaKQvrWjIT3TtoUl6MV JsNcMHNMmxkzD7DgVCyhHn+cUzRI3z6/THmAqbGXNLpaqswn0dzC7eeCF06lrY1T7CTD fUXlwvSNFCZahTAuSrXe/S7JgdRsdMe0Zh1tAEWiik3Nx4+7PuSiG6g7ETZE5AI9MERc k0veovsf8EFcXHmKmQs9/6ivTI7Cf6rF70N8pCWaUrCfI3i2+3U8GlyCo96u8LIb14Ze yYOtbS/eejPx5r6EXNMpTzo8c0lpEfkDQaJmT7EiX060DHjLHzMxC8rTvxTO/9m/N064 yD/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C0iGQ2ix; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si10592652otp.289.2019.12.16.10.32.58; Mon, 16 Dec 2019 10:32:58 -0800 (PST) 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=@kernel.org header.s=default header.b=C0iGQ2ix; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730700AbfLPSc5 (ORCPT + 27 others); Mon, 16 Dec 2019 13:32:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:60464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728309AbfLPScz (ORCPT ); Mon, 16 Dec 2019 13:32:55 -0500 Received: from localhost.localdomain (unknown [122.182.192.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1058B21835; Mon, 16 Dec 2019 18:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576521174; bh=3tE9VgX0PlQp/RfUUXS8IU04W0aYzDGAQGslLTTAyVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C0iGQ2ixYzFmDaqZNqHqnDKmFspPklMfqVaOQrE1FiwbT5qYqMc13VczctAlqx+IR am07LeI5/ZP2enYXkvTe5DRQhnPXz2b+GvlPRqZ3tBIlDY3hqgEYHJxeZXJdkAvem1 GQUQ1D1lX6g5vRX0Ax6KFmU9kErYpGcuyQnW/FY0= From: Vinod Koul To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: Add reset line for UFS Date: Tue, 17 Dec 2019 00:02:32 +0530 Message-Id: <20191216183232.1570675-2-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191216183232.1570675-1-vkoul@kernel.org> References: <20191216183232.1570675-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the reset line for the UFS node. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 3 +++ 1 file changed, 3 insertions(+) -- 2.23.0 diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts index 1eb93a768a85..9cab51759d2f 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include "sm8150.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -389,6 +390,8 @@ &ufs_mem_hc { status = "okay"; + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; + vcc-supply = <&vreg_l10a_2p5>; vcc-max-microamp = <750000>; vccq-supply = <&vreg_l9a_1p2>;