Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752720AbbKYVCW (ORCPT ); Wed, 25 Nov 2015 16:02:22 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:58891 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbbKYVCS (ORCPT ); Wed, 25 Nov 2015 16:02:18 -0500 Date: Wed, 25 Nov 2015 15:54:42 -0500 From: Damien Riegel To: Rob Herring Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, Lee Jones , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Shawn Guo , Sascha Hauer , Arnd Bergmann , Samuel Ortiz , Wim Van Sebroeck , Guenter Roeck , kernel@savoirfairelinux.com Subject: Re: [PATCH v6 3/6] watchdog: ts4800: add driver for TS-4800 watchdog Message-ID: <20151125205442.GA3627@localhost> Mail-Followup-To: Damien Riegel , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, Lee Jones , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Shawn Guo , Sascha Hauer , Arnd Bergmann , Samuel Ortiz , Wim Van Sebroeck , Guenter Roeck , kernel@savoirfairelinux.com References: <1448479507-1951-1-git-send-email-damien.riegel@savoirfairelinux.com> <1448479507-1951-4-git-send-email-damien.riegel@savoirfairelinux.com> <20151125202956.GA10228@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151125202956.GA10228@rob-hp-laptop> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2639 Lines: 61 On Wed, Nov 25, 2015 at 02:29:56PM -0600, Rob Herring wrote: > On Wed, Nov 25, 2015 at 02:25:04PM -0500, Damien Riegel wrote: > > This watchdog is instantiated in a FPGA that is memory mapped. It is > > made of only one register, called the feed register. Writing to this > > register will re-arm the watchdog for a given time (and enable it if it > > was disable). It can be disabled by writing a special value into it. > > > > It is part of a syscon block, and the watchdog register offset in this > > block varies from board to board. This offset is passed in the syscon > > property after the phandle to the syscon node. > > > > Signed-off-by: Damien Riegel > > Reviewed-by: Guenter Roeck > > --- > > .../devicetree/bindings/watchdog/ts4800-wdt.txt | 25 +++ > > drivers/watchdog/Kconfig | 10 + > > drivers/watchdog/Makefile | 1 + > > drivers/watchdog/ts4800_wdt.c | 215 +++++++++++++++++++++ > > 4 files changed, 251 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt > > create mode 100644 drivers/watchdog/ts4800_wdt.c > > > > diff --git a/Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt b/Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt > > new file mode 100644 > > index 0000000..388c60f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt > > @@ -0,0 +1,25 @@ > > +Technologic Systems Watchdog > > + > > +Required properties: > > +- compatible: must be "technologic,ts4800-wdt" > > +- syscon: phandle / integer array that points to the syscon node which > > + describes the FPGA's syscon registers. > > + - phandle to FPGA's syscon > > + - offset to the watchdog register > > + > > +Optional property: > > +- timeout-sec: contains the watchdog timeout in seconds. > > + > > +Example: > > + > > +syscon: syscon@b0010000 { > > + compatible = "syscon", "simple-mfd"; > > + reg = <0xb0010000 0x3d>; > > + bus-width = <16>; > > + > > + wdt@e { > > + compatible = "technologic,ts4800-wdt"; > > + syscon = <&syscon 0xe>; > > If this is single register only for the watchdog, why do you need > syscon? You can just use reg. Because this is a single 16-bit register dedicated to the watchdog in a 60-register syscon. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/