From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 E047232A3C3 for ; Tue, 10 Feb 2026 13:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770730740; cv=none; b=ni9BjrOTWR9ukPV/8xkDow91g9+s59gnKTHK300RfSr0E6P9kPjc2MV3Nev8rQJB/zYNPaOZU6cLm+sIPRSgi+LTyXxX7LLU6Y3az8OQLgINl3nP5qus8EGnsRPpBRmNcF9yCnZhynoiWbHgwguAoqpeiGz74wTfL8PKeiX2YoA= 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.47 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-f47.google.com with SMTP id 5b1f17b1804b1-47ee937ecf2so53669985e9.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=g5ZzkyOBshBe5z0RCF3i6CBYpZD7N2Ant0RS25jP8IORxMOlz0Lg1IgGDoWsdgwnRR VgsGt3yjVktFJg+3+42x9ib23Co0w0xBp7joEOgfzuavDq9IEmI7GIKYcyWXe5j8G9pF yGFLGa87tfAV7T+8r0+Gyz4snS+P1QLNGWzdA/RF7zVHnFYKH/qzEALV4uJvT1pwenno uxdAfsocy0W6U32M7PblIv+SGu8uNZ481j4vXCrQyVQj0XnhJlCnO9wBkQnLNaZJpPA7 YFZlhfe5GSRJTiYsboFI6ooDVivzKcGQZ3gXfFHKX0VMfs/BqkNni0BbnQl1NGMR2NB1 Mfgg== X-Forwarded-Encrypted: i=1; AJvYcCXcw4dK7HdR7os4JTYq53I/4h057iaj6uzV0T2V6xGOeM4m9nTpDhbsWCcRpvBHPvky//Ft9b+0P4Aq@vger.kernel.org X-Gm-Message-State: AOJu0YzVMyBCs+yHu9Dpfwiugl32JbN/T2XX8WIcc+AdLRUy5vcNqkyL a1EBjHMOg9NauCDu3tCUQSHT94XvhTp40nD8gLjJE+OiHJjdtCw+L6Oe X-Gm-Gg: AZuq6aLAaZ3ZmD0nDZE8exAsVqHmXd+fQeA1bO5QXkkHUcfVn18aCEX/aux3ZpAhwHc ipZCa1J2vFeLY4ND6+rsww0uhgK2zQGHxu/Fj5E3N9qhoCL6ll0zOqwQAU7sD/JheKMjsMG5LUX ZbfZzmzxANaBAxEqrlzwTTvo5MgMuk19h1vFjzsI8B6Q9HCdf85uA3edJrfUAjA/Hn+/JeHcQ5F efR3cZuvob8LVor3FBdr+qGZRtURq2ZmR3vJu5nd3VG2i0eKKWlmxWrq16NgTYZV0dJ66Oma/EF yiXYkmFNO7dLfStdj9WhYkWoEKb6uij4a5ymxywqPKo2pdZHzoTmsA2R0QVpItXRkvqiAyoT2Zi ThB0r2N6jdM87WPnLL1MzwWnLV1G1UCfC7EPGPzf5gsm5GU7fyinlLenoPX3Hr0GTXp98cu8fnG NKQ7VSLxFvMSBh9+dPMvDljlBJ7//qM09qpw== 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 = ; 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