Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1136688ybf; Sun, 1 Mar 2020 01:43:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vvw0PKHsan/77uYUdoEyXvVoJlAFj6SNQmMwI8dB8ILxg4WNbcqUw79vDT3c+sTmT7XQ8zM X-Received: by 2002:aca:c7c5:: with SMTP id x188mr2372736oif.130.1583055804939; Sun, 01 Mar 2020 01:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583055804; cv=none; d=google.com; s=arc-20160816; b=WDzhP7MDW2ZoUYh6Qc9mYXyrQOFXPtalL6N/UunHo8tF+p3vZKTzfBVFQdS2TJ38qB It56SbPVpGHsQv6s9ugGtpyNKOaviRW5zB9DWTHbolWH7xo6EyLCHHKLwMvUa0yUgiZ0 NHGKT0F+DAAd8HADSxlkKZ3zqFJfqyzpaod6FPVuchO1nsvnuzqJHTWssHct8DI0vC+g oxTOx1y3wz53Y71b9tUQJjrNt1dyjMyx1ltmO1Si4pvr0Kg3QPtT5pxIieSb5TTzNm+k JEgf28SEgLx/lsHpj2b1w2pw/Nfy615+OOCzdQiOhjtU8Wkxfh03zGKj4vYFX+4r3AlE ngKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=k9pgvQENI2ywgkI+ac0jJZ9QrZTEYFXyC/MPlHj5J7o=; b=Enc62EURH4KDJXGSAf6ySklkqwd3mk7x3zvUvhCfj5Ay/fISpgAP+8avd4IOeWVwuY dBU7h2JpAuYRx0sWp9evL5VfkxiE28JHgHWb7lSEZ//oBVYUrN/mb6weDwMmThm1Ror1 BOk/Me3OQKXmVuPR7c3IEFZ6rdbkQbQwpIZK1qDjHrNAeRW6n6TJGIlIcBNFhi8UB8HH wMr1DJlIysVA44DfQ1C4XOort5sIu+3RNue6HpzeGxCvoA5uZEM+BhdqFcjgus5ZFeh8 8pAVn1bYMfoYFAUAsjNQV1aEUcsXD+KooFfjC0H2VSeUGwk9Y1jvsfFJs+Dtdymu7nba Cw6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si2207932otk.5.2020.03.01.01.43.12; Sun, 01 Mar 2020 01:43:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbgCAJl4 (ORCPT + 99 others); Sun, 1 Mar 2020 04:41:56 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:38433 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726151AbgCAJlr (ORCPT ); Sun, 1 Mar 2020 04:41:47 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 0219eidV028748; Sun, 1 Mar 2020 11:40:44 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 34FF8603B0; Sun, 1 Mar 2020 11:40:44 +0200 (IST) From: Tomer Maimon To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, avifishman70@gmail.com, tali.perry1@gmail.com, yuenn@google.com, benjaminfair@google.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Tomer Maimon Subject: [PATCH v1 3/4] dt-binding: watchdog: add bootstatus reset type documentation Date: Sun, 1 Mar 2020 11:40:39 +0200 Message-Id: <20200301094040.123189-4-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200301094040.123189-1-tmaimon77@gmail.com> References: <20200301094040.123189-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree three bootstatus reset types documentation. Signed-off-by: Tomer Maimon --- .../bindings/watchdog/nuvoton,npcm-wdt.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt index 0a0f86a25eb0..836e0ac29196 100644 --- a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt @@ -18,6 +18,33 @@ Required clocking property, have to be one of: Optional properties: - timeout-sec : Contains the watchdog timeout in seconds - nuvoton,restart-priority : Contains the card restart priority. +- nuvoton,card-reset-type : "porst|corst|wd0|wd1|wd2|sw1|sw2|sw3|sw4" + Contains the card reset type for checking and indicating + the last card reset status (WDIOF_CARDRESET) + + If 'nuvoton,card-reset-type' is not specified the default is porst + + Reset types: + - porst: Power reset + - corst: Core reset + - wdX : Watchdog reset X (X represante 0-2) + - swX : Software reset X (X represante 1-4) + +- nuvoton,ext1-reset-type : "porst|corst|wd0|wd1|wd2|sw1|sw2|sw3|sw4" + Contains the external 2 reset type for checking and indicating + the last external 2 reset status (WDIOF_EXTERN1) + + If 'nuvoton,card-reset-type' is not specified the default is wd0. + + Reset types are the same as in nuvoton,card-reset-type property. + +- nuvoton,ext2-reset-type : "porst|corst|wd0|wd1|wd2|sw1|sw2|sw3|sw4" + Contains the external 2 reset type for checking and indicating + the last external 2 reset status (WDIOF_EXTERN2) + + If 'nuvoton,card-reset-type' is not specified the default is sw1. + + Reset types are the same as in nuvoton,card-reset-type property. Example: @@ -27,4 +54,7 @@ timer@f000801c { reg = <0xf000801c 0x4>; clocks = <&clk NPCM7XX_CLK_TIMER>; nuvoton,restart-priority = <155>; + nuvoton,card-reset-type = "porst"; + nuvoton,ext1-reset-type = "wd1"; + nuvoton,ext2-reset-type = "sw2"; }; -- 2.22.0