[GIT PULL] RTC for 6.6

From: Alexandre Belloni
Date: Thu Sep 07 2023 - 16:46:53 EST


Hello Linus,

Here is the RTC subsystem pull request for 6.6. The pcf2127 driver was
reworked heavily to add support for the pcf2131. This also introduces a
way for drivers to report the alarm range which is going to be used to
fix a related alarmtimer issue in the next release.

I extended the expiration date of my signing subkey so you will have to
update my key to be able to verify the tag signature.

The following changes since commit 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5:

Linux 6.5-rc1 (2023-07-09 13:53:13 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git tags/rtc-6.6

for you to fetch changes up to ce413486c9a0d735d86cc7d88660abeac99c2501:

dt-bindings: rtc: ds3231: Remove text binding (2023-09-06 01:28:24 +0200)

----------------------------------------------------------------
RTC for 6.6

Subsystem:
- Add a way for drivers to tell the core the supported alarm range is smaller
than the date range. This is not used yet but will be useful for the
alarmtimers in the next release.
- fix Wvoid-pointer-to-enum-cast warnings
- remove redundant of_match_ptr()
- stop warning for invalid alarms when the alarm is disabled

Drivers:
- isl12022: allow setting the trip level for battery level detection
- pcf2127: add support for PCF2131 and multiple timestamps
- stm32: time precision improvement, many fixes
- twl: NVRAM support

----------------------------------------------------------------
Alexandre Belloni (5):
rtc: pcf2127: remove useless check
rtc: stop warning for invalid alarms when the alarm is disabled
rtc: sun6i: remove unnecessary message
rtc: twl: remove unnecessary messages
rtc: wm8350: remove unnecessary messages

Andrej Picej (1):
rtc: rv3028: Add support for "aux-voltage-chargeable" property

Antonio Borneo (2):
rtc: stm32: use the proper register sequence to read date/time
rtc: stm32: don't stop time counter if not needed

Arnd Bergmann (2):
rtc: bq4802: add sparc dependency
rtc: stm32: remove incorrect #ifdef check

Biju Das (4):
rtc: isl1208: Simplify probe()
rtc: pcf85063: Simplify probe()
rtc: pcf85063: Drop enum pcf85063_type and split pcf85063_cfg[]
rtc: isl1208: Fix incorrect logic in isl1208_set_xtoscb()

Chen Jiahao (1):
rtc: sunplus: Clean up redundant dev_err_probe()

Christophe Guibout (1):
rtc: stm32: improve rtc precision

Dan Carpenter (1):
rtc: pcf2127: fix error code in pcf2127_enable_ts()

Fabio Estevam (1):
dt-bindings: rtc: ds3231: Remove text binding

Gabriel Fernandez (1):
rtc: stm32: change PM callbacks to "_noirq()"

Guenter Roeck (6):
rtc: Add support for limited alarm timer offsets
rtc: cros-ec: Detect and report supported alarm window size
rtc: cmos: Report supported alarm limit to rtc infrastructure
rtc: tps6586x: Report maximum alarm limit to rtc core
rtc: ds1305: Report maximum alarm limit to rtc core
rtc: rzn1: Report maximum alarm limit to rtc core

Hugo Villeneuve (19):
rtc: pcf2127: improve rtc_read_time() performance
rtc: pcf2127: improve timestamp reading performance
rtc: pcf2127: lower message severity if setting time fails
rtc: pcf2127: remove superfluous comments
rtc: pcf2127: add variant-specific configuration structure
rtc: pcf2127: adapt for time/date registers at any offset
rtc: pcf2127: adapt for alarm registers at any offset
rtc: pcf2127: adapt for WD registers at any offset
rtc: pcf2127: adapt for CLKOUT register at any offset
rtc: pcf2127: add support for multiple TS functions
rtc: pcf2127: add support for PCF2131 RTC
rtc: pcf2127: add support for PCF2131 interrupts on output INT_A
rtc: pcf2127: adapt time/date registers write sequence for PCF2131
rtc: pcf2127: support generic watchdog timing configuration
rtc: pcf2127: add flag for watchdog register value read support
rtc: pcf2127: add UIE support for PCF2131
dt-bindings: rtc: pcf2127: add PCF2131
rtc: pcf2127: add error checking when disabling POR0
rtc: pcf2127: remove unused function argument

Krzysztof Kozlowski (4):
rtc: ds1307: fix Wvoid-pointer-to-enum-cast warning
rtc: rv8803: fix Wvoid-pointer-to-enum-cast warning
rtc: jz4740: fix Wvoid-pointer-to-enum-cast warning
rtc: rs5c372: fix Wvoid-pointer-to-enum-cast warning

Ladislav Michl (1):
rtc: twl: add NVRAM support

Linus Walleij (1):
rtc: ds2404: Convert to GPIO descriptors

Lukas Bulwahn (1):
MAINTAINERS: remove obsolete pattern in RTC SUBSYSTEM section

Mike Looijmans (1):
rtc: pcf85363: Allow to wake up system without IRQ

Nathan Chancellor (1):
rtc: stm32: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()

Nikita Shubin (2):
dt-bindings: rtc: Add ST M48T86
rtc: m48t86: add DT support for m48t86

Rasmus Villemoes (8):
rtc: isl12022: remove wrong warning for low battery level
dt-bindings: rtc: Move isil,isl12022 from trivial-rtc.yaml into own schema file
dt-bindings: rtc: isl12022: add bindings for battery alarm trip levels
rtc: isl12022: add support for trip level DT binding
rtc: isl12022: implement RTC_VL_READ ioctl
rtc: isl12022: trigger battery level detection during probe
dt-bindings: rtc: isl12022: add #clock-cells property
rtc: isl12022: implement support for the #clock-cells DT property

Rob Herring (1):
rtc: Explicitly include correct DT includes

Ruan Jinjie (2):
rtc: omap: Do not check for 0 return after calling platform_get_irq()
rtc: tps65910: Remove redundant dev_warn() and do not check for 0 return after calling platform_get_irq()

Samuel Holland (1):
rtc: da9063: Mark the alarm IRQ as a wake IRQ

Uwe Kleine-König (1):
rtc: isl12026: Drop "_new" from probe callback name

Valentin Caron (3):
rtc: stm32: don't print an error on probe deferral
rtc: stm32: fix issues of stm32_rtc_valid_alrm function
rtc: stm32: fix unnecessary parentheses

Varshini Rajendran (1):
dt-bindings: rtc: at91rm9200: add sam9x7 compatible

Zhu Wang (1):
rtc: remove redundant of_match_ptr()

.../bindings/rtc/atmel,at91rm9200-rtc.yaml | 18 +-
.../devicetree/bindings/rtc/intersil,isl12022.yaml | 64 ++
.../devicetree/bindings/rtc/maxim,ds3231.txt | 38 -
.../devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
.../devicetree/bindings/rtc/st,m48t86.yaml | 38 +
.../devicetree/bindings/rtc/trivial-rtc.yaml | 2 -
MAINTAINERS | 1 -
drivers/rtc/Kconfig | 5 +-
drivers/rtc/interface.c | 2 +-
drivers/rtc/rtc-abx80x.c | 2 +-
drivers/rtc/rtc-armada38x.c | 5 +-
drivers/rtc/rtc-aspeed.c | 2 +-
drivers/rtc/rtc-at91rm9200.c | 3 +-
drivers/rtc/rtc-at91sam9.c | 2 +-
drivers/rtc/rtc-cmos.c | 11 +
drivers/rtc/rtc-cros-ec.c | 38 +-
drivers/rtc/rtc-da9063.c | 7 +
drivers/rtc/rtc-ds1305.c | 5 +-
drivers/rtc/rtc-ds1307.c | 2 +-
drivers/rtc/rtc-ds1742.c | 1 -
drivers/rtc/rtc-ds2404.c | 169 ++--
drivers/rtc/rtc-fsl-ftm-alarm.c | 5 +-
drivers/rtc/rtc-isl12022.c | 126 ++-
drivers/rtc/rtc-isl12026.c | 5 +-
drivers/rtc/rtc-isl1208.c | 19 +-
drivers/rtc/rtc-jz4740.c | 4 +-
drivers/rtc/rtc-lpc24xx.c | 3 +-
drivers/rtc/rtc-m41t80.c | 2 +-
drivers/rtc/rtc-m48t86.c | 8 +
drivers/rtc/rtc-mpc5121.c | 4 +-
drivers/rtc/rtc-mt6397.c | 2 +-
drivers/rtc/rtc-mt7622.c | 4 +-
drivers/rtc/rtc-mxc.c | 1 -
drivers/rtc/rtc-nct3018y.c | 2 +-
drivers/rtc/rtc-omap.c | 8 +-
drivers/rtc/rtc-pcf2127.c | 872 ++++++++++++++++-----
drivers/rtc/rtc-pcf85063.c | 107 ++-
drivers/rtc/rtc-pcf85363.c | 31 +-
drivers/rtc/rtc-pxa.c | 1 -
drivers/rtc/rtc-rs5c372.c | 5 +-
drivers/rtc/rtc-rv3028.c | 82 +-
drivers/rtc/rtc-rv3032.c | 2 +-
drivers/rtc/rtc-rv8803.c | 5 +-
drivers/rtc/rtc-rx6110.c | 1 -
drivers/rtc/rtc-rx8581.c | 1 -
drivers/rtc/rtc-rzn1.c | 5 +-
drivers/rtc/rtc-s3c.c | 1 -
drivers/rtc/rtc-stm32.c | 143 ++--
drivers/rtc/rtc-stmp3xxx.c | 1 -
drivers/rtc/rtc-sun6i.c | 3 -
drivers/rtc/rtc-sunplus.c | 2 +-
drivers/rtc/rtc-sunxi.c | 2 -
drivers/rtc/rtc-ti-k3.c | 2 +-
drivers/rtc/rtc-tps6586x.c | 1 +
drivers/rtc/rtc-tps65910.c | 7 +-
drivers/rtc/rtc-twl.c | 43 +-
drivers/rtc/rtc-wm8350.c | 9 +-
include/linux/platform_data/rtc-ds2404.h | 20 -
include/linux/rtc.h | 1 +
59 files changed, 1337 insertions(+), 619 deletions(-)
create mode 100644 Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
delete mode 100644 Documentation/devicetree/bindings/rtc/maxim,ds3231.txt
create mode 100644 Documentation/devicetree/bindings/rtc/st,m48t86.yaml
delete mode 100644 include/linux/platform_data/rtc-ds2404.h

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com