All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] phy/drm: amlogic: Extract Meson HDMI TX PHY into a dedicated driver
@ 2026-11-17 19:33 ` Ronald Claveau via B4 Relay
  0 siblings, 0 replies; 56+ messages in thread
From: Ronald Claveau @ 2026-11-17 19:33 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Vinod Koul,
	Manivannan Sadhasivam, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel,
	linux-phy, dri-devel, Ronald Claveau

This series moves the Amlogic Meson HDMI TX PHY handling (covering GXBB,
GXL, GXM, and G12A SoCs) out of the meson_dw_hdmi DRM driver and into a
dedicated generic PHY driver.

Until now, meson_dw_hdmi directly manipulated the HHI system controller
registers (HHI_HDMI_PHY_CNTL0..5) to configure analog parameters, toggle
resets, and manage power states, as well as manually ungating HDMI
clocks and power domains already described in the DT.

By extracting this logic into a standalone PHY driver under
drivers/phy/amlogic/:
- Hardware representation in the DT is cleaner, modeling the HDMI TX PHY
  as a child node of the HHI syscon referenced via standard "phys" and
  "phy-names" properties.
- The DRM bridge driver relies on the standard generic PHY API
  (phy_init, phy_configure, phy_power_on/off, phy_exit) rather than
  touching syscon registers directly.
- Legacy DTs lacking the "phys" property remain supported via a
  temporary fallback helper (meson_hdmi_phy_create_legacy) to preserve
  backward compatibility to be removed on next phase of component
  removal.

Overview of the series:
- Patches 1-3: Fix compatible matching in meson-gx-hhi-sysctrl bindings,
  add the new amlogic,meson-hdmi-tx-phy DT schema, and allow the
  "hdmi-phy" child node under the HHI syscon.
- Patch 4: Add the new Meson HDMI TX PHY driver implementing the HDMI
  PHY configuration ops, along with the temporary legacy creation
  helper.
- Patch 5: Document the optional "phys" and "phy-names" properties in
  the amlogic,meson-dw-hdmi binding.
- Patches 6-7: Clean up manual HHI clock/power-domain writes in
  meson_dw_hdmi (relying on runtime PM instead) and convert the driver
  to use the generic PHY framework.
- Patches 8-10: Add the "hdmi-phy" child node and wire up the "phys"
  phandle for G12, GXBB, and GXL Device Trees.

Tested on:
- Khadas VIM1 (GXL)
- dtbs_check and dt_binding_check run cleanly with no new warnings.

Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
---
Ronald Claveau (10):
      dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals
      dt-bindings: phy: amlogic: Add Meson HDMI TX PHY binding
      dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add hdmi-phy child node
      phy: amlogic: Add Meson HDMI TX PHY driver
      dt-bindings: display: amlogic,meson-dw-hdmi: Add phys and phy-names
      drm/meson: dw-hdmi: Drop manual HHI clock and memory PD setup
      drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY
      arm64: dts: amlogic: Add HDMI TX PHY node for G12
      arm64: dts: amlogic: Add HDMI TX PHY node for GXBB
      arm64: dts: amlogic: Add HDMI TX PHY node for GXL

 .../bindings/display/amlogic,meson-dw-hdmi.yaml    |   8 +
 .../bindings/phy/amlogic,meson-hdmi-tx-phy.yaml    |  33 +++
 .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml  |  43 ++-
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi  |   7 +
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi        |   7 +
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi         |   7 +
 drivers/gpu/drm/meson/Kconfig                      |   1 +
 drivers/gpu/drm/meson/meson_dw_hdmi.c              | 203 ++++++--------
 drivers/phy/amlogic/Kconfig                        |  11 +
 drivers/phy/amlogic/Makefile                       |   1 +
 drivers/phy/amlogic/phy-meson-hdmi-tx.c            | 309 +++++++++++++++++++++
 include/linux/phy/phy-meson-hdmi-tx.h              |  19 ++
 12 files changed, 513 insertions(+), 136 deletions(-)
---
base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b
change-id: 20261115-meson-drm-create-hdmitx-phy-4ac40a654d09

Best regards,
--  
Ronald Claveau <linux-kernel-dev@aliel.fr>


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

end of thread, other threads:[~2026-11-17 20:11 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 19:33 [PATCH 00/10] phy/drm: amlogic: Extract Meson HDMI TX PHY into a dedicated driver Ronald Claveau
2026-11-17 19:33 ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 01/10] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 02/10] dt-bindings: phy: amlogic: Add Meson HDMI TX PHY binding Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 03/10] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add hdmi-phy child node Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:39   ` sashiko-bot
2026-11-17 19:39     ` sashiko-bot
2026-11-17 19:39     ` sashiko-bot
2026-11-17 19:33 ` [PATCH 04/10] phy: amlogic: Add Meson HDMI TX PHY driver Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:58   ` sashiko-bot
2026-11-17 19:58     ` sashiko-bot
2026-11-17 19:58     ` sashiko-bot
2026-11-17 19:33 ` [PATCH 05/10] dt-bindings: display: amlogic,meson-dw-hdmi: Add phys and phy-names Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 06/10] drm/meson: dw-hdmi: Drop manual HHI clock and memory PD setup Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 20:11   ` sashiko-bot
2026-11-17 20:11     ` sashiko-bot
2026-11-17 20:11     ` sashiko-bot
2026-11-17 19:33 ` [PATCH 07/10] drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 20:03   ` sashiko-bot
2026-11-17 20:03     ` sashiko-bot
2026-11-17 20:03     ` sashiko-bot
2026-11-17 19:33 ` [PATCH 08/10] arm64: dts: amlogic: Add HDMI TX PHY node for G12 Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 09/10] arm64: dts: amlogic: Add HDMI TX PHY node for GXBB Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33 ` [PATCH 10/10] arm64: dts: amlogic: Add HDMI TX PHY node for GXL Ronald Claveau
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay
2026-11-17 19:33   ` Ronald Claveau via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.