Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753412AbcJJRlX (ORCPT ); Mon, 10 Oct 2016 13:41:23 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:34611 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752973AbcJJRlU (ORCPT ); Mon, 10 Oct 2016 13:41:20 -0400 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> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1465 Lines: 47 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 >