diff mbox series

[RFC,1/3] dt-bindings: power: reset: syscon-reboot: use non-deprecated example

Message ID 20211102152207.11891-2-zajec5@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show
Series reset: syscon-reboot: add "reg" property support | expand

Commit Message

Rafał Miłecki Nov. 2, 2021, 3:22 p.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

Usage of "regmap" property has been deprecated by the commit
2140d68d69d4 ("dt-bindings: power: reset: Unrequire regmap property in
syscon-reboot node"). Rewrite example to help people using
non-deprecated binding.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 .../bindings/power/reset/syscon-reboot.yaml        | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

Comments

Rob Herring (Arm) Nov. 12, 2021, 7:33 p.m. UTC | #1
On Tue, 02 Nov 2021 16:22:05 +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> Usage of "regmap" property has been deprecated by the commit
> 2140d68d69d4 ("dt-bindings: power: reset: Unrequire regmap property in
> syscon-reboot node"). Rewrite example to help people using
> non-deprecated binding.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> ---
>  .../bindings/power/reset/syscon-reboot.yaml        | 14 +++++++++-----
>  1 file changed, 9 insertions(+), 5 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml b/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml
index da2509724812..ebae55683d39 100644
--- a/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml
+++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml
@@ -59,9 +59,13 @@  allOf:
 
 examples:
   - |
-    reboot {
-        compatible = "syscon-reboot";
-        regmap = <&regmapnode>;
-        offset = <0x0>;
-        mask = <0x1>;
+    system-controller@12020000 {
+        compatible = "hisilicon,hi3519-sysctrl", "syscon";
+        reg = <0x12020000 0x1000>;
+
+        reboot {
+            compatible = "syscon-reboot";
+            offset = <0x4>;
+            mask = <0xdeadbeef>;
+        };
     };