From: Tomer Maimon <tmaimon77@gmail.com>
To: 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, Tomer Maimon <tmaimon77@gmail.com>
Subject: [PATCH v1 1/2] dt-bindings: watchdog: Add NPCM reset status support
Date: Tue, 10 Feb 2026 15:38:42 +0200 [thread overview]
Message-ID: <20260210133843.1078463-2-tmaimon77@gmail.com> (raw)
In-Reply-To: <20260210133843.1078463-1-tmaimon77@gmail.com>
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:
+ 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
+
+ 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
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";
};
--
2.34.1
next prev parent reply other threads:[~2026-02-10 13:38 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 ` Tomer Maimon [this message]
2026-02-10 16:11 ` [PATCH v1 1/2] dt-bindings: watchdog: Add NPCM reset status support Krzysztof Kozlowski
[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=20260210133843.1078463-2-tmaimon77@gmail.com \
--to=tmaimon77@gmail.com \
--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=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