dt-bindings: arm: stm32: Add compatibles for syscon nodes
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Fri, 3 Jul 2020 09:55:16 +0000 (11:55 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 21 Jul 2020 08:39:11 +0000 (10:39 +0200)
Since commit ad440432d1f9 ("dt-bindings: mfd: Ensure 'syscon' has a more specific compatible")
it is required to provide at least 2 compatibles string for syscon node.
This patch document the missing compatibles for stm32 SoCs.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml

index cf5db5e..6f1cd01 100644 (file)
@@ -16,6 +16,9 @@ properties:
       - items:
           - enum:
               - st,stm32mp157-syscfg
+              - st,stm32mp151-pwr-mcu
+              - st,stm32-syscfg
+              - st,stm32-power-config
           - const: syscon
 
   reg:
@@ -27,7 +30,16 @@ properties:
 required:
   - compatible
   - reg
-  - clocks
+
+if:
+  properties:
+    compatible:
+      contains:
+        enum:
+          - st,stm32mp157-syscfg
+then:
+  required:
+    - clocks
 
 additionalProperties: false