* [PATCH v2 0/4] Add driver for NXP PCF8525 RTC
@ 2026-08-24 6:55 Shiv Prakash Gupta
0 siblings, 0 replies; 2+ messages in thread
From: Shiv Prakash Gupta @ 2026-08-24 6:55 UTC (permalink / raw)
To: linux-kernel, linux-rtc, linux-hwmon, linux-watchdog, devicetree,
alexandre.belloni, krzk+dt, robh, conor+dt, linux, wim
Cc: vikash.bansal, priyanka.jain, lakshay.piplani, Shiv Prakash Gupta
The PCF8525 is an NXP I2C real-time clock with integrated crystal
oscillator, dual timestamp capture inputs, backup battery switch-over,
a windowed watchdog, and an on-chip temperature sensor.
This series adds:
- DT binding (YAML schema)
- Core RTC driver: timekeeping, alarms, dual timestamps, crystal
configuration, backup switch-over, and clock offset correction
- Watchdog support via the Linux watchdog framework
- Temperature sensor support via the hwmon framework
Changes in v2:
- Fix include: use <linux/pm_wakeirq.h> instead of <pm_wakeup.h>
- Add spinlock_t ts_lock to protect ts[]/ts_valid[] from IRQ/sysfs race
- Fix W0C ordering: clear AF/TSF flags before acting on alarm/timestamp
events
- Use dev_pm_set_wake_irq() for suspend wakeup wiring
- Clear stale WDTF before unmasking watchdog interrupt on INTB to prevent
boot loop when battery-backed flag persists across resets
- Add watchdog_notify_pretimeout() call in INTB IRQ handler
- Set WDOG_HW_RUNNING if bootloader left watchdog running at probe time
- Register hwmon device first, then enable PCF8525_CTRL5_TEMP_RD_EN only
after successful registration
Shiv Prakash Gupta (4):
dt-bindings: rtc: Add NXP PCF8525 RTC
rtc: pcf8525: Add NXP PCF8525 RTC driver
rtc: pcf8525: Add watchdog support
rtc: pcf8525: Add temperature sensor support via hwmon
.../devicetree/bindings/rtc/nxp,pcf8525.yaml | 86 +
drivers/rtc/Kconfig | 26 +
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-pcf8525.c | 1422 +++++++++++++++++
4 files changed, 1535 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml
create mode 100644 drivers/rtc/rtc-pcf8525.c
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH v2 0/4] Add driver for NXP PCF8525 RTC
@ 2026-08-24 6:55 Shiv Prakash Gupta
0 siblings, 0 replies; 2+ messages in thread
From: Shiv Prakash Gupta @ 2026-08-24 6:55 UTC (permalink / raw)
To: linux-kernel, linux-rtc, linux-hwmon, linux-watchdog, devicetree,
alexandre.belloni, krzk+dt, robh, conor+dt, linux, wim
Cc: vikash.bansal, priyanka.jain, lakshay.piplani, Shiv Prakash Gupta
The PCF8525 is an NXP I2C real-time clock with integrated crystal
oscillator, dual timestamp capture inputs, backup battery switch-over,
a windowed watchdog, and an on-chip temperature sensor.
This series adds:
- DT binding (YAML schema)
- Core RTC driver: timekeeping, alarms, dual timestamps, crystal
configuration, backup switch-over, and clock offset correction
- Watchdog support via the Linux watchdog framework
- Temperature sensor support via the hwmon framework
Changes in v2:
- Fix include: use <linux/pm_wakeirq.h> instead of <pm_wakeup.h>
- Add spinlock_t ts_lock to protect ts[]/ts_valid[] from IRQ/sysfs race
- Fix W0C ordering: clear AF/TSF flags before acting on alarm/timestamp
events
- Use dev_pm_set_wake_irq() for suspend wakeup wiring
- Clear stale WDTF before unmasking watchdog interrupt on INTB to prevent
boot loop when battery-backed flag persists across resets
- Add watchdog_notify_pretimeout() call in INTB IRQ handler
- Set WDOG_HW_RUNNING if bootloader left watchdog running at probe time
- Register hwmon device first, then enable PCF8525_CTRL5_TEMP_RD_EN only
after successful registration
Shiv Prakash Gupta (4):
dt-bindings: rtc: Add NXP PCF8525 RTC
rtc: pcf8525: Add NXP PCF8525 RTC driver
rtc: pcf8525: Add watchdog support
rtc: pcf8525: Add temperature sensor support via hwmon
.../devicetree/bindings/rtc/nxp,pcf8525.yaml | 86 +
drivers/rtc/Kconfig | 26 +
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-pcf8525.c | 1422 +++++++++++++++++
4 files changed, 1535 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml
create mode 100644 drivers/rtc/rtc-pcf8525.c
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-24 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 6:55 [PATCH v2 0/4] Add driver for NXP PCF8525 RTC Shiv Prakash Gupta
-- strict thread matches above, loose matches on Subject: below --
2026-08-24 6:55 Shiv Prakash Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox