From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796494948; b=VtXf3Mkl9D7CnDuEhD65KOsuW6kDJdnAEzab62yICWt8tIFKMhyt2dYCuIMjtCWgsBqj 3gUhxsLNmnYg1eLNI9NLvxxYnKvQ9hPQzY48Qp1rh4MYVFu736TSjiNtVP6TV34tofegF mv0BvkQfLEfKdHZN3jTH+U8en+9oWWk9wu6IxyXzbZTTDK9q8LpnpIn+bRWH9pVTxpH31 zy9J8xybUjNgL8mYJQ6sqTJqxqbuuUDKKvhI3fsWlB1syF1YuRxEmF8w3wW7y+nwhGjw+ Bms51J6wcZGjcQY0rjm1uvyceMupOEDIh1NzZDQlaAfjH1KIduFRA+JcgrBICfO7kQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796494948; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:User-Agent:MIME-Version; bh=h9y6l48fKtPsHFTyejizBARoECFW0lkgLj+N6QWy49Y=; b=oioSJ3jRiBQCBJVbJppZuzSmT2oupGxNliP0CT0T33lrv0XkFA9obevDnxSRkMbPWE1/ KwsBpxIEVpG7oawymnsqx64nXvevTuowPXBAktDjNnbSI8EA/hdvjYCLj1A3vzKZA30s/ dRK2KGr2HNhcZ29i5av8lQnRy+HLTxP+4nx1baPzqub7h0Yf/z0xCBKbkp3dwA4OJVaeP J2RSmNI0+6PkqYE2hc/CvxjUvrX4BDZN/O5UAUHWo0G5DCDrN7gijNOQd0ZjNbHIphrEP fFAlLbVvTCWhDxDFCCSJscoaFY5EHlwi8C1/fJkQ7B3/7bELGxlzogAOEhUsMBO7+6g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=sSoipZuL; arc=none smtp.remote-ip=209.85.221.44 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68E3D606A322 for ; Sat, 5 Dec 2026 18:22:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68E3D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=sSoipZuL Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-4ac08f4a0b2so1687354f8f.3 for ; Sat, 05 Dec 2026 10:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796494946; x=1797099746; darn=vger.kernel.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=h9y6l48fKtPsHFTyejizBARoECFW0lkgLj+N6QWy49Y=; b=sSoipZuLPcg+1T6fstzCG7Q91OvU8UK6CCd6O3Q2l1W0mK1n1NvQ1Od1r+NmF5XlIj KGB20KeqGF+V7oJWtyafN9+uxy+7DA8hHz7wIH3lm6bJ7ZOrS8SK+rfn/w1PuudhKIpS UY+UvLmWJxkHbXLqK5Xx4yzUObjh4g/OEPHwTmxHesPSH7TMNfX6QZjhHEDo4juiS8LV StlMDcwC8eZ2Q/ax2qkw3/gFb/T+P91hJxeP/uhJDoYC6E1k692ItrRY/+WQFcTIpKsL dpTBUvzDbgF4VxGoBdddLxWziIHLM0hwEV1XS6ChC68EJF0zwSU/JgNG4xky9rYyVnWm XfXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796494946; x=1797099746; 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=h9y6l48fKtPsHFTyejizBARoECFW0lkgLj+N6QWy49Y=; b=sA1KZ3rVZvtmit8k9jW4YMr09YTh5D3f3+UoSDAUAaR2KTjn4M3OxflSGNQBWfqBrB qSJQJEbJkTerto/A/O8dbjABu7JXFU4+2RQyTVXxcS1+7J+SDkwoObAI/2KFT19JI2y8 cDEhQaNwRojHpSn/9vaT7BxCZptnx61hz/9/1epUyq9aPURLG+1d2+Rm6peppXGXV/2i nNqSDl8DvOYNv+L/gK9iwqaqdstAVJbnXIdIzy6qk+sPb+BEa1PcemNFLApLX4oE6GZl CORV3XOTKrC2fkfAp2KspWJLkFdH8vsesM6CnmPWrK8l5667zKKSDoung6l0QV1gnzLS cK6g== X-Forwarded-Encrypted: i=1; AL+hErF16MpTRWYEEgSxvSOatfqx0BzMKUQdHr5o/O1gipvR6/8caw638ec8kb5QrvctGEKItXCHwUF4zeTu@vger.kernel.org X-Gm-Message-State: AB4q+uGSesjp+PkM8zPiGMUHJpEpFEomsp/6Li9rDPF3a9J1hkF0ycbX 8djSgl12hQRWnqzZdboDUg2yhBd4s8bgYcf96hrYRyCcjSrVV042mDVL X-Gm-Gg: AZFdTZff4UOEP7KN0l3a/1S2GPJors3PNlcZ4BoQ2lAp0wW8yzhtgbtbah+6zLLgMs5 Gd+IQIngDW/+HgOgTygQ+629s7LIjOF+4LgnbENupi+MsR8OZqtODVSalB5ev0tV3YK9xfRItsa g6u0m+3PO8/OlnnWbNjf7P4G0Pbj7QnqgD9pF9jvEiISkHUuvfuTGnWCFTGgpGFoJLADPCCvcTj VUzzOuZn4n6cUiHUSyDLcO2QRR7PQJFkDeLAmgvpX24bLF92qXgiJp0YcgGP8n1eUZcy8f8JPUS sIliR6ZbJRrRExKUSfhq8A1oPV2LE53eoRiQmi4MC6Vy0fQTraYcoBnberQyVo6sG98fjI13+Te 3dRt2Xf0v8ssc9TKLbPPfFgABwEOmJ5rua6pwsMrUOdnLLzQJbipMQcRwtXKsZoiN0VbXJzJPZq DzRfRL4pqy4KLeHXCpYhlRx5q7dcgUum3W3LVehhiHIlkre0pseYEQSBtkSbViaTSAOAfqW1YSs CQ1ETSuI5rnRe1wpmLXp3LTN85sHYT9s2am378OlHwem8kx9ue27NS3kfxtHPP42KvPTQz2wDtg UVV46c4fxofAdnJXWRgc9iDQBqu+KRUd+lfIAUMIcS+OANQXVlca4B+RteZ+OGCMfmlDofNGrUj c0fAR0GUhqx7cz2iiYpQWe0SGfgnm X-Received: by 2002:a05:6000:2413:b0:498:a72d:c097 with SMTP id ffacd0b85a97d-4d1e8cc3678mr12311633f8f.19.1796494945617; Sat, 05 Dec 2026 10:22:25 -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-4d1737db151sm12082405f8f.34.2026.12.05.10.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 10:22:25 -0800 (PST) Message-ID: Subject: Re: [PATCH 0/3] Add the Exynos7885 watchdog From: David Virag To: Paul Menzel , Wim Van Sebroeck , Guenter Roeck 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:22:24 +0100 In-Reply-To: References: <20261204174814.453359-1-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.62.1 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Sat, 2026-12-05 at 17:44 +0100, 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 (L= inux > > 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 it = 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-T5= 10, > > 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/00e4b9= 481434f9b0b644925a9bb2feaf3940219d > > [2]: > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4b9= 481434f9b0b644925a9bb2feaf3940219d/drivers/watchdog/s3c2410_wdt.c#L181-L200 > > [3]: > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4b9= 481434f9b0b644925a9bb2feaf3940219d/arch/arm64/boot/dts/exynos/dtbo/exynos78= 85.dts#L1976-L1984 > >=20 > > Paul Menzel (3): > > =C2=A0 dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible > > =C2=A0 watchdog: s3c2410_wdt: Add Exynos7885 support > > =C2=A0 arm64: dts: exynos: exynos7885: Add the watchdog > >=20 > > =C2=A0.../devicetree/bindings/watchdog/samsung-wdt.yaml=C2=A0=C2=A0=C2= =A0 |=C2=A0 4 +++- > > =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=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=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. Update: From manual testing on jackpotlte, I can confirm that the IRQ is 232, and the PMU registers are the same, but use bit 23 for the other WDT (both rst_stat_bt and mask_bit). The other WDT is perfectly functional. Best regards, David