devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] rtc: pcf2127: add default battery-related power-on values
@ 2023-08-02 19:11 Hugo Villeneuve
  2023-08-02 19:11 ` [PATCH 1/2] dt-bindings: rtc: add properties to set battery-related functions Hugo Villeneuve
  2023-08-02 19:11 ` [PATCH 2/2] rtc: pcf2127: add support for battery-related DT properties Hugo Villeneuve
  0 siblings, 2 replies; 14+ messages in thread
From: Hugo Villeneuve @ 2023-08-02 19:11 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, robh+dt, krzysztof.kozlowski+dt,
	conor+dt
  Cc: linux-rtc, devicetree, linux-kernel, hugo, bruno.thomsen,
	Hugo Villeneuve

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Hello,
this patch series adds support for setting default battery-related
functions for RTC devices.

This evolved from previous discussions about PCF2127 and also when reviewing
PCF2131 driver:

Link: https://lore.kernel.org/linux-rtc/20190910143945.9364-1-bruno.thomsen@gmail.com/
Link: https://lore.kernel.org/linux-rtc/20191211163354.GC1463890@piout.net/
Link: https://lore.kernel.org/linux-rtc/20230123170731.6064430c50f5fb7b484d8734@hugovil.com/

I decided to add these two new DT properties as generic RTC properties, in the
hope that they can be reused by other RTC drivers if needed.

Patch 1 adds two new DT properties to set battery-related functions. These
properties are generic for all RTC devices.

Patch 2 adds support for these two new DT properties to the PCF2127 driver.
This is especially important for PCF2131 devices which have default PWRMNG
values which disable battery-related functions.

Thank you.

Hugo Villeneuve (2):
  dt-bindings: rtc: add properties to set battery-related functions
  rtc: pcf2127: add support for battery-related DT properties

 .../devicetree/bindings/rtc/rtc.yaml          | 19 ++++++
 drivers/rtc/rtc-pcf2127.c                     | 59 +++++++++++++++++++
 2 files changed, 78 insertions(+)


base-commit: 3c87b351809f220294aec3c0df7b078ff5c5b15b
-- 
2.30.2


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

end of thread, other threads:[~2023-11-01 14:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02 19:11 [PATCH 0/2] rtc: pcf2127: add default battery-related power-on values Hugo Villeneuve
2023-08-02 19:11 ` [PATCH 1/2] dt-bindings: rtc: add properties to set battery-related functions Hugo Villeneuve
2023-08-08 11:21   ` Conor Dooley
2023-08-08 12:25     ` Hugo Villeneuve
2023-08-08 12:32       ` Alexandre Belloni
2023-08-08 12:44         ` Hugo Villeneuve
2023-09-05 15:30           ` Hugo Villeneuve
2023-09-19 15:32             ` Hugo Villeneuve
2023-09-19 15:34             ` Hugo Villeneuve
2023-10-11 13:49               ` Hugo Villeneuve
2023-10-11 22:23               ` Hugo Villeneuve
2023-11-01 14:19                 ` Hugo Villeneuve
2023-11-01 14:21                 ` Hugo Villeneuve
2023-08-02 19:11 ` [PATCH 2/2] rtc: pcf2127: add support for battery-related DT properties Hugo Villeneuve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).