From: Krzysztof Kozlowski <krzk@kernel.org>
To: Tomer Maimon <tmaimon77@gmail.com>,
andrew@codeconstruct.com.au, avifishman70@gmail.com,
tali.perry1@gmail.com, wim@linux-watchdog.org,
linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: venture@google.com, yuenn@google.com, benjaminfair@google.com,
joel@jms.id.au, openbmc@lists.ozlabs.org,
linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: watchdog: Add NPCM reset status support
Date: Tue, 10 Feb 2026 17:11:49 +0100 [thread overview]
Message-ID: <b746dd7d-550c-4877-9210-754ae278e1a2@kernel.org> (raw)
In-Reply-To: <20260210133843.1078463-2-tmaimon77@gmail.com>
On 10/02/2026 14:38, Tomer Maimon wrote:
> Add reset status detection for NPCM7XX and NPCM8XX platforms via syscon
> integration. Document syscon property and three configurable reset type
> properties (nuvoton,card-reset-type, nuvoton,ext1-reset-type,
> nuvoton,ext2-reset-type)that map reset signal detection to specific
> reset bit positions.
>
> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
> ---
> .../watchdog/nuvoton,npcm750-wdt.yaml | 51 ++++++++++++++++++-
> 1 file changed, 49 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm750-wdt.yaml b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm750-wdt.yaml
> index 7aa30f5b5c49..054cc0115af2 100644
> --- a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm750-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm750-wdt.yaml
> @@ -12,7 +12,7 @@ maintainers:
> description:
> Nuvoton NPCM timer module provides five 24-bit timer counters, and a watchdog.
> The watchdog supports a pre-timeout interrupt that fires 10ms before the
> - expiry.
> + expiry and reset status detection via syscon integration.
>
> allOf:
> - $ref: watchdog.yaml#
> @@ -40,12 +40,55 @@ properties:
> clock-frequency:
> description: Frequency in Hz of the clock that drives the NPCM timer.
>
> + syscon:
First iteration. See "How to Get Your DT Schema Bindings Accepted in
Less Than 10 Iterations"
or just read the docs please.
> + description: phandle to the Global Control Register (GCR) syscon node.
> + $ref: /schemas/types.yaml#/definitions/phandle
> +
> + nuvoton,card-reset-type:
> + description: Reset type for external card reset signal detection.
> + enum:
> + - porst
> + - corst
> + - wd0
> + - wd1
> + - wd2
> + - sw1
> + - sw2
> + - sw3
> + - sw4
You want it to be static configuration, so cannot be changed runtime? Why?
> +
> + nuvoton,ext1-reset-type:
> + description: Reset type for external reset signal 1 detection.
> + enum:
> + - porst
> + - corst
> + - wd0
> + - wd1
> + - wd2
> + - sw1
> + - sw2
> + - sw3
> + - sw4
> +
> + nuvoton,ext2-reset-type:
> + description: Reset type for external reset signal 2 detection.
> + enum:
> + - porst
> + - corst
> + - wd0
> + - wd1
> + - wd2
> + - sw1
> + - sw2
> + - sw3
> + - sw4
> +
> required:
> - compatible
> - reg
> - interrupts
>
> -unevaluatedProperties: false
> +additionalProperties: false
Why? Nothing explains this in the commit msg.
>
> examples:
> - |
> @@ -57,4 +100,8 @@ examples:
> interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
> reg = <0xf000801c 0x4>;
> clocks = <&clk NPCM7XX_CLK_TIMER>;
> + syscon = <&gcr>;
> + nuvoton,card-reset-type = "porst";
> + nuvoton,ext1-reset-type = "wd0";
> + nuvoton,ext2-reset-type = "wd2";
> };
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-02-10 16:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 13:38 [PATCH v1 0/2] watchdog: npcm: Add reset status detection support Tomer Maimon
2026-02-10 13:38 ` [PATCH v1 1/2] dt-bindings: watchdog: Add NPCM reset status support Tomer Maimon
2026-02-10 16:11 ` Krzysztof Kozlowski [this message]
[not found] ` <CAP6Zq1jZorLxXQYqm5KzcYdoRzcFtD1KQqzmgaa6KKy-+Tpv+Q@mail.gmail.com>
2026-02-16 11:15 ` Krzysztof Kozlowski
[not found] ` <CAP6Zq1hLkT-xMwV99yVE-hLsf_nT+V_3v7sEshfqEkkRCkEevA@mail.gmail.com>
2026-02-16 14:48 ` Krzysztof Kozlowski
[not found] ` <CAP6Zq1iWpHc-Rsq62iBN0VtYmYS2=KhU12TE_5nxztr+HbB+tA@mail.gmail.com>
2026-02-16 18:03 ` Krzysztof Kozlowski
[not found] ` <CAP6Zq1gRd8zDi1rOkX+2x3WP0ZGnULaJ0cGS6bwpRpcmQNmRCA@mail.gmail.com>
2026-02-17 7:12 ` Krzysztof Kozlowski
2026-02-10 13:38 ` [PATCH v1 2/2] watchdog: npcm: Add " Tomer Maimon
2026-02-10 16:02 ` Guenter Roeck
[not found] ` <CAP6Zq1gGVB+hk+=xSRyPgddq07F_B+oE-dc246JRW2_waoe_bg@mail.gmail.com>
2026-02-16 15:26 ` Guenter Roeck
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=b746dd7d-550c-4877-9210-754ae278e1a2@kernel.org \
--to=krzk@kernel.org \
--cc=andrew@codeconstruct.com.au \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=openbmc@lists.ozlabs.org \
--cc=robh@kernel.org \
--cc=tali.perry1@gmail.com \
--cc=tmaimon77@gmail.com \
--cc=venture@google.com \
--cc=wim@linux-watchdog.org \
--cc=yuenn@google.com \
/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