[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241022080121.1594744-2-p.rosenberger@kunbus.com>
Date: Tue, 22 Oct 2024 10:01:20 +0200
From: Philipp Rosenberger <p.rosenberger@...bus.com>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
linux-rtc@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Lino Sanfilippo <l.sanfilippo@...bus.com>,
Philipp Rosenberger <p.rosenberger@...bus.com>
Subject: [PATCH 1/2] dt-bindings: rtc: pcf2127: Add nxp,battery-switch-over property
The nxp,battery-switch-over property is used to control the switch-over,
battery low detection and extra power fail detection functions.
The PCF2131 has a different default value for the PWRMNG bits. It is set
to 0x7: battery switch-over function is disabled, only one power supply
(VDD); battery low detection function is disabled.
This is the opposite of the default of the PCF2127/PCA2129 and PCF2129.
With the nxp,battery-switch-over the behavior can be controlled through
the device tree.
Signed-off-by: Philipp Rosenberger <p.rosenberger@...bus.com>
---
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
index 2d9fe5a75b06..5739c3e371e7 100644
--- a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
+++ b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
@@ -30,6 +30,16 @@ properties:
reset-source: true
+ nxp,battery-switch-over:
+ description:
+ Battery and power related configuration. This property is used to set the
+ PWRMNG bits of the Control_3 register to control the battery switch-over,
+ battery low detection and extra power fail detection functions.
+ The actual supported functions depend on the device capabilities.
+ $ref: /schemas/types.yaml#/definitions/uint8
+ minimum: 0
+ maximum: 7
+
required:
- compatible
- reg
--
2.39.5
---------------------------------------------------------------------------------
sps
Smart Production Solutions
Nuremberg, 12 - 14 November 2024
Visit us: Hall 5, Booth 228
---------------------------------------------------------------------------------
Powered by blists - more mailing lists