]> Git Repo - linux.git/commitdiff
dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
authorFabio Estevam <[email protected]>
Fri, 25 Oct 2024 00:41:58 +0000 (21:41 -0300)
committerShawn Guo <[email protected]>
Sat, 2 Nov 2024 03:20:58 +0000 (11:20 +0800)
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 <[email protected]>
Reviewed-by: Alexander Stein <[email protected]>
Acked-by: Rob Herring (Arm) <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml

index c4ae4f28422b201fd6a3d920e761643e408a110b..ae708a658d52238314940bea0903e604c97caa36 100644 (file)
@@ -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:
This page took 0.058941 seconds and 4 git commands to generate.