Re: [PATCH v6 01/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals
From: Krzysztof Kozlowski
Date: Wed Dec 02 2026 - 09:24:56 EST
On Tue, Dec 01, 2026 at 09:12:49PM +0100, Ronald Claveau wrote:
> The conditional schemas select on "compatible" with a bare enum. On a
> list such as:
>
> compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
>
> an enum applied to the whole array only matches single-entry lists, so
> the if: blocks never match as intended and the per-variant constraints
> are not applied reliably.
>
> Wrap the enums in "contains" so that the conditions match on any entry
> of the compatible list.
>
> Doing so exposes the "phy" child node of "amlogic,meson-gx-hhi-sysctrl":
> it was forbidden (phy: false), but some DT legitimately describe an
> "amlogic,g12a-mipi-dphy-analog" PHY node under this system controller,
> which resulted in dtbs_check warnings such as:
>
> system-controller@0 (amlogic,meson-gx-hhi-sysctrl): False schema does
> not allow {'compatible': ['amlogic,g12a-mipi-dphy-analog'],
> '#phy-cells': 0, ...}
>
> Allow the phy child node for amlogic,meson-gx-hhi-sysctrl by referencing
> the amlogic,g12a-mipi-dphy-analog binding instead of rejecting it.
>
> Fixes: 4d023beb3998 ("dt-bindings: soc: amlogic: document System Control registers")
> Fixes: 960a4140ade8 ("dt-bindings: soc: amlogic,meson-gx-hhi-sysctrl: Document the System Control registers found on early Meson SoC")
> Signed-off-by: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
> ---
> .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 32 +++++++++++++---------
> 1 file changed, 19 insertions(+), 13 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof