]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: clock: marvell,pxa1908: Add #reset-cells
authorDuje Mihanović <duje@dujemihanovic.xyz>
Tue, 14 Apr 2026 19:51:50 +0000 (21:51 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 29 Apr 2026 02:07:48 +0000 (19:07 -0700)
The APBC and APBCP controllers have reset lines exposed. Give them
a #reset-cells so that they may be used as reset controllers.

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml

index 6f3a8578fe2a6810911fec5879c07c9ddb34565a..0db5504013d5e88aef70edcccbd1d9826067c546 100644 (file)
@@ -37,6 +37,9 @@ properties:
   '#power-domain-cells':
     const: 1
 
+  '#reset-cells':
+    const: 1
+
 required:
   - compatible
   - reg
@@ -44,16 +47,27 @@ required:
 
 additionalProperties: false
 
-if:
-  not:
-    properties:
-      compatible:
-        contains:
-          const: marvell,pxa1908-apmu
-
-then:
-  properties:
-    '#power-domain-cells': false
+allOf:
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              const: marvell,pxa1908-apmu
+    then:
+      properties:
+        '#power-domain-cells': false
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - marvell,pxa1908-apbc
+                - marvell,pxa1908-apbcp
+    then:
+      properties:
+        '#reset-cells': false
 
 examples:
   # APMU block: