From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC0193E7179; Mon, 24 Aug 2026 06:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787554541; cv=none; b=j6Cb9337sWYYniSAzuIF/I6Oji+5nNpCwAf+3FmO84cWuY9dVQCaPl9mMTWBnOcAGanDdZg1fOAcNP1VQUIpm78WF3Wy0ipbQgJ1PyloTBTESc0KE/khs11xkdjHH4GwELF6rbFQSARCl7JJ2MJ7q6d+czrea5KOLKZIYKI96f8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787554541; c=relaxed/simple; bh=CrSd4vQsDBsfapTgoZ+7Rx7OBf13qzd0b6oDvme5D0A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ksW2SSPZC8lwSJVLck+wNh0ZhxkXaElRLkv7ly64icfVf5Kb4CiZ1qdx4kzMni5vG2UUTE28Z0hmuKr8lX9XQDilXL1DUYCTBjUrqb5hvMpXC1w8i3UFIXWNUeFZPi4mHajNwOOmSJz5sbqakY9YudQjGJVs36TIyJ6827bUwFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3469B1A0099; Mon, 24 Aug 2026 08:55:37 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 068DF1A0094; Mon, 24 Aug 2026 08:55:37 +0200 (CEST) Received: from lsv031125.swis.in-blr01.nxp.com (lsv031125.swis.in-blr01.nxp.com [10.12.177.172]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id CBC111800068; Mon, 24 Aug 2026 14:55:33 +0800 (+08) From: Shiv Prakash Gupta To: linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org, linux@roeck-us.net, wim@linux-watchdog.org Cc: vikash.bansal@nxp.com, priyanka.jain@nxp.com, lakshay.piplani@nxp.com, Shiv Prakash Gupta Subject: [PATCH v2 0/4] Add driver for NXP PCF8525 RTC Date: Mon, 24 Aug 2026 12:25:27 +0530 Message-Id: <20260824065531.693701-1-shivprakash.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 instead of - 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