All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] rtc: pcf2127: make battery switch-over configurable
@ 2024-10-22  9:28 Philipp Rosenberger
  2024-10-22  9:28 ` [PATCH v2 1/2] dt-bindings: rtc: pcf2127: Add nxp,battery-switch-over property Philipp Rosenberger
  2024-10-22  9:28 ` [PATCH v2 2/2] rtc: pcf2127: make battery switch-over configurable Philipp Rosenberger
  0 siblings, 2 replies; 10+ messages in thread
From: Philipp Rosenberger @ 2024-10-22  9:28 UTC (permalink / raw)
  To: Alexandre Belloni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-rtc, devicetree, linux-kernel
  Cc: Lino Sanfilippo, Philipp Rosenberger

Hello,
sorry about the broken V1 series. I didn't know, that our IT added a
footer to external mails. This also replaced all tabs with spaces.

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

Changes for V2:
 - Just fixed the broken tabs and removed the footer from the mails.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-10-28 15:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22  9:28 [PATCH v2 0/2] rtc: pcf2127: make battery switch-over configurable Philipp Rosenberger
2024-10-22  9:28 ` [PATCH v2 1/2] dt-bindings: rtc: pcf2127: Add nxp,battery-switch-over property Philipp Rosenberger
2024-10-22 16:35   ` Conor Dooley
2024-10-23  7:06     ` Krzysztof Kozlowski
2024-10-24  7:11     ` Philipp Rosenberger
2024-10-24  7:25       ` Krzysztof Kozlowski
2024-10-28 14:54         ` Philipp Rosenberger
2024-10-28 15:55           ` Krzysztof Kozlowski
2024-10-22  9:28 ` [PATCH v2 2/2] rtc: pcf2127: make battery switch-over configurable Philipp Rosenberger
2024-10-23  0:07   ` Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.