Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp708484ybn; Wed, 2 Oct 2019 05:04:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6bOYxCjX2TZylv/Qfor9fwwH8uLrdOjIahyACqEaG8TAxjgWj4JpOjjnP2XhdJ6Q3lM8X X-Received: by 2002:a17:906:4b15:: with SMTP id y21mr2636783eju.112.1570017892326; Wed, 02 Oct 2019 05:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570017892; cv=none; d=google.com; s=arc-20160816; b=LFqXTdLA8cx7CYUxgwLGi1v1UdRZtx5tU22fhvcZHx1/9RncbxkVjwARQT5TZnhR3T O+BChp+BtGigSMT1e310L2iK7zJ7szGdlupxdE5xVJZI5W9vTp3xfSxPgeB0Od+hX1ML OxDR8cRJmBEUy5QhSo9SfR/CH8FM5hpj2L0+On+iOhJ3jOfPHgiiFa7irxjKdRYFgVOQ WIMs4W3gTeSHMMcs5n9W/hsYiNYFDDti1+FYJMmkYD8ptL5malYqwq9C8O21QSH8J9+6 W23zv35KOlMxMDGLeokSBtf78mNwOD/YW+Eqw/Nhs0cYXUEn9WzXX3Kz0Sl5xNANtf6b cxnQ== 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; bh=eD6nduGc/6fMYCXJGVUtUYe7gAHhTOaziJdB1VOlDeE=; b=b9YAuRerPo1YuxPrJrl3ClnDNW3vOtBahyHQ9o9uhPLbkhKnWk+a4EEWP4I/e26Pag pAlXbIHzbBvjXzEfabZZUrknLYO0Cg9HwlSrG1qc2dr+Yz3qTLnSqC/LWtv7lJi2by78 ++crMyiyYt6E4ebQhWzo3WyWBdIu1fqMfKzf/KGE9JsUXSwNFDhMUzUhmR/+amAclw75 n2f83aziLRsVXcs98//uPh54pnf2hw0lHqmA5kdDyJD3HpVkGBfBgF/4y4PANdbaJpvf XDpTE5I4Fo+7+TTMCU5ZM0cHeIFimX8ZHIlZxPEe4xgu1e8uAMy5lAYHzDA3RD4W2YqE wxbg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si10645711ejv.112.2019.10.02.05.04.18; Wed, 02 Oct 2019 05:04:52 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727350AbfJBJ4y (ORCPT + 99 others); Wed, 2 Oct 2019 05:56:54 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43081 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbfJBJ4y (ORCPT ); Wed, 2 Oct 2019 05:56:54 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id ED5F9240015; Wed, 2 Oct 2019 09:56:51 +0000 (UTC) Date: Wed, 2 Oct 2019 11:56:51 +0200 From: Alexandre Belloni To: Eugen.Hristev@microchip.com Cc: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas.Ferre@microchip.com Subject: Re: [PATCH 1/3] dt-bindings: watchdog: sam9x60_wdt: add bindings Message-ID: <20191002095627.GK4106@piout.net> References: <1570001371-8174-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570001371-8174-1-git-send-email-eugen.hristev@microchip.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2019 07:35:23+0000, Eugen.Hristev@microchip.com wrote: > From: Eugen Hristev > > Add bindings for Microchip SAM9X60 Watchdog Timer > > It has the same bindings as > Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt > except the compatible. > Maybe it can then use the same documentation file. However, I think you should already use the yaml dt bindings schema instead of a simple text file. > Signed-off-by: Eugen Hristev > --- > .../devicetree/bindings/watchdog/sam9x60-wdt.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/sam9x60-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/sam9x60-wdt.txt b/Documentation/devicetree/bindings/watchdog/sam9x60-wdt.txt > new file mode 100644 > index 00000000..74b4e2d > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/sam9x60-wdt.txt > @@ -0,0 +1,34 @@ > +* Microchip SAM9X60 Watchdog Timer (WDT) Controller > + > +Required properties: > +- compatible: "microchip,sam9x60-wdt" > +- reg: base physical address and length of memory mapped region. > + > +Optional properties: > +- timeout-sec: watchdog timeout value (in seconds). > +- interrupts: interrupt number to the CPU. > +- atmel,watchdog-type: should be "hardware" or "software". > + "hardware": enable watchdog fault reset. A watchdog fault triggers > + watchdog reset. > + "software": enable watchdog fault interrupt. A watchdog fault asserts > + watchdog interrupt. > +- atmel,idle-halt: present if you want to stop the watchdog when the CPU is > + in idle state. > + CAUTION: This property should be used with care, it actually makes the > + watchdog not counting when the CPU is in idle state, therefore the > + watchdog reset time depends on mean CPU usage and will not reset at all > + if the CPU stop working while it is in idle state, which is probably > + not what you want. > +- atmel,dbg-halt: present if you want to stop the watchdog when the CPU is > + in debug state. > + > +Example: > + watchdog@ffffff80 { > + compatible = "microchip,sam9x60-wdt"; > + reg = <0xffffff80 0x24>; > + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 5>; > + timeout-sec = <10>; > + atmel,watchdog-type = "hardware"; > + atmel,dbg-halt; > + atmel,idle-halt; > + }; > -- > 2.7.4 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com