diff mbox series

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

Message ID 1629373938-9226-1-git-send-email-haibo.chen@nxp.com
State New
Headers show
Series [v2] dt-bindings: mmc: fsl-imx-esdhc: change the pinctrl-names rule | expand

Commit Message

Bough Chen Aug. 19, 2021, 11:52 a.m. UTC
From: Haibo Chen <haibo.chen@nxp.com>

Change the pinctrl-names rule to cover all cases.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml  | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Comments

Rob Herring Aug. 24, 2021, 2:25 p.m. UTC | #1
On Thu, 19 Aug 2021 19:52:18 +0800, haibo.chen@nxp.com wrote:
> From: Haibo Chen <haibo.chen@nxp.com>
> 
> Change the pinctrl-names rule to cover all cases.
> 
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> ---
>  .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml  | 17 +++++++++++------
>  1 file changed, 11 insertions(+), 6 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
Ulf Hansson Aug. 24, 2021, 2:56 p.m. UTC | #2
On Thu, 19 Aug 2021 at 14:14, <haibo.chen@nxp.com> wrote:
>

> From: Haibo Chen <haibo.chen@nxp.com>

>

> Change the pinctrl-names rule to cover all cases.

>

> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>


Applied for next, thanks!

Kind regards
Uffe


> ---

>  .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml  | 17 +++++++++++------

>  1 file changed, 11 insertions(+), 6 deletions(-)

>

> diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

> index d7c8e5880473..f04728145275 100644

> --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

> +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

> @@ -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

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml
index d7c8e5880473..f04728145275 100644
--- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml
+++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml
@@ -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