From: Fabio Estevam Date: Fri, 25 Oct 2024 00:41:58 +0000 (-0300) Subject: dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number X-Git-Tag: v6.13-rc1~140^2~28^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=644cb51e923ef296aef356dd6a5485c9546b486f;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Unlike the other i.MX devices, i.MX7 has only two anatop interrupts. Add logic that contemplates such case to fix the following dt-schema warning: anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short Signed-off-by: Fabio Estevam Reviewed-by: Alexander Stein Acked-by: Rob Herring (Arm) Signed-off-by: Shawn Guo --- diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml index c4ae4f28422b2..ae708a658d522 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml @@ -36,6 +36,7 @@ properties: - description: Temperature sensor event - description: Brown-out event on either of the support regulators - description: Brown-out event on either the core, gpu or soc regulators + minItems: 2 tempmon: type: object @@ -52,6 +53,23 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx7d-anatop + then: + properties: + interrupts: + maxItems: 2 + else: + properties: + interrupts: + minItems: 3 + maxItems: 3 + additionalProperties: false examples: