Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp771765rwp; Thu, 13 Jul 2023 00:11:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPVgN5MA7vOJ0N31nmRzdoQyU2TUpb/f7wVu8YQVjahIuhB/ieADq5wqcKg4GDVJT0vmlZ X-Received: by 2002:a50:fa8a:0:b0:51e:3c2:9881 with SMTP id w10-20020a50fa8a000000b0051e03c29881mr924907edr.33.1689232318952; Thu, 13 Jul 2023 00:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689232318; cv=none; d=google.com; s=arc-20160816; b=ej91d99Ew7m0/wTm/xptR0Pi6DaCUDcnnPCyVf8L28wDIUnlZXZUhOzmDqnEUJe6+/ oL4ZsmDvHArHpyk2l8BthLqKVQFTlItVgauDSkuz0K+w2Qs2Pxg7GrISPJ31Pejx5hkP FYvqi6Wajzl/6EuscecMffJM9JjFLnhDDkqK4BUTbfLuHrD3tCqegRPew6cEqsL52soG XJ9zIgRzeUpn+u6A57HrYneyIcaEI8L2XHnc58ISW+3OZLhGp2gUf4O4OmTwxXX6yv5r 4xmEe2/aH4pKWyQHN+dlROA+5sQyOhyyyyR8FSHEMj825gUKKEnHzTaEuUKadD4PxK5S B4kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PoSffZWupcGzBqhtmYp0JjGecQBlyktcI4TIRwWVzYY=; fh=MQmh0XNYFaZrFXfLGj1mHxFuF0MXOQ6pzibYxAvHM5k=; b=yGUezLxxlLrlkqzZrIjqLmZ04cMymD3FpsBVW+R89hTtb6Z9axzA0PyF0H2Mp3I/RJ DzZPCBWp5pElIUYGq0B68ynbRYdLvWTB//78J2inHHVkFuMClP/5HuDA6sQOErrfDtqZ 87IEbZxFDQnbM5MIZXpjAF1ADDohD+7XBptuW2FX/98/FKkXlFUHcgQdzfz4++9mUwlS LWIsGCDoOR9vrjFSQltrIRmza/8CVVfM0cwNzMKBbfJsFmqeb6QmHiBJFpz0gD9OhP91 NtJDYTiTdaHeACboILxz2T/HKbHonGu+vIrRZ3j4R12pXP5aByUn1KLb4vTwiW+ElQPB TX5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VsvRGfVR; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020aa7ca4b000000b0051ddc36463dsi6743912edt.629.2023.07.13.00.11.34; Thu, 13 Jul 2023 00:11:58 -0700 (PDT) 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=@quicinc.com header.s=qcppdkim1 header.b=VsvRGfVR; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233486AbjGMHAc (ORCPT + 99 others); Thu, 13 Jul 2023 03:00:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbjGMHAN (ORCPT ); Thu, 13 Jul 2023 03:00:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF85F2689; Thu, 13 Jul 2023 00:00:09 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36D4nCBq021788; Thu, 13 Jul 2023 06:59:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=PoSffZWupcGzBqhtmYp0JjGecQBlyktcI4TIRwWVzYY=; b=VsvRGfVRTlLNRhNyop4Su7t1zf9WngboxKACmH3G0OyY0bmNV8SxiBd9MZl0j6zHTwrG RBWbgPqT3HlNElTWvaltYCIHEYtzsBn486w6z0qxJPHZ5qJ7Bc6HU7IRGpn6icQwzMKF WOBen/TdhoyAcfbqkH8eIt66Y68/9Z1McxcDxlCh57nCo4UtI4FKo6N0wuUL8WwEOSxn O0z9CEf5r5lZL1yLaN7r/vYBPuZEUhe9WL33hIw63DL+FKO/oQB6ESR5ULcwSbwq4oNe L5LVehwCt14WwNAXagc0OBd5B6xe/3dCAyK3lGmaZjVrOrRjERQVmt54owcgRaN1kfFP 6Q== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rt3f00v2t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jul 2023 06:59:55 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36D6xsvX010303 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jul 2023 06:59:54 GMT Received: from [10.216.17.146] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 12 Jul 2023 23:59:45 -0700 Message-ID: <8fa24cec-ee14-651c-5f28-dcddac4de4c1@quicinc.com> Date: Thu, 13 Jul 2023 12:29:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 4/6] phy: qcom-qmp-pcie: add support for sa8775p Content-Language: en-US To: Dmitry Baryshkov , , , , , , CC: , , , , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Rob Herring , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I , , , , , References: <1688545032-17748-1-git-send-email-quic_msarkar@quicinc.com> <1688545032-17748-5-git-send-email-quic_msarkar@quicinc.com> <868f3cbb-31fd-112a-9448-fdb686f812f0@linaro.org> From: Mrinmay Sarkar In-Reply-To: <868f3cbb-31fd-112a-9448-fdb686f812f0@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: HbKyw22KBzTytZlAxpoW47ctL2F_t0LV X-Proofpoint-ORIG-GUID: HbKyw22KBzTytZlAxpoW47ctL2F_t0LV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-13_04,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 clxscore=1011 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307130060 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=ham 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 On 7/6/2023 8:23 PM, Dmitry Baryshkov wrote: > On 05/07/2023 11:17, Mrinmay Sarkar wrote: >> Add support for dual and four lane PHY found on sa8755p platform. >> >> Signed-off-by: Mrinmay Sarkar >> --- >>   drivers/phy/qualcomm/phy-qcom-qmp-pcie.c      | 328 ++++++++++++++++++ >>   .../qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h    |   1 + >>   .../phy-qcom-qmp-qserdes-txrx-v5_20.h         |   2 + >>   3 files changed, 331 insertions(+) >> >> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >> b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >> index df505279edfd..0d72e2f4dcfb 100644 >> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >> @@ -1910,6 +1910,244 @@ static const struct qmp_phy_init_tbl >> sm8550_qmp_gen4x2_pcie_pcs_misc_tbl[] = { >>       QMP_PHY_INIT_CFG(QPHY_PCIE_V6_20_PCS_G4_FOM_EQ_CONFIG5, 0xf2), >>   }; >>   +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x2_pcie_serdes_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_BIAS_EN_CLKBUFLR_EN, 0x14), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_IVCO, 0x0f), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP_EN, 0x46), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP_CFG, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_VCO_TUNE_MAP, 0x02), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_HSCLK_SEL, 0x12), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_HSCLK_HS_SWITCH_SEL, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORECLK_DIV_MODE0, 0x0a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORECLK_DIV_MODE1, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_MISC1, 0x88), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORE_CLK_EN, 0x60), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_CONFIG, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_MODE, 0x14), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_VCO_DC_LEVEL_CTRL, 0x0f), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x2_pcie_rc_serdes_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_EN_CENTER, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_PER1, 0x31), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_PER2, 0x01), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE1_MODE0, 0xde), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE2_MODE0, 0x07), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE1_MODE1, 0x97), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE2_MODE1, 0x0c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CLK_ENABLE1, 0x90), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CP_CTRL_MODE0, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CP_CTRL_MODE1, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_RCTRL_MODE0, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_RCTRL_MODE1, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_CCTRL_MODE0, 0x36), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_CCTRL_MODE1, 0x36), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SYSCLK_EN_SEL, 0x08), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP1_MODE0, 0x0a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP2_MODE0, 0x1a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP1_MODE1, 0x14), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP2_MODE1, 0x34), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DEC_START_MODE0, 0x82), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DEC_START_MODE1, 0xd0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START1_MODE0, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START2_MODE0, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START3_MODE0, 0x03), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START1_MODE1, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START2_MODE1, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START3_MODE1, 0x05), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CLK_SELECT, 0x34), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x2_pcie_rx_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_PI_CONTROLS, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_CTLE_POST_CAL_OFFSET, 0x38), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B0, 0x9a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B1, 0xb0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B2, 0x92), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B3, 0xf0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B4, 0x42), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B5, 0x99), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B6, 0x29), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B0, 0x9a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B1, 0xfb), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B2, 0x92), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B3, 0xec), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B4, 0x43), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B5, 0xdd), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B6, 0x0d), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B0, 0xf3), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B1, 0xf8), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B2, 0xec), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B3, 0xd6), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B4, 0x83), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B5, 0xf5), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B6, 0x5e), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_PHPRE_CTRL, 0x20), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_0_1, 0x3f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_2_3, 0x37), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_3, 0x00), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH4_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH5_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH6_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_Q_PI_INTRINSIC_BIAS_RATE32, 0x09), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE2, 0x0c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE3, 0x08), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_SO_GAIN_RATE3, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_VGA_CAL_CNTRL1, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_VGA_CAL_MAN_VAL, 0x08), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_EQU_ADAPTOR_CNTRL4, 0x0b), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1, 0x7c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_IDAC_SAOFFSET, 0x10), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_DAC_ENABLE1, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_GM_CAL, 0x05), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH1, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH2, 0x1f), >> +}; >> + >> +static const struct qmp_phy_init_tbl sa8775p_qmp_gen4_pcie_tx_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_TX_RES_CODE_LANE_OFFSET_TX, 0x1f), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_TX_RES_CODE_LANE_OFFSET_RX, 0x07), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_TX_LANE_MODE_1, 0x05), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_TX_LANE_MODE_2, 0xf6), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_TX_LANE_MODE_3, 0x0f), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4_pcie_pcs_misc_tbl[] = { >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_EQ_CONFIG1, 0x16), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_G4_EQ_CONFIG5, 0x02), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_G4_PRE_GAIN, 0x2e), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_RX_MARGINING_CONFIG3, 0x28), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4_pcie_rc_pcs_misc_tbl[] = { >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_POWER_STATE_CONFIG2, 0x1d), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_ENDPOINT_REFCLK_DRIVE, 0xc1), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_PCIE_OSC_DTCT_ACTIONS, 0x00), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x2_pcie_pcs_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_EQ_CONFIG4, 0x16), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_EQ_CONFIG5, 0x22), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_LANE1_INSIG_SW_CTRL2, 0x00), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_LANE1_INSIG_MX_CTRL2, 0x00), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_G3S2_PRE_GAIN, 0x2e), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_RX_SIGDET_LVL, 0x66), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x4_pcie_rx_alt_tbl[] = { >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_0_1, 0x3f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_2_3, 0x37), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_3, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_CTLE_POST_CAL_OFFSET, 0x38), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_DFE_DAC_ENABLE1, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_GM_CAL, 0x05), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_PHPRE_CTRL, 0x20), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_EQU_ADAPTOR_CNTRL4, 0x0b), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1, 0x7c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_IDAC_SAOFFSET, 0x10), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE210, >> 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH4_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH5_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH6_RATE3, 0x1f), >> + QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_Q_PI_INTRINSIC_BIAS_RATE32, 0x09), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B0, 0x99), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B1, 0xb0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B2, 0x92), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B3, 0xf0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B4, 0x42), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B5, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B6, 0x20), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B0, 0x9a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B1, 0xb6), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B2, 0x92), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B3, 0xf0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B4, 0x43), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B5, 0xdd), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE2_B6, 0x0d), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B0, 0xf3), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B1, 0xf6), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B2, 0xee), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B3, 0xd2), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B4, 0x83), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B5, 0xf9), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_RX_MODE_RATE3_B6, 0x3d), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH1, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH2, 0x1f), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE2, 0x0c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE3, 0x08), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_SO_GAIN_RATE3, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_UCDR_PI_CONTROLS, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_VGA_CAL_CNTRL1, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_20_RX_VGA_CAL_MAN_VAL, 0x08), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x4_pcie_pcs_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_EQ_CONFIG4, 0x16), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_EQ_CONFIG5, 0x22), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_G3S2_PRE_GAIN, 0x2e), >> +    QMP_PHY_INIT_CFG(QPHY_V5_20_PCS_RX_SIGDET_LVL, 0x66), >> +}; >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x4_pcie_serdes_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_IVCO, 0x0f), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_CCTRL_MODE0, 0x36), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_CCTRL_MODE1, 0x36), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP_EN, 0x46), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP_CFG, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_VCO_TUNE_MAP, 0x02), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_HSCLK_SEL, 0x12), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_HSCLK_HS_SWITCH_SEL, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORECLK_DIV_MODE0, 0x0a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORECLK_DIV_MODE1, 0x04), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_MISC1, 0x88), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CORE_CLK_EN, 0x60), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_CONFIG, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CMN_MODE, 0x14), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_VCO_DC_LEVEL_CTRL, 0x0f), >> +}; >> + >> + >> +static const struct qmp_phy_init_tbl >> sa8775p_qmp_gen4x4_pcie_rc_serdes_alt_tbl[] = { >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_EN_CENTER, 0x00), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_PER1, 0x31), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_PER2, 0x01), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE1_MODE0, 0xde), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE2_MODE0, 0x07), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE1_MODE1, 0x97), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SSC_STEP_SIZE2_MODE1, 0x0c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_BIAS_EN_CLKBUFLR_EN, 0x1c), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CLK_ENABLE1, 0x90), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CP_CTRL_MODE0, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CP_CTRL_MODE1, 0x06), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_RCTRL_MODE0, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_RCTRL_MODE1, 0x16), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_SYSCLK_EN_SEL, 0x08), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP1_MODE0, 0x0a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP2_MODE0, 0x1a), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP1_MODE1, 0x14), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_LOCK_CMP2_MODE1, 0x34), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DEC_START_MODE0, 0x82), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DEC_START_MODE1, 0xd0), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START1_MODE0, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START2_MODE0, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START3_MODE0, 0x03), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START1_MODE1, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START2_MODE1, 0x55), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_DIV_FRAC_START3_MODE1, 0x05), >> +    QMP_PHY_INIT_CFG(QSERDES_V5_COM_CLK_SELECT, 0x34), >> +}; >> + >>   struct qmp_pcie_offsets { >>       u16 serdes; >>       u16 pcs; >> @@ -2054,6 +2292,10 @@ static const char * const >> sdm845_pciephy_clk_l[] = { >>       "aux", "cfg_ahb", "ref", "refgen", >>   }; >>   +static const char * const sa8775p_pciephy_clk_l[] = { >> +    "aux", "cfg_ahb", "ref", "rchng", "phy_aux", >> +}; >> + >>   /* list of regulators */ >>   static const char * const qmp_phy_vreg_l[] = { >>       "vdda-phy", "vdda-pll", >> @@ -2093,6 +2335,14 @@ static const struct qmp_pcie_offsets >> qmp_pcie_offsets_v6_20 = { >>       .ln_shrd    = 0x0e00, >>   }; >>   +static const struct qmp_pcie_offsets qmp_pcie_offsets_v6 = { >> +    .serdes        = 0x2000, >> +    .pcs        = 0x2200, >> +    .pcs_misc    = 0x2400, >> +    .tx        = 0x3800, >> +    .rx        = 0x3a00, > > This does not seem correct to me. What ocuppies the offset 0x0? offset 0x0 occupies TX0_QSERDES_TX0_PCIE4(tx0) register but as per PHY sequence to support gen4X4 we need to use TXZ_QSERDES_TXZ_PCIE4_4L_QMP_TXZ for tx. >> +}; >> + >>   static const struct qmp_phy_cfg ipq8074_pciephy_cfg = { >>       .lanes            = 1, >>   @@ -2743,6 +2993,78 @@ static const struct qmp_phy_cfg >> sm8550_qmp_gen4x2_pciephy_cfg = { >>       .has_nocsr_reset    = true, >>   }; >>   +static const struct qmp_phy_cfg sa8775p_qmp_gen4x2_pciephy_cfg = { >> +    .lanes            = 2, >> +    .offsets        = &qmp_pcie_offsets_v6_20, > > Please split out a separate v5_20 offsets entry. We might merge them > later, but for now it seems cleaner to have separate per-version entries. Here we are using already existing qmp_pcie_offsets_v6_20 offset that matches exactly same offsets as sa8775p for gen4x2 . so we are reusing it. rather creating separate entry. > >> + >> +    .tbls = { >> +        .serdes        = sa8775p_qmp_gen4x2_pcie_serdes_alt_tbl, >> +        .serdes_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x2_pcie_serdes_alt_tbl), >> +        .tx        = sa8775p_qmp_gen4_pcie_tx_tbl, >> +        .tx_num        = ARRAY_SIZE(sa8775p_qmp_gen4_pcie_tx_tbl), >> +        .rx        = sa8775p_qmp_gen4x2_pcie_rx_alt_tbl, >> +        .rx_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x2_pcie_rx_alt_tbl), >> +        .pcs        = sa8775p_qmp_gen4x2_pcie_pcs_alt_tbl, >> +        .pcs_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x2_pcie_pcs_alt_tbl), >> +        .pcs_misc        = sa8775p_qmp_gen4_pcie_pcs_misc_tbl, >> +        .pcs_misc_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4_pcie_pcs_misc_tbl), >> +    }, >> + >> +    .tbls_rc = &(const struct qmp_phy_cfg_tbls) { >> +        .serdes        = sa8775p_qmp_gen4x2_pcie_rc_serdes_alt_tbl, >> +        .serdes_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4x2_pcie_rc_serdes_alt_tbl), >> +        .pcs_misc    = sa8775p_qmp_gen4_pcie_rc_pcs_misc_tbl, >> +        .pcs_misc_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4_pcie_rc_pcs_misc_tbl), >> +    }, >> + >> +    .clk_list        = sa8775p_pciephy_clk_l, >> +    .num_clks        = ARRAY_SIZE(sa8775p_pciephy_clk_l), >> +    .reset_list        = sdm845_pciephy_reset_l, >> +    .num_resets        = ARRAY_SIZE(sdm845_pciephy_reset_l), >> +    .vreg_list        = qmp_phy_vreg_l, >> +    .num_vregs        = ARRAY_SIZE(qmp_phy_vreg_l), >> +    .regs            = pciephy_v5_regs_layout, >> + >> +    .pwrdn_ctrl        = SW_PWRDN | REFCLK_DRV_DSBL, >> +    .phy_status        = PHYSTATUS_4_20, >> +}; >> + >> +static const struct qmp_phy_cfg sa8775p_qmp_gen4x4_pciephy_cfg = { >> +    .lanes = 4, >> +    .offsets        = &qmp_pcie_offsets_v6, >> + >> +    .tbls = { >> +        .serdes        = sa8775p_qmp_gen4x4_pcie_serdes_alt_tbl, >> +        .serdes_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x4_pcie_serdes_alt_tbl), >> +        .tx        = sa8775p_qmp_gen4_pcie_tx_tbl, >> +        .tx_num        = ARRAY_SIZE(sa8775p_qmp_gen4_pcie_tx_tbl), >> +        .rx            = sa8775p_qmp_gen4x4_pcie_rx_alt_tbl, >> +        .rx_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x4_pcie_rx_alt_tbl), >> +        .pcs        = sa8775p_qmp_gen4x4_pcie_pcs_alt_tbl, >> +        .pcs_num        = >> ARRAY_SIZE(sa8775p_qmp_gen4x4_pcie_pcs_alt_tbl), >> +        .pcs_misc        = sa8775p_qmp_gen4_pcie_pcs_misc_tbl, >> +        .pcs_misc_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4_pcie_pcs_misc_tbl), >> +    }, >> + >> +    .tbls_rc = &(const struct qmp_phy_cfg_tbls) { >> +        .serdes        = sa8775p_qmp_gen4x4_pcie_rc_serdes_alt_tbl, >> +        .serdes_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4x4_pcie_rc_serdes_alt_tbl), >> +        .pcs_misc    = sa8775p_qmp_gen4_pcie_rc_pcs_misc_tbl, >> +        .pcs_misc_num    = >> ARRAY_SIZE(sa8775p_qmp_gen4_pcie_rc_pcs_misc_tbl), >> +    }, >> + >> +    .clk_list        = sa8775p_pciephy_clk_l, >> +    .num_clks        = ARRAY_SIZE(sa8775p_pciephy_clk_l), >> +    .reset_list        = sdm845_pciephy_reset_l, >> +    .num_resets        = ARRAY_SIZE(sdm845_pciephy_reset_l), >> +    .vreg_list        = qmp_phy_vreg_l, >> +    .num_vregs        = ARRAY_SIZE(qmp_phy_vreg_l), >> +    .regs            = pciephy_v5_regs_layout, >> + >> +    .pwrdn_ctrl        = SW_PWRDN | REFCLK_DRV_DSBL, >> +    .phy_status        = PHYSTATUS_4_20, >> +}; >> + >>   static void qmp_pcie_configure_lane(void __iomem *base, >>                       const struct qmp_phy_init_tbl tbl[], >>                       int num, >> @@ -3428,6 +3750,12 @@ static const struct of_device_id >> qmp_pcie_of_match_table[] = { >>       }, { >>           .compatible = "qcom,sm8550-qmp-gen4x2-pcie-phy", >>           .data = &sm8550_qmp_gen4x2_pciephy_cfg, >> +    }, { >> +        .compatible = "qcom,sa8775p-qmp-gen4x2-pcie-phy", >> +        .data = &sa8775p_qmp_gen4x2_pciephy_cfg, >> +    }, { >> +        .compatible = "qcom,sa8775p-qmp-gen4x4-pcie-phy", >> +        .data = &sa8775p_qmp_gen4x4_pciephy_cfg, >>       }, >>       { }, >>   }; >> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h >> b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h >> index a3a056741fc7..cdf8c04ea078 100644 >> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h >> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h >> @@ -7,6 +7,7 @@ >>   #define QCOM_PHY_QMP_PCS_PCIE_V5_20_H_ >>     /* Only for QMP V5_20 PHY - PCIe PCS registers */ >> +#define QPHY_V5_20_PCS_PCIE_POWER_STATE_CONFIG2        0x00c >>   #define QPHY_V5_20_PCS_PCIE_ENDPOINT_REFCLK_DRIVE    0x01c >>   #define QPHY_V5_20_PCS_PCIE_OSC_DTCT_MODE2_CONFIG5    0x084 >>   #define QPHY_V5_20_PCS_PCIE_OSC_DTCT_ACTIONS        0x090 >> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v5_20.h >> b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v5_20.h >> index c7b12c1fb7f5..cf91154eed13 100644 >> --- a/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v5_20.h >> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v5_20.h >> @@ -19,6 +19,7 @@ >>   /* Only for QMP V5_20 PHY - RX registers */ >>   #define QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE2        0x008 >>   #define QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE3        0x00c >> +#define QSERDES_V5_20_RX_UCDR_SO_GAIN_RATE3        0x01c >>   #define QSERDES_V5_20_RX_UCDR_PI_CONTROLS        0x020 >>   #define QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_0_1    0x02c >>   #define QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_2_3    0x030 >> @@ -80,5 +81,6 @@ >>   #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH4_RATE3    0x210 >>   #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH5_RATE3    0x218 >>   #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH6_RATE3    0x220 >> +#define QSERDES_V5_20_RX_Q_PI_INTRINSIC_BIAS_RATE32    0x238 >>     #endif Thanks, Mrinmay