[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230802191153.952667-2-hugo@hugovil.com>
Date: Wed, 2 Aug 2023 15:11:52 -0400
From: Hugo Villeneuve <hugo@...ovil.com>
To: a.zummo@...ertech.it, alexandre.belloni@...tlin.com,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org
Cc: linux-rtc@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, hugo@...ovil.com,
bruno.thomsen@...il.com, Hugo Villeneuve <hvilleneuve@...onoff.com>
Subject: [PATCH 1/2] dt-bindings: rtc: add properties to set battery-related functions
From: Hugo Villeneuve <hvilleneuve@...onoff.com>
These properties can be defined in the board's device tree to set the
default power-on values for battery-related functions.
Signed-off-by: Hugo Villeneuve <hvilleneuve@...onoff.com>
---
.../devicetree/bindings/rtc/rtc.yaml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml
index efb66df82782..0217d229e3fa 100644
--- a/Documentation/devicetree/bindings/rtc/rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/rtc.yaml
@@ -26,6 +26,25 @@ properties:
0: not chargeable
1: chargeable
+ battery-low-detect:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1]
+ description: |
+ For RTC devices supporting a backup battery/supercap, this flag can be
+ used to configure the battery low detection reporting function:
+ 0: disabled
+ 1: enabled
+
+ battery-switch-over:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1]
+ description: |
+ For RTC devices supporting a backup battery/supercap, this flag can be
+ used to configure the battery switch over when the main voltage source is
+ turned off:
+ 0: disabled
+ 1: enabled
+
quartz-load-femtofarads:
description:
The capacitive load of the quartz(x-tal), expressed in femto
--
2.30.2
Powered by blists - more mailing lists