mbox series

[0/9] drm/meson: dw-hdmi: clean-up

Message ID 20240730125023.710237-1-jbrunet@baylibre.com (mailing list archive)
Headers show
Series drm/meson: dw-hdmi: clean-up | expand

Message

Jerome Brunet July 30, 2024, 12:50 p.m. UTC
This patchset is a clean up of the Amlogic HDMI phy driver.

It is part of an effort to remove the use HHI syscon from the driver
and properly use frameworks, such as PD and clocks, instead of going
for an incorrectly global register region.

When this is done, it should be easier to remove the usage of the
component API from the Amlogic display drivers.

To be clear, this patchset does not go this far yet. It stops
short of making any controversial DT changes. To decouple the HDMI
phy driver and main DRM driver, allowing the PHY to get hold of its
registers, I believe a DT ABI break is inevitable. Ideally the
register region of the PHY within the HHI should provided, not the
whole HHI. That's pain for another day ...

The last 2 patches should not be applied yet. They depend on DT
changes which recently got applied. Time is needed for the DT changes
to sink in u-boot and distros, to avoid breaking platforms which don't
take DT from the kernel. These 2 patches are provided as a note that
this should happen eventually.

Jerome Brunet (9):
  drm/meson: hdmi: move encoder settings out of phy driver
  drm/meson: vclk: drop hdmi system clock setup
  drm/meson: dw-hdmi: use generic clock helpers
  drm/meson: dw-hdmi: fix incorrect comment in suspend
  drm/meson: dw-hdmi: split resets out of hw init.
  drm/meson: dw-hdmi: convert to regmap
  drm/meson: dw-hdmi: use matched data
  drm/meson: dw-hdmi: don't write power controller registers
  drm/meson: dw-hdmi: drop hdmi system clock setup

 drivers/gpu/drm/meson/meson_dw_hdmi.c      | 746 ++++++++++-----------
 drivers/gpu/drm/meson/meson_dw_hdmi.h      |  49 +-
 drivers/gpu/drm/meson/meson_encoder_hdmi.c |  16 +
 drivers/gpu/drm/meson/meson_vclk.c         |   8 -
 4 files changed, 389 insertions(+), 430 deletions(-)