Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp982464rdf; Wed, 22 Nov 2023 02:17:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTZ+gFCgTEGV1goPPVpi0bAUmHMRa7uqZuoWdOTwpQuoIhEOrQptOVBe9FscAuO6wpJIoC X-Received: by 2002:a17:90b:388d:b0:27d:546b:4258 with SMTP id mu13-20020a17090b388d00b0027d546b4258mr1778845pjb.31.1700648224970; Wed, 22 Nov 2023 02:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700648224; cv=none; d=google.com; s=arc-20160816; b=aESQANl8NGsCdicoCiXNlzQSFInIRG1thuCqKCAbNnPiu82cd/bN89YI6ZS+nhb/F/ jb8YHkkL4D4l51ZC5iq8xfV6jNuOnRLBi95D0CtrGYqZYVFS64ezQZjAcs1n9k7g7kwm ODMwPh/5BPUlSgyXp8R3E+srpqXv7cR6uq2yR+Kezi3Ar5r9fCKKF6ePGnRl3rfomvJW QYBzfTk5P2gyQg3KczfjQZY3S42A3R7jJI1Lyxi8PoMOgtg2Nj6x5EvnJSY1UDuL7kdE 4vJuDwzQrJ7zdlIFu0EExmss1EnFkBC1cbzI8ojz06zgJ12UHpQLS/fodnjehH4BLcgE rQSg== 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=PgkvyLwfQR26thZuHZr5M17A0Ohem0nIDMb8RLB6UYs=; fh=E7Q3UsyaBUad5Lnm62lnhQF+90opuCK6tZsN4q/69Cw=; b=YqKL7y6vbbGXy6a+PUAh9N2nasUMIr5yDTo23NHmMPE9PAcqDnBjhp3o6ZjElpKdi0 X2o7DCkCfRme+d+dCpJA+biUhe0eEUrVtxVf6QF2vPzlO5/nXwt3JJw5mC9jODZQq6BW oYUSGZlZPMxhV3gf8hYvRITmBxC1rYXr94YplMlr0N72M2cec6Io+zuIwNeew4cpv32Y 7erfl8LdIJi6g0SCaqlsxUbiK3npKn1pomdTlWjoaDVGHYXWKjFeDYuXcDDbkNgdR8ru UTynUDvcrv3dyT+zbcYVlvoBA3SFds2MMwcHTKNNYOd37iTMRHhHqvIwjKUVm1D7Yg2l ycOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r8fcXzdJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s15-20020a17090ad48f00b0027d1b42875bsi1174352pju.64.2023.11.22.02.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r8fcXzdJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 7FC0580967B9; Wed, 22 Nov 2023 02:16:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343595AbjKVKQC (ORCPT + 99 others); Wed, 22 Nov 2023 05:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235105AbjKVKP7 (ORCPT ); Wed, 22 Nov 2023 05:15:59 -0500 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 991B7112 for ; Wed, 22 Nov 2023 02:15:55 -0800 (PST) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5cc77e23218so4217247b3.3 for ; Wed, 22 Nov 2023 02:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700648155; x=1701252955; 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=PgkvyLwfQR26thZuHZr5M17A0Ohem0nIDMb8RLB6UYs=; b=r8fcXzdJhk4j5jldofapXyE3N/Tyl09fpEUY+m5NqEXEjROz50uKEaTBwMusJufdLa HPR762mdbn5gC3CaTUvaJjPozz5ONmi+GkkFy5Kks8j2ArMz1Qc9vmbaShdMd2B/YlRK Bl7ABymoZKM784c5lGNTBvmajRutsSk0eemoQirByj7Vw7muZWfvnOUgTsMz9jgA+6Z8 +gvoThWi4mzO7FHXzjpacUS3Rvg0H2QMbBw5NSiQ0+EWPk8lNTVmmHvmxMlvbaTI2eoB Srd1EctnV1os/5+z0cyGqeK+ZfDTmI8llUyCfoZlwpmCr9lIzxJ0wA35A+ZM/H+Mvtu7 i5jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700648155; x=1701252955; 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=PgkvyLwfQR26thZuHZr5M17A0Ohem0nIDMb8RLB6UYs=; b=so673m6bGDXdWI6/pKYQq6B/YeGd5VyEiwB6imlGHIwFY+hcQjaX5IjTSQwlmhS8KR K4ZGGPS010PRCD7N1zoKNRHEse+f+2kxcDxQAFae87n3vkTYR5OxXY2YOsDSlgIKLyTE CVICt5WXp2GKR9cWn8/VBie7cZdaIZ/+hqK0Fk83d5aBhnKHkCZv5GFXBS8/AATJQQ0Y 2m/z4FzbuWjcMTM/Uuq8pN900D7vjOZ971VfazlK+MBcLcxYJc89mencr7BOa36JqeAg ProWtsnNdi+UDDDdw1p+GpW9oD0BQMh9o0wY2R6CbLynt1jONfFFKAFmW1c3CZSDCcdd as7A== X-Gm-Message-State: AOJu0YzZbGM3GURtWNpR7j6k7L2kBE8yf2CZuAI9CFzFmYZx/i7mVuwF yu6yqFJyq283oBrwTzabxb/ZsXHFT4o/VQybXH+r5Q== X-Received: by 2002:a81:4746:0:b0:5a7:baac:7b34 with SMTP id u67-20020a814746000000b005a7baac7b34mr1621814ywa.28.1700648154790; Wed, 22 Nov 2023 02:15:54 -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-3-d9340d362664@linaro.org> In-Reply-To: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-3-d9340d362664@linaro.org> From: Dmitry Baryshkov Date: Wed, 22 Nov 2023 12:15:43 +0200 Message-ID: Subject: Re: [PATCH 3/7] phy: qcom-qmp: pcs: 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:16:30 -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 PCS offsets in a dedicated header file. > > Signed-off-by: Abel Vesa > --- > drivers/phy/qualcomm/phy-qcom-qmp-pcs-v7.h | 28 ++++++++++++++++++++++++++++ > drivers/phy/qualcomm/phy-qcom-qmp.h | 2 ++ > 2 files changed, 30 insertions(+) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v7.h b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v7.h > new file mode 100644 > index 000000000000..520f28d802f6 > --- /dev/null > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v7.h > @@ -0,0 +1,28 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (c) 2023, Linaro Limited > + */ > + > +#ifndef QCOM_PHY_QMP_PCS_V7_H_ > +#define QCOM_PHY_QMP_PCS_V7_H_ > + > +/* Only for QMP V6 PHY - USB/PCIe PCS registers */ V7 > + > +#define QPHY_V7_PCS_LOCK_DETECT_CONFIG1 0xc4 > +#define QPHY_V7_PCS_LOCK_DETECT_CONFIG2 0xc8 > +#define QPHY_V7_PCS_LOCK_DETECT_CONFIG3 0xcc > +#define QPHY_V7_PCS_LOCK_DETECT_CONFIG6 0xd8 > +#define QPHY_V7_PCS_REFGEN_REQ_CONFIG1 0xdc > +#define QPHY_V7_PCS_RX_SIGDET_LVL 0x188 > +#define QPHY_V7_PCS_RCVR_DTCT_DLY_P1U2_L 0x190 > +#define QPHY_V7_PCS_RCVR_DTCT_DLY_P1U2_H 0x194 > +#define QPHY_V7_PCS_RATE_SLEW_CNTRL1 0x198 > +#define QPHY_V7_PCS_RX_CONFIG 0x1b0 > +#define QPHY_V7_PCS_ALIGN_DETECT_CONFIG1 0x1c0 > +#define QPHY_V7_PCS_ALIGN_DETECT_CONFIG2 0x1c4 > +#define QPHY_V7_PCS_PCS_TX_RX_CONFIG 0x1d0 > +#define QPHY_V7_PCS_EQ_CONFIG1 0x1dc > +#define QPHY_V7_PCS_EQ_CONFIG2 0x1e0 > +#define QPHY_V7_PCS_EQ_CONFIG5 0x1ec > + > +#endif > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.h b/drivers/phy/qualcomm/phy-qcom-qmp.h > index 71f063f4a56e..21f6a56e7ae3 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.h > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.h > @@ -44,6 +44,8 @@ > > #include "phy-qcom-qmp-pcs-v6_20.h" > > +#include "phy-qcom-qmp-pcs-v7.h" > + > /* Only for QMP V3 & V4 PHY - DP COM registers */ > #define QPHY_V3_DP_COM_PHY_MODE_CTRL 0x00 > #define QPHY_V3_DP_COM_SW_RESET 0x04 > > -- > 2.34.1 > > -- With best wishes Dmitry