Message ID | 20230208180020.2761766-3-abel.vesa@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3601208wrn; Wed, 8 Feb 2023 10:01:45 -0800 (PST) X-Google-Smtp-Source: AK7set+PeWPGWQHF6N0PpxJk76bTWYn4fvr/5n6sgRbW+TohQJxJ94FDKk5jTWgmO5Wu26oLCKdm X-Received: by 2002:a17:90a:a66:b0:231:2571:d035 with SMTP id o93-20020a17090a0a6600b002312571d035mr795128pjo.4.1675879305597; Wed, 08 Feb 2023 10:01:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675879305; cv=none; d=google.com; s=arc-20160816; b=ZmzB2baEoguY6HAJk+ILGj6on4V/dudJGKRQmgNNNaKsIXzwAx157PPLzEO1rrHQSl cdFJ/l7tbupDZX3Y/GlWoZeMg0xMiBW5gVL9rFQbD7UUugNGSsy+LBN+Q8ZQBYIhXyKL 1C2vTvRaNWMGo8Y0YW8aLeDwF1bcxAoah+Nuw/PkrhsaAU0w/18SSjP5Q31GneRgiWAm 1gzwxxy2roJ1pIR7OJHm2TFALbmX3tWgmu2VfaPT6eJODlQXxDUAzCQn4l4JmuiDigP4 LHKHO7bW8Lz2kqxRKNr+rsxYlHHrbs8C0bJQkwb+68GDbfXwcm3ADGtdreafjfO+b7Es ZKPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NuslcVzm4ovVkZpIesuPA6j9ljtQBkOK1Q3oSb91/SU=; b=UELulMF4a5AcOpmGQnyEYjVr9KiqGE2RVFjO3uYBZRuJDEUSOH90rFZs/KZpOz07jV QXgvA1Exa/YYuZoHz3UUS0b4Z3U8W4JjLPjP/wz3CWK62YNLiEDZI+CPaQo9QAoIheyy BE6PLE+n9C3s6XPdIaFeZVuFk+qxy9vvSiyMtnIiHURIclWffesJ4osMvZ6AkvePMmES qlabQqvjtMJlqZlcMelauBFktpeZF6x5w+QCPjH2y8ne3wyMklUPV51i/y78tDHJLZMe SHUCbBpoqJeR26nf7+bjEFKpRMtgd9lgwpD8rP3nzYuJ1tlTJl/R2VvnQUX3vupuDGW4 rRww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fVGhN1GC; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v6-20020a17090a0c8600b002308d9212d2si2685139pja.35.2023.02.08.10.01.31; Wed, 08 Feb 2023 10:01:45 -0800 (PST) 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=@linaro.org header.s=google header.b=fVGhN1GC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231633AbjBHSA7 (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 13:00:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbjBHSAw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 13:00:52 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C00B51C48 for <linux-kernel@vger.kernel.org>; Wed, 8 Feb 2023 10:00:51 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id c4-20020a1c3504000000b003d9e2f72093so2076835wma.1 for <linux-kernel@vger.kernel.org>; Wed, 08 Feb 2023 10:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NuslcVzm4ovVkZpIesuPA6j9ljtQBkOK1Q3oSb91/SU=; b=fVGhN1GCVrZm1IcBbu5zfUziHCoDF5aJlvM4pA5UE6nK2j+kOYjAndUcaCLfzsyXNp EdEBPk6YixeQnkXDCf6fAiDauXY94bl5Q5rolcYF71cygHoLFTERE7+jzV4dCukV3yID S/H9ub9MMiM1pIuraqGiH2Gf20c++x5Y+jzc1yu6Kd3sw9hFVu03y24PnDUE3DFhNGK1 ln1fnea/yBkg7qgBBq0n9V0RufqmmqR0xD/KYzFCge+UgCefDqa1pT6pKnA4cPpz0yCU i1ucHcgTms6iDOXr2xpNy1yppQr5MwEDkiPaU5hiY2oN9SMlZGlM4UHQNiuuey+1d29L dt0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NuslcVzm4ovVkZpIesuPA6j9ljtQBkOK1Q3oSb91/SU=; b=s+M3VxMIjU3sXsBLrcofNA5nXI+EL9HQOSXIfyVZ0ypIrcxQnxDV6n3zxSaWJ20Dj6 I3J7E/1brjUHilwhTKx19cZvme/9eHQXHopAQ7QTlO7PnLtPygsVYFtppIRf9fc0N65E 4HcKqFAl2zytMC9ll+4ApgSW+NdMIkcLfUpp2umaJVp40Fnke+RHZudYnT+6zsF4syWY A/z/sqvSJ1cDufnltKueM5RoVURCXWHioTFjRbpjtX4IxkbhcBwiS4Q5b3mzubWZq2da DggpfD5JyZE3+ipI1EB2pM8+vviZtQrXcWnXtsb6T4OJmAy5+IjgoSbrUlYHtvz8IfwN /ahw== X-Gm-Message-State: AO0yUKXMh5agdFJehm5yVs58VzOw19nHVqoVhVULYeobMRkT9a2oljgv HSMt/lrHZxAXONEMczjMSdM4Ig== X-Received: by 2002:a05:600c:a295:b0:3da:1e35:dfec with SMTP id hu21-20020a05600ca29500b003da1e35dfecmr7399010wmb.4.1675879250072; Wed, 08 Feb 2023 10:00:50 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id k20-20020a05600c169400b003dc54eef495sm2370286wmn.24.2023.02.08.10.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:00:49 -0800 (PST) From: Abel Vesa <abel.vesa@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kw@linux.com>, Bjorn Helgaas <bhelgaas@google.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Lorenzo Pieralisi <lpieralisi@kernel.org>, "vkoul@kernel.org" <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Manivannan Sadhasivam <mani@kernel.org>, Johan Hovold <johan+linaro@kernel.org> Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Subject: [PATCH v9 02/11] phy: qcom-qmp: pcs: Add v6 register offsets Date: Wed, 8 Feb 2023 20:00:11 +0200 Message-Id: <20230208180020.2761766-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230208180020.2761766-1-abel.vesa@linaro.org> References: <20230208180020.2761766-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757286818415681560?= X-GMAIL-MSGID: =?utf-8?q?1757286818415681560?= |
Series |
sm8550: Add PCIe HC and PHY support
|
|
Commit Message
Abel Vesa
Feb. 8, 2023, 6 p.m. UTC
The new SM8550 SoC bumps up the HW version of QMP phy to v6 for USB, UFS and PCIE g3x2. Add the new PCS offsets in a dedicated header file. Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- The v8 of this patch is: https://lore.kernel.org/all/20230206212619.3218741-3-abel.vesa@linaro.org/ Changes since v8: * none Changes since v7: * none Changes since v6: * none Changes since v5: * none Changes since v4: * none Changes since v3: * added Dmitry's R-b tag Changes since v2: * none Changes since v1: * split all the offsets into separate patches, like Vinod suggested drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h | 16 ++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp.h | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h new file mode 100644 index 000000000000..18c4a3abe590 --- /dev/null +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2023, Linaro Limited + */ + +#ifndef QCOM_PHY_QMP_PCS_V6_H_ +#define QCOM_PHY_QMP_PCS_V6_H_ + +/* Only for QMP V6 PHY - USB/PCIe PCS registers */ +#define QPHY_V6_PCS_REFGEN_REQ_CONFIG1 0xdc +#define QPHY_V6_PCS_RX_SIGDET_LVL 0x188 +#define QPHY_V6_PCS_RATE_SLEW_CNTRL1 0x198 +#define QPHY_V6_PCS_EQ_CONFIG2 0x1e0 +#define QPHY_V6_PCS_PCS_TX_RX_CONFIG 0x1d0 + +#endif diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.h b/drivers/phy/qualcomm/phy-qcom-qmp.h index a63a691b8372..80e3b5c860b6 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.h +++ b/drivers/phy/qualcomm/phy-qcom-qmp.h @@ -38,6 +38,8 @@ #include "phy-qcom-qmp-pcs-v5_20.h" +#include "phy-qcom-qmp-pcs-v6.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