Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4709948ybf; Wed, 4 Mar 2020 09:08:54 -0800 (PST) X-Google-Smtp-Source: ADFU+vvwuSufvHw2KpwV1yyXVrnQyQ8AIPDf7JZzVKrWG9WMWDRa4nZ54rEByA+yW7X8T+KXwhTu X-Received: by 2002:a05:6830:1b68:: with SMTP id d8mr3088987ote.56.1583341733625; Wed, 04 Mar 2020 09:08:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583341733; cv=none; d=google.com; s=arc-20160816; b=nxkIUiw8NssTq9/H18idJG9I4xhYxDAHJLRRo027QWGqFNccRT4AucgUj5qr4PpP0K lzYbE0IN7aBcTIihgj+BAlv7rYF6OWRlRwcSRWfEWmAoe/Ey2CVL5gEbB2IDSel3KXZY D6jahYB1NqsQmkt+nqmOIpq+5GntFR63LyvEq5ZTaVnND8GZGviKDarIIIckyLHvCe1i KL5HUmzc1BV9+n2rpcCArXGRoxI+MOyGc0vjLuiwdN7Gr2S5Guqo8t1B1Nylp9oQHxUh AU6a0I/Kj381TKM51zSHusDQ8Pkcdznr4dU9EWJO5/0GJaNkV9N45mnX0VP0kCosr+cg 1KJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WcXiDjy33PYge8hUsXuS+/8NVEyCDj8/Q41XwHVNKcw=; b=w/gkZ1DLTEf8eN8MxpD16JOdmtAeYQqLocgpuc8n7GmiNaz7zzJ5XuGOR7ClNO7hVm 2gjDUB8RR+i8B/HEmfJRm9spMES/lH0DRkMuwINMQcAsB/GUzbNQhMe9oYg9s0gZU3jB wY7YYNFnd+9eYg2/vwBeVv9eERFeZoKLtfLHf2EwC2HouLHzVbgTyJcqxsb/16WdujQF fNv2kCxRyFs+Btd9EWLThR2P0JXrgiyeKXTozVGJMYVN8eosTMz1vMpyjwhPlZxyrHDx KPAIufKYthpHYb+/nvGjWIBFi7yWqa0bB9kD/53EYDQ2yE//YLfks+NRM6wSVNnyax9r 5s1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nPtvWklQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si1477575otq.57.2020.03.04.09.08.39; Wed, 04 Mar 2020 09:08:53 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nPtvWklQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729436AbgCDRIf (ORCPT + 99 others); Wed, 4 Mar 2020 12:08:35 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37366 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbgCDRIf (ORCPT ); Wed, 4 Mar 2020 12:08:35 -0500 Received: by mail-pf1-f195.google.com with SMTP id p14so1268868pfn.4; Wed, 04 Mar 2020 09:08:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WcXiDjy33PYge8hUsXuS+/8NVEyCDj8/Q41XwHVNKcw=; b=nPtvWklQt9QghWJiSdW0QkhlOrTOjZ3+Pds6ZlGJMH65EhPXyR/CLtQPDyWFP6vkVk WBs9KyqFwr2826o1eb60HIE/D7eB88nLn5qItsO4QRJum9NW2rUgoDgdu2C/+OBnAOSm 7VGNMVXMqTvDsGKcEVAvHD4xY3TNY3Ecoz0Qo3LB+REQP+1vkTxrkDtf35T1c8a3WTAq sLvRu06xnTEnC5SFMLwJEPp9umUI7fdjZNSUghVcNxaa2fnjI1marOElFj9M6v17L6Tc cDQfQ0dSZIo4z57MzT4QliTFyIk634DnwZVwEEfcMAlNnN7o5KsNQ0HOvPjIMqpmRcrW VDkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=WcXiDjy33PYge8hUsXuS+/8NVEyCDj8/Q41XwHVNKcw=; b=LtxuIWkB7jA7iRBbH6itoPJdHforyXTj/PopdN5BWPKOWqc8XqIXJ/ZbsznIscN52q cR7aDVeZm5wYrXIhEz/9IigxyWt0MSBq+tTAN9ujucnvE2HAsLaU2wxwvtLBGDZscEJH 0UhyZrANerWSeYWlm+wohZI6muLvDxCigOj5hfdn3oxXGMI8s8lypbvwJC0bp6NJIQyH XcwAp5PqVG1+4L2nb8rEPSR4da95/AP+m15hr0ujyQC8iGuhzVA5AAmFeHKzFIAawdFx TINtFEQPeRZrbdhXUH2CQ3siRsRvvq2+/cewYI9mgyjKNuzlZBQ7Qj9EGVgzb/hk59yI AeeA== X-Gm-Message-State: ANhLgQ369ya3bfrbkODjHrg40I9W6sxjFPb9gJ8ZEL3P8TsbSAbjx2/N zLHijcR3W8Lw+KE51x19E7o= X-Received: by 2002:aa7:91d7:: with SMTP id z23mr1179323pfa.160.1583341714250; Wed, 04 Mar 2020 09:08:34 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id h8sm1192994pfn.59.2020.03.04.09.08.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Mar 2020 09:08:33 -0800 (PST) Date: Wed, 4 Mar 2020 09:08:32 -0800 From: Guenter Roeck To: Tomer Maimon Cc: wim@linux-watchdog.org, 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, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v2 1/3] dt-binding: watchdog: add bootstatus reset type documentation Message-ID: <20200304170832.GA22914@roeck-us.net> References: <20200303100114.87786-1-tmaimon77@gmail.com> <20200303100114.87786-2-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303100114.87786-2-tmaimon77@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 12:01:12PM +0200, Tomer Maimon wrote: > 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 6d593003c933..65e24a80ee70 100644 > --- a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt > +++ b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt > @@ -17,6 +17,33 @@ Required clocking property, have to be one of: > > Optional properties: > - timeout-sec : Contains the watchdog timeout in seconds > +- 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: > > @@ -25,4 +52,7 @@ timer@f000801c { > interrupts = ; > reg = <0xf000801c 0x4>; > clocks = <&clk NPCM7XX_CLK_TIMER>; > + nuvoton,card-reset-type = "porst"; > + nuvoton,ext1-reset-type = "wd1"; > + nuvoton,ext2-reset-type = "sw2"; This set of properties maps chip reset types to reset types defined by the Linux watchdog subsystem (ie WDIOF_CARDRESET, WDIOF_EXTERN1, and WDIOF_EXTERN2). It is neither a hardware description nor a system configuration. It is up to Rob to decide, but I personally don't think it is appropriate. Guenter