From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Krzysztof Kozlowski <krzk@kernel.org>,
Peter Griffin <peter.griffin@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>,
Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
David Virag <virag.david003@gmail.com>,
Umer Uddin <umer.uddin@mentallysanemainliners.org>,
linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org
Subject: [PATCH 2/3] watchdog: s3c2410_wdt: Add Exynos7885 support
Date: Fri, 4 Dec 2026 18:48:11 +0100 [thread overview]
Message-ID: <20261204174814.453359-3-pmenzel@molgen.mpg.de> (raw)
In-Reply-To: <20261204174814.453359-1-pmenzel@molgen.mpg.de>
The watchdog at 0x10060000 on the Exynos7885 is controlled through the
same PMU registers as on Exynos7 (DISABLE_WDT 0x408, MASK_WDT_RESET
0x40c, RST_STAT 0x404), but with bit 24 instead of 23. The values come
from Samsung’s vendor kernel for the Galaxy Tab A 10.1 (2019), which
uses its "samsung,exynos8-wdt" variant for this SoC (mask and reset
status bit 24), and from that kernel’s log on the SM-T510:
s3c2410-wdt 10060000.watchdog: DISABLE_WDT reg val: ffffffff, MASK_WDT_RESET reg val: ffffffff
s3c2410-wdt 10060000.watchdog: DISABLE_WDT reg val: feffffff, MASK_WDT_RESET reg val: feffffff
s3c2410-wdt 10060000.watchdog: Mask_wdt_reset set false done, mask = 0
Tested on the Samsung Galaxy Tab A 10.1 (2019, Wi-Fi, SM-T510) with
`s3c2410_wdt.tmr_atboot=1 s3c2410_wdt.tmr_margin=60`: the driver
probes, both PMU registers then read 0xfeffffff (bit 24 clear), and the
timer is petted through /dev/watchdog:
s3c2410-wdt 10060000.watchdog: starting watchdog timer
s3c2410-wdt 10060000.watchdog: watchdog active, reset enabled, irq disabled
After closing /dev/watchdog without the magic character ("watchdog did
not stop!"), the SoC resets 60 s later. In the next boot, RST_STAT reads
0x01000000 (bit 24), against 0x20000000 after a software reset.
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
Notes:
Prepared with Claude Code (claude-opus-5-5): vendor source lookup, the change, the commit message, the schema checks and the test runs on the SM-T510.
drivers/watchdog/s3c2410_wdt.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index ab04ae9374d25..67d4e55093b9b 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -259,6 +259,16 @@ static const struct s3c2410_wdt_variant drv_data_exynos7 = {
QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_AUTO_DISABLE,
};
+static const struct s3c2410_wdt_variant drv_data_exynos7885 = {
+ .disable_reg = EXYNOS5_WDT_DISABLE_REG_OFFSET,
+ .mask_reset_reg = EXYNOS5_WDT_MASK_RESET_REG_OFFSET,
+ .mask_bit = 24,
+ .rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET,
+ .rst_stat_bit = 24,
+ .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET |
+ QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_AUTO_DISABLE,
+};
+
static const struct s3c2410_wdt_variant drv_data_exynos850_cl0 = {
.mask_reset_reg = EXYNOS850_CLUSTER0_NONCPU_INT_EN,
.mask_bit = 2,
@@ -420,6 +430,8 @@ static const struct of_device_id s3c2410_wdt_match[] = {
.data = &drv_data_exynos5515 },
{ .compatible = "samsung,exynos7-wdt",
.data = &drv_data_exynos7 },
+ { .compatible = "samsung,exynos7885-wdt",
+ .data = &drv_data_exynos7885 },
{ .compatible = "samsung,exynos850-wdt",
.data = &drv_data_exynos850_cl0 },
{ .compatible = "samsung,exynos8855-wdt",
--
2.54.0
next prev parent reply other threads:[~2026-12-04 17:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 17:48 [PATCH 0/3] Add the Exynos7885 watchdog Paul Menzel
2026-12-04 17:48 ` [PATCH 1/3] dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible Paul Menzel
2026-12-04 17:48 ` Paul Menzel [this message]
2026-12-04 17:48 ` [PATCH 3/3] arm64: dts: exynos: exynos7885: Add the watchdog Paul Menzel
2026-12-05 16:44 ` [PATCH 0/3] Add the Exynos7885 watchdog David Virag
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204174814.453359-3-pmenzel@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=peter.griffin@linaro.org \
--cc=robh@kernel.org \
--cc=umer.uddin@mentallysanemainliners.org \
--cc=virag.david003@gmail.com \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox