From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12B1F606A31F for ; Sat, 5 Dec 2026 18:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=yP/QjT8m; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=zGBbdbgE DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=1kToNPrmVzq6t2jm2Ly2SuBBx1h3KTs8rXlYZf4iaPQ=; b=yP/QjT8m7S/8RxvgjUVmyK0tEm oRN8C0bAq+JQEjQkPGNFAPK2c26Wk55JSRrj0poMPveeWcAykM/fCYY+GR/hLz7ZmMbXaZEqBjtBK R1NYyJ4UjGxsYYW/y7xN/oYdD76qLOaKcTayzFNX5QjsgUBbfiJXJCwz50s3VMY321olAMDBxVVk8 WamXyyeDehFUUtLNiGjS1Z4bOLW3NTUKidxcg8At+wGy0b7lFwgPxN2Z57Co46RB/dNHJJLIE+a+U JLuk9cDahLLWySqYuiSS3amcdjuZCPsM+7RAohWZ/NkDoS++c42fhnDrbe5yjEBkE7nPWbnjmcvka oPEIDUaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZuSy-00000002lbj-0m3s; Sat, 05 Dec 2026 18:26:36 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZuSv-00000002lb1-0mtn for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 18:26:34 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so1674318f8f.0 for ; Sat, 05 Dec 2026 10:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796495191; x=1797099991; darn=lists.infradead.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=1kToNPrmVzq6t2jm2Ly2SuBBx1h3KTs8rXlYZf4iaPQ=; b=zGBbdbgEGpTmnQjGly7T8tMqBROjYeq4vlwuELmSzj4UoyqAeBPDDuOqsAEo/1wgws tJ4WPAUJX71pmwijzkpaFYoIMiUi/W4DoA27BSYx/ea1QrLhbkE6o4k+FUpW9DlweGCO CQGp0PSRymeUiaPhdEZJSwKilSKg6rkSCPBLdCmUTnXbdcv9VDoeH02i7zLTcY2uGJoL Vh+bpXr6pJZU+SAf9rr44e5fLAXWu7VmyAXdqYx4+g4n7ZNRQvJTk7MCpZXK3UGeyBPG 4Ul3lRvI4Ze/SxMsDWZGD7FZ1EO8f/cVpfySLUE9cwuO4hXcIhpwYcuNfZbF7MUjKCIP UdCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796495191; x=1797099991; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1kToNP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XxM4v6Rz 3Yoz+UKZEe3lhxwbQKrrZ+GrTVTRg2XkDm5Ka7zbeBFJjbBGebB6cCZI3Zqa6jZoBkKt9yDCTcB dMqc9iw86OfreZhzf7COL6Ap4UfQ2J3psblasMPgVwpJoSXPuw2wq4VUoEwv+EEEacN8F5rGRG5 tFgAVDBIjZUSbvSZWLj0FuRRFff0ng/cz+Aff4gsPtya0b9LDL96b4kpmJAThaw+RVInWBY/KEE HraChqqhsmAvrU0Qnl8X2wpyy+igTh5JPIm3PLU7wBts9+7ZETQ== X-Received: by 2002:a05:6000:609:b0:4a5:33ad:8724 with SMTP id ffacd0b85a97d-4d1dd3af2eamr12263782f8f.0.1796495191049; Sat, 05 Dec 2026 10:26:31 -0800 (PST) Received: from [192.168.0.10] (catv-78-139-0-46.catv.fixed.one.hu. [78.139.0.46]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1723b8b54sm11124038f8f.17.2026.12.05.10.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 10:26:30 -0800 (PST) Message-ID: <7f802c3616cbb958f3f0442df9b9eb5f375a49e5.camel@gmail.com> Subject: Re: [PATCH 0/3] Add the Exynos7885 watchdog From: David Virag To: Guenter Roeck , Paul Menzel , Wim Van Sebroeck Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Alim Akhtar , Umer Uddin , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Date: Sat, 05 Dec 2026 19:26:29 +0100 In-Reply-To: <9255c16e-0f61-49d6-97c2-a2cc5a3bb59d@roeck-us.net> References: <20261204174814.453359-1-pmenzel@molgen.mpg.de> <9255c16e-0f61-49d6-97c2-a2cc5a3bb59d@roeck-us.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.62.1 X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261205_102633_256777_CAEC2776 X-CRM114-Status: GOOD ( 41.61 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, 2026-12-05 at 10:08 -0800, Guenter Roeck wrote: > Hi, >=20 > On 12/5/26 08:44, David Virag wrote: > > On Fri, 2026-12-04 at 18:48 +0100, Paul Menzel wrote: > > > The Exynos7885 has the usual Samsung watchdog at 0x10060000, > > > controlled > > > through the PMU like on Exynos7, but with bit 24 in DISABLE_WDT, > > > MASK_WDT_RESET and RST_STAT. Add the compatible, the driver > > > variant > > > and > > > the SoC node (disabled). > > >=20 > > > The values come from Samsung=E2=80=99s kernel source for the SM-T510 > > > (Linux > > > 4.4) [1]: the samsung,exynos8-wdt variant of s3c2410_wdt.c, which > > > the > > > SoC uses, with mask and reset status bit 24 [2], and the watchdog > > > node > > > of the SoC device tree [3]. > > >=20 > > > Patches 1 and 2 are for the watchdog tree, patch 3 for the > > > Samsung > > > SoC > > > tree. > > >=20 > > > Tested on the Samsung Galaxy Tab A 10.1 (2019, Wi-Fi, SM-T510) > > > with a > > > board device tree that enables the node (not upstream yet =E2=80=93 i= t is > > > meant > > > to share a dtsi with the SM-T515, exynos7885-gta3xllte): the > > > timer > > > runs > > > and is petted through /dev/watchdog, an unexpected close resets > > > the > > > SoC > > > after the 60 s margin, and RST_STAT bit 24 shows the watchdog > > > reset > > > in > > > the next boot. dt_binding_check, and dtbs_check of the Exynos7885 > > > boards with the node enabled, report nothing. > > >=20 > > > I found no other work on this watchdog on the lists. > > >=20 > > > Claude Code (claude-opus-5-5) helped with this series: it looked > > > up > > > the > > > values in Samsung=E2=80=99s kernel source and device tree for the SM- > > > T510, > > > wrote the changes and commit messages, ran the checks, and ran > > > the > > > tests > > > on the tablet. Each patch carries a note saying so. > > >=20 > > > [1]: > > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/tree/00e4= b9481434f9b0b644925a9bb2feaf3940219d > > > [2]: > > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4= b9481434f9b0b644925a9bb2feaf3940219d/drivers/watchdog/s3c2410_wdt.c#L181-L2= 00 > > > [3]: > > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4= b9481434f9b0b644925a9bb2feaf3940219d/arch/arm64/boot/dts/exynos/dtbo/exynos= 7885.dts#L1976-L1984 > > >=20 > > > Paul Menzel (3): > > > =C2=A0=C2=A0 dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compa= tible > > > =C2=A0=C2=A0 watchdog: s3c2410_wdt: Add Exynos7885 support > > > =C2=A0=C2=A0 arm64: dts: exynos: exynos7885: Add the watchdog > > >=20 > > > =C2=A0=C2=A0.../devicetree/bindings/watchdog/samsung-wdt.yaml=C2=A0= =C2=A0=C2=A0 |=C2=A0 4 +++- > > > =C2=A0=C2=A0arch/arm64/boot/dts/exynos/exynos7885.dtsi=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 11 > > > +++++++++++ > > > =C2=A0=C2=A0drivers/watchdog/s3c2410_wdt.c=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 12 > > > ++++++++++++ > > > =C2=A0=C2=A03 files changed, 26 insertions(+), 1 deletion(-) > > >=20 > > >=20 > > > base-commit: 0b5bb03d26a268f2606e3f574b277a1105136328 > >=20 > > For the whole set: > >=20 > > Exynos7885 has two watchdogs. The other one is present at > > 0x10050000 > > like on the Exynos850. The IRQ I haven't tested but I suspect it to > > be > > 232. As for the PMU registers, I currently have no information. > >=20 > > This is the reason I haven't submitted WDT patches so far, as the > > other > > WDT is kind of undocumented currently. > >=20 > > If information on this gets discovered, then at least the DT > > bindings > > will probably be wrong, as samsung,cluster-index will be needed. > >=20 > Sorry, I don't immediately see the point you are trying to make. > Does the existence of another watchdog in the hardware in any way > prevent, impact, or even influence adding support for _this_ watchdog > ? Kind of.. The DT bindings for multi-watchdog Exynos SoCs have a samsung,cluster-index property, that is there so that the driver can differentiate between the two (since it has to due to the PMU registers). This set (as I understand) instead describes the DT bindings to not have this value, which is a mistake, since it has an other WDT, and I have now tested it to be 100% functional. Without that property, it will be more of a mess to add support for the other WDT, since requiring it later on would break the old DTS. Of course, the driver can be made backwards compatible and so on, but why go through all that trouble when we can just do everything properly from the beginning? >=20 > Thanks, > Guenter Best regards, David