dt-bindings: mfd: Ensure 'syscon' has a more specific compatible
authorRob Herring <robh@kernel.org>
Wed, 10 Jun 2020 19:04:18 +0000 (13:04 -0600)
committerRob Herring <robh@kernel.org>
Tue, 30 Jun 2020 15:37:36 +0000 (09:37 -0600)
Using 'syscon' alone should be avoided as compatible strings should be
specific enough to identify the exact set of registers contained. Update
the schema to ensure at least 2 compatible strings are present.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/mfd/syscon.yaml

index 19bdaf7..af7a680 100644 (file)
@@ -43,7 +43,8 @@ properties:
 
       - contains:
           const: syscon
-        additionalItems: true
+        minItems: 2
+        maxItems: 4  # Should be enough
 
   reg:
     maxItems: 1