From patchwork Thu Dec 1 17:43:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 28473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp398820wrr; Thu, 1 Dec 2022 09:47:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Hfr4iw5i1fvPiqlOVZiPWaaeAAaDXQX0YoDtvv670haz1NNlaoghi6bJ9sg0mP9g05MbF X-Received: by 2002:a05:6402:1050:b0:467:e9a5:77c5 with SMTP id e16-20020a056402105000b00467e9a577c5mr17031901edu.289.1669916869473; Thu, 01 Dec 2022 09:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669916869; cv=none; d=google.com; s=arc-20160816; b=sFC2ezDixbWPPhw9PxEzpteXmUqwmvQrxbuujy1JtGhVSVaCxts1PpbqNNC/Z0AZT0 dOnj5yD6uHjVB4xDpNjfBzMYCoPp7zf7nCtrUBj82sh1ca5Pchv0YFrekCA7e3xxq2Op H6H0gp6tpLJa65ujXQs34B5s87/bgRHoAdpNY1fTA/V0JlFPBH+zYP7S6F/Aqwe3ar6V 4mCLUiimbEIAmZn+PXOd00KUTgw1w+Y6vRnI+VjXw6qQEBRbhUvwqiqDAmW4ffL8bg2j X7OpKrDCMwik5Kj+KoBTyJaomcN5I2sAC8+/oSsgRWNx+dUank07dYRo18uvJBRTMwQ4 eMxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uHyB7436weYMuPIAQRzFHHIdfwli/IaDh2memTnfiz4=; b=BQQJprQOI2Ecy3oo0+w3YDBXqP6tVg7ZtF3GZlYXpx9Cbh5882j93dpWuVJrdseJhg L5E+V4sYbmJ73i7Fp6w1LYFQJtQERKEQsYkuW1hsJ92I66goyztfk0UjkINRwIwXKRqR EYcxKR9UruhLGyZXqhSjXYCISUzU6kIoCPbyE0sXYfDOqyeaicKyY3c0L4mgu4gCEGR+ 2nVqSa0wqTsUWIOmCEoGINtGWIMOpc9BXHBRA7yChdbX5x5/pXp8TDeks+3tH84dBJd3 n0ET/4I7JrwzqNBcSHvmU/8APH+e/ZuFp7bwEO8m3VYZIbl/ovPo8/RAzjyz7dmBEWcd GhWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HwHJwJOk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb27-20020a1709077e9b00b007809c50fd78si4411273ejc.262.2022.12.01.09.47.25; Thu, 01 Dec 2022 09:47:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HwHJwJOk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbiLARqF (ORCPT + 99 others); Thu, 1 Dec 2022 12:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbiLARpW (ORCPT ); Thu, 1 Dec 2022 12:45:22 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 255E5B956A for ; Thu, 1 Dec 2022 09:44:58 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id 140so2554914pfz.6 for ; Thu, 01 Dec 2022 09:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uHyB7436weYMuPIAQRzFHHIdfwli/IaDh2memTnfiz4=; b=HwHJwJOkwvSEBUNX+i+oZEnpWllIswdC70KvR+kb0qoQXwyW7rXmt9ffX/6u2JdVIu oSzW/56vt5Tl7xWubzhe5dxi/84xaOBStPC3lv/k39zV3eekwlbqyC+dEBNNYfmTZfAJ X61OSRbasOgl6D1799NcneY8nu6gC952PM9kUZaumvHBxBfPfGkZq5XbetEBplXlnVGp hoDLJVJFZuFUYVj3+C2Jsd0y4EbnJofFBeknYgcBgHFyA7R2S2kLHiy7EY9sKGBDpSUQ LigNfvAbSg4RyyZiVHTbKKy3SwNmfgC8BiyqqE+mKyw4tac1l3wjFLw01kaycvmK+ojQ bq5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uHyB7436weYMuPIAQRzFHHIdfwli/IaDh2memTnfiz4=; b=gdTK0gGqnyqjOdISgv7CsdORrUo6LjP8tDgRz/rFrw6JgFMednwMOSxdnFSvWBXlQ/ OEqG+MO0RN8AgvpYLQRl6bSTpp/vgWFKuCEkxskTu0QV5M3MIyogLrktAFUcT6a4lZWg LWHdumq0hmn/HGqOMqrn5oaWU5sZMHcu9y2ySJASlkOK4LghyCNNFfiGzYEGifIVwA/6 FNYbrwMYR694M/0nmbJ7FB8WXRm63H23ZEiyC0yFe014lTYp0Mtnj8wUnq7dg5lBL+0C rI379gHLDEUaGbVeQLrKHdiNx3MH1Vu8ojS4ehMAhdOhoY/MpAtPJr0IBkGXAF1U9bRW 8vTg== X-Gm-Message-State: ANoB5pn/CCuWVED8omCTDRFxCRSVF1fnq7Kgx0iyLGH2pqCsZP3mzBa3 K9k0D9iAXbf5mkf6lfzVab2L X-Received: by 2002:a63:2251:0:b0:477:9bc8:dffb with SMTP id t17-20020a632251000000b004779bc8dffbmr41247741pgm.306.1669916697598; Thu, 01 Dec 2022 09:44:57 -0800 (PST) Received: from localhost.localdomain ([220.158.159.39]) by smtp.gmail.com with ESMTPSA id p4-20020a170902780400b0016d9b101413sm3898743pll.200.2022.12.01.09.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 09:44:56 -0800 (PST) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, vkoul@kernel.org Cc: quic_cang@quicinc.com, quic_asutoshd@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, dmitry.baryshkov@linaro.org, ahalaney@redhat.com, abel.vesa@linaro.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, Manivannan Sadhasivam Subject: [PATCH v4 11/23] phy: qcom-qmp-ufs: Add HS G4 mode support to SM8450 SoC Date: Thu, 1 Dec 2022 23:13:16 +0530 Message-Id: <20221201174328.870152-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221201174328.870152-1-manivannan.sadhasivam@linaro.org> References: <20221201174328.870152-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751034750984125268?= X-GMAIL-MSGID: =?utf-8?q?1751034750984125268?= UFS PHY in SM8450 SoC is capable of operating at HS G4 mode and the init sequence is compatible with SM8350. Hence, add the tbls_hs_g4 instance reusing the G4 init sequence of SM8350. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 75e55c4181c9..96e03d4249da 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -935,6 +935,14 @@ static const struct qmp_phy_cfg sm8450_ufsphy_cfg = { .serdes = sm8350_ufsphy_hs_b_serdes, .serdes_num = ARRAY_SIZE(sm8350_ufsphy_hs_b_serdes), }, + .tbls_hs_g4 = { + .tx = sm8350_ufsphy_g4_tx, + .tx_num = ARRAY_SIZE(sm8350_ufsphy_g4_tx), + .rx = sm8350_ufsphy_g4_rx, + .rx_num = ARRAY_SIZE(sm8350_ufsphy_g4_rx), + .pcs = sm8350_ufsphy_g4_pcs, + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_g4_pcs), + }, .clk_list = sm8450_ufs_phy_clk_l, .num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l), .vreg_list = qmp_phy_vreg_l,