From: neil.armstrong@linaro.org
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Dmitry Baryshkov <lumag@kernel.org>, Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org,
linux-phy@lists.infradead.org,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: Re: [PATCH v4 2/5] phy: qcom: apq8064-sata: extract UNI PLL register defines
Date: Thu, 22 May 2025 09:23:09 +0200 [thread overview]
Message-ID: <fa65b2bf-b76e-428a-8110-325a6191752e@linaro.org> (raw)
In-Reply-To: <20250520-fd-hdmi-phy-v4-2-fcbaa652ad75@oss.qualcomm.com>
On 20/05/2025 22:44, Dmitry Baryshkov wrote:
> From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>
> The "uni" PLL is shared between several PHYS: APQ8064's SATA,
> MSM8974/APQ8084 HDMI, MSM8916 DSI, MSM8974/APQ8084 DSI.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> drivers/phy/qualcomm/phy-qcom-apq8064-sata.c | 23 +-------------------
> drivers/phy/qualcomm/phy-qcom-uniphy.h | 32 ++++++++++++++++++++++++++++
> 2 files changed, 33 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c b/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c
> index cae290a6e19fcb7fd68fe6cd0229b9b00d47131c..dd9929429f9a0e2f265180e8d3f390451d91adde 100644
> --- a/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c
> +++ b/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c
> @@ -15,28 +15,7 @@
> #include <linux/platform_device.h>
> #include <linux/phy/phy.h>
>
> -/* PHY registers */
> -#define UNIPHY_PLL_REFCLK_CFG 0x000
> -#define UNIPHY_PLL_PWRGEN_CFG 0x014
> -#define UNIPHY_PLL_GLB_CFG 0x020
> -#define UNIPHY_PLL_SDM_CFG0 0x038
> -#define UNIPHY_PLL_SDM_CFG1 0x03C
> -#define UNIPHY_PLL_SDM_CFG2 0x040
> -#define UNIPHY_PLL_SDM_CFG3 0x044
> -#define UNIPHY_PLL_SDM_CFG4 0x048
> -#define UNIPHY_PLL_SSC_CFG0 0x04C
> -#define UNIPHY_PLL_SSC_CFG1 0x050
> -#define UNIPHY_PLL_SSC_CFG2 0x054
> -#define UNIPHY_PLL_SSC_CFG3 0x058
> -#define UNIPHY_PLL_LKDET_CFG0 0x05C
> -#define UNIPHY_PLL_LKDET_CFG1 0x060
> -#define UNIPHY_PLL_LKDET_CFG2 0x064
> -#define UNIPHY_PLL_CAL_CFG0 0x06C
> -#define UNIPHY_PLL_CAL_CFG8 0x08C
> -#define UNIPHY_PLL_CAL_CFG9 0x090
> -#define UNIPHY_PLL_CAL_CFG10 0x094
> -#define UNIPHY_PLL_CAL_CFG11 0x098
> -#define UNIPHY_PLL_STATUS 0x0C0
> +#include "phy-qcom-uniphy.h"
>
> #define SATA_PHY_SER_CTRL 0x100
> #define SATA_PHY_TX_DRIV_CTRL0 0x104
> diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy.h b/drivers/phy/qualcomm/phy-qcom-uniphy.h
> new file mode 100644
> index 0000000000000000000000000000000000000000..e5b79a4dc270f25d8979f51bf4acd6c76998032e
> --- /dev/null
> +++ b/drivers/phy/qualcomm/phy-qcom-uniphy.h
> @@ -0,0 +1,32 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +/*
> + * Copyright (c) 2014, The Linux Foundation. All rights reserved.
> + */
> +
> +#ifndef PHY_QCOM_UNIPHY_H
> +#define PHY_QCOM_UNIPHY_H
> +
> +/* PHY registers */
> +#define UNIPHY_PLL_REFCLK_CFG 0x000
> +#define UNIPHY_PLL_PWRGEN_CFG 0x014
> +#define UNIPHY_PLL_GLB_CFG 0x020
> +#define UNIPHY_PLL_SDM_CFG0 0x038
> +#define UNIPHY_PLL_SDM_CFG1 0x03c
> +#define UNIPHY_PLL_SDM_CFG2 0x040
> +#define UNIPHY_PLL_SDM_CFG3 0x044
> +#define UNIPHY_PLL_SDM_CFG4 0x048
> +#define UNIPHY_PLL_SSC_CFG0 0x04c
> +#define UNIPHY_PLL_SSC_CFG1 0x050
> +#define UNIPHY_PLL_SSC_CFG2 0x054
> +#define UNIPHY_PLL_SSC_CFG3 0x058
> +#define UNIPHY_PLL_LKDET_CFG0 0x05c
> +#define UNIPHY_PLL_LKDET_CFG1 0x060
> +#define UNIPHY_PLL_LKDET_CFG2 0x064
> +#define UNIPHY_PLL_CAL_CFG0 0x06c
> +#define UNIPHY_PLL_CAL_CFG8 0x08c
> +#define UNIPHY_PLL_CAL_CFG9 0x090
> +#define UNIPHY_PLL_CAL_CFG10 0x094
> +#define UNIPHY_PLL_CAL_CFG11 0x098
> +#define UNIPHY_PLL_STATUS 0x0c0
> +
> +#endif
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2025-05-22 7:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 20:44 [PATCH v4 0/5] drm/msm/hdmi & phy: use generic PHY framework Dmitry Baryshkov
2025-05-20 20:44 ` [PATCH v4 1/5] drm/msm/hdmi: switch to generic PHY subsystem Dmitry Baryshkov
2025-05-22 7:38 ` neil.armstrong
2025-05-22 12:39 ` Dmitry Baryshkov
2025-05-20 20:44 ` [PATCH v4 2/5] phy: qcom: apq8064-sata: extract UNI PLL register defines Dmitry Baryshkov
2025-05-22 7:23 ` neil.armstrong [this message]
2025-05-20 20:44 ` [PATCH v4 3/5] phy: qcom-uniphy: add more registers from display PHYs Dmitry Baryshkov
2025-05-22 7:23 ` neil.armstrong
2025-05-20 20:44 ` [PATCH v4 4/5] phy: qualcomm: add MSM8974 HDMI PHY support Dmitry Baryshkov
2025-05-20 20:44 ` [PATCH v4 5/5] drm/msm/registers: drop HDMI PHY register definitions Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa65b2bf-b76e-428a-8110-325a6191752e@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=kishon@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox