From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi0-f66.google.com ([209.85.218.66]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1btea4-0000b9-8c for linux-mtd@lists.infradead.org; Mon, 10 Oct 2016 17:41:42 +0000 Received: by mail-oi0-f66.google.com with SMTP id e12so1786605oib.3 for ; Mon, 10 Oct 2016 10:41:19 -0700 (PDT) Date: Mon, 10 Oct 2016 12:41:18 -0500 From: Rob Herring To: Pantelis Antoniou Cc: Lee Jones , Linus Walleij , Alexandre Courbot , Mark Rutland , Frank Rowand , Wolfram Sang , David Woodhouse , Brian Norris , Wim Van Sebroeck , Guenter Roeck , Peter Rosin , Debjit Ghosh , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , Rajat Jain , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH 04/10] watchdog: ptxpmb-wdt: Add ptxpmb-wdt device tree bindings Message-ID: <20161010174117.GA16611@rob-hp-laptop> References: <1475853451-22121-1-git-send-email-pantelis.antoniou@konsulko.com> <1475853451-22121-5-git-send-email-pantelis.antoniou@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475853451-22121-5-git-send-email-pantelis.antoniou@konsulko.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Oct 07, 2016 at 06:17:25PM +0300, Pantelis Antoniou wrote: > From: Georgi Vlaev > > Add binding document for the watchdog driver of PTXPMB CPLD. > > Signed-off-by: Georgi Vlaev > [Ported from Juniper kernel] > Signed-off-by: Pantelis Antoniou > --- > .../devicetree/bindings/watchdog/jnx-ptxpmb-wdt.txt | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/jnx-ptxpmb-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/jnx-ptxpmb-wdt.txt b/Documentation/devicetree/bindings/watchdog/jnx-ptxpmb-wdt.txt > new file mode 100644 > index 0000000..34b64f6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/jnx-ptxpmb-wdt.txt > @@ -0,0 +1,17 @@ > +Juniper's PTXPMB FPGA watchdog driver > + > +Required properties: > + > +- compatible: Should be "jnx,ptxpmb-wdt" > + > +Optional properties: > + > +- reg : Specifies base physical address and size of the registers. It is > + optional since the MFD parent driver supplies it, but can be overridden. What the driver does is irrelevant. It should be required or there's no point to have the node. If the parent knows the address, then it knows the type of device too and DT is not needed. > + > +Example: > + > +wdt { s/wdt/watchdog/ > + compatible = "jnx,ptxpmb-wdt"; > + /* no properties defined */ > +}; > -- > 1.9.1 >