[PATCH v6 01/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals

Krzysztof Kozlowski krzk at kernel.org
Wed Dec 2 06:24:43 PST 2026


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 at 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 at aliel.fr>
> ---
>  .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml  | 32 +++++++++++++---------
>  1 file changed, 19 insertions(+), 13 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list