linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/15] drm/msm/hdmi & phy: use generic PHY framework
@ 2023-05-23 12:14 Dmitry Baryshkov
  2023-05-23 12:14 ` [PATCH 01/15] phy: Add HDMI configuration options Dmitry Baryshkov
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: Dmitry Baryshkov @ 2023-05-23 12:14 UTC (permalink / raw)
  To: Rob Clark, Sean Paul, Abhinav Kumar, Marijn Suijten, Vinod Koul,
	Kishon Vijay Abraham I
  Cc: Philipp Zabel, Stephen Boyd, David Airlie, Daniel Vetter,
	Bjorn Andersson, Konrad Dybcio, linux-arm-msm, dri-devel,
	freedreno, linux-phy

The MSM HDMI PHYs have been using the ad-hoc approach / API instead of
using the generic API framework. Move all the PHYs to
drivers/phy/qualcomm and rework them to use generic PHY framework. This
way all the QMP-related code is kept close. Also in future this will
allow us to use a common set of functions to setup msm8974 HDMI PHY,
28nm DSI PHY and apq8964 SATA PHY (which all use UNI PLL internally).

This also causes some design changes. Currently on msm8996 the HDMI PLL
implements clock's set_rate(), while other HDMI PHY drivers used the
ad-hoc PHY API for setting the PLL rate (this includes in-tree msm8960
driver and posted, but not merged, msm8974 driver). This might result in
the PLL being set to one rate, while the rest of the PHY being tuned to
work at another rate. Adopt the latter idea and always use
phy_configure() to tune the PHY and set the PLL rate.

Dmitry Baryshkov (14):
  phy: qualcomm: add QMP HDMI PHY driver
  phy: qualcomm: add MSM8960 HDMI PHY driver
  phy: qualcomm: add MSM8x60 HDMI PHY driver
  phy: qcom: apq8064-sata: extract UNI PLL register defines
  phy: qcom-uniphy: add more registers from display PHYs
  phy: qualcomm: add MSM8974 HDMI PHY driver
  drm/msm/hdmi: move the alt_iface clock to the hpd list
  drm/msm/hdmi: simplify extp clock handling
  drm/msm/hdmi: correct indentation of HDMI bridge functions
  drm/msm/hdmi: switch to atomic_pre_enable/post_disable
  drm/msm/hdmi: set infoframes on all pre_enable calls
  drm/msm/hdmi: pair msm_hdmi_phy_powerup with msm_hdmi_phy_powerdown
  drm/msm/hdmi: switch to generic PHY subsystem
  drm/msm/hdmi: drop old HDMI PHY code

Sandor Yu (1):
  phy: Add HDMI configuration options

 drivers/gpu/drm/msm/Makefile                  |   6 -
 drivers/gpu/drm/msm/hdmi/hdmi.c               |  86 +-
 drivers/gpu/drm/msm/hdmi/hdmi.h               |  79 +-
 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c        | 108 ++-
 drivers/gpu/drm/msm/hdmi/hdmi_phy.c           | 217 -----
 drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c      |  51 --
 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c      | 765 ------------------
 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c      | 141 ----
 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x74.c      |  44 -
 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c      | 458 -----------
 drivers/phy/qualcomm/Kconfig                  |  40 +
 drivers/phy/qualcomm/Makefile                 |   8 +
 drivers/phy/qualcomm/phy-qcom-apq8064-sata.c  |  23 +-
 drivers/phy/qualcomm/phy-qcom-hdmi-msm8960.c  | 744 +++++++++++++++++
 drivers/phy/qualcomm/phy-qcom-hdmi-msm8974.c  | 531 ++++++++++++
 drivers/phy/qualcomm/phy-qcom-hdmi-msm8x60.c  | 353 ++++++++
 drivers/phy/qualcomm/phy-qcom-qmp-hdmi-base.c | 184 +++++
 .../phy/qualcomm/phy-qcom-qmp-hdmi-msm8996.c  | 441 ++++++++++
 drivers/phy/qualcomm/phy-qcom-qmp-hdmi.h      |  75 ++
 drivers/phy/qualcomm/phy-qcom-uniphy.h        |  65 ++
 include/linux/phy/phy-hdmi.h                  |  33 +
 include/linux/phy/phy.h                       |   7 +-
 22 files changed, 2562 insertions(+), 1897 deletions(-)
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_phy.c
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x74.c
 delete mode 100644 drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-hdmi-msm8960.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-hdmi-msm8974.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-hdmi-msm8x60.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-hdmi-base.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-hdmi-msm8996.c
 create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-hdmi.h
 create mode 100644 drivers/phy/qualcomm/phy-qcom-uniphy.h
 create mode 100644 include/linux/phy/phy-hdmi.h

-- 
2.39.2


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-07-11  7:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23 12:14 [PATCH 00/15] drm/msm/hdmi & phy: use generic PHY framework Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 01/15] phy: Add HDMI configuration options Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 02/15] phy: qualcomm: add QMP HDMI PHY driver Dmitry Baryshkov
2023-07-11  7:23   ` Vinod Koul
2023-05-23 12:14 ` [PATCH 03/15] phy: qualcomm: add MSM8960 " Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 04/15] phy: qualcomm: add MSM8x60 " Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 05/15] phy: qcom: apq8064-sata: extract UNI PLL register defines Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 06/15] phy: qcom-uniphy: add more registers from display PHYs Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 07/15] phy: qualcomm: add MSM8974 HDMI PHY driver Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 08/15] drm/msm/hdmi: move the alt_iface clock to the hpd list Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 09/15] drm/msm/hdmi: simplify extp clock handling Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 10/15] drm/msm/hdmi: correct indentation of HDMI bridge functions Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 11/15] drm/msm/hdmi: switch to atomic_pre_enable/post_disable Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 12/15] drm/msm/hdmi: set infoframes on all pre_enable calls Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 13/15] drm/msm/hdmi: pair msm_hdmi_phy_powerup with msm_hdmi_phy_powerdown Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 14/15] drm/msm/hdmi: switch to generic PHY subsystem Dmitry Baryshkov
2023-05-23 12:14 ` [PATCH 15/15] drm/msm/hdmi: drop old HDMI PHY code Dmitry Baryshkov
2023-05-23 12:49 ` [PATCH 00/15] drm/msm/hdmi & phy: use generic PHY framework Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).