[PATCH v6 02/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells

From: Ronald Claveau via B4 Relay

Date: Tue Dec 01 2026 - 15:13:55 EST


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.

Signed-off-by: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
---
.../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml
index 285edac4c082..f277e22a98ff 100644
--- a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml
+++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml
@@ -14,6 +14,9 @@ properties:
items:
- enum:
- amlogic,meson-hhi-sysctrl
+ - amlogic,meson-g12a-hhi-sysctrl
+ - amlogic,meson-gxl-hhi-sysctrl
+ - amlogic,meson-gxbb-hhi-sysctrl
- amlogic,meson-gx-hhi-sysctrl
- amlogic,meson-gx-ao-sysctrl
- amlogic,meson-axg-hhi-sysctrl
@@ -36,6 +39,12 @@ properties:
phy:
type: object

+ "#phy-cells":
+ const: 0
+ description:
+ Present on SoCs where the HDMI TX PHY is controlled through the
+ HHI registers. The system controller acts as the PHY provider.
+
allOf:
- if:
properties:
@@ -50,12 +59,16 @@ allOf:

pinctrl: false
phy: false
+ "#phy-cells": false

- if:
properties:
compatible:
contains:
enum:
+ - amlogic,meson-g12a-hhi-sysctrl
+ - amlogic,meson-gxl-hhi-sysctrl
+ - amlogic,meson-gxbb-hhi-sysctrl
- amlogic,meson-gx-hhi-sysctrl
- amlogic,meson-axg-hhi-sysctrl
then:
@@ -80,12 +93,14 @@ allOf:

power-controller: false
phy: false
+ "#phy-cells": false

- if:
properties:
compatible:
contains:
enum:
+ - amlogic,meson-g12a-hhi-sysctrl
- amlogic,meson-gx-hhi-sysctrl
then:
properties:
@@ -104,6 +119,7 @@ allOf:
oneOf:
- $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml
- $ref: /schemas/phy/amlogic,meson-axg-mipi-pcie-analog.yaml
+ "#phy-cells": false

required:
- compatible
@@ -124,6 +140,7 @@ examples:
sysctrl: system-controller@0 {
compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
reg = <0 0x400>;
+ #phy-cells = <0>;

clock-controller {
compatible = "amlogic,gxbb-clkc";

--
2.56.1