From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 2C34D37F002 for ; Sun, 5 Jul 2026 14:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783260069; cv=none; b=hQgdqQMs0jcYYAUxclCynRahxOAnZiCajGmLACkf9RM8RdRO1glaTJC2liiAcH2K0ZfvRh5MQi15ee2DL5EfcfUpLV7Z7inRzNl8oLHftiFV2CS4V+lb8hxSukDTLvqK/Jrep6viY7cI0QU2zrGgfZHH+eEpxZ0dKg9xykrNNXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783260069; c=relaxed/simple; bh=y91yCTn5OqFNj2gv1AniQU1l6RNsFXdk6j7Az5+Zq40=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=h/5na4BJt7dUHdP7AP57oCbOKzQx8xbLeoF0wUvhMB4Nobv6ztzq/9LgLffF99VekeyA5G2iNqxUGpRHDzI2FE8i07AmsH2wvCo0zHPdRSjoNfud6haISjYrNEt5rvy2JfAceC1No1K/FcxkOM4Sv/gSNKBvMnKq1123GUIZP88= 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=j7dr1RPB; arc=none smtp.client-ip=209.85.128.46 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="j7dr1RPB" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-493c59f740cso14390775e9.3 for ; Sun, 05 Jul 2026 07:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783260065; x=1783864865; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0Xmqz/oZ7aMrIDGMWhF1UArCU3La3CqQcUQWUOpBKws=; b=j7dr1RPBDX5afDhT32SujoNH8bgZDn35LPq3ZJRpVlTfYvEZ52YSpCSv7PtS0l47dW dfrEdbfeISf6mGXzkrsPibauoxelujD+dQXAav2VPZusjtpST/B9fyhCfL8fW7HK5KRX nIbvejtY87K5zLenCxTXXdQLmAsGbqYsC+UDG+pAOiya89vrJG1T47INVR+klj4Nwdrt cPF5xAlT6U3yuaWaTYwzPgekCumui6aNaBRZc2MRiiO1ZA7rpLgSSCfRuCsnMUsQm+zU DrK2jy9OKMFbUYqiSvDDB5BIgE9DIv0UnIPn0tE0x2tqLBXxQOYrICpvFoxCFQCpCOh7 OgaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783260065; x=1783864865; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0Xmqz/oZ7aMrIDGMWhF1UArCU3La3CqQcUQWUOpBKws=; b=PcwK51j1ir2honppf1Njp0lUn7OjUzDCQq23lp8E85PjliPqlFR4RNgh88IktQw9JB 2TiGokyD6ozGuK0QvDgmtMhqGTJDvImP6fubhEVmCQRFy3Zmw3ajwwxmKwf0p4qTHlOd GArhKEEXy4I70guV/iNeLAxpans/xYcOP4pMwEScoKzKDzU50dCQRVKNgDBCfwiktK+k Tzcz5k9xoWPpk4NExRaRy0wHcmvWx3oNIjf9l9NoyWQ5nL3DktrHGe0nnMYnRWcwSO0S 7aWXagnmpBGsVmw/oAo1gwsb95r7Ji0uBdEFbqae2YsB77IHHl9k7VuHPLpovImVpLXx QliQ== X-Forwarded-Encrypted: i=1; AFNElJ9s9c5JL7VNMEBwjkHExfkAibk16R+qbe+5J9ih3tdAVqhoZHnO49b92tWopwNukJ1JRO9z6wed+xD3qqA=@vger.kernel.org X-Gm-Message-State: AOJu0YzZxiII/BbRBH6miQVye3YDPBf9W+Zu3sDvGTMkSjylFBiF+f/r 8Htz7vgyq2eBPkJXY7VlOzhH6jMfNbfhUpQrgxDbumdaCvzhLfBt0vWT X-Gm-Gg: AfdE7ckbvdEwvIicTrihZEadcUm9VIKDw4gL6V6lb2CAGdywr+wMToNF78PADfund+1 jj+y+4e8Bb9K4F3IkHiIoPjZ+34OzFmOyjLZnupTeZAiUGW3IOpSDNHBEck+zkjnnYIaAJoiysr wxeH2SYeWp1NCKrOFr1XPx8uuPloYOJ283mFqofNnMG4fNhozxJ2czgrrgrHovyXhBVNvXhrej2 9BYChsiJMWF+kM8WkKIB23w6mmKNjRF1PKyT+ADhmq/x/mDAuHVxaa+R0mlyha3EDqUN/TeNALc IS4NaRum6SY1gRnMtAnfBkFFpO2Y1nvgdWBFt1qj4JC8INQVI75mWPG2zw8vpwIjxkkpyGkNFPI I8SGEgZ9eXDvLOaVpdMPD/b3c8oT8ZPhVB3HpVvPjKF/Tp38I+Epup2zkjlszJO6OltQ7LIbpQJ KSgGquAPzRaaxihxRwfDaJB7E= X-Received: by 2002:a05:600c:524b:b0:492:40e2:358d with SMTP id 5b1f17b1804b1-493d11de9bcmr79035685e9.16.1783260065332; Sun, 05 Jul 2026 07:01:05 -0700 (PDT) Received: from taln60.nuvoton.co.il ([212.199.177.18]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493cce040b4sm275911115e9.10.2026.07.05.07.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2026 07:01:04 -0700 (PDT) From: Tomer Maimon To: andrew@codeconstruct.com.au, wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: openbmc@lists.ozlabs.org, linux-watchdog@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, corbet@lwn.net, skhan@linuxfoundation.org, joel@jms.id.au Subject: [PATCH v3 0/3] watchdog: npcm: Add reset status detection support Date: Sun, 5 Jul 2026 17:00:57 +0300 Message-Id: <20260705140100.1543486-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.34.1 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 This series documents and implements reset indication reporting for the=0D NPCM watchdog driver on NPCM7xx and NPCM8xx systems, and documents the=0D optional GCR syscon property used by that support.=0D =0D Patch 1 updates the watchdog binding to allow the optional=0D ``nuvoton,sysgcr`` property used for reset-cause reporting.=0D Patch 2 adds watchdog documentation that describes the bootstatus=0D mapping.=0D Patch 3 reads the SoC reset indication bits and maps them into the=0D existing watchdog bootstatus flags for NPCM750 and NPCM845, while=0D leaving WPCM450 unchanged.=0D =0D Addressed comments from:=0D - Krzysztof Kozlowski: https://patchwork.ozlabs.org/project/openbmc/patch/2= 0260622083046.3189603-2-tmaimon77@gmail.com/=0D =0D Changes since version 2:=0D - reword patch 1 to explain the hardware reason for the GCR phandle and=0D why it is needed for the reset-status support, per Krzysztof's review=0D - cache NPCM750 reset status in SCRPAD2 so later watchdog probes can=0D report the same boot-time state=0D =0D Changes since version 1:=0D - Modify reset detection handle in the watchodg.=0D - reword patch 1 to use the GCR syscon-property wording from the=0D applied NPCM reset binding update and drop the optional property from=0D the binding example.=0D - reword the patch subjects and commit message bodies to match current=0D kernel dt-bindings, docs, and watchdog style.=0D Tomer Maimon (3): dt-bindings: watchdog: npcm: add GCR syscon property docs: watchdog: npcm: Add reset status description watchdog: npcm: add bootstatus support .../watchdog/nuvoton,npcm750-wdt.yaml | 6 + Documentation/watchdog/index.rst | 1 + Documentation/watchdog/npcm_wdt.rst | 71 ++++++ drivers/watchdog/npcm_wdt.c | 217 +++++++++++++++++- 4 files changed, 293 insertions(+), 2 deletions(-) create mode 100644 Documentation/watchdog/npcm_wdt.rst --=20 2.34.1