lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed,  1 Feb 2023 15:34:25 +0100
From:   Frieder Schrempf <frieder@...s.de>
To:     Alessandro Zummo <a.zummo@...ertech.it>,
        Alexandre Belloni <alexandre.belloni@...tlin.com>,
        devicetree@...r.kernel.org,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        linux-kernel@...r.kernel.org, linux-rtc@...r.kernel.org,
        Rob Herring <robh+dt@...nel.org>
Cc:     Frieder Schrempf <frieder.schrempf@...tron.de>
Subject: [PATCH 3/7] dt-bindings: rtc: microcrystal,rv3032: Add backup-switch-mode property

From: Frieder Schrempf <frieder.schrempf@...tron.de>

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

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

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>;
         };
     };
-- 
2.39.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ