[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241022080121.1594744-1-p.rosenberger@kunbus.com>
Date: Tue, 22 Oct 2024 10:01:19 +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 0/2] rtc: pcf2127: make battery switch-over configurable
Hello,
this patch series adds a dt property for the pcf2127 driver to
configure the battery switch-over behavior.
The default behavior for battery switch-over has changed with PCF2131.
For PCF2127, PCF2129 and PCA2129 the default is battary switch-over and
battery low power detection is enabled. For PCF2131 this is now the
opposite. At least PCF2127 and PCF2129 are not recomended for new
designs. This leaves the PCF2131 as "replacement" part.
This patch series introduces the nxp,battery-switch-over optional
property. With this property the PWRMNG bits of the Control_3 register
can be changed.
I have tested this on a device with PCF2129 and one with PCF2131.
Best regards,
Philipp
Philipp Rosenberger (2):
dt-bindings: rtc: pcf2127: Add nxp,battery-switch-over property
rtc: pcf2127: make battery switch-over configurable
.../devicetree/bindings/rtc/nxp,pcf2127.yaml | 10 +++
drivers/rtc/rtc-pcf2127.c | 61 ++++++++++++++-----
2 files changed, 56 insertions(+), 15 deletions(-)
--
2.39.5
---------------------------------------------------------------------------------
sps
Smart Production Solutions
Nuremberg, 12 - 14 November 2024
Visit us: Hall 5, Booth 228
---------------------------------------------------------------------------------
Powered by blists - more mailing lists