diff mbox series

[2/7] dt-bindings: rtc: Add backup-switch-mode property

Message ID 20230201143431.863784-3-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>

Document the backups-switch-mode property that can be used to set the
BSM via devicetree on devices like the RV3028.

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

Patch

diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml
index c6fff5486fe6..76b9605e755b 100644
--- a/Documentation/devicetree/bindings/rtc/rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/rtc.yaml
@@ -26,6 +26,13 @@  properties:
       0: not chargeable
       1: chargeable
 
+  backup-switch-mode:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [ 0, 1, 2, 3 ]
+    description:
+      The backup switch mode the RTC is forced into when registering
+      the device. See include/dt-bindings/rtc/rtc.h for a list of values.
+
   quartz-load-femtofarads:
     description:
       The capacitive load of the quartz(x-tal), expressed in femto