From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795075100; b=zT1gbZc0RnZkM1xEH/9aQyYKkIdTgfnG/qFMyhhvL40aMOPZ4ZUiQYKJNvtE7Iz4qL5A AjSobnYPUyeBsq1TFBpKdQ79haWekyBBnXfS+dWGkwFmI/ly6HFDfpdxP1G7wsVlrYmwK dP/LZvUxIL0k9DVzVGP/03PNv5DhZnrhw123V3q7WdG0kd+szZwxyUkEmqCAoo56dqP5V IkD9zOKH5SYfNEy3/XjLkBx8GQr/gcUBu5IRW4eXy/fRJiieB2Mn4IJgyNvF0vT3ElihW AprN9X2pFtpjx6fY0NVJLKou20yuEEWuUstyV5OjLSLUxvlOCl/ki4x2Paq41/Z0MdQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795075100; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc: References:Content-Language:Autocrypt:Organization:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=pdQlb2CsGbWPGWlbFcx6D3f/AbXcJrTux+zl7o+qrMU=; b=c+CmGKvIWIoJRG8ZsgBY6qIveFG/7y6VQNLKVNcvrBwq1/FInKAmgSg/iRWHQmz/qKf3 YmjkK5te7iFlaYokPyRHu5yKB0zKHvoMYbSR2E3QMW9PAQ2gXSeNU+7ZIkjntJWr/018h r646kHJXjPFabEaKxi5qVsxopzFKJxAEvvSIXDh24eKZ4VYziy5/AfHKdyQJ+bxEChVcw qJcsPCN78PEqkczx6sRzfwO4c2WBTjc6UC6suBB712XC14kdY5iHuPESxeNz5baPWP1DX SHgNze7Y2QwP0lyTJKySmO7GQbZM7VMV/6pt9qu6pp6y4TVbgIW7I8kNBp3hHc0yj8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=obzcTnY7; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CDCD606A325 for ; Thu, 19 Nov 2026 07:58:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5CDCD606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=obzcTnY7 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bb55cda775so3989085e9.0 for ; Wed, 18 Nov 2026 23:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795075098; x=1795679898; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pdQlb2CsGbWPGWlbFcx6D3f/AbXcJrTux+zl7o+qrMU=; b=obzcTnY7fGwAiNjMoQONcwqMOC2Pz6h2x2/gdO9ehVt5BQgEwpHevwnoBeGRJ4ThQf EljRAFqrPCxntrGC3TSvkhA3+LAthBcvKwo9caK0Ju0PMWhiPvEB9l1y6yRovNOXkh6V lc8BL5oOBbtADVElfW5NDqGLF4HQjhzsZhUVThTCCNAQZkhFbdQxmm/u0xg4bdQjxh23 mxLZokUQmXpphYm1HJ85/1yT6lGPzddefcHJykK9ImBlqEvQl3Mvf3OZ1MjC5sWNOERD J3yJLBxBem/qodsZ01YZKO0PwQQQ6pNGqwSzYfRpTEcuv0U8lLYYIeC4pUVqF0DKyDYd e+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795075098; x=1795679898; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=pdQlb2CsGbWPGWlbFcx6D3f/AbXcJrTux+zl7o+qrMU=; b=EU6+YVieT1rhGCwE0g5AosMUbh9VQHKaBk2pxTMvgh8KpEMZMJn6QkLyyJWVjsEQJk Q7IRQXxjWqbRBSLrRiRi4L5s/gl/jOHAzx5zOGMxTw9BbMCZ57fQWFWxrDG7sxQ8h7bT NYb4sS4Vq5XAQp7XeZCPFiz3YlI1qudNkDyTAmmoPJK2/m8kvA+W7tLA8Y9QP3od75nb aDWhojtcE1eYllP27ZBZG4m7PgEGJz3MWmZut8vktYKbDqKg9PR6IKUcrCk4cEz1HvTr FYLRc2SluA/0yLwT6l31K8WXPtgRYGPW0wVmJU/CAOkZPbXdw2RCmd2cQ/zaAAq0kPAO iwlA== X-Forwarded-Encrypted: i=1; AL+hErGIaJwaNH13Dz+v2OQAzu+Z7/Do9vch/i5QmIK12zq/UQzLAYQ6RcW/g5lae3LQN2n/1sil6/Elog7nFlM=@vger.kernel.org X-Gm-Message-State: APuU4Z94g+KTJQlz2I8YzTIBN/xVKUU3+ZVh4qWDGYp2vUYpCfLSYRoW bWSavfbriwxOAEQgzE1mPwvpm9cUqY58q+5pQflqS2s27fNz0I/qPtt9bA0hqfL9mmA= X-Gm-Gg: AYBFou3QOur0D8z3BaAFlo54rknRYjtivoEWwPIkzg8CVxRW6ithGlqhfv/tv/uushM 0qaVPthOeaD+Mq9P8pVY4duYWyslLYOXb+ojuXoTJKypV9XPLncIcOEl7etrfXsdVzjOO4DkFiX 4RfhRSpsHXFFtjR9qe01L4v2YhfKfoRam8PSpfUB6kD+Ek+S66McmTgUhj9l3PO9YIFYqeFkiY3 X032BPL+yIMm/Z6JjOs9ts0y5c3+q26JPjHKx76Bv8e+tIZkkMdxXD9Ubwyi7XlFql1DOBzngwM Bo+kYBWM/vD2+9dOacrNMcRtzRzAge5E6KwCGcjdfCRz1NiSNJzTXp7yvoOrpQPXWdWjAXnZKZ1 edToL2lKIpvT21Lo7Ynmf237J6u3hOiZN5j6Z43k7UQKklsaG9FLjjmnZsQljEFWKmBkE1ZzVVx Su2q+xoTNwXsAPW3fQ/LHYV0nLwSW3W7D+Mn98bfYA+YHH/NYOEFYbhORRcBY6M7voOWm7+qcJr Q80e3/KJ6hqnXx8Zvq7IeMc0WqVYcIe9RdcWckDGAn/D7vklXTJTJEJaycEwbJqoaMgY9gz5IHH JuALDwWzzo9ofYVnJa+WDBFzJbipSwQ7HwgBuEuxSj5quzYbgO25vhewzLMRzSQB22eES5s/Hu3 TnxGZkC3+ X-Received: by 2002:a05:600c:4e86:b0:4a2:526b:d40f with SMTP id 5b1f17b1804b1-4bb8609ad6dmr6876015e9.0.1795075097389; Wed, 18 Nov 2026 23:58:17 -0800 (PST) Received: from ?IPV6:2a01:e0a:106d:1080:3611:76ad:c4e1:77e7? ([2a01:e0a:106d:1080:3611:76ad:c4e1:77e7]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8532f1a9sm15704175e9.3.2026.11.18.23.58.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Nov 2026 23:58:16 -0800 (PST) Message-ID: <04447713-32bb-46ff-8dd9-ba00bce186db@linaro.org> Date: Thu, 19 Nov 2026 08:58:15 +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: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH 00/10] phy/drm: amlogic: Extract Meson HDMI TX PHY into a dedicated driver To: linux-kernel-dev@aliel.fr 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, 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 References: <20261117-meson-drm-create-hdmitx-phy-v1-0-9e0ac931381c@aliel.fr> <51831581-525f-418c-86ea-3b5c6a80709b@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBA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Gmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/18/26 20:35, linux-kernel-dev@aliel.fr wrote: > On 11/18/26 13:38, Neil Armstrong wrote: >> Hi, >> >> On 11/17/26 20:33, 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" 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 >>> --- >>> 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 >> >> Overall it's very good, but I would've prefered a more sequencial move >> to the PHY driver, with an exact copy of the code and simplification >> towards the current PHY code. >> >> Anyway, the sashiko review comments are good, especially the one on >> patch 6 to keep the driver working on old DTs, sorry my bad... >> >> Neil > > Thanks for your feedback, I am analyzing/testing sashiko feedback. > > About the suspend/resume unbind/bind, I do not have any issue on my > side, but I can change the orders. > > About patch 6 and the old DTs, I will reintroduce them with the legacy > check. Do you know what would be a good timeline to add a require on > those elements and drop the fallback code ? > The problem is not necessarily the kernel DT but the U-Boot DT which could be used by the kernel. The U-Boot DT was using v6.2 before v2024.07 and after it uses the synchronized DT from Linux, which coincides with the v6.11 DT which contains the DT clocks changes. It seems most of the SBCs distro uses recent U-Boot versions, and some nice distro ships older U-Boot version, so it could break on those if a new kernel was deployed. But, U-Boot already set HHI_HDMI_CLK_CNTL and HHI_MEM_PD_REG0 when probing dw_hdmi since 2019.04 so considering that I thing the risk is super low. Add this to your commit message and send a v2. Neil