From patchwork Mon Jan 6 07:08:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11318751 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18C26930 for ; Mon, 6 Jan 2020 07:08:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBD7221775 for ; Mon, 6 Jan 2020 07:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294526; bh=3tYh2r+1H9Dq6clvHkSmF1+dK9OcVPfrp3TqTHT4UQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QrOX8lCsa7l0z8VfO+f7ujBW5DedgU2qjEGDP9Rf7lMjp+qSzEXmGV2WzK8ewsvRm KtmL1jmUrB9uH9TMnU+8lP39g0q3fSJMhbNhOePjxmDtl3cPsGw0ZjY+QsNFOSPTw2 tPmjsRf1f7+YMSG/XYdnLS365+W8OTKg7WfQzC5c= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgAFHIn (ORCPT ); Mon, 6 Jan 2020 02:08:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:42124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgAFHIn (ORCPT ); Mon, 6 Jan 2020 02:08:43 -0500 Received: from localhost.localdomain (unknown [117.99.94.5]) (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 E7C4F24650; Mon, 6 Jan 2020 07:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294522; bh=3tYh2r+1H9Dq6clvHkSmF1+dK9OcVPfrp3TqTHT4UQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bx8XvQR8KPea4KEhS3y2bOTtPNwpL0IpwK/Bz7VefFmGhUcNIdCiS4cuKuTObEJlj YTISr4Okx+jFWoVea+ffLwgCbvsNzHhHGd5lzR//p5Qq1P9Kfko1qz4Ko6xNfO+1xR J7X05tUWiBqhQs2UaygoLv600L8foBRszqTiX9qQ= From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Can Guo Subject: [PATCH 1/3] arm64: dts: qcom: sm8150-mtp: Add UFS gpio reset Date: Mon, 6 Jan 2020 12:38:24 +0530 Message-Id: <20200106070826.147064-2-vkoul@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106070826.147064-1-vkoul@kernel.org> References: <20200106070826.147064-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the reset-gpio for UFS for sm8150-mtp. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 3 +++ 1 file changed, 3 insertions(+) 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 @@ &uart2 { &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>; From patchwork Mon Jan 6 07:08:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11318753 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 412F91395 for ; Mon, 6 Jan 2020 07:08:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1FAD02465E for ; Mon, 6 Jan 2020 07:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294528; bh=sqos0TyJ+0+0Ds+tEst1M9K4B3tyrzj2cQ2w0TirDlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WYKKT2bS8cE2QMrTMCQi7umZKMB8Zve6KUMPRSlN30dv4c0r3OZXe81CZyC2MqBqL phGc1uvJCvC85+bqmaL1RGXJXs9MPrpPaFmRr0e9nW6PLylp4lngfxWbb5L3KPZe2H 4ly/ZGwzKPRThr4tTCvWbrrPhBLYhhM6666SYqaQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbgAFHIq (ORCPT ); Mon, 6 Jan 2020 02:08:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:42248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgAFHIq (ORCPT ); Mon, 6 Jan 2020 02:08:46 -0500 Received: from localhost.localdomain (unknown [117.99.94.5]) (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 534A7218AC; Mon, 6 Jan 2020 07:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294526; bh=sqos0TyJ+0+0Ds+tEst1M9K4B3tyrzj2cQ2w0TirDlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gs192sWq35V84boAEPcES6snA8yLS0j18rLeRANU4rvYaSs8cCmrErswywuz+xgbf frhWgwCOH1A3jDqwZlrnvVUOduGRwicRj1qtkfpEEh+yvBOE/6vx7jMZAgNq6GnFQG Nd4H34uFceHb7RdB7bUlitf/rrCBNEsCch/bJGk8= From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Can Guo Subject: [PATCH 2/3] arm64: dts: qcom: sm8150: Fix UFS phy register size Date: Mon, 6 Jan 2020 12:38:25 +0530 Message-Id: <20200106070826.147064-3-vkoul@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106070826.147064-1-vkoul@kernel.org> References: <20200106070826.147064-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org UFS phy register space size is 0x1c0. so update it Reported-by: Can Guo Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index f36d621a53e2..f92b92866ae0 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -553,7 +553,7 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8150-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x18c>; + reg = <0 0x01d87000 0 0x1c0>; #address-cells = <2>; #size-cells = <2>; ranges; From patchwork Mon Jan 6 07:08:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11318755 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5581A1395 for ; Mon, 6 Jan 2020 07:08:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33FA2222C4 for ; Mon, 6 Jan 2020 07:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294531; bh=44oiUtfcaubKc2dXyAO0YR8fIfToGP2lW2jZ1pz+o68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ZrftEhKyROa1C3oQ0ZpY1hzWoUtgaSOLw7XvhzMSP4NDrvl8sY/FM2DE683jdXpPt e3SbWZWf9l9gOUjvq7s9QnMxArUZnJeEfGTU6NsdDqgWBVPltEBZMxUQi9/AAocyai nAVHNPx48pBRDFBMqRKn5U3Iy0xPer2VVVcFiy/M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726912AbgAFHIu (ORCPT ); Mon, 6 Jan 2020 02:08:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:42388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgAFHIu (ORCPT ); Mon, 6 Jan 2020 02:08:50 -0500 Received: from localhost.localdomain (unknown [117.99.94.5]) (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 B35DF21734; Mon, 6 Jan 2020 07:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578294529; bh=44oiUtfcaubKc2dXyAO0YR8fIfToGP2lW2jZ1pz+o68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BSrfk4iPsNmCJT3YIROL/luxFKd7SAUeMLbVSzocX5TSDn8WUNgxpNdheISPfJf12 lwpo8Dei+zrHohg6kgYDwzWLPFqaVlfEEVKIiAiXSFxUpi/RcqY8eoB/KVIRWCQSSK CWzwRVlNud/O0aHeh+acGAz3LVVxfPDv0ov+9V3c= From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Can Guo Subject: [PATCH 3/3] arm64: dts: qcom: sdm845: add the ufs reset Date: Mon, 6 Jan 2020 12:38:26 +0530 Message-Id: <20200106070826.147064-4-vkoul@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106070826.147064-1-vkoul@kernel.org> References: <20200106070826.147064-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the core UFS reset for sdm845 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index ddb1f23c936f..0c233afd7a5e 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1374,6 +1374,8 @@ ufs_mem_hc: ufshc@1d84000 { lanes-per-direction = <2>; power-domains = <&gcc UFS_PHY_GDSC>; #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; iommus = <&apps_smmu 0x100 0xf>;