diff mbox series

[PATCHv2] dt-bindings: reset: altr,modrst-offset is not required for arm64 SoCFPGA

Message ID 20230719132749.661914-1-dinguyen@kernel.org
State Accepted
Commit 0e17ac57bdb57944f5afdc506e65f1674c0f887b
Headers show
Series [PATCHv2] dt-bindings: reset: altr,modrst-offset is not required for arm64 SoCFPGA | expand

Commit Message

Dinh Nguyen July 19, 2023, 1:27 p.m. UTC
The property "altr,modrst-offset" is only applicable to arm32 SoCFPGA
platforms, thus it not required for all platforms.

While at it, update my email address.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: remove the need for else statement since "altr,modrst-offset" is
    already allowed
---
 .../devicetree/bindings/reset/altr,rst-mgr.yaml      | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/reset/altr,rst-mgr.yaml b/Documentation/devicetree/bindings/reset/altr,rst-mgr.yaml
index 4379cec6b35a..761c70cf9ddf 100644
--- a/Documentation/devicetree/bindings/reset/altr,rst-mgr.yaml
+++ b/Documentation/devicetree/bindings/reset/altr,rst-mgr.yaml
@@ -7,7 +7,7 @@  $schema: http://devicetree.org/meta-schemas/core.yaml#
 title: Altera SOCFPGA Reset Manager
 
 maintainers:
-  - Dinh Nguyen <dinguyen@altera.com>
+  - Dinh Nguyen <dinguyen@kernel.org>
 
 properties:
   compatible:
@@ -32,9 +32,17 @@  properties:
 required:
   - compatible
   - reg
-  - altr,modrst-offset
   - '#reset-cells'
 
+if:
+  properties:
+    compatible:
+      contains:
+        const: altr,stratix10-rst-mgr
+then:
+  properties:
+    altr,modrst-offset: false
+
 additionalProperties: false
 
 examples: