Skip to contentSkip to conversation

dt-bindings: mmc: fsl-imx-esdhc: change the pinctrl-names rule

PATCH In review [email protected] 3 participants 3 messages Aug 19, 2021 – Aug 24, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: mmc: fsl-imx-esdhc: change the pinctrl-names rule

From: Haibo Chen <[email protected]>

Change the pinctrl-names rule to cover all cases.

---
 .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml  | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml +11 -6
index d7c8e5880473..f04728145275 100644
@@ -124,12 +124,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
Signature · 1 line
2.17.1
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On Thu, 19 Aug 2021 at 14:14, <[email protected]> wrote:

From: Haibo Chen <[email protected]>

Change the pinctrl-names rule to cover all cases.

Applied for next, thanks!

Kind regards
Uffe

Quoted 35 lines
---
 .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml  | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml +11 -7
index d7c8e5880473..f04728145275 100644
@@ -124,12 +124,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
--

2.17.1