All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Riegel <damien.riegel@savoirfairelinux.com>
To: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
	Lee Jones <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Russell King <linux@arm.linux.org.uk>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <kernel@pengutronix.de>,
	Arnd Bergmann <arnd@arndb.de>,
	Samuel Ortiz <sameo@linux.intel.com>,
	kernel@savoirfairelinux.com, Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog
Date: Fri, 4 Dec 2015 13:49:33 -0500	[thread overview]
Message-ID: <20151204184930.GA6065@localhost> (raw)
In-Reply-To: <565C75F8.1020908@roeck-us.net>

Hi Wim,

This patch is part of a serie and Lee Jones was willing to handle the
serie (at least the first three patches) but he needs your Ack on the
watchdog as you are the maintainer of this subsystem. This patch has
already been reviewed by Guenter. Could you please review this patch ? 

Thanks,
Damien

On Mon, Nov 30, 2015 at 08:14:48AM -0800, Guenter Roeck wrote:
> On 11/30/2015 07:59 AM, 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..8f6caad
> >--- /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>;
> >+	reg-io-width = <2>;
> >+
> >+	wdt@e {
> >+		compatible = "technologic,ts4800-wdt";
> >+		syscon = <&syscon 0xe>;
> >+		timeout-sec = <10>;
> >+	};
> >+}
> >diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> >index 79e1aa1..bb624d2 100644
> >--- a/drivers/watchdog/Kconfig
> >+++ b/drivers/watchdog/Kconfig
> >@@ -426,6 +426,16 @@ config NUC900_WATCHDOG
> >  	  To compile this driver as a module, choose M here: the
> >  	  module will be called nuc900_wdt.
> >
> >+config TS4800_WATCHDOG
> >+	tristate "TS-4800 Watchdog"
> >+	depends on HAS_IOMEM && OF
> >+	select WATCHDOG_CORE
> >+	select MFD_SYSCON
> >+	help
> >+	  Technologic Systems TS-4800 has watchdog timer implemented in
> >+	  an external FPGA. Say Y here if you want to support for the
> >+	  watchdog timer on TS-4800 board.
> >+
> >  config TS72XX_WATCHDOG
> >  	tristate "TS-72XX SBC Watchdog"
> >  	depends on MACH_TS72XX
> >diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
> >index 0c616e3..3863ce0 100644
> >--- a/drivers/watchdog/Makefile
> >+++ b/drivers/watchdog/Makefile
> >@@ -53,6 +53,7 @@ obj-$(CONFIG_RN5T618_WATCHDOG) += rn5t618_wdt.o
> >  obj-$(CONFIG_COH901327_WATCHDOG) += coh901327_wdt.o
> >  obj-$(CONFIG_STMP3XXX_RTC_WATCHDOG) += stmp3xxx_rtc_wdt.o
> >  obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o
> >+obj-$(CONFIG_TS4800_WATCHDOG) += ts4800_wdt.o
> >  obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o
> >  obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o
> >  obj-$(CONFIG_UX500_WATCHDOG) += ux500_wdt.o
> >diff --git a/drivers/watchdog/ts4800_wdt.c b/drivers/watchdog/ts4800_wdt.c
> >new file mode 100644
> >index 0000000..2b8de86
> >--- /dev/null
> >+++ b/drivers/watchdog/ts4800_wdt.c
> >@@ -0,0 +1,215 @@
> >+/*
> >+ * Watchdog driver for TS-4800 based boards
> >+ *
> >+ * Copyright (c) 2015 - Savoir-faire Linux
> >+ *
> >+ * This file is licensed under the terms of the GNU General Public
> >+ * License version 2. This program is licensed "as is" without any
> >+ * warranty of any kind, whether express or implied.
> >+ */
> >+
> >+#include <linux/kernel.h>
> >+#include <linux/mfd/syscon.h>
> >+#include <linux/module.h>
> >+#include <linux/of.h>
> >+#include <linux/platform_device.h>
> >+#include <linux/regmap.h>
> >+#include <linux/watchdog.h>
> >+
> >+static bool nowayout = WATCHDOG_NOWAYOUT;
> >+module_param(nowayout, bool, 0);
> >+MODULE_PARM_DESC(nowayout,
> >+	"Watchdog cannot be stopped once started (default="
> >+	__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
> >+
> >+/* possible feed values */
> >+#define TS4800_WDT_FEED_2S       0x1
> >+#define TS4800_WDT_FEED_10S      0x2
> >+#define TS4800_WDT_DISABLE       0x3
> >+
> >+struct ts4800_wdt {
> >+	struct watchdog_device  wdd;
> >+	struct regmap           *regmap;
> >+	u32                     feed_offset;
> >+	u32                     feed_val;
> >+};
> >+
> >+/*
> >+ * TS-4800 supports the following timeout values:
> >+ *
> >+ *   value desc
> >+ *   ---------------------
> >+ *     0    feed for 338ms
> >+ *     1    feed for 2.706s
> >+ *     2    feed for 10.824s
> >+ *     3    disable watchdog
> >+ *
> >+ * Keep the regmap/timeout map ordered by timeout
> >+ */
> >+static const struct {
> >+	const int timeout;
> >+	const int regval;
> >+} ts4800_wdt_map[] = {
> >+	{ 2,  TS4800_WDT_FEED_2S },
> >+	{ 10, TS4800_WDT_FEED_10S },
> >+};
> >+
> >+#define MAX_TIMEOUT_INDEX       (ARRAY_SIZE(ts4800_wdt_map) - 1)
> >+
> >+static void ts4800_write_feed(struct ts4800_wdt *wdt, u32 val)
> >+{
> >+	regmap_write(wdt->regmap, wdt->feed_offset, val);
> >+}
> >+
> >+static int ts4800_wdt_start(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, wdt->feed_val);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_stop(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, TS4800_WDT_DISABLE);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_set_timeout(struct watchdog_device *wdd,
> >+				  unsigned int timeout)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+	int i;
> >+
> >+	for (i = 0; i < MAX_TIMEOUT_INDEX; i++) {
> >+		if (ts4800_wdt_map[i].timeout >= timeout)
> >+			break;
> >+	}
> >+
> >+	wdd->timeout = ts4800_wdt_map[i].timeout;
> >+	wdt->feed_val = ts4800_wdt_map[i].regval;
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct watchdog_ops ts4800_wdt_ops = {
> >+	.owner = THIS_MODULE,
> >+	.start = ts4800_wdt_start,
> >+	.stop = ts4800_wdt_stop,
> >+	.set_timeout = ts4800_wdt_set_timeout,
> >+};
> >+
> >+static const struct watchdog_info ts4800_wdt_info = {
> >+	.options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
> >+	.identity = "TS-4800 Watchdog",
> >+};
> >+
> >+static int ts4800_wdt_probe(struct platform_device *pdev)
> >+{
> >+	struct device_node *np = pdev->dev.of_node;
> >+	struct device_node *syscon_np;
> >+	struct watchdog_device *wdd;
> >+	struct ts4800_wdt *wdt;
> >+	u32 reg;
> >+	int ret;
> >+
> >+	syscon_np = of_parse_phandle(np, "syscon", 0);
> >+	if (!syscon_np) {
> >+		dev_err(&pdev->dev, "no syscon property\n");
> >+		return -ENODEV;
> >+	}
> >+
> >+	ret = of_property_read_u32_index(np, "syscon", 1, &reg);
> >+	if (ret < 0) {
> >+		dev_err(&pdev->dev, "no offset in syscon\n");
> >+		return ret;
> >+	}
> >+
> >+	/* allocate memory for watchdog struct */
> >+	wdt = devm_kzalloc(&pdev->dev, sizeof(*wdt), GFP_KERNEL);
> >+	if (!wdt)
> >+		return -ENOMEM;
> >+
> >+	/* set regmap and offset to know where to write */
> >+	wdt->feed_offset = reg;
> >+	wdt->regmap = syscon_node_to_regmap(syscon_np);
> >+	if (IS_ERR(wdt->regmap)) {
> >+		dev_err(&pdev->dev, "cannot get parent's regmap\n");
> >+		return PTR_ERR(wdt->regmap);
> >+	}
> >+
> >+	/* Initialize struct watchdog_device */
> >+	wdd = &wdt->wdd;
> >+	wdd->parent = &pdev->dev;
> >+	wdd->info = &ts4800_wdt_info;
> >+	wdd->ops = &ts4800_wdt_ops;
> >+	wdd->min_timeout = ts4800_wdt_map[0].timeout;
> >+	wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout;
> >+
> >+	watchdog_set_drvdata(wdd, wdt);
> >+	watchdog_set_nowayout(wdd, nowayout);
> >+	watchdog_init_timeout(wdd, 0, &pdev->dev);
> >+
> >+	/*
> >+	 * As this watchdog supports only a few values, ts4800_wdt_set_timeout
> >+	 * must be called to initialize timeout and feed_val with valid values.
> >+	 * Default to maximum timeout if none, or an invalid one, is provided in
> >+	 * device tree.
> >+	 */
> >+	if (!wdd->timeout)
> >+		wdd->timeout = wdd->max_timeout;
> >+	ts4800_wdt_set_timeout(wdd, wdd->timeout);
> >+
> >+	/*
> >+	 * The feed register is write-only, so it is not possible to determine
> >+	 * watchdog's state. Disable it to be in a known state.
> >+	 */
> >+	ts4800_wdt_stop(wdd);
> >+
> >+	ret = watchdog_register_device(wdd);
> >+	if (ret) {
> >+		dev_err(&pdev->dev,
> >+			"failed to register watchdog device\n");
> >+		return ret;
> >+	}
> >+
> >+	platform_set_drvdata(pdev, wdt);
> >+
> >+	dev_info(&pdev->dev,
> >+		 "initialized (timeout = %d sec, nowayout = %d)\n",
> >+		 wdd->timeout, nowayout);
> >+
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_remove(struct platform_device *pdev)
> >+{
> >+	struct ts4800_wdt *wdt = platform_get_drvdata(pdev);
> >+
> >+	watchdog_unregister_device(&wdt->wdd);
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct of_device_id ts4800_wdt_of_match[] = {
> >+	{ .compatible = "technologic,ts4800-wdt", },
> >+	{ },
> >+};
> >+MODULE_DEVICE_TABLE(of, ts4800_wdt_of_match);
> >+
> >+static struct platform_driver ts4800_wdt_driver = {
> >+	.probe		= ts4800_wdt_probe,
> >+	.remove		= ts4800_wdt_remove,
> >+	.driver		= {
> >+		.name	= "ts4800_wdt",
> >+		.of_match_table = ts4800_wdt_of_match,
> >+	},
> >+};
> >+
> >+module_platform_driver(ts4800_wdt_driver);
> >+
> >+MODULE_AUTHOR("Damien Riegel <damien.riegel@savoirfairelinux.com>");
> >+MODULE_LICENSE("GPL v2");
> >+MODULE_ALIAS("platform:ts4800_wdt");
> >
> 

WARNING: multiple messages have this Message-ID (diff)
From: Damien Riegel <damien.riegel-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org>
To: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Ian Campbell
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Sascha Hauer <kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
	Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
	Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
	kernel-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org,
	Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Subject: Re: [PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog
Date: Fri, 4 Dec 2015 13:49:33 -0500	[thread overview]
Message-ID: <20151204184930.GA6065@localhost> (raw)
In-Reply-To: <565C75F8.1020908-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>

Hi Wim,

This patch is part of a serie and Lee Jones was willing to handle the
serie (at least the first three patches) but he needs your Ack on the
watchdog as you are the maintainer of this subsystem. This patch has
already been reviewed by Guenter. Could you please review this patch ? 

Thanks,
Damien

On Mon, Nov 30, 2015 at 08:14:48AM -0800, Guenter Roeck wrote:
> On 11/30/2015 07:59 AM, 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-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org>
> 
> Reviewed-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> 
> >---
> >  .../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..8f6caad
> >--- /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>;
> >+	reg-io-width = <2>;
> >+
> >+	wdt@e {
> >+		compatible = "technologic,ts4800-wdt";
> >+		syscon = <&syscon 0xe>;
> >+		timeout-sec = <10>;
> >+	};
> >+}
> >diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> >index 79e1aa1..bb624d2 100644
> >--- a/drivers/watchdog/Kconfig
> >+++ b/drivers/watchdog/Kconfig
> >@@ -426,6 +426,16 @@ config NUC900_WATCHDOG
> >  	  To compile this driver as a module, choose M here: the
> >  	  module will be called nuc900_wdt.
> >
> >+config TS4800_WATCHDOG
> >+	tristate "TS-4800 Watchdog"
> >+	depends on HAS_IOMEM && OF
> >+	select WATCHDOG_CORE
> >+	select MFD_SYSCON
> >+	help
> >+	  Technologic Systems TS-4800 has watchdog timer implemented in
> >+	  an external FPGA. Say Y here if you want to support for the
> >+	  watchdog timer on TS-4800 board.
> >+
> >  config TS72XX_WATCHDOG
> >  	tristate "TS-72XX SBC Watchdog"
> >  	depends on MACH_TS72XX
> >diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
> >index 0c616e3..3863ce0 100644
> >--- a/drivers/watchdog/Makefile
> >+++ b/drivers/watchdog/Makefile
> >@@ -53,6 +53,7 @@ obj-$(CONFIG_RN5T618_WATCHDOG) += rn5t618_wdt.o
> >  obj-$(CONFIG_COH901327_WATCHDOG) += coh901327_wdt.o
> >  obj-$(CONFIG_STMP3XXX_RTC_WATCHDOG) += stmp3xxx_rtc_wdt.o
> >  obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o
> >+obj-$(CONFIG_TS4800_WATCHDOG) += ts4800_wdt.o
> >  obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o
> >  obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o
> >  obj-$(CONFIG_UX500_WATCHDOG) += ux500_wdt.o
> >diff --git a/drivers/watchdog/ts4800_wdt.c b/drivers/watchdog/ts4800_wdt.c
> >new file mode 100644
> >index 0000000..2b8de86
> >--- /dev/null
> >+++ b/drivers/watchdog/ts4800_wdt.c
> >@@ -0,0 +1,215 @@
> >+/*
> >+ * Watchdog driver for TS-4800 based boards
> >+ *
> >+ * Copyright (c) 2015 - Savoir-faire Linux
> >+ *
> >+ * This file is licensed under the terms of the GNU General Public
> >+ * License version 2. This program is licensed "as is" without any
> >+ * warranty of any kind, whether express or implied.
> >+ */
> >+
> >+#include <linux/kernel.h>
> >+#include <linux/mfd/syscon.h>
> >+#include <linux/module.h>
> >+#include <linux/of.h>
> >+#include <linux/platform_device.h>
> >+#include <linux/regmap.h>
> >+#include <linux/watchdog.h>
> >+
> >+static bool nowayout = WATCHDOG_NOWAYOUT;
> >+module_param(nowayout, bool, 0);
> >+MODULE_PARM_DESC(nowayout,
> >+	"Watchdog cannot be stopped once started (default="
> >+	__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
> >+
> >+/* possible feed values */
> >+#define TS4800_WDT_FEED_2S       0x1
> >+#define TS4800_WDT_FEED_10S      0x2
> >+#define TS4800_WDT_DISABLE       0x3
> >+
> >+struct ts4800_wdt {
> >+	struct watchdog_device  wdd;
> >+	struct regmap           *regmap;
> >+	u32                     feed_offset;
> >+	u32                     feed_val;
> >+};
> >+
> >+/*
> >+ * TS-4800 supports the following timeout values:
> >+ *
> >+ *   value desc
> >+ *   ---------------------
> >+ *     0    feed for 338ms
> >+ *     1    feed for 2.706s
> >+ *     2    feed for 10.824s
> >+ *     3    disable watchdog
> >+ *
> >+ * Keep the regmap/timeout map ordered by timeout
> >+ */
> >+static const struct {
> >+	const int timeout;
> >+	const int regval;
> >+} ts4800_wdt_map[] = {
> >+	{ 2,  TS4800_WDT_FEED_2S },
> >+	{ 10, TS4800_WDT_FEED_10S },
> >+};
> >+
> >+#define MAX_TIMEOUT_INDEX       (ARRAY_SIZE(ts4800_wdt_map) - 1)
> >+
> >+static void ts4800_write_feed(struct ts4800_wdt *wdt, u32 val)
> >+{
> >+	regmap_write(wdt->regmap, wdt->feed_offset, val);
> >+}
> >+
> >+static int ts4800_wdt_start(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, wdt->feed_val);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_stop(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, TS4800_WDT_DISABLE);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_set_timeout(struct watchdog_device *wdd,
> >+				  unsigned int timeout)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+	int i;
> >+
> >+	for (i = 0; i < MAX_TIMEOUT_INDEX; i++) {
> >+		if (ts4800_wdt_map[i].timeout >= timeout)
> >+			break;
> >+	}
> >+
> >+	wdd->timeout = ts4800_wdt_map[i].timeout;
> >+	wdt->feed_val = ts4800_wdt_map[i].regval;
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct watchdog_ops ts4800_wdt_ops = {
> >+	.owner = THIS_MODULE,
> >+	.start = ts4800_wdt_start,
> >+	.stop = ts4800_wdt_stop,
> >+	.set_timeout = ts4800_wdt_set_timeout,
> >+};
> >+
> >+static const struct watchdog_info ts4800_wdt_info = {
> >+	.options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
> >+	.identity = "TS-4800 Watchdog",
> >+};
> >+
> >+static int ts4800_wdt_probe(struct platform_device *pdev)
> >+{
> >+	struct device_node *np = pdev->dev.of_node;
> >+	struct device_node *syscon_np;
> >+	struct watchdog_device *wdd;
> >+	struct ts4800_wdt *wdt;
> >+	u32 reg;
> >+	int ret;
> >+
> >+	syscon_np = of_parse_phandle(np, "syscon", 0);
> >+	if (!syscon_np) {
> >+		dev_err(&pdev->dev, "no syscon property\n");
> >+		return -ENODEV;
> >+	}
> >+
> >+	ret = of_property_read_u32_index(np, "syscon", 1, &reg);
> >+	if (ret < 0) {
> >+		dev_err(&pdev->dev, "no offset in syscon\n");
> >+		return ret;
> >+	}
> >+
> >+	/* allocate memory for watchdog struct */
> >+	wdt = devm_kzalloc(&pdev->dev, sizeof(*wdt), GFP_KERNEL);
> >+	if (!wdt)
> >+		return -ENOMEM;
> >+
> >+	/* set regmap and offset to know where to write */
> >+	wdt->feed_offset = reg;
> >+	wdt->regmap = syscon_node_to_regmap(syscon_np);
> >+	if (IS_ERR(wdt->regmap)) {
> >+		dev_err(&pdev->dev, "cannot get parent's regmap\n");
> >+		return PTR_ERR(wdt->regmap);
> >+	}
> >+
> >+	/* Initialize struct watchdog_device */
> >+	wdd = &wdt->wdd;
> >+	wdd->parent = &pdev->dev;
> >+	wdd->info = &ts4800_wdt_info;
> >+	wdd->ops = &ts4800_wdt_ops;
> >+	wdd->min_timeout = ts4800_wdt_map[0].timeout;
> >+	wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout;
> >+
> >+	watchdog_set_drvdata(wdd, wdt);
> >+	watchdog_set_nowayout(wdd, nowayout);
> >+	watchdog_init_timeout(wdd, 0, &pdev->dev);
> >+
> >+	/*
> >+	 * As this watchdog supports only a few values, ts4800_wdt_set_timeout
> >+	 * must be called to initialize timeout and feed_val with valid values.
> >+	 * Default to maximum timeout if none, or an invalid one, is provided in
> >+	 * device tree.
> >+	 */
> >+	if (!wdd->timeout)
> >+		wdd->timeout = wdd->max_timeout;
> >+	ts4800_wdt_set_timeout(wdd, wdd->timeout);
> >+
> >+	/*
> >+	 * The feed register is write-only, so it is not possible to determine
> >+	 * watchdog's state. Disable it to be in a known state.
> >+	 */
> >+	ts4800_wdt_stop(wdd);
> >+
> >+	ret = watchdog_register_device(wdd);
> >+	if (ret) {
> >+		dev_err(&pdev->dev,
> >+			"failed to register watchdog device\n");
> >+		return ret;
> >+	}
> >+
> >+	platform_set_drvdata(pdev, wdt);
> >+
> >+	dev_info(&pdev->dev,
> >+		 "initialized (timeout = %d sec, nowayout = %d)\n",
> >+		 wdd->timeout, nowayout);
> >+
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_remove(struct platform_device *pdev)
> >+{
> >+	struct ts4800_wdt *wdt = platform_get_drvdata(pdev);
> >+
> >+	watchdog_unregister_device(&wdt->wdd);
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct of_device_id ts4800_wdt_of_match[] = {
> >+	{ .compatible = "technologic,ts4800-wdt", },
> >+	{ },
> >+};
> >+MODULE_DEVICE_TABLE(of, ts4800_wdt_of_match);
> >+
> >+static struct platform_driver ts4800_wdt_driver = {
> >+	.probe		= ts4800_wdt_probe,
> >+	.remove		= ts4800_wdt_remove,
> >+	.driver		= {
> >+		.name	= "ts4800_wdt",
> >+		.of_match_table = ts4800_wdt_of_match,
> >+	},
> >+};
> >+
> >+module_platform_driver(ts4800_wdt_driver);
> >+
> >+MODULE_AUTHOR("Damien Riegel <damien.riegel-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org>");
> >+MODULE_LICENSE("GPL v2");
> >+MODULE_ALIAS("platform:ts4800_wdt");
> >
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: damien.riegel@savoirfairelinux.com (Damien Riegel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog
Date: Fri, 4 Dec 2015 13:49:33 -0500	[thread overview]
Message-ID: <20151204184930.GA6065@localhost> (raw)
In-Reply-To: <565C75F8.1020908@roeck-us.net>

Hi Wim,

This patch is part of a serie and Lee Jones was willing to handle the
serie (at least the first three patches) but he needs your Ack on the
watchdog as you are the maintainer of this subsystem. This patch has
already been reviewed by Guenter. Could you please review this patch ? 

Thanks,
Damien

On Mon, Nov 30, 2015 at 08:14:48AM -0800, Guenter Roeck wrote:
> On 11/30/2015 07:59 AM, 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..8f6caad
> >--- /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>;
> >+	reg-io-width = <2>;
> >+
> >+	wdt at e {
> >+		compatible = "technologic,ts4800-wdt";
> >+		syscon = <&syscon 0xe>;
> >+		timeout-sec = <10>;
> >+	};
> >+}
> >diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> >index 79e1aa1..bb624d2 100644
> >--- a/drivers/watchdog/Kconfig
> >+++ b/drivers/watchdog/Kconfig
> >@@ -426,6 +426,16 @@ config NUC900_WATCHDOG
> >  	  To compile this driver as a module, choose M here: the
> >  	  module will be called nuc900_wdt.
> >
> >+config TS4800_WATCHDOG
> >+	tristate "TS-4800 Watchdog"
> >+	depends on HAS_IOMEM && OF
> >+	select WATCHDOG_CORE
> >+	select MFD_SYSCON
> >+	help
> >+	  Technologic Systems TS-4800 has watchdog timer implemented in
> >+	  an external FPGA. Say Y here if you want to support for the
> >+	  watchdog timer on TS-4800 board.
> >+
> >  config TS72XX_WATCHDOG
> >  	tristate "TS-72XX SBC Watchdog"
> >  	depends on MACH_TS72XX
> >diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
> >index 0c616e3..3863ce0 100644
> >--- a/drivers/watchdog/Makefile
> >+++ b/drivers/watchdog/Makefile
> >@@ -53,6 +53,7 @@ obj-$(CONFIG_RN5T618_WATCHDOG) += rn5t618_wdt.o
> >  obj-$(CONFIG_COH901327_WATCHDOG) += coh901327_wdt.o
> >  obj-$(CONFIG_STMP3XXX_RTC_WATCHDOG) += stmp3xxx_rtc_wdt.o
> >  obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o
> >+obj-$(CONFIG_TS4800_WATCHDOG) += ts4800_wdt.o
> >  obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o
> >  obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o
> >  obj-$(CONFIG_UX500_WATCHDOG) += ux500_wdt.o
> >diff --git a/drivers/watchdog/ts4800_wdt.c b/drivers/watchdog/ts4800_wdt.c
> >new file mode 100644
> >index 0000000..2b8de86
> >--- /dev/null
> >+++ b/drivers/watchdog/ts4800_wdt.c
> >@@ -0,0 +1,215 @@
> >+/*
> >+ * Watchdog driver for TS-4800 based boards
> >+ *
> >+ * Copyright (c) 2015 - Savoir-faire Linux
> >+ *
> >+ * This file is licensed under the terms of the GNU General Public
> >+ * License version 2. This program is licensed "as is" without any
> >+ * warranty of any kind, whether express or implied.
> >+ */
> >+
> >+#include <linux/kernel.h>
> >+#include <linux/mfd/syscon.h>
> >+#include <linux/module.h>
> >+#include <linux/of.h>
> >+#include <linux/platform_device.h>
> >+#include <linux/regmap.h>
> >+#include <linux/watchdog.h>
> >+
> >+static bool nowayout = WATCHDOG_NOWAYOUT;
> >+module_param(nowayout, bool, 0);
> >+MODULE_PARM_DESC(nowayout,
> >+	"Watchdog cannot be stopped once started (default="
> >+	__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
> >+
> >+/* possible feed values */
> >+#define TS4800_WDT_FEED_2S       0x1
> >+#define TS4800_WDT_FEED_10S      0x2
> >+#define TS4800_WDT_DISABLE       0x3
> >+
> >+struct ts4800_wdt {
> >+	struct watchdog_device  wdd;
> >+	struct regmap           *regmap;
> >+	u32                     feed_offset;
> >+	u32                     feed_val;
> >+};
> >+
> >+/*
> >+ * TS-4800 supports the following timeout values:
> >+ *
> >+ *   value desc
> >+ *   ---------------------
> >+ *     0    feed for 338ms
> >+ *     1    feed for 2.706s
> >+ *     2    feed for 10.824s
> >+ *     3    disable watchdog
> >+ *
> >+ * Keep the regmap/timeout map ordered by timeout
> >+ */
> >+static const struct {
> >+	const int timeout;
> >+	const int regval;
> >+} ts4800_wdt_map[] = {
> >+	{ 2,  TS4800_WDT_FEED_2S },
> >+	{ 10, TS4800_WDT_FEED_10S },
> >+};
> >+
> >+#define MAX_TIMEOUT_INDEX       (ARRAY_SIZE(ts4800_wdt_map) - 1)
> >+
> >+static void ts4800_write_feed(struct ts4800_wdt *wdt, u32 val)
> >+{
> >+	regmap_write(wdt->regmap, wdt->feed_offset, val);
> >+}
> >+
> >+static int ts4800_wdt_start(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, wdt->feed_val);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_stop(struct watchdog_device *wdd)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+
> >+	ts4800_write_feed(wdt, TS4800_WDT_DISABLE);
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_set_timeout(struct watchdog_device *wdd,
> >+				  unsigned int timeout)
> >+{
> >+	struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd);
> >+	int i;
> >+
> >+	for (i = 0; i < MAX_TIMEOUT_INDEX; i++) {
> >+		if (ts4800_wdt_map[i].timeout >= timeout)
> >+			break;
> >+	}
> >+
> >+	wdd->timeout = ts4800_wdt_map[i].timeout;
> >+	wdt->feed_val = ts4800_wdt_map[i].regval;
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct watchdog_ops ts4800_wdt_ops = {
> >+	.owner = THIS_MODULE,
> >+	.start = ts4800_wdt_start,
> >+	.stop = ts4800_wdt_stop,
> >+	.set_timeout = ts4800_wdt_set_timeout,
> >+};
> >+
> >+static const struct watchdog_info ts4800_wdt_info = {
> >+	.options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
> >+	.identity = "TS-4800 Watchdog",
> >+};
> >+
> >+static int ts4800_wdt_probe(struct platform_device *pdev)
> >+{
> >+	struct device_node *np = pdev->dev.of_node;
> >+	struct device_node *syscon_np;
> >+	struct watchdog_device *wdd;
> >+	struct ts4800_wdt *wdt;
> >+	u32 reg;
> >+	int ret;
> >+
> >+	syscon_np = of_parse_phandle(np, "syscon", 0);
> >+	if (!syscon_np) {
> >+		dev_err(&pdev->dev, "no syscon property\n");
> >+		return -ENODEV;
> >+	}
> >+
> >+	ret = of_property_read_u32_index(np, "syscon", 1, &reg);
> >+	if (ret < 0) {
> >+		dev_err(&pdev->dev, "no offset in syscon\n");
> >+		return ret;
> >+	}
> >+
> >+	/* allocate memory for watchdog struct */
> >+	wdt = devm_kzalloc(&pdev->dev, sizeof(*wdt), GFP_KERNEL);
> >+	if (!wdt)
> >+		return -ENOMEM;
> >+
> >+	/* set regmap and offset to know where to write */
> >+	wdt->feed_offset = reg;
> >+	wdt->regmap = syscon_node_to_regmap(syscon_np);
> >+	if (IS_ERR(wdt->regmap)) {
> >+		dev_err(&pdev->dev, "cannot get parent's regmap\n");
> >+		return PTR_ERR(wdt->regmap);
> >+	}
> >+
> >+	/* Initialize struct watchdog_device */
> >+	wdd = &wdt->wdd;
> >+	wdd->parent = &pdev->dev;
> >+	wdd->info = &ts4800_wdt_info;
> >+	wdd->ops = &ts4800_wdt_ops;
> >+	wdd->min_timeout = ts4800_wdt_map[0].timeout;
> >+	wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout;
> >+
> >+	watchdog_set_drvdata(wdd, wdt);
> >+	watchdog_set_nowayout(wdd, nowayout);
> >+	watchdog_init_timeout(wdd, 0, &pdev->dev);
> >+
> >+	/*
> >+	 * As this watchdog supports only a few values, ts4800_wdt_set_timeout
> >+	 * must be called to initialize timeout and feed_val with valid values.
> >+	 * Default to maximum timeout if none, or an invalid one, is provided in
> >+	 * device tree.
> >+	 */
> >+	if (!wdd->timeout)
> >+		wdd->timeout = wdd->max_timeout;
> >+	ts4800_wdt_set_timeout(wdd, wdd->timeout);
> >+
> >+	/*
> >+	 * The feed register is write-only, so it is not possible to determine
> >+	 * watchdog's state. Disable it to be in a known state.
> >+	 */
> >+	ts4800_wdt_stop(wdd);
> >+
> >+	ret = watchdog_register_device(wdd);
> >+	if (ret) {
> >+		dev_err(&pdev->dev,
> >+			"failed to register watchdog device\n");
> >+		return ret;
> >+	}
> >+
> >+	platform_set_drvdata(pdev, wdt);
> >+
> >+	dev_info(&pdev->dev,
> >+		 "initialized (timeout = %d sec, nowayout = %d)\n",
> >+		 wdd->timeout, nowayout);
> >+
> >+	return 0;
> >+}
> >+
> >+static int ts4800_wdt_remove(struct platform_device *pdev)
> >+{
> >+	struct ts4800_wdt *wdt = platform_get_drvdata(pdev);
> >+
> >+	watchdog_unregister_device(&wdt->wdd);
> >+
> >+	return 0;
> >+}
> >+
> >+static const struct of_device_id ts4800_wdt_of_match[] = {
> >+	{ .compatible = "technologic,ts4800-wdt", },
> >+	{ },
> >+};
> >+MODULE_DEVICE_TABLE(of, ts4800_wdt_of_match);
> >+
> >+static struct platform_driver ts4800_wdt_driver = {
> >+	.probe		= ts4800_wdt_probe,
> >+	.remove		= ts4800_wdt_remove,
> >+	.driver		= {
> >+		.name	= "ts4800_wdt",
> >+		.of_match_table = ts4800_wdt_of_match,
> >+	},
> >+};
> >+
> >+module_platform_driver(ts4800_wdt_driver);
> >+
> >+MODULE_AUTHOR("Damien Riegel <damien.riegel@savoirfairelinux.com>");
> >+MODULE_LICENSE("GPL v2");
> >+MODULE_ALIAS("platform:ts4800_wdt");
> >
> 

  reply	other threads:[~2015-12-04 18:49 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 15:59 [PATCH v7 0/6] Add board support for TS-4800 Damien Riegel
2015-11-30 15:59 ` Damien Riegel
2015-11-30 15:59 ` Damien Riegel
2015-11-30 15:59 ` [PATCH v7 1/6] of: add vendor prefix for Technologic Systems Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59 ` [PATCH v7 2/6] mfd: syscon: add a DT property to set value width Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 19:00   ` Rob Herring
2015-11-30 19:00     ` Rob Herring
2015-11-30 19:00     ` Rob Herring
2015-12-02 23:21     ` Damien Riegel
2015-12-02 23:21       ` Damien Riegel
2015-12-04 16:02       ` Arnd Bergmann
2015-12-04 16:02         ` Arnd Bergmann
2015-12-07  9:40   ` Lee Jones
2015-12-07  9:40     ` Lee Jones
2015-12-07  9:40     ` Lee Jones
2015-12-07 19:42     ` Damien Riegel
2015-12-07 19:42       ` Damien Riegel
2015-12-07 19:42       ` Damien Riegel
2015-12-07 19:42       ` Damien Riegel
2015-12-08 10:02       ` Arnd Bergmann
2015-12-08 10:02         ` Arnd Bergmann
2015-12-08 10:02         ` Arnd Bergmann
2015-12-08 13:50       ` Lee Jones
2015-12-08 13:50         ` Lee Jones
2015-12-08 13:50         ` Lee Jones
2015-12-08 13:50         ` Lee Jones
2015-12-08 14:18         ` Lee Jones
2015-12-08 14:18           ` Lee Jones
2015-12-08 14:18           ` Lee Jones
2015-11-30 15:59 ` [PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 16:14   ` Guenter Roeck
2015-11-30 16:14     ` Guenter Roeck
2015-12-04 18:49     ` Damien Riegel [this message]
2015-12-04 18:49       ` Damien Riegel
2015-12-04 18:49       ` Damien Riegel
2015-11-30 19:01   ` Rob Herring
2015-11-30 19:01     ` Rob Herring
2015-11-30 19:01     ` Rob Herring
2015-11-30 15:59 ` [PATCH v7 4/6] ARM: imx_v6_v7_defconfig: add " Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59 ` [PATCH v7 5/6] of: documentation: add bindings documentation for TS-4800 Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59 ` [PATCH v7 6/6] ARM: dts: TS-4800: add basic device tree Damien Riegel
2015-11-30 15:59   ` Damien Riegel
2015-11-30 15:59   ` 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=20151204184930.GA6065@localhost \
    --to=damien.riegel@savoirfairelinux.com \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=kernel@pengutronix.de \
    --cc=kernel@savoirfairelinux.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=linux@roeck-us.net \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=shawnguo@kernel.org \
    --cc=wim@iguana.be \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.