From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=65.21.61.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795794870; b=WHA6cWrbS1oleuGOSJEb3xQWnmeKUY7Hu5qEmGXJtzqNFoTj73/mODPU/6YxuzJBo2eJ Qi9hH1pVAjHMI1qpJ1H4YCeHt7+a+LVFG1WB4SxR62b6VjzdB/MRP36kEjJ3um+eq6QhW 8yJ+NOvFf1vDDGx0zdyWhDnQrNBMtOXKgdhN9hIZ3H/thT7lYaxQSWSAreXv1YQqWqlaM QnERlTBL6N0VbHLqWWn7fkbKzZ1k7swri+6dw2JN384Ju3o498QaqjZpSTvYyIUcUnocr wwvBIe4hwWF0agJXgv2wbbQGTYE91a4wqnxqBX5F1ST3fCq4TjVG1nH8pjkqtBLzwkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795794870; h=DMARC-Filter:Message-ID:DKIM-Signature:Date:MIME-Version:User-Agent: From:Subject:To:Cc:References:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=SPY0tuFdVHQ7dfLz2WNvVjcy7URWN4vydjod081DBsQ=; b=zCM/w4TfshWgQFAu23YjcfqDSYJEbTXNr2me1bmKycvDZsGiuRsxoj1cVCfk1gCc8grL fjqZSc1e5LbkWnJ196Xr+p8JqqgBfF05AMtOov85H/VD8IwARvo36W4LgBn3JgaDJNKa2 gtUXosvv0urDilRI0oWoT0F6bt63gnwVvOm1hnCxckChw7TSHqWbNn2rShjL3m9vdI5Ai IbKGX52aoHgKEUBWsSVRJ7XBb1KiIK0RVmy+CETWV8W2lNGfShqN1T6evEDyzX5uGP78k 5Md/+tZ75UMI894xMSSqAgy+e3kOg9WWx4gl58tMc1Gky9nMCrpLCMrhA8MZmAvP1/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=aliel.fr; spf=pass smtp.mailfrom=aliel.fr; dkim=pass header.d=aliel.fr header.i=@aliel.fr header.a=rsa-sha256 header.s=courrier-s1 header.b=RN6aIDdV; arc=none smtp.remote-ip=65.21.61.41 Received: from courrier.aliel.fr (courrier.aliel.fr [65.21.61.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E43C9606A33A; Fri, 27 Nov 2026 15:54:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E43C9606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aliel.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aliel.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=aliel.fr header.i=@aliel.fr header.a=rsa-sha256 header.s=courrier-s1 header.b=RN6aIDdV Message-ID: <0b4f724f-eabd-4c31-ad1a-25ab5ad886ab@aliel.fr> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1795794861; bh=eq4MYrvq/ToRLquDKmYljBez1teYhq+T2UM45Ird1cI=; h=Date:From:Subject:To:Cc:References:In-Reply-To; b=RN6aIDdVUfsldjem/lBvO/YuGuppMEFMxBRI0FeZ8SbYPX/pTt73fyqnMcZJArL2g KQslF9ndJoXso9eghBaP9QV8QPyC8gzkjBdyHlgchm2pvZQ0F2Pi+cRZ88Wi8gZYCt rPdTTfHc+EI81PeJZorcfeYoPofseHnJ7uv0A2rI= Date: Fri, 27 Nov 2026 16:53:49 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Ronald Claveau Subject: Re: [PATCH v5 00/12] phy/drm: amlogic: Extract Meson HDMI TX PHY into a dedicated driver To: Neil Armstrong Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson References: <20261127-meson-drm-create-hdmitx-phy-v5-0-88c43eb95468@aliel.fr> <446fa440-1537-4b30-8429-4d72bb70029d@linaro.org> Content-Language: en-US In-Reply-To: <446fa440-1537-4b30-8429-4d72bb70029d@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/27/26 16:35, Neil Armstrong wrote: > On 11/27/26 16:27, Ronald Claveau via B4 Relay wrote: >> 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" >>    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: Rename the Meson8 HDMI TX PHY driver to be more SoC generic. >> - Patch 5: Add GXBB, GXL, GXM and G12A SoCs to the Meson HDMI TX PHY >>    driver, implementing the HDMI PHY configuration ops, along with the >>    temporary legacy creation helper. >> - Patch 6: Document the optional "phys" and properties in the >>    amlogic,meson-dw-hdmi binding. >> - Patch 7: Make meson-ee-pwrc power up the domain memories when the >>    domain is already on at probe time, as this is a prerequisite for >>    dropping the explicit write from meson_dw_hdmi >> - Patches 8-9: 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 10-12: 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 >> --- >> Changes in v5: >> - Add Patch 4: Rename Meson8 HDMI TX driver to prepare other SoCs >>                 integration. Martin's review. >> - Patch 5: Adapt the GXBB, GXL, GXM and G12A SoCs code to Patch 4. >> - Link to v4: https://patch.msgid.link/20261123-meson-drm-create- >> hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr >> >> Changes in v4: >> - Patch 2: Change commit title. Sashiko and Neil review. >> - Patch 4: Change the phy min_rate to 15.9 MHz mathematical limit. >>             Thanks to Sashiko's review. >> - Patch 8: Drop introduced double free with phy_destroy. >>             Add missing device_link_remove() >>             Change the device_link order and use prepare/complete in the >>             VPU drv for drm_mode_config_helper. Sashiko's review. >> - Link to v3: https://patch.msgid.link/20261121-meson-drm-create- >> hdmitx-phy-v3-0-f8f471788076@aliel.fr >> >> Changes in v3: >> - Patch 6: reuse meson_ee_pwrc_mem_power_up() in meson_ee_pwrc_on() >>    function. >> - Patch 8: revert the code to v1 and add a device link to solve >>    suspend/resume order in dpm_list. >> - Link to v2: https://patch.msgid.link/20261120-meson-drm-create- >> hdmitx-phy-v2-0-93d622d9bb07@aliel.fr >> >> Changes in v2: >> - Patches 5,9-11: Remove unecessary "phy-names" for uniq phy. >>                    Thanks to Neil's feedback. >> - Add Patch 6: Power up the memories when the domain is already on. >>                 From Sashiko's feedback. >> - Patch 4: Add a 600MHz max_rate and a 25Mhz min_rate check and >>             exclude PHY_HDMI_MODE_FRL for phy_validate. Thx Sashiko. >> - Patch 8: Move phy_init in dw_hdmi_phy_init and phy_exit >>             in dw_hdmi_phy_disable. From Sashiko review. >> - Link to v1: https://patch.msgid.link/20261117-meson-drm-create- >> hdmitx-phy-v1-0-9e0ac931381c@aliel.fr >> >> To: Rob Herring >> To: Krzysztof Kozlowski >> To: Conor Dooley >> To: Neil Armstrong >> To: Kevin Hilman >> To: Jerome Brunet >> To: Martin Blumenstingl >> To: Vinod Koul >> To: Manivannan Sadhasivam >> To: Ronald Claveau >> To: David Airlie >> To: Simona Vetter >> To: Maarten Lankhorst >> To: Maxime Ripard >> To: Thomas Zimmermann >> To: Ulf Hansson >> Cc: devicetree@vger.kernel.org >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-amlogic@lists.infradead.org >> Cc: linux-kernel@vger.kernel.org >> Cc: linux-phy@lists.infradead.org >> Cc: dri-devel@lists.freedesktop.org >> Cc: linux-pm@vger.kernel.org >> >> --- >> Ronald Claveau (12): >>        dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible >> matching in conditionals >>        dt-bindings: phy: amlogic: document the Amlogic Meson HDMI TX PHY >>        dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add hdmi-phy >> child node >>        phy: amlogic: rename Meson8 HDMI TX PHY driver to be SoC-generic >>        phy: amlogic: meson-hdmi-tx: Add GXBB, GXL, GXM and G12A support >>        dt-bindings: display: amlogic,meson-dw-hdmi: Add phys >>        pmdomain: amlogic: meson-ee-pwrc: power up memories for boot- >> enabled domains >>        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    |   4 + >>   .../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  |   6 + >>   arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi        |   6 + >>   arch/arm64/boot/dts/amlogic/meson-gxl.dtsi         |   6 + >>   drivers/gpu/drm/meson/Kconfig                      |   2 + >>   drivers/gpu/drm/meson/meson_drv.c                  |  16 +- >>   drivers/gpu/drm/meson/meson_dw_hdmi.c              | 223 +++++------- >>   drivers/phy/amlogic/Kconfig                        |   9 +- >>   drivers/phy/amlogic/Makefile                       |   2 +- >>   drivers/phy/amlogic/phy-meson-hdmi-tx.c            | 391 +++++++++++ >> ++++++++++ >>   drivers/phy/amlogic/phy-meson8-hdmi-tx.c           | 160 --------- >>   drivers/pmdomain/amlogic/meson-ee-pwrc.c           |  19 +- >>   include/linux/phy/phy-meson-hdmi-tx.h              |  19 + >>   15 files changed, 627 insertions(+), 312 deletions(-) >> --- >> base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b >> change-id: 20261115-meson-drm-create-hdmitx-phy-4ac40a654d09 >> >> Best regards, >> -- >> Ronald Claveau > > We need to get the bindings reviewed first, then PHY drivers can be merged. > > Afterwards I'll merge the DRM patch on the next cycle, then finally the DT. > > Neil Thanks for laying out the timeline, that works great for me. -- Best regards, Ronald