From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 3/6] watchdog: ts4800: add driver for TS-4800 watchdog
Date: Wed, 25 Nov 2015 14:29:56 -0600 [thread overview]
Message-ID: <20151125202956.GA10228@rob-hp-laptop> (raw)
In-Reply-To: <1448479507-1951-4-git-send-email-damien.riegel@savoirfairelinux.com>
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 <damien.riegel@savoirfairelinux.com>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> .../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 at b0010000 {
> + compatible = "syscon", "simple-mfd";
> + reg = <0xb0010000 0x3d>;
> + bus-width = <16>;
> +
> + wdt at 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.
Rob
next prev parent reply other threads:[~2015-11-25 20:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 19:25 [PATCH v5 0/5] Add board support for TS-4800 Damien Riegel
2015-11-25 19:25 ` [PATCH v6 1/6] of: add vendor prefix for Technologic Systems Damien Riegel
2015-11-25 20:25 ` Rob Herring
2015-11-25 19:25 ` [PATCH v6 2/6] mfd: syscon: add a DT property to set value width Damien Riegel
2015-11-25 20:32 ` Rob Herring
2015-11-25 22:02 ` Damien Riegel
2015-11-25 19:25 ` [PATCH v6 3/6] watchdog: ts4800: add driver for TS-4800 watchdog Damien Riegel
2015-11-25 20:29 ` Rob Herring [this message]
2015-11-25 20:54 ` Damien Riegel
2015-11-26 18:50 ` kbuild test robot
2015-11-25 19:25 ` [PATCH v6 4/6] ARM: imx_v6_v7_defconfig: add " Damien Riegel
2015-11-25 19:25 ` [PATCH v6 5/6] of: documentation: add bindings documentation for TS-4800 Damien Riegel
2015-11-25 21:59 ` Rob Herring
2015-11-25 19:25 ` [PATCH v6 6/6] ARM: dts: TS-4800: add basic device tree Damien Riegel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151125202956.GA10228@rob-hp-laptop \
--to=robh@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox