Re: [PATCH v3 2/2] rtc: pcf2127: Add 'nxp,battery-switchover' DT property to enable battery switch-over

From: Rob Herring
Date: Tue Nov 12 2024 - 14:31:43 EST


On Mon, Nov 11, 2024 at 04:41:44PM +0100, Philipp Rosenberger wrote:
> The PCF2127, PCF2129, and PCA2129 RTCs have the battery switch-over function
> enabled by default. However, the newer PCF2131 RTC has the opposite default
> behavior, requiring explicit enablement for battery backup.

Subject is wrong.

>
> Add support for the `nxp,battery-backed` device tree property to enable battery
> switch-over in standard mode for the rtc-pcf2127 driver. If this property is set
> and no battery switch-over mode is already configured, the driver will enable
> standard mode; otherwise, existing configurations remain unchanged.
>
> Signed-off-by: Philipp Rosenberger <p.rosenberger@xxxxxxxxxx>
> ---
> drivers/rtc/rtc-pcf2127.c | 76 +++++++++++++++++++++++++++++++--------
> 1 file changed, 61 insertions(+), 15 deletions(-)