All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: mmc: mmc-pwrseq-simple: add support for reset control
@ 2024-10-04 12:07 Catalin Popescu
  2024-10-04 12:07 ` [PATCH 2/2] mmc: pwrseq_simple: " Catalin Popescu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Catalin Popescu @ 2024-10-04 12:07 UTC (permalink / raw)
  To: ulf.hansson, robh, krzk+dt, conor+dt, p.zabel
  Cc: linux-mmc, devicetree, linux-kernel, m.felsch,
	bsp-development.geo, Catalin Popescu

Add compatible value "mmc-pwrseq-simple-reset" to support reset control
instead of gpios. Reset controls being refcounted, they allow to use
shared resets or gpios across drivers. Support of reset control is
limited to one single reset control.

Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
---
 .../bindings/mmc/mmc-pwrseq-simple.yaml       | 21 +++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml
index 00feaafc1063..da218260af01 100644
--- a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml
+++ b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml
@@ -16,12 +16,13 @@ description:
 
 properties:
   compatible:
-    const: mmc-pwrseq-simple
+    enum:
+      - mmc-pwrseq-simple
+      - mmc-pwrseq-simple-reset
 
   reset-gpios:
     minItems: 1
     # Put some limit to avoid false warnings
-    maxItems: 32
     description:
       contains a list of GPIO specifiers. The reset GPIOs are asserted
       at initialization and prior we start the power up procedure of the card.
@@ -50,6 +51,22 @@ properties:
 required:
   - compatible
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - mmc-pwrseq-simple-reset
+    then:
+      properties:
+        reset-gpios:
+          maxItems: 1
+    else:
+      properties:
+        reset-gpios:
+          maxItems: 32
+
 additionalProperties: false
 
 examples:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-10-21  6:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04 12:07 [PATCH 1/2] dt-bindings: mmc: mmc-pwrseq-simple: add support for reset control Catalin Popescu
2024-10-04 12:07 ` [PATCH 2/2] mmc: pwrseq_simple: " Catalin Popescu
2024-10-05 14:19   ` kernel test robot
2024-10-05 18:26 ` [PATCH 1/2] dt-bindings: mmc: mmc-pwrseq-simple: " Rob Herring
2024-10-07 15:32   ` POPESCU Catalin
2024-10-07 15:59     ` Rob Herring
2024-10-08  7:15       ` POPESCU Catalin
2024-10-21  6:52       ` Marco Felsch
2024-10-06 12:37 ` Krzysztof Kozlowski
2024-10-07 15:17   ` POPESCU Catalin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.