Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp985027rdf; Wed, 22 Nov 2023 02:23:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ144wqycZbuRR3mEYWtO9/s4x7uCjL+GC01p8/4DIzTcs5dyezUNaun2ggvozr6TKOJQD X-Received: by 2002:a05:6a00:2e8d:b0:6be:5a1a:3bb8 with SMTP id fd13-20020a056a002e8d00b006be5a1a3bb8mr2323226pfb.28.1700648588363; Wed, 22 Nov 2023 02:23:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700648588; cv=none; d=google.com; s=arc-20160816; b=KtyHw/vQ2CarYT3c0FaeGw6KNng+rjL26Mir8pXX+bXUUCj7xhL4B91/YuW2U9fOnQ /SZ10TE5oHkYdESROa5c8XHfGTqHp+y9aPzEFTv8l3kQX2h9R+V3MgWxQDUPA0hx8ClE etRPIMREmfstM+utVrDFqoqYgP43ymbgpsqmefp4t8o0z2k2uYzZaOP3h3yPn8cNH6ey Zep1tRE+xGvj2RbXmA0wZvFh1p7VZi0NxpHy91o+AbbfJXcpYPdWOjZkZxAmR49t5BXo mm/yefqt5gWsddhocs/E765qHoktmjCppyh1qZRjUceoTEaWE29Kexy7MB+XhxmA0UrQ Qd0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uF9oMwpOZMO8JSYm34njbxYk24Euivs6aKJ2cKa20XA=; fh=E7Q3UsyaBUad5Lnm62lnhQF+90opuCK6tZsN4q/69Cw=; b=LNInLThGJQFehHrnU5aYay8wmMuXkSrhTITuMPlKe5lRz6QlgF438nfAMuP6Epxc9j ehNIniouM5J76RqloETYCCl7/Ah6DJf3BVmb7BEmsIOE7AzqjbDldNMFKx45kxsXgjIN wZvcLkfuH27G0iUrR6XYjXAHSlFPBexjiGkS8x9245B6opy1gHqek6iCQ1pomylAxbfj kBXM2wZ5AZJWhTfTVadXnuITTmRtKDjaQ0uVar6UEIkOIg4Ap1BfkA+NxTD3er1NWtHw Nb1htEDvysSdLXcYN0EKEgAgaIzWbV/4BLnKZH496ihZuyszaY0MRUKhsfpNSlCzUCMj CAKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D9Y2IElL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id cb17-20020a056a02071100b00573f885c4easi12343608pgb.753.2023.11.22.02.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:23:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D9Y2IElL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 20DD380873E1; Wed, 22 Nov 2023 02:21:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235271AbjKVKVF (ORCPT + 99 others); Wed, 22 Nov 2023 05:21:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbjKVKUy (ORCPT ); Wed, 22 Nov 2023 05:20:54 -0500 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1300110 for ; Wed, 22 Nov 2023 02:20:49 -0800 (PST) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-5cbcfdeaff3so15046117b3.0 for ; Wed, 22 Nov 2023 02:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700648449; x=1701253249; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uF9oMwpOZMO8JSYm34njbxYk24Euivs6aKJ2cKa20XA=; b=D9Y2IElLoCfNYIGcGl2KqqMSCPrBRuXVn4j8IcOqQLO5VMDHQe8MgPEt/FI6mJxn+D rAUFbJoDQUBC/cQbgPPXB5jNMOzkG9TrSKCjBQ/nBg33YPYxwpYkfiW/qW7A875vf8QK Pb1cfWZvMr4oIG0yWygylqNTUYFcoMpm/fwU9OOUyPvC712lXl4i3Oy1ZuWUQXx5Sz8E ahlOsY9+vdYXFOOg12EXvWu9fjtfh5tmRBiZv3b3Sso9jLHXl2KW70POPSUL6Dl1aN3m Wp5eP6O38xk0bOB72CzdAswgF2DULIFp0BZtjiFa7AYrUMO1cinCx7MW9eV8LNsvKugn EPYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700648449; x=1701253249; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uF9oMwpOZMO8JSYm34njbxYk24Euivs6aKJ2cKa20XA=; b=wKqORxDN1vPpHQnmqVc8OKA7bQHahH+5QrbzCmxMtTgDeOY0uVOY7QzS49SRg91kOq +eb9HfXlqnN5J3GbMVcTIUnjWAPnfc+a07qpLuq3gDjTkrF/1yIZBeUxHcukqFOdJC3W 9IpDlQhtzshJRd+6wzMaZ4rn4dBdc5P7M9+lkA58b55UM+ws38ZAG7RjLFjlKHbHMQc1 iMuiQnYjEGxujl/CTu51Kwz3pApHW+gSUNo+/SOwy2f/nanHOaQv0pekhrB4gayK/qv2 /OJ7xgODtCGUjEXTaoLBXcRItci/YvXKeQ5X50zStfKSIzYmY0HpYw/JNMVvJ7Xl07q1 QDbQ== X-Gm-Message-State: AOJu0YxuXwxuq5xuaFyeQNhY+LtLY+gkfh24+oUqKjYvnrUHbiq5srJm 7eKyXDRtSmp0Tk+5Gka2PF9JqeNhNnARgHWJGc+mUQ== X-Received: by 2002:a0d:cacd:0:b0:5ca:3508:95c0 with SMTP id m196-20020a0dcacd000000b005ca350895c0mr1486172ywd.7.1700648448840; Wed, 22 Nov 2023 02:20:48 -0800 (PST) MIME-Version: 1.0 References: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-0-d9340d362664@linaro.org> <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-7-d9340d362664@linaro.org> In-Reply-To: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-7-d9340d362664@linaro.org> From: Dmitry Baryshkov Date: Wed, 22 Nov 2023 12:20:37 +0200 Message-ID: Subject: Re: [PATCH 7/7] phy: qcom-qmp: qserdes-txrx: Add v7 register offsets To: Abel Vesa Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:21:23 -0800 (PST) On Wed, 22 Nov 2023 at 12:04, Abel Vesa wrote: > > The X1E80100 platform bumps the HW version of QMP phy to v7 for USB and PCIE. > Add the new qserdes TX RX offsets in a dedicated header file. > > Signed-off-by: Abel Vesa > --- > .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v7.h | 78 ++++++++++++++++++++++ > drivers/phy/qualcomm/phy-qcom-qmp.h | 1 + > 2 files changed, 79 insertions(+) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v7.h b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v7.h > new file mode 100644 > index 000000000000..14023f47a95c > --- /dev/null > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v7.h > @@ -0,0 +1,78 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (c) 2023, Linaro Limited > + */ > + > +#ifndef QCOM_PHY_QMP_QSERDES_TXRX_USB_V7_H_ > +#define QCOM_PHY_QMP_QSERDES_TXRX_USB_V7_H_ s/_USB// > + > +#define QSERDES_V7_TX_CLKBUF_ENABLE 0x08 > +#define QSERDES_V7_TX_RESET_TSYNC_EN 0x1c > +#define QSERDES_V7_TX_PRE_STALL_LDO_BOOST_EN 0x20 > +#define QSERDES_V7_TX_TX_BAND 0x24 > +#define QSERDES_V7_TX_INTERFACE_SELECT 0x2c > +#define QSERDES_V7_TX_RES_CODE_LANE_TX 0x34 > +#define QSERDES_V7_TX_RES_CODE_LANE_RX 0x38 > +#define QSERDES_V7_TX_RES_CODE_LANE_OFFSET_TX 0x3c > +#define QSERDES_V7_TX_RES_CODE_LANE_OFFSET_RX 0x40 > +#define QSERDES_V7_TX_PARRATE_REC_DETECT_IDLE_EN 0x60 > +#define QSERDES_V7_TX_BIST_PATTERN7 0x7c > +#define QSERDES_V7_TX_LANE_MODE_1 0x84 > +#define QSERDES_V7_TX_LANE_MODE_2 0x88 > +#define QSERDES_V7_TX_LANE_MODE_3 0x8c > +#define QSERDES_V7_TX_LANE_MODE_4 0x90 > +#define QSERDES_V7_TX_LANE_MODE_5 0x94 > +#define QSERDES_V7_TX_RCV_DETECT_LVL_2 0xa4 > +#define QSERDES_V7_TX_TRAN_DRVR_EMP_EN 0xc0 > +#define QSERDES_V7_TX_TX_INTERFACE_MODE 0xc4 > +#define QSERDES_V7_TX_VMODE_CTRL1 0xc8 > +#define QSERDES_V7_TX_PI_QEC_CTRL 0xe4 > + > +#define QSERDES_V7_RX_UCDR_FO_GAIN 0x08 > +#define QSERDES_V7_RX_UCDR_SO_GAIN 0x14 > +#define QSERDES_V7_RX_UCDR_FASTLOCK_FO_GAIN 0x30 > +#define QSERDES_V7_RX_UCDR_SO_SATURATION_AND_ENABLE 0x34 > +#define QSERDES_V7_RX_UCDR_FASTLOCK_COUNT_LOW 0x3c > +#define QSERDES_V7_RX_UCDR_FASTLOCK_COUNT_HIGH 0x40 > +#define QSERDES_V7_RX_UCDR_PI_CONTROLS 0x44 > +#define QSERDES_V7_RX_UCDR_SB2_THRESH1 0x4c > +#define QSERDES_V7_RX_UCDR_SB2_THRESH2 0x50 > +#define QSERDES_V7_RX_UCDR_SB2_GAIN1 0x54 > +#define QSERDES_V7_RX_UCDR_SB2_GAIN2 0x58 > +#define QSERDES_V7_RX_AUX_DATA_TCOARSE_TFINE 0x60 > +#define QSERDES_V7_RX_TX_ADAPT_POST_THRESH 0xcc > +#define QSERDES_V7_RX_VGA_CAL_CNTRL1 0xd4 > +#define QSERDES_V7_RX_VGA_CAL_CNTRL2 0xd8 > +#define QSERDES_V7_RX_GM_CAL 0xdc > +#define QSERDES_V7_RX_RX_EQU_ADAPTOR_CNTRL2 0xec > +#define QSERDES_V7_RX_RX_EQU_ADAPTOR_CNTRL3 0xf0 > +#define QSERDES_V7_RX_RX_EQU_ADAPTOR_CNTRL4 0xf4 > +#define QSERDES_V7_RX_RX_IDAC_TSETTLE_LOW 0xf8 > +#define QSERDES_V7_RX_RX_IDAC_TSETTLE_HIGH 0xfc > +#define QSERDES_V7_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1 0x110 > +#define QSERDES_V7_RX_SIDGET_ENABLES 0x118 > +#define QSERDES_V7_RX_SIGDET_CNTRL 0x11c > +#define QSERDES_V7_RX_SIGDET_DEGLITCH_CNTRL 0x124 > +#define QSERDES_V7_RX_RX_MODE_00_LOW 0x15c > +#define QSERDES_V7_RX_RX_MODE_00_HIGH 0x160 > +#define QSERDES_V7_RX_RX_MODE_00_HIGH2 0x164 > +#define QSERDES_V7_RX_RX_MODE_00_HIGH3 0x168 > +#define QSERDES_V7_RX_RX_MODE_00_HIGH4 0x16c > +#define QSERDES_V7_RX_RX_MODE_01_LOW 0x170 > +#define QSERDES_V7_RX_RX_MODE_01_HIGH 0x174 > +#define QSERDES_V7_RX_RX_MODE_01_HIGH2 0x178 > +#define QSERDES_V7_RX_RX_MODE_01_HIGH3 0x17c > +#define QSERDES_V7_RX_RX_MODE_01_HIGH4 0x180 > +#define QSERDES_V7_RX_RX_MODE_10_LOW 0x184 > +#define QSERDES_V7_RX_RX_MODE_10_HIGH 0x188 > +#define QSERDES_V7_RX_RX_MODE_10_HIGH2 0x18c > +#define QSERDES_V7_RX_RX_MODE_10_HIGH3 0x190 > +#define QSERDES_V7_RX_RX_MODE_10_HIGH4 0x194 > +#define QSERDES_V7_RX_DFE_EN_TIMER 0x1a0 > +#define QSERDES_V7_RX_DFE_CTLE_POST_CAL_OFFSET 0x1a4 > +#define QSERDES_V7_RX_DCC_CTRL1 0x1a8 > +#define QSERDES_V7_RX_VTH_CODE 0x1b0 > +#define QSERDES_V7_RX_SIGDET_CAL_CTRL1 0x1e4 > +#define QSERDES_V7_RX_SIGDET_CAL_TRIM 0x1f8 > + > +#endif > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.h b/drivers/phy/qualcomm/phy-qcom-qmp.h > index 63b3cbfcb50f..6923496cbfee 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.h > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.h > @@ -28,6 +28,7 @@ > #include "phy-qcom-qmp-qserdes-ln-shrd-v6.h" > > #include "phy-qcom-qmp-qserdes-com-v7.h" > +#include "phy-qcom-qmp-qserdes-txrx-v7.h" > > #include "phy-qcom-qmp-qserdes-pll.h" > > > -- > 2.34.1 > > -- With best wishes Dmitry