Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp976490rdf; Wed, 22 Nov 2023 02:04:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOKQozlc8jHTK5ZKd4jiZA65B1OW2dUgcwkRTX/2zuQWq36oGy992Qv1yKwn7zZ+oCjN7P X-Received: by 2002:a9d:5a10:0:b0:6cd:a4f:3dab with SMTP id v16-20020a9d5a10000000b006cd0a4f3dabmr2036705oth.29.1700647469748; Wed, 22 Nov 2023 02:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700647469; cv=none; d=google.com; s=arc-20160816; b=rE4TeKVyCseVSarn2lg057RXK+YZY21bLyMUrbfiYhPrygMfAp2vKuq9FiwNNiUSH3 OhG6GYtz+lp0Le/yGGfO+kCDLjfyWJEVbhvnl+ADjw/fw+3I6YDVhO0RAMBYNpLWLpdh T0OGea+uTGib9/tuGX/XOW10U/eeFjm+Nw0kRYlUb0FrtYcEP3v4b8cGpjuraOT15wW5 mQC2CTSDwggPnx3xNg/K4TC1xKHUXfC+odysCFPlCVHDDZx/KRdnaZCsWGC5ltBf8Ifx RSYOEBGnEjB8q9zH/1BbMSmqIriTU2hWHAqkSb+IM6kTK+PceXfNwAbEOXNPgS4FhdLb QvoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Gs74nhLMj2XOqoIIaz5J8r/tU6tBKU967K+bEMRbRRU=; fh=VpnRmX0G9N3KT2xz9Bkkqh1LIFLlK1DA9r6lixHm964=; b=z88mv81dduvs4fdVatuTJT8B3PXGnOSxeqXtshiXqYzZIkcestnfgFmlUtaHPUtKol 1seJ5k3JENKv2ewP4YKiCPvQUF3o1b7gaS1wrl78ix0M4JG7Z6Ke1Ac3EpbKOXoOwtuQ H6+ibbWTEaNZ5yH8/vnaJwLHETdmGLugTbyA0Di6V1OsmuqU0Tqax8vDOwhsZKTcfMfN PBIsXX4kLsBf9sT5h55choyXis2YyOoevPrPDJQGtOJk3DnOdsF/pEQ9/vphG+CoKdbI d3o5A4QwjzGqotNrvmt3ADkNnU4dnOimFlQ0lcxy/5Kujs1YAioXhefZec0CAKxjlYnO 98Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5Ne4A81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q15-20020a635c0f000000b005c21363f9b0si10565825pgb.766.2023.11.22.02.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5Ne4A81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 27B35803098C; Wed, 22 Nov 2023 02:04:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343801AbjKVKEW (ORCPT + 99 others); Wed, 22 Nov 2023 05:04:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343764AbjKVKER (ORCPT ); Wed, 22 Nov 2023 05:04:17 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10111A2 for ; Wed, 22 Nov 2023 02:04:13 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5480edd7026so8571148a12.0 for ; Wed, 22 Nov 2023 02:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700647452; x=1701252252; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Gs74nhLMj2XOqoIIaz5J8r/tU6tBKU967K+bEMRbRRU=; b=Y5Ne4A81h+AlFMJfuqbOT2z3jg+LOhk92/llClIcueKEvRYt0oOKlIFEc+azxdB2PU GUS1+KKcuHS0DhkxtZOigDD6su+ftUcXfXDXejoHnRQb7XJwXgtArGvy9hiZhSOBHdQi bxGn09SHZlbTfPvLrofmfUDfACqIrOe8qZ6nedEvy3p85vFfN4Cp4ldfvt2N82ZKADdf CdERUSJB4KH5bffoEEEADlnd2+0Jf88YQfZmO9M/UDxFH2ser1xtretA8REEQE6zMB/3 TfI7DLRgV4LJmv0FFszhGotKe0fzLX9eU9wfZkzciq2gAxmhA1mM7Pxq21y5qGRelzvh wTBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700647452; x=1701252252; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gs74nhLMj2XOqoIIaz5J8r/tU6tBKU967K+bEMRbRRU=; b=nbomamPF5jEuCVA85PMocFqmCK602jNGy+l535oh++/X9IMNdc7UTeYEh2mDS+jgjp mYlTJnDqjLX03q8YXJYgUt6txO2JR9KQ8RcU2a0qHagIkEh4Esg83sXEamtr/6g/Su0S dJ5U1tcrn407ggH8gNvW+c0DVVK0EgrYCj24qHMmHYwUm2lBv7PcfPKILt8sPpRLZrs/ TwMcTAA4SFXKUCJ8JVBYsGZjO9Uk8OSITgNptCDnSuDpKQKOelpLOeyKpSkYaLplnm6C M2fgzEUSZnbpzZEGkJKp776GDg5MgVecKSrzz70SRJfDkYquyqOSMR6pXXcpst5aBM05 30Jw== X-Gm-Message-State: AOJu0Yy2wolc0ny10gCdAUv2bc2MpO23ga1QWkhJldMl417VE/RlUVEd bgnToYTvqy4iDsM1cuo6lzhIqw== X-Received: by 2002:aa7:d40b:0:b0:53f:1067:4b94 with SMTP id z11-20020aa7d40b000000b0053f10674b94mr1210582edq.18.1700647452250; Wed, 22 Nov 2023 02:04:12 -0800 (PST) Received: from [127.0.1.1] ([86.123.99.122]) by smtp.gmail.com with ESMTPSA id o9-20020a509b09000000b0053deb97e8e6sm6110456edi.28.2023.11.22.02.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:04:11 -0800 (PST) From: Abel Vesa Date: Wed, 22 Nov 2023 12:03:55 +0200 Subject: [PATCH 3/7] phy: qcom-qmp: pcs: Add v7 register offsets MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-3-d9340d362664@linaro.org> References: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-0-d9340d362664@linaro.org> In-Reply-To: <20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-0-d9340d362664@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2052; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=V6EysvvuNt83o5PfcG1W4aH/vaCeWPRnMZtIEulp950=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlXdIRxZOW/+70Z5s06jRtjlJ09B49/GOfiwYNc kl5f3P2mjeJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZV3SEQAKCRAbX0TJAJUV VknCEACCqDgG7NxNoVuO/sYZzX/QZidYFsUkcz7CsL6TxJSkbrvnHPCJECALRaJRFHb4kYJjIhn jZiUV7Dq+6q1BEQH6mnCL9hwDngSTk4URxZDb5OkYfSegsX45DtVmd9qU4Pg2HU63xrRYullRxP T0DLPOoWfg44cPPA+YfGpLTPhnTllKoJJcA/N8N61WLpMLdi0EMseQD96cBRNFQ3T+lhZG3CXqg RbH4jFoBgWobY9aTe7LjZEMA2FuVlhHqMkLYMMYPVSHzUdiR/QNyL5l4ycQ7u8SdBfuSqf8eCIi Eg6DHF8ymw2Ag+1BdnjRtizvHDzUVZsESHDOwIfag1d4Aa3k0UU6XGpPbKmVvH/hWMzT0tvQ/U2 gsAsUwnEmQKoNpg4jmyFmaCLcuFCuKIeRoTmRxABY5X4GZ6HCcLx/JyV0y6elg6BQla2eYTzTWO ixTRDysYRhOadnRTiw2FMVaGgVD6bGlozSvtxzP2bE9wrkuq5m2EgXj6iZQO4PwKoj/TGyLBZ/o JTLbt4io6oiDMKh1y+YMxOikcQDcL+0M2B0xfLDVSecuWGnG3qKCSy4fhDanHYdseBovZ/tKx30 xrAAUZLfoDY6Pi0hl8ee4ByhC2/G0fV6L29sWRnbW/yvWJfswFOfOBWXZULkaFO/peOErJDdLCe SztoX4WzawHFGTA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE 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,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:04:28 -0800 (PST) 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 */ + +#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