Skip to contentSkip to conversation

dt-bindings: mmc: meson-gx: fix interrupt binding

PATCH Superseded Heiner Kallweit 3 participants 4 messages Feb 16, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mmc: meson-gx: fix interrupt binding

Reflect in the binding that the cd interrupt is optional, and add a description of the interrupts.

Fixes 09b31a610328 ("dt-bindings: mmc: meson-gx: support specifying cd interrupt")
---
 .../devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml         | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +4 -0
index c8c30300d..cd3f75821 100644
@@ -28,7 +28,11 @@ properties:
     maxItems: 1
 
   interrupts:
+    minItems: 1
     maxItems: 2
+    description:
+      mmc controller instance interrupt
+      optional card detect interrupt
 
   clocks:
     maxItems: 3
Signature · 1 line
2.39.1
maintainer
#1 lore raw
Quoted 14 lines · Heiner Kallweit

Reflect in the binding that the cd interrupt is optional, and add a description of the interrupts.

Fixes 09b31a610328 ("dt-bindings: mmc: meson-gx: support specifying cd interrupt")
---
  .../devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml         | 4 ++++
  1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +0 -0
index c8c30300d..cd3f75821 100644

Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml properties: · line 35

Quoted 8 lines
Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +4 -0
@@ -28,7 +28,11 @@ properties:
      maxItems: 1
 
    interrupts:
+    minItems: 1
      maxItems: 2
+    description:
+      mmc controller instance interrupt
+      optional card detect interrupt

I would instead write:

interrupts:
minItems: 1
items:
- description: mmc controller instance
- description: card detect

and drop maxItems.

Neil

Quoted 3 lines
Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +0 -0
    clocks:
      maxItems: 3
#2 lore raw
Quoted 9 lines · Neil Armstrong

Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml properties: · line 35

Quoted 6 lines

interrupts:

Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +4 -0
+    minItems: 1
      maxItems: 2
+    description:
+      mmc controller instance interrupt
+      optional card detect interrupt

I would instead write:

Quoted 7 lines

interrupts:
minItems: 1
items:
- description: mmc controller instance
- description: card detect

and drop maxItems.

+1

Best regards,
Krzysztof

#3 lore raw
In reply to Neil Armstrong
Quoted 25 lines · Neil Armstrong
Quoted 14 lines · Heiner Kallweit

Reflect in the binding that the cd interrupt is optional, and add a description of the interrupts.

Fixes 09b31a610328 ("dt-bindings: mmc: meson-gx: support specifying cd interrupt")

---
  .../devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml         | 4 ++++

  1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/mmc/amlogic,meson-gx-mmc.yaml +0 -0
index c8c30300d..cd3f75821 100644
@@ -28,7 +28,11 @@ properties:
Quoted 7 lines

      maxItems: 1
      interrupts:
+    minItems: 1
      maxItems: 2
+    description:
+      mmc controller instance interrupt
+      optional card detect interrupt

I would instead write:

Quoted 8 lines

interrupts:
  minItems: 1
  items:
    - description: mmc controller instance
    - description: card detect

and drop maxItems.

Thanks for the hint! Bindings isn't really my area of expertise (yet).

Quoted 4 lines

Neil

Quoted 2 lines

      clocks:
      maxItems: 3