From nobody Thu Apr 2 15:35:54 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D890B329E52 for ; Tue, 10 Feb 2026 13:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770730740; cv=none; b=q90W+fW4k/LB10FUTOOtACiN0GwNcdCIk9VPq/65w+Pk3dBpZrL/d1lhG0Jf8D+TsNz4n8++0YShHPP7LKhSTi2tokJxXJBbsNkw/snRctEOQ/vxNyfeMnW/33reLc9EvAYKFCVif+JkqXiDdT2JtuGc5LmJGOAmlwwVFGf9tBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770730740; c=relaxed/simple; bh=8F4cLTHuBDdfXE5ZM9txPWyNbSnh/bI2GKOgahn+3no=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kL1BsQL725ZisiiNEOGXvtVtfNJZ53HOdXmiGMuFEWdLf1m7HeyR/gLLHQHBTVUuOq0q77maKVD/lnnqx7L/L9icMmD1pPsFYIK70UB9L9V2mPWNlX55MZOu6EhdtugRhapo9B5+2FVT2XsVPmtTnFr7LzQhI4LIavVWeWNVTwE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LTeUeDMX; arc=none smtp.client-ip=209.85.128.48 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.b="LTeUeDMX" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-482f454be5bso56162475e9.0 for ; Tue, 10 Feb 2026 05:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770730737; x=1771335537; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iODKpq8SiTOJupDlKbF2WoG4lC9wFyKPKfQ6o0K08dg=; b=LTeUeDMX3owftF4X8dsgziFISZN7mgFCiO9pOm4dS1/l35jNIYTd8om/3GMBLzXQDl qLCF1jmfdcGXYJ4YlWvjncldvjPm+9x3B5ipmWcb08uQtvMB6h1yvrPloeIcQFYPrluF p0SZWxr4UjO/F9oyZ2ctFWQYXxYcr1TCT6S+BSxi4lFz7q3Rqjk04kqS570tgpKksOzY 4lxEujOsdZgeJH/hW576inPElBlUssEWUildBxCaB7s5itLjyY7yFFFpRTNreBE4V6un C2Ox45rgAM3bBitIzxAdX/OXtMwRsVnAQiMowWAQQXLN6OOFjJOpBZBEkshjNaqmwZVy 19aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770730737; x=1771335537; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iODKpq8SiTOJupDlKbF2WoG4lC9wFyKPKfQ6o0K08dg=; b=hF8nIpBDkZOAKRPSlOFoE19OGNY9JgTfdOCxce7OIvevrSdGoiKlc9mMoz68aLdNRA bo4WmbMJCHNBiWPRK6ZnJk3mqLxFddOoW2L9QQfeADNcJAAqRovYlxZrkyorypHVeJov hvH9kqz36J2CkPxLO3dT7W+51EQVQ08gcD6lCmqTa5reWLNj/qHtg+j5/ap24IO2riH4 Cxaqspk04xErVokNkcM917ViAilJFhp0B6htvs0zDferM0SxjfZ/fccIXW29zah9OaIS UrU+uLv+fiQKgdSiwzMtZJ5mDnJjebMu1/Ny7uGMnAAM9OVheCpEUm9mgd2nV49FrFCx g+GA== X-Forwarded-Encrypted: i=1; AJvYcCVsmRE4KvyWDWLVtmgvR1VC6lOh9eGIbMm5G7blhnWfUwYhBSzrOnEthLumGbnT/palRbwmH1qovnduWzU=@vger.kernel.org X-Gm-Message-State: AOJu0YyXXrO+doVn8qxNCaAvY+gDuByBEmV4O60iARSzrPDlV8J6xL4E ly7MX36vW5DP5YjUZAPHXCW6CkXAym6YnXFPihowKuONgDn6nJTzep8z X-Gm-Gg: AZuq6aJ11SErE4kU+cVVAQ14lo8ydkyZy7iZUbYacabYAWyFNvOfvtljxzVVJogwOTS QcjvfTA6rI6OXyZ6GreY766JjRmOWXt7xTj301sK9nA+YERRcDoS4JS+jpA2m7L/p/db8iu2loJ pTubrYyJsE9PMX9YXC4mlxp2O+1yZhlbABp80EgmEj23Yel+cZBqnWp55sWjT8z2c+BJbdkm+Hh gVbKUoEzOQ1MKj/c02buJyzawj+M1nr8lP7826zznXluPAwYKQBT8SFYA/uPxzm5WOvbYL1vFat MJcWRBjnhevm+YG0pBuWjzTNG+o/xYXJ74iXlfQAP9TTzqzvoGPcIX3eGcR+wZDBZsNjZOL9Lms KyA5WxTNc96N09hveCBDID2imvGPAoLDxxbMB7fYM7i69GUx1u9ZnH7WzEMfXP+8IBvlWO0/R73 rJGMp+RZa6ktdAPMQpi2lyP77aQms5Y0qPRw== X-Received: by 2002:a05:600c:3e1a:b0:480:1c1c:47d6 with SMTP id 5b1f17b1804b1-483505116camr34660955e9.6.1770730737018; Tue, 10 Feb 2026 05:38:57 -0800 (PST) Received: from taln60.nuvoton.co.il ([212.199.177.18]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4834d5d8df8sm66773415e9.3.2026.02.10.05.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 05:38:56 -0800 (PST) From: Tomer Maimon 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 Subject: [PATCH v1 1/2] dt-bindings: watchdog: Add NPCM reset status support Date: Tue, 10 Feb 2026 15:38:42 +0200 Message-Id: <20260210133843.1078463-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260210133843.1078463-1-tmaimon77@gmail.com> References: <20260210133843.1078463-1-tmaimon77@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- .../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 wat= chdog. The watchdog supports a pre-timeout interrupt that fires 10ms before the - expiry. + expiry and reset status detection via syscon integration. =20 allOf: - $ref: watchdog.yaml# @@ -40,12 +40,55 @@ properties: clock-frequency: description: Frequency in Hz of the clock that drives the NPCM timer. =20 + 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 =20 -unevaluatedProperties: false +additionalProperties: false =20 examples: - | @@ -57,4 +100,8 @@ examples: interrupts =3D ; reg =3D <0xf000801c 0x4>; clocks =3D <&clk NPCM7XX_CLK_TIMER>; + syscon =3D <&gcr>; + nuvoton,card-reset-type =3D "porst"; + nuvoton,ext1-reset-type =3D "wd0"; + nuvoton,ext2-reset-type =3D "wd2"; }; --=20 2.34.1