diff mbox series

[3/7] dt-bindings: rtc: microcrystal,rv3032: Add backup-switch-mode property

Message ID 20230201143431.863784-4-frieder@fris.de
State Rejected
Headers show
Series Enable backup switch mode on RTCs via devicetree | expand

Commit Message

Frieder Schrempf Feb. 1, 2023, 2:34 p.m. UTC
From: Frieder Schrempf <frieder.schrempf@kontron.de>

Add the new backup-switch-mode property that allows to set the BSM
via devicetree.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
 .../devicetree/bindings/rtc/microcrystal,rv3028.yaml          | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
index 4667ba86fd0c..2637c4c313ac 100644
--- a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
+++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
@@ -22,6 +22,8 @@  properties:
   interrupts:
     maxItems: 1
 
+  backup-switch-mode: true
+
   start-year: true
 
   trickle-resistor-ohms:
@@ -40,6 +42,7 @@  additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/rtc/rtc.h>
     i2c {
         #address-cells = <1>;
         #size-cells = <0>;
@@ -49,6 +52,7 @@  examples:
             reg = <0x52>;
             pinctrl-0 = <&rtc_nint_pins>;
             interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
+            backup-switch-mode: <RTC_BSM_LEVEL>;
             trickle-resistor-ohms = <3000>;
         };
     };