From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CAD4606A680 for ; Tue, 1 Dec 2026 20:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=0/5XbZDy; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Tb+S/kYO DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=NwLMeEwRrGJiXRdVWAZApTfUNPTRqPmkedIkMNrJkbY=; b=0/5XbZDyeiK3UX8ZAL4T6rBioI WaireaCRsP26XiEDuVUAgHa3N8ZKkJ3KR6mvoE/T+RtXm86Z5Oztx/h9iDU7xw7WAaZBvtT85bf73 Un9Rh0C/e4unyjUlUOM45snJo4+o1E84zc7ifUYAGsOsTqQjVVdyXkQFlOtBIe795tV1kYDpUbt0o w22JKqCPRey82HvDLZWqHhRdEgYTnTY2oL8BV0JSh1lyjnGA2g3CyKhhIF3eG/aF0h4ogRdT9Yp2/ QwBQ4on1PK/VyON5gGgHuncBbXxwV49yegLxPu6bGVCQsFYTfNGqiuiN+suxG0JS43D/0xAv0dmGV T/fAlKXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUES-00000009Jgw-0zHl; Tue, 01 Dec 2026 20:13:44 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUER-00000009Jgh-0xNs; Tue, 01 Dec 2026 20:13:43 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5CBD262253; Tue, 1 Dec 2026 20:13:42 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796156022; b=F6xw1XbOd3GkS1gS0QZFowNO+S+HPqHuaJ5NwG6/cv207JUCE1dzROcWkI5m+f3jvZH4 gqNx2mm7jhqNl9ywUNGVXz5/x6XXtQaYC5d29RM2+4hjJxh4nKOGEO8RAyAC48KwoIA8p a11YdSd6P+CqUcND2tHJzBfT8fdNPxZsyFJqEKa19ztyk37huVqf7pAu3cEtNb+Vluj6c gFMN3rb7oXcBk6sNEjnUcPdzD7aA/FbD3xXr78mcy5GdeSBI7bXP8Wi5x8KX4UGjD1P4N fR2k3Y8yz/QLDx5v0jR8/pgv2lfs8ciWItIZ3Op9tvDEP7N7vjsgUJV+9fpTa842iPg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796156022; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=s598CZVf8npgh92CTRu8VFKUrlJjHj6zUb0kOpGbdBA=; b=lpcUWEBh4Gq+0AzwMWUeePq57/up+UlGVNqQDBTMj8GE1OQHZnBj2dYIiNg6Vjck3PLA 2ct96XhiVaZIZsYeBDLPlh1OzewSFuCEPWvhbd42oWBjCwGALsC8zXG3+e+v3l22Be3K8 WqDUHWvX89IApzAMupkqiSHEOdjnyuMjizjgmtWBOgTz5h2OWPNDyUvjmZbGW1IIwwc9L U2wA3tUTLdBpTLtuHobK9cuWKPa8M5oEgYhRhikTob/bDRsOmFvxXsNvwjRrJmPtn4jJE 55wxvfXhUiK6ZX49Kd7RfC0UQQ6XjegYAhNnCP0aisjNu3lFZm8CRmxU2WT2qV7YKew== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 6DC611F00898; Tue, 1 Dec 2026 20:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796156022; bh=s598CZVf8npgh92CTRu8VFKUrlJjHj6zUb0kOpGbdBA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Tb+S/kYOyDpLby7TRx0QVRncMSa17P3TjujkS6D8Td5p/a24phINHDAwzc9KzMpA4 73RRrtQ/62JctDLZR1UwrGxC6NTOd0EFEXpP7OTaQ7LDvEGiseFAdU4hSfp+yUf4+f +qJIYizW2FxJACdfsEe9bAK5O1luXfyxHUkFII/ZXRvMBaH4dfjj5uDAkiQBmzjyOG V7COhx7zcPhG/Olm60FFm38V2k3QCOvDZ4RW/vgVJTLpUpZBwXTMRd9DvUCEr01Kt/ Htu5HoUVmcRWc54s1J2AcljUrG/10BPtwaFBJJi3Dl86FY9bRM+PxXhV7wJ3IEP7Su 12lpgCaoL4HmA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id E40844F057; Tue, 1 Dec 2026 20:13:40 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Tue, 01 Dec 2026 21:12:49 +0100 Subject: [PATCH v6 01/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals X-Archived-By: MIME-Version: 1.0 Message-Id: <20261201-meson-drm-create-hdmitx-phy-v6-1-5ccdf57a6cf5@aliel.fr> References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> In-Reply-To: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3505; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=qAkjMKNm9MnjQBVJmm1niIIW9tadW7TocfZF1+T0pUI=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQza/Vsy17fG2SW9en+46eCibz81gYXvwsq3qchmVvhuzp v5Z7FTaUcrCIMbFICumyNI/1/LEu8tHz3zdo54CM4eVCWQIAxenAEyE7Skjw7WUO+oqWkZT5d6U HzsvtPvx/uP65/af1PSKEoox65EV9WD4K/lJNvVcOosAu9f0j4s9/4kIihr3pa55NfNzaMxcBrF dvAA= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: linux-kernel-dev@aliel.fr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Ronald Claveau 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 --- .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) 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 f3a85c67ce8a..285edac4c082 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 @@ -40,8 +40,9 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-hhi-sysctrl + contains: + enum: + - amlogic,meson-hhi-sysctrl then: properties: clock-controller: @@ -53,9 +54,10 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-hhi-sysctrl - - amlogic,meson-axg-hhi-sysctrl + contains: + enum: + - amlogic,meson-gx-hhi-sysctrl + - amlogic,meson-axg-hhi-sysctrl then: properties: clock-controller: @@ -67,9 +69,10 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-ao-sysctrl - - amlogic,meson-axg-ao-sysctrl + contains: + enum: + - amlogic,meson-gx-ao-sysctrl + - amlogic,meson-axg-ao-sysctrl then: properties: clock-controller: @@ -81,17 +84,20 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-hhi-sysctrl + contains: + enum: + - amlogic,meson-gx-hhi-sysctrl then: properties: - phy: false + phy: + $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml - if: properties: compatible: - enum: - - amlogic,meson-axg-hhi-sysctrl + contains: + enum: + - amlogic,meson-axg-hhi-sysctrl then: properties: phy: -- 2.56.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic