Re: [PATCH v1 2/2] watchdog: npcm: Add reset status support
From: Guenter Roeck
Date: Mon Feb 16 2026 - 10:27:24 EST
On Mon, Feb 16, 2026 at 04:30:46PM +0200, Tomer Maimon wrote:
> Hi Guenter,
>
> Thanks for your review.
>
> From your comments and from Krzysztof’s earlier feedback, I understand that
> I cannot use Device Tree properties to describe software behavior, and DT
> should only describe hardware.
>
> Given that, I am trying to understand what would be the correct upstream
> way to expose the different reset causes that the GCR reports. The watchdog
> framework provides only a few standardized bootstatus flags, and I would
> like to check whether it is acceptable to map the different reset causes
> into these existing flags.
>
> For example, conceptually:
>
> - WDIOF_CARDRESET → power‑on reset
> - WDIOF_OVERHEAT → core reset
> - WDIOF_FANFAULT → watchdog reset
> - WDIOF_EXTERN1 → SW0 reset
> - WDIOF_EXTERN2 → SW1 reset
> - WDIOF_POWERUNDER → SW2 reset
> - WDIOF_POWEROVER → SW3 reset
>
> Is such a mapping acceptable?
>
Ok with me as long as it is well documented (i.e., in
Documentation/watchdog/npcm_wdt.rst or similar).
Guenter