From patchwork Sat Dec 31 22:24:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lux Aliaga X-Patchwork-Id: 13086223 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F014BC4332F for ; Sat, 31 Dec 2022 22:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235924AbiLaWY6 (ORCPT ); Sat, 31 Dec 2022 17:24:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235850AbiLaWYx (ORCPT ); Sat, 31 Dec 2022 17:24:53 -0500 Received: from amity.mint.lgbt (vmi888983.contaboserver.net [149.102.157.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64DCC6576 for ; Sat, 31 Dec 2022 14:24:52 -0800 (PST) Received: from amity.mint.lgbt (mx.mint.lgbt [127.0.0.1]) by amity.mint.lgbt (Postfix) with ESMTP id 4NkxWl0cBsz1S5Dq for ; Sat, 31 Dec 2022 17:24:51 -0500 (EST) Authentication-Results: amity.mint.lgbt (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mint.lgbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mint.lgbt; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:subject:to:from; s=dkim; t=1672525490; x=1673389491; bh=DCkNDvFHww+MS2eiPqi7ClBRtEBcvg/7faZ0BrO8Uj0=; b= Q2hn3W0TBPNpKbwmK/V+wZgBw+2V4jTVWeccTgp8jEPnmNPQ8upmJmtpI3eZS2aj oNpEN/3Dv+8rc5NTEKb/mYc621O3DLmKYx+N6M4nHh6RMkSSviO0zi7XDa0ZhNh5 u1dv02nR/M5UTT7rO2G8aarO3oLXNwvR4I1MQdI+l/HVH1ziav8Jfju8JJWPb+qq f6uYFNrSTAr0YRp8tHMaZ/ojJQFBg9deE3jbJAEhMVp5r2VfZyj6d+V+nsP1iTeU jgHX9dlyXMu7Zb1q4gae0k5PFvETmrmqRYRqyq1fic6nz06tsFOMrN+4gbPcVaax Vo5YSkumKH+khhvTnuKK/A== X-Virus-Scanned: amavisd-new at amity.mint.lgbt Received: from amity.mint.lgbt ([127.0.0.1]) by amity.mint.lgbt (amity.mint.lgbt [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bGeG_Ocbt704 for ; Sat, 31 Dec 2022 17:24:50 -0500 (EST) Received: from dorothy.. (unknown [190.196.92.66]) by amity.mint.lgbt (Postfix) with ESMTPSA id 4NkxWf3QN6z1S5Dx; Sat, 31 Dec 2022 17:24:46 -0500 (EST) From: Lux Aliaga To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, marijn.suijten@somainline.org, Lux Aliaga , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/6] phy: qcom-qmp: Add SM6125 UFS PHY support Date: Sat, 31 Dec 2022 19:24:17 -0300 Message-Id: <20221231222420.75233-4-they@mint.lgbt> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221231222420.75233-1-they@mint.lgbt> References: <20221231222420.75233-1-they@mint.lgbt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SM6125 UFS PHY is compatible with the one from SM6115. Add a compatible for it and modify the config from SM6115 to make them compatible with the SC8280XP binding Signed-off-by: Lux Aliaga Reviewed-by: Martin Botka --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 318eea35b972..f33c84578940 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -693,6 +693,8 @@ static const struct qmp_phy_cfg sdm845_ufsphy_cfg = { static const struct qmp_phy_cfg sm6115_ufsphy_cfg = { .lanes = 1, + .offsets = &qmp_ufs_offsets_v5, + .serdes_tbl = sm6115_ufsphy_serdes_tbl, .serdes_tbl_num = ARRAY_SIZE(sm6115_ufsphy_serdes_tbl), .tx_tbl = sm6115_ufsphy_tx_tbl, @@ -1172,6 +1174,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = { }, { .compatible = "qcom,sm6115-qmp-ufs-phy", .data = &sm6115_ufsphy_cfg, + }, { + .compatible = "qcom,sm6125-qmp-ufs-phy", + .data = &sm6115_ufsphy_cfg, }, { .compatible = "qcom,sm6350-qmp-ufs-phy", .data = &sdm845_ufsphy_cfg,