From patchwork Wed Dec 1 07:44:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30F6CC433EF for ; Wed, 1 Dec 2021 07:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UZVaEZjbfIaniaq0DuWUUniSuRFNJ9DQ7r2v1CkGg6s=; b=EVOliMrqkCsDle K7RiOn9riUAa8cYNX920MarKECYkkjfOQJW4w7i8UMIRevUxjzZjcwRMutUccV3X8b0TFO1/c3+Sp U0W3ZlGqmKPx1fEVmKMiolGApdJBRPYdLrdrPHSzMtmcxJb98iCVG1iE+5xGy+PeYjRuYLndcgxMW /6FYkF6YEP9Udq3ryCHseYJCX0EdMHQ5mo3vVhtAv/2Kgm4M8bOcShiT0x+REbwpWgVk5S7C2YOMi fYCo8aGfRtnXLiow4Z1zaudomzMTLr5/MP/l4FPTLaerrqir0+oV1gdwRY/jX9vgiYNidVs89ymQd nZauOK3Pe/x4pXbTJkyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIm-007ifZ-LP; Wed, 01 Dec 2021 07:45:16 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIk-007ieH-If for linux-phy@lists.infradead.org; Wed, 01 Dec 2021 07:45:15 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 318BAB81DB4; Wed, 1 Dec 2021 07:45:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D506EC53FCE; Wed, 1 Dec 2021 07:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638344710; bh=PhKsrRw9R4/4lBT6Vqg0SK7GxrnEvzF/EvK1ACPean8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DH6vwBrPEsGI5LHMAqUhLvQu/pepqvR/kP6544IoQ4V4h96pQQYr+m4rwKZO0R2sI q0sKlM7uhpxTTMm+lPaJVs2qizEOsn444NspzQ9C2Df+0vr4O/cO9Oj4SwxHBBR8/Y dkBfiqDtdy2vF41Xg//h+pgyZMIWd3IaIJDl5ha1AJgHlhF2eaPr9kYw4cY+kTOck3 SnB6hA5tI+OVs2Q9V8lnHS/n8PxW5finVy5T737OZNVtiep5lUTuzl/FBNu+Sj+hcj BjgzHkQoa58VQMIdI62eYfjPC9vrBeQW6x374x+nkWvHvoBTYW8zsilJ1kkE3+qIzd 0GWXpgy4OULTw== From: Vinod Koul To: "Martin K. Petersen" , Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Rob Herring , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] scsi: ufs: dt-bindings: Add SM8450 compatible strings Date: Wed, 1 Dec 2021 13:14:54 +0530 Message-Id: <20211201074456.3969849-2-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201074456.3969849-1-vkoul@kernel.org> References: <20211201074456.3969849-1-vkoul@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_234514_773614_D1C4AF04 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Document "qcom,sm8450-ufshc" compatible string. "qcom,sm8450-ufshc" is for UFS HC found in SM8450 SoC. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index d8fd4df81743..d0fee78e6203 100644 --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt @@ -16,6 +16,7 @@ Required properties: "qcom,sm8150-ufshc", "qcom,ufshc", "jedec,ufs-2.0" "qcom,sm8250-ufshc", "qcom,ufshc", "jedec,ufs-2.0" "qcom,sm8350-ufshc", "qcom,ufshc", "jedec,ufs-2.0" + "qcom,sm8450-ufshc", "qcom,ufshc", "jedec,ufs-2.0" - interrupts : - reg : From patchwork Wed Dec 1 07:44:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54417C433FE for ; Wed, 1 Dec 2021 07:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zMVPJyKf4A5ZoUEA1LIfbT9qInx9VvgWjmMr0rY/vcg=; b=qgL7gXFlIppbVg xZRdZZTIOznekaIPQf4nJIrkNOn/ImTk+9hiXklR48zh5N7osikOe4zRjAwrqgvoyQYKxosEzK5wI oWX5l1qbpD+RpoSFlia+C0aVjn+cAZiAf8o0LaIvZUbjPDDYd7C8bF0VWRaUWWaxK7Kwe1cnOe7+s r94XPo8duU4ESdz71j9BGXlAhE98zFKDTOZFGF3Siu3XupFMpF7c7nEkIuYJOEPe3Kj2d0HYJrBxf 2J5bylgAboaTpwqTipGD5xsCbThiAGDdhB1UIMhE1uOgyZ4UAsDk8xB63w81Ji8p31skHY7YHk4iO OnxRnNeSLwGA4aG1flkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIn-007ifx-No; Wed, 01 Dec 2021 07:45:17 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIl-007ieY-BR for linux-phy@lists.infradead.org; Wed, 01 Dec 2021 07:45:16 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1A3CBB81DBF; Wed, 1 Dec 2021 07:45:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D939C53FCC; Wed, 1 Dec 2021 07:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638344713; bh=ZFb4kEFJO2dFEUBEylX8+TmvWBSphjPhhbxj0ifxpvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8fao50wZbrOiTOa2Gtqtjh+xSTYnoFzAeXmVjE2kzGw1Sys63D38yfOpk89ps1Ko 9pAK+tn1kbUV3n7Cb3tJev6tQkgLCZdHFctMqHvvt4KeQcp6LnHUndlBY8xj2BHtpR tk6CRxdY/+WF3eX1eOAbiHLD7/HwWuVk8mIiGULI5fwUkt2CycwWxiIukNf9y9WxSQ cwSTm+IObtcsaG1ufunW9BoeUzDSZ9+X6anabnkHKUMIqLKCllIlcBQ4ivaBD2N33F YOE//fhrCgQktUy4rSfJuq2YY6Vu96mWCkknBEGmXKRFO3mL7PEFMX68Bvbqk99ojT Ko7aOoEbGIOEA== From: Vinod Koul To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , "Martin K. Petersen" , Rob Herring , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: phy: qcom, qmp: Add SM8450 UFS phy compatible Date: Wed, 1 Dec 2021 13:14:55 +0530 Message-Id: <20211201074456.3969849-3-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201074456.3969849-1-vkoul@kernel.org> References: <20211201074456.3969849-1-vkoul@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_234515_552188_2DFDBC18 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Document the UFS phy compatible for QMP UFS phy found in SM8450 SoC. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml index 630ceaf915e2..c59bbca9a900 100644 --- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml @@ -50,6 +50,7 @@ properties: - qcom,sm8350-qmp-ufs-phy - qcom,sm8350-qmp-usb3-phy - qcom,sm8350-qmp-usb3-uni-phy + - qcom,sm8450-qmp-ufs-phy - qcom,sdx55-qmp-pcie-phy - qcom,sdx55-qmp-usb3-uni-phy From patchwork Wed Dec 1 07:44:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649431 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76FCDC433EF for ; Wed, 1 Dec 2021 07:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P61KEE/5FJHKhpD4hilo+aVtmWyWVB7ufK5QpLBYxG0=; b=kTL5opY1+Hxq6y VupxgFocuWxdXex5QHh+97VdozlXq1blYs3goHozBRNjnGEvGscDAHv777Cz2t/g+PTT9P6d7G7jx musXvgdOsTr65t/yUK+45k70o5xjxBo7oc1GwHywPz+USR9elIri4Gb8MyIymONJSRBDtRP5GG4sm kImYWPLzJ1WnhWA583P8/NSMeIuDRzJn4eWLek/ZbBm5jY06dMfyGQjugZZC8FJCpw7Y/13frajpm 6CKT7eovj6Dtu1AUuwAMyFndm/Hu2oH7/TMVp+opsHGbU3o+9cTQgWamTNVLWZ7K0jCywER59X53A TegtQqBrKB+dMxpTi+Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIt-007iiT-Uu; Wed, 01 Dec 2021 07:45:23 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msKIr-007ih6-1H for linux-phy@lists.infradead.org; Wed, 01 Dec 2021 07:45:22 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 5C03ECE1D6F; Wed, 1 Dec 2021 07:45:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65D92C53FD0; Wed, 1 Dec 2021 07:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638344717; bh=OMSYCijhi9mHPXribUljpaln0YA/jwCKn5SpeihydXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mGoLqgCvvCewfCJY2gtoPfQBSsed8M9+WrUxAUzeMT19V/UAVCTUUpoireJv5U6OY G72PmqKIuxGxc+ypjKQwi179vUuSKzuGCgejL7kY5F/rrjMLXraNhMoWD1yDhKy05T hwimgwyaTT4gwZJlE+LSrfCuOK4SJF+GQ3fD+4NtaAEZ8XxZR/nPfDFP5sQn2wUrPb Auw1Q5V59AeFqqepsZS3NYHR5BlVkR8/xfxUzoet5P2OsN/g7+4itPuV4vKuGrfmJ5 8H/jdCuJLHSgyQOTYUeeKREBlywj4oRBQiNwNQTnziGD+4H29L9Yhz0gKi8GIh8eYr YiiR4Cj9ArPtA== From: Vinod Koul To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , "Martin K. Petersen" , Rob Herring , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov Subject: [PATCH 3/3] phy: qcom-qmp: Add SM8450 UFS QMP Phy Date: Wed, 1 Dec 2021 13:14:56 +0530 Message-Id: <20211201074456.3969849-4-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201074456.3969849-1-vkoul@kernel.org> References: <20211201074456.3969849-1-vkoul@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_234521_453791_D9B4646D X-CRM114-Status: GOOD ( 11.12 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org SM8450 UFS seems to use same sequence as SM8350, so reuse the sequence from SM8450. Add the new clock list for this phy and the new compatible Signed-off-by: Vinod Koul Co-developed-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/phy/qualcomm/phy-qcom-qmp.c | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index 456a59d8c7d0..a959c97a699f 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -3091,6 +3091,10 @@ static const char * const qmp_v4_sm8250_usbphy_clk_l[] = { "aux", "ref_clk_src", "com_aux" }; +static const char * const sm8450_ufs_phy_clk_l[] = { + "qref", "ref", "ref_aux", +}; + static const char * const sdm845_ufs_phy_clk_l[] = { "ref", "ref_aux", }; @@ -4087,6 +4091,31 @@ static const struct qmp_phy_cfg sm8350_usb3_uniphy_cfg = { .pwrdn_delay_max = POWER_DOWN_DELAY_US_MAX, }; +static const struct qmp_phy_cfg sm8450_ufsphy_cfg = { + .type = PHY_TYPE_UFS, + .nlanes = 2, + + .serdes_tbl = sm8350_ufsphy_serdes_tbl, + .serdes_tbl_num = ARRAY_SIZE(sm8350_ufsphy_serdes_tbl), + .tx_tbl = sm8350_ufsphy_tx_tbl, + .tx_tbl_num = ARRAY_SIZE(sm8350_ufsphy_tx_tbl), + .rx_tbl = sm8350_ufsphy_rx_tbl, + .rx_tbl_num = ARRAY_SIZE(sm8350_ufsphy_rx_tbl), + .pcs_tbl = sm8350_ufsphy_pcs_tbl, + .pcs_tbl_num = ARRAY_SIZE(sm8350_ufsphy_pcs_tbl), + .clk_list = sm8450_ufs_phy_clk_l, + .num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l), + .vreg_list = qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), + .regs = sm8150_ufsphy_regs_layout, + + .start_ctrl = SERDES_START, + .pwrdn_ctrl = SW_PWRDN, + .phy_status = PHYSTATUS, + + .is_dual_lane_phy = true, +}; + static const struct qmp_phy_cfg qcm2290_usb3phy_cfg = { .type = PHY_TYPE_USB3, .nlanes = 1, @@ -5745,6 +5774,9 @@ static const struct of_device_id qcom_qmp_phy_of_match_table[] = { }, { .compatible = "qcom,sm8350-qmp-usb3-uni-phy", .data = &sm8350_usb3_uniphy_cfg, + }, { + .compatible = "qcom,sm8450-qmp-ufs-phy", + .data = &sm8450_ufsphy_cfg, }, { .compatible = "qcom,qcm2290-qmp-usb3-phy", .data = &qcm2290_usb3phy_cfg,