dt-bindings: mmc: fsl-imx-esdhc: change the pinctrl-names rule
authorHaibo Chen <haibo.chen@nxp.com>
Thu, 19 Aug 2021 11:52:18 +0000 (19:52 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 14:57:58 +0000 (16:57 +0200)
Change the pinctrl-names rule to cover all cases.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1629373938-9226-1-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

index 17086f6..a3412f2 100644 (file)
@@ -116,12 +116,17 @@ properties:
       - const: per
 
   pinctrl-names:
-    minItems: 1
-    items:
-      - const: default
-      - const: state_100mhz
-      - const: state_200mhz
-      - const: sleep
+    oneOf:
+      - minItems: 3
+        items:
+          - const: default
+          - const: state_100mhz
+          - const: state_200mhz
+          - const: sleep
+      - minItems: 1
+        items:
+          - const: default
+          - const: sleep
 
 required:
   - compatible