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:47:27 EST


On 12/2/26 15:30, Krzysztof Kozlowski wrote:
On Wed, Dec 02, 2026 at 08:57:33AM +0100, Neil Armstrong wrote:
Hi,

On 12/1/26 21:12, Ronald Claveau via B4 Relay wrote:
From: Ronald Claveau <linux-kernel-dev@xxxxxxxx>

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.

There's multiple PHYs in the HHI register zone, you can't consider the HHI zone
exposes an HDMI PHY and keep the dsi phy subnodes.

Heh, bindings should be rather complete so we see entire picture... but
there is a phy already, so what is that for? DSI phys you speak of?

HDMI, DSI and CSI phy




I disagree with Rob, the HDMI phy subnode is a continuity of the
actual bindings design, the current solution is wrong.

The existing phy subnode is wrong, because it has no resources.

Well, it's here already



In subtance, HHI is a "system configuration register zone" which is
mix of registers for core system functions like clocks, power domains,

And mix of registers means it is not a separate, dedicated and re-usable
device. If it was a device re-usable among different blocks/SoCs, then
it would have a fixed/constrained reosurces like reg. There is plenty of
such examples in case of PMICs (which are also modelled as MFD): they
consist of main regulator function and RTC/32khz clocks often on their
own I2C address.

If your addressing is mixed up with parent and you have no single other
resource, then IT IS the parent device.


DSI analog PHY, HDMI phy (and plenty of other core registers).

As of today, the bindings is:

hhi: system-controller@0 {
compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
reg = <0 0 0 0x400>;

clkc: clock-controller {
compatible = "amlogic,g12a-clkc";
#clock-cells = <1>;
...
};

pwrc: power-controller {
compatible = "amlogic,meson-g12a-pwrc";
#power-domain-cells = <1>;
...
};

mipi_analog_dphy: phy {
compatible = "amlogic,g12a-mipi-dphy-analog";
#phy-cells = <0>;
...

Nothing more for the phy, at least according to DTS example.

Can you elaborate ?


Best regards,
Krzysztof