From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796495193; b=FKYQ5nlb8s7lWmxojVT9aQsYq70a4oJVO/mb7DoHZ/ii+kHlhSdL6OV0VaQUYDRXf1MB +f4CaZzYMr82QtpfBZCA9bAq84LOO1OFUoOhp/g+i9VHvqcd+KVcCZUkB3c1I8aeR0NR7 jkFTDD9J1vUt8ck8fli8qSx1tRAKK59lbtZXJlBa93EGlPupIZN7vnb5VzG/6nYui86bS kwUmCgttbxYOWDnhkBdZJ7bf+Z6g9UadfiFuD74ws1dE5D9U/c90sZ8Qld3pQh8DLMUwh c04UsWWjU+VxI0E2MDlwQAxLn3VKge5lyrjsAQLJUwbxk3SBlWSdV+UVGYTMTb6/OrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796495193; 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=1kToNPrmVzq6t2jm2Ly2SuBBx1h3KTs8rXlYZf4iaPQ=; b=FUjtraQa5hfKYAX2OyZJP/VxPoyS0qi2wIHoLuOwSMmbQ0ndaSRdw/kJC3du2Hg4aCN8 gRK9RqL4JK7fN1EbRmi8GxacmkD6lQEtmHz5tCDf9G5WEIVUAfMoKzK2cfwkLfvuhUmmK O7TQU1fAMo8/Pz4Z1Tao1tN0g0KjLEMEupOpJ9mzwE4kcFvPFY3Gz9rKVf7ZgeyyMCHUs FRoRfS8QLV80tqb0tNEtme0ndKDlOtsA+j/wpTBUgTqkHN/yWB4zFt/cbT5x2VZzI+r+i pk75wZ2uW3y/JuOB2fmOTroR5CEGgq95ZIOjxkTQjDTv6+WAHWRWhbUPZsFq4fgQfJA== 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="QA/+PeNX"; arc=none smtp.remote-ip=209.85.221.53 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 C78F0606A31F for ; Sat, 5 Dec 2026 18:26:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C78F0606A31F 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=QA/+PeNX Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-48dfc0421d9so1697048f8f.1 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=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=1kToNPrmVzq6t2jm2Ly2SuBBx1h3KTs8rXlYZf4iaPQ=; b=QA/+PeNX9ECG0ZNVhgEs8UneQ97iYQ+UTLLI3ODv/xe8a24xXMfuvG/uvhiDG1QRjK DM5k9tDVvCyrsk6nhAopDbJ1BeA3+WW7RBjUxEvUmNWSe7CYhM+cypCXt6MBff7LIDgU 1+gCaS7SuydBXoyn5EF9XxGEjqCoKOmZKBQ0PcfC78vzvymiOUCQr0ecbTjmdb8ajk94 XmkZ2hF9b24mXwZg/5x4sgE7yy42adgZ5BLAJX/9hxX9frKuLRJg/C/HWFL+mlM+wCGV n6+sBDldWcmyYi4W6grCqLbv98s0ziLzNAABXMCbx68ieo1M7OZwD2R4w5zPus9q4TuF iAGg== 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=1kToNPrmVzq6t2jm2Ly2SuBBx1h3KTs8rXlYZf4iaPQ=; b=PtBYZm1imyPm88BGxhQW3a8opCrpggJu/IOGuTe/tl5xA4nEFbyv+EHSv+sDtrucnK DZk5+8blQZVlm3/ZgVKDcWJBxcvCfST2GRV762li8mp3SXGlpB00lka2Jksn59f702TP 2JAAsyc5dGlaZqglIN0wTZnxkQ5k9aIsKd1YpeRLcGz6nu0GQ+fQnOcrcHnN1Nj4jIs5 3vHB51VnPou9916/31f0xqZMJ8gn2QuuF0+gIEPlBkP/hDMhkXYOuuGqk+DbdKzIQ2Fa beSvu1njoXED4rhFHDyla+mD0IDJ4wXVZyOnC6tNozIn6eBeNntcka/iOUiET7whIskO njIQ== X-Forwarded-Encrypted: i=1; AL+hErG17htciIOsFXg/aPOlY9jQdFjQHleBK3u7VpGQf8jGXb9VTlZQUHB7K+7ijxKTuqr47MTB2+LQ2EaX@vger.kernel.org X-Gm-Message-State: AB4q+uG8iosnxALc5h7eRU73HY3mQT5DJLbaWVxUxrVp7CUeRGTE0UFM DsDdBYJhj7TFtfMmHzG0t6uaa5msTC8uz5LWGWY5MxpMLITo+vrXS9kD X-Gm-Gg: AZFdTZfFGFhKcfMVAdz6bM0U9TcfJqyfBhTYvmNloRXN0p3DvDCNEBltWp9twdCl8qd ycujNzW6yl2BZpAtfvWT8C0En7hbjAxkgk4KUlQT4luY+z5cET8JivoOuM0eKMYyQ/wYdJ/HOf6 0S8uQkSgCJI3SOPVlsHLW+d/pR+1+aFkb/+F1lJoKji2CnSLQWISp2tsjbXRe8FAPFGcHbn+fxk omUG7Rt/MYqfVMMLvPW2Ij6RgX1GIoGKuk7m0xw+MYd8qYWgZZ1/nL9RDkZM/gRiokLqI/kIbJr DM+O93iyzZzFxpKwKOEplrnYhunUqhDeUG8Y9Q5Cb56V38I65KsLrTOa1U2Abk6+iKkaBm1fwjD 5VyTeGssQ1R6HGVTyMLXu7DMSedNS8jcqdXJsh5retinP0V8d/HHvxxc6lCr/mQaiqL//9ewWxv w5hdEirb3EXFZrRaYRv+plQ9MeWuD00LXiXzQ5G+LlKMHjFnXHrWJSuWGyVKPlMfz5rrfnHg8h5 iyKa1RPNDAx+dDrAiSPCTq5LoaG/LpIjXUqU88PoeuYeYTcGJdfOz+w0zNA9zvLUOqb6pifM/C7 hSRGQWsxxCQlSIsxDRRmTJHClwTj9LHhZWkLPll5F3omS5EG0r02a7tSQC0B4RHSZnxDb9wZ7kc HK0oZQl2anbOCktyfUhbrObXHvSW7RSVGiHnH23WGcXsFgoPKmg== 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-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 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