Re: [PATCH v6 02/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells
From: Neil Armstrong
Date: Thu Dec 03 2026 - 13:49:30 EST
On 12/2/26 15:25, Krzysztof Kozlowski wrote:
On Tue, Dec 01, 2026 at 09:12:50PM +0100, Ronald Claveau wrote:
The HDMI TX PHY found on GXBB, GXL, GXM and G12A SoCs is controlled
through registers of the HHI system controller and has no resources of
its own. Instead of describing it as a child node, let the HHI system
controller act as the PHY provider, so that the HDMI TX controller can
reference it with "phys = <&sysctrl>". The PHY itself is instantiated
by the meson-gx-hhi-sysctrl driver as an auxiliary device.
Add the "#phy-cells" property (const 0) and forbid it for the other
system controller variants. Add it to the example.
The HDMI TX PHY registers differ between SoC families, so the driver
needs to know which family it is running on. Add SoC-specific
compatibles (amlogic,meson-gxbb-hhi-sysctrl, amlogic,meson-gxl-hhi-sysctrl,
amlogic,meson-g12a-hhi-sysctrl) to select the PHY variant.
Signed-off-by: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
---
.../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
I disagree, this is messed-up, you can have the top HHI exposing the HDMI
phy and have a subnode for the DSI PHY, and there's a CSI PHY which is also
present in this pile of registers.
So either we move to `#phy-cells = <1>` and a single driver can register all the
PHYs and we also register the DSI phy to the subnode and mark it as deprecated,
or we add the HDMI phy as subnode like the DSI phy.
Neil
Best regards,
Krzysztof