devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] watchdog: dw_wdt: add reset lines
@ 2017-05-22  8:51 Steffen Trumtrar
       [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2017-06-20  7:55 ` [PATCH v4 0/3] watchdog: dw_wdt: add " Steffen Trumtrar
  0 siblings, 2 replies; 10+ messages in thread
From: Steffen Trumtrar @ 2017-05-22  8:51 UTC (permalink / raw)
  To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Steffen Trumtrar

Hi!

This series adds support for the reset line that is (potentially) holding
the watchdog in reset.

As the watchdog is useless if this happens, it needs to be deasserted in
the probe function.

Tested on a Socrates board.

Regards,
Steffen


Changes since v3:

  - goto out_disable_clk
  - add Reviewed-by

Changes since v2:

  - use optional reset functions
  - add Acked-by to devictree bindings

Changes since v1:

  - remove reset-names property
  - remove warning if reset property is missing

Steffen Trumtrar (3):
  watchdog: bindings: dw_wdt: add reset lines
  watchdog: dw_wdt: get reset lines from dt
  ARM: socfpga: dtsi: add dw-wdt reset lines

 Documentation/devicetree/bindings/watchdog/dw_wdt.txt |  3 +++
 arch/arm/boot/dts/socfpga.dtsi                        |  2 ++
 drivers/watchdog/dw_wdt.c                             | 11 +++++++++++
 3 files changed, 16 insertions(+)

base-commit: 2ea659a9ef488125eb46da6eb571de5eae5c43f6
-- 
git-series 0.9.1
--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v4 1/3] watchdog: bindings: dw_wdt: add reset lines
       [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-05-22  8:51   ` Steffen Trumtrar
       [not found]     ` <77954d7b338db9956e15298064f21c028c2070f3.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2017-05-22  8:51   ` [PATCH v4 2/3] watchdog: dw_wdt: get reset lines from dt Steffen Trumtrar
  2017-05-22  8:51   ` [PATCH v4 3/3] ARM: socfpga: dtsi: add dw-wdt reset lines Steffen Trumtrar
  2 siblings, 1 reply; 10+ messages in thread
From: Steffen Trumtrar @ 2017-05-22  8:51 UTC (permalink / raw)
  To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Steffen Trumtrar

Document the reset lines holding the watchdog core in reset.

Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 Documentation/devicetree/bindings/watchdog/dw_wdt.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/watchdog/dw_wdt.txt b/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
index 08e16f684f2d..eb0914420c7c 100644
--- a/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
@@ -10,6 +10,8 @@ Required Properties:
 Optional Properties:
 
 - interrupts	: The interrupt used for the watchdog timeout warning.
+- resets	: phandle pointing to the system reset controller with
+		line index for the watchdog.
 
 Example:
 
@@ -18,4 +20,5 @@ Example:
 		reg = <0xffd02000 0x1000>;
 		interrupts = <0 171 4>;
 		clocks = <&per_base_clk>;
+		resets = <&rst WDT0_RESET>;
 	};
-- 
git-series 0.9.1
--
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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v4 2/3] watchdog: dw_wdt: get reset lines from dt
       [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2017-05-22  8:51   ` [PATCH v4 1/3] watchdog: bindings: " Steffen Trumtrar
@ 2017-05-22  8:51   ` Steffen Trumtrar
       [not found]     ` <17fdba7aa0c8f356cfdc28792d228817030b152e.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2017-05-22  8:51   ` [PATCH v4 3/3] ARM: socfpga: dtsi: add dw-wdt reset lines Steffen Trumtrar
  2 siblings, 1 reply; 10+ messages in thread
From: Steffen Trumtrar @ 2017-05-22  8:51 UTC (permalink / raw)
  To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Steffen Trumtrar

The dw_wdt has an external reset line, that can keep the device in reset
and therefore rendering it useless and also is the only way of stopping
the watchdog once it was started.

Get the reset lines for this core from the devicetree. As these lines are
optional, use devm_reset_control_get_optional_shared. If the reset line
is not specified in the devicetree, the reset framework will just skip
deasserting and continue.
This way all users of the driver will continue to function without
any harm, even if the reset line is not specified in the devicetree.

Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Reviewed-by: Philipp Zabel <p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
 drivers/watchdog/dw_wdt.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c
index 914da3a4d334..36be987ff9ef 100644
--- a/drivers/watchdog/dw_wdt.c
+++ b/drivers/watchdog/dw_wdt.c
@@ -29,6 +29,7 @@
 #include <linux/of.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
+#include <linux/reset.h>
 #include <linux/watchdog.h>
 
 #define WDOG_CONTROL_REG_OFFSET		    0x00
@@ -54,6 +55,7 @@ struct dw_wdt {
 	struct clk		*clk;
 	unsigned long		rate;
 	struct watchdog_device	wdd;
+	struct reset_control	*rst;
 };
 
 #define to_dw_wdt(wdd)	container_of(wdd, struct dw_wdt, wdd)
@@ -234,6 +236,14 @@ static int dw_wdt_drv_probe(struct platform_device *pdev)
 		goto out_disable_clk;
 	}
 
+	dw_wdt->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
+	if (IS_ERR(dw_wdt->rst)) {
+		ret = PTR_ERR(dw_wdt->rst);
+		goto out_disable_clk;
+	}
+
+	reset_control_deassert(dw_wdt->rst);
+
 	wdd = &dw_wdt->wdd;
 	wdd->info = &dw_wdt_ident;
 	wdd->ops = &dw_wdt_ops;
@@ -279,6 +289,7 @@ static int dw_wdt_drv_remove(struct platform_device *pdev)
 	struct dw_wdt *dw_wdt = platform_get_drvdata(pdev);
 
 	watchdog_unregister_device(&dw_wdt->wdd);
+	reset_control_assert(dw_wdt->rst);
 	clk_disable_unprepare(dw_wdt->clk);
 
 	return 0;
-- 
git-series 0.9.1
--
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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v4 3/3] ARM: socfpga: dtsi: add dw-wdt reset lines
       [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2017-05-22  8:51   ` [PATCH v4 1/3] watchdog: bindings: " Steffen Trumtrar
  2017-05-22  8:51   ` [PATCH v4 2/3] watchdog: dw_wdt: get reset lines from dt Steffen Trumtrar
@ 2017-05-22  8:51   ` Steffen Trumtrar
       [not found]     ` <1606b1da6758142628496ae85b15b3f89f0f928d.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2 siblings, 1 reply; 10+ messages in thread
From: Steffen Trumtrar @ 2017-05-22  8:51 UTC (permalink / raw)
  To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Steffen Trumtrar

Add the reset lines to both watchdogs.

Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Dinh Nguyen <dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
---
 arch/arm/boot/dts/socfpga.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index b2674bdb8e6a..547b2720abf5 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -924,6 +924,7 @@
 			reg = <0xffd02000 0x1000>;
 			interrupts = <0 171 4>;
 			clocks = <&osc1>;
+			resets = <&rst L4WD0_RESET>;
 			status = "disabled";
 		};
 
@@ -932,6 +933,7 @@
 			reg = <0xffd03000 0x1000>;
 			interrupts = <0 172 4>;
 			clocks = <&osc1>;
+			resets = <&rst L4WD1_RESET>;
 			status = "disabled";
 		};
 	};
-- 
git-series 0.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 1/3] watchdog: bindings: dw_wdt: add reset lines
       [not found]     ` <77954d7b338db9956e15298064f21c028c2070f3.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-05-25  0:57       ` Guenter Roeck
  0 siblings, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2017-05-25  0:57 UTC (permalink / raw)
  To: Steffen Trumtrar, linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ

On 05/22/2017 01:51 AM, Steffen Trumtrar wrote:
> Document the reset lines holding the watchdog core in reset.
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
> Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

Reviewed-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>

> ---
>   Documentation/devicetree/bindings/watchdog/dw_wdt.txt | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/watchdog/dw_wdt.txt b/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
> index 08e16f684f2d..eb0914420c7c 100644
> --- a/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
> +++ b/Documentation/devicetree/bindings/watchdog/dw_wdt.txt
> @@ -10,6 +10,8 @@ Required Properties:
>   Optional Properties:
>   
>   - interrupts	: The interrupt used for the watchdog timeout warning.
> +- resets	: phandle pointing to the system reset controller with
> +		line index for the watchdog.
>   
>   Example:
>   
> @@ -18,4 +20,5 @@ Example:
>   		reg = <0xffd02000 0x1000>;
>   		interrupts = <0 171 4>;
>   		clocks = <&per_base_clk>;
> +		resets = <&rst WDT0_RESET>;
>   	};
> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 2/3] watchdog: dw_wdt: get reset lines from dt
       [not found]     ` <17fdba7aa0c8f356cfdc28792d228817030b152e.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-05-25  0:58       ` Guenter Roeck
  0 siblings, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2017-05-25  0:58 UTC (permalink / raw)
  To: Steffen Trumtrar, linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ

On 05/22/2017 01:51 AM, Steffen Trumtrar wrote:
> The dw_wdt has an external reset line, that can keep the device in reset
> and therefore rendering it useless and also is the only way of stopping
> the watchdog once it was started.
> 
> Get the reset lines for this core from the devicetree. As these lines are
> optional, use devm_reset_control_get_optional_shared. If the reset line
> is not specified in the devicetree, the reset framework will just skip
> deasserting and continue.
> This way all users of the driver will continue to function without
> any harm, even if the reset line is not specified in the devicetree.
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
> Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Reviewed-by: Philipp Zabel <p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>

Reviewed-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>

> ---
>   drivers/watchdog/dw_wdt.c | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c
> index 914da3a4d334..36be987ff9ef 100644
> --- a/drivers/watchdog/dw_wdt.c
> +++ b/drivers/watchdog/dw_wdt.c
> @@ -29,6 +29,7 @@
>   #include <linux/of.h>
>   #include <linux/pm.h>
>   #include <linux/platform_device.h>
> +#include <linux/reset.h>
>   #include <linux/watchdog.h>
>   
>   #define WDOG_CONTROL_REG_OFFSET		    0x00
> @@ -54,6 +55,7 @@ struct dw_wdt {
>   	struct clk		*clk;
>   	unsigned long		rate;
>   	struct watchdog_device	wdd;
> +	struct reset_control	*rst;
>   };
>   
>   #define to_dw_wdt(wdd)	container_of(wdd, struct dw_wdt, wdd)
> @@ -234,6 +236,14 @@ static int dw_wdt_drv_probe(struct platform_device *pdev)
>   		goto out_disable_clk;
>   	}
>   
> +	dw_wdt->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
> +	if (IS_ERR(dw_wdt->rst)) {
> +		ret = PTR_ERR(dw_wdt->rst);
> +		goto out_disable_clk;
> +	}
> +
> +	reset_control_deassert(dw_wdt->rst);
> +
>   	wdd = &dw_wdt->wdd;
>   	wdd->info = &dw_wdt_ident;
>   	wdd->ops = &dw_wdt_ops;
> @@ -279,6 +289,7 @@ static int dw_wdt_drv_remove(struct platform_device *pdev)
>   	struct dw_wdt *dw_wdt = platform_get_drvdata(pdev);
>   
>   	watchdog_unregister_device(&dw_wdt->wdd);
> +	reset_control_assert(dw_wdt->rst);
>   	clk_disable_unprepare(dw_wdt->clk);
>   
>   	return 0;
> 

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 3/3] ARM: socfpga: dtsi: add dw-wdt reset lines
       [not found]     ` <1606b1da6758142628496ae85b15b3f89f0f928d.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-05-25  0:59       ` Guenter Roeck
  0 siblings, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2017-05-25  0:59 UTC (permalink / raw)
  To: Steffen Trumtrar, linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ

On 05/22/2017 01:51 AM, Steffen Trumtrar wrote:
> Add the reset lines to both watchdogs.
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> Cc: Dinh Nguyen <dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
> Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org

Acked-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>

> ---
>   arch/arm/boot/dts/socfpga.dtsi | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
> index b2674bdb8e6a..547b2720abf5 100644
> --- a/arch/arm/boot/dts/socfpga.dtsi
> +++ b/arch/arm/boot/dts/socfpga.dtsi
> @@ -924,6 +924,7 @@
>   			reg = <0xffd02000 0x1000>;
>   			interrupts = <0 171 4>;
>   			clocks = <&osc1>;
> +			resets = <&rst L4WD0_RESET>;
>   			status = "disabled";
>   		};
>   
> @@ -932,6 +933,7 @@
>   			reg = <0xffd03000 0x1000>;
>   			interrupts = <0 172 4>;
>   			clocks = <&osc1>;
> +			resets = <&rst L4WD1_RESET>;
>   			status = "disabled";
>   		};
>   	};
> 

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 0/3] watchdog: dw_wdt: add reset lines
  2017-05-22  8:51 [PATCH v4 0/3] watchdog: dw_wdt: add reset lines Steffen Trumtrar
       [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-06-20  7:55 ` Steffen Trumtrar
       [not found]   ` <738tknf5zp.fsf-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  1 sibling, 1 reply; 10+ messages in thread
From: Steffen Trumtrar @ 2017-06-20  7:55 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Mark Rutland, devicetree, kernel, Wim Van Sebroeck, Rob Herring,
	linux-arm-kernel, Philipp Zabel, Dinh Nguyen, Guenter Roeck


Steffen Trumtrar <s.trumtrar@pengutronix.de> writes:

> Hi!
>
> This series adds support for the reset line that is (potentially) holding
> the watchdog in reset.
>
> As the watchdog is useless if this happens, it needs to be deasserted in
> the probe function.
>
> Tested on a Socrates board.
>
> Regards,
> Steffen
>
>
> Changes since v3:
>
>   - goto out_disable_clk
>   - add Reviewed-by
>
> Changes since v2:
>
>   - use optional reset functions
>   - add Acked-by to devictree bindings
>
> Changes since v1:
>
>   - remove reset-names property
>   - remove warning if reset property is missing
>
> Steffen Trumtrar (3):
>   watchdog: bindings: dw_wdt: add reset lines
>   watchdog: dw_wdt: get reset lines from dt
>   ARM: socfpga: dtsi: add dw-wdt reset lines
>
>  Documentation/devicetree/bindings/watchdog/dw_wdt.txt |  3 +++
>  arch/arm/boot/dts/socfpga.dtsi                        |  2 ++
>  drivers/watchdog/dw_wdt.c                             | 11 +++++++++++
>  3 files changed, 16 insertions(+)
>
> base-commit: 2ea659a9ef488125eb46da6eb571de5eae5c43f6

Gentle Ping!

Is this series already applied somewhere I didn't look?


Best regards,
Steffen

-- 
Pengutronix e.K.                           | Steffen Trumtrar            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 0/3] watchdog: dw_wdt: add reset lines
       [not found]   ` <738tknf5zp.fsf-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2017-06-21  1:43     ` Guenter Roeck
       [not found]       ` <a6d32d71-6f66-18af-5283-036bf1ef93ce-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Guenter Roeck @ 2017-06-21  1:43 UTC (permalink / raw)
  To: Steffen Trumtrar, linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Dinh Nguyen,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Philipp Zabel,
	kernel-bIcnvbaLZ9MEGnE8C9+IrQ

On 06/20/2017 12:55 AM, Steffen Trumtrar wrote:
> 
> Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> writes:
> 
>> Hi!
>>
>> This series adds support for the reset line that is (potentially) holding
>> the watchdog in reset.
>>
>> As the watchdog is useless if this happens, it needs to be deasserted in
>> the probe function.
>>
>> Tested on a Socrates board.
>>
>> Regards,
>> Steffen
>>
>>
>> Changes since v3:
>>
>>    - goto out_disable_clk
>>    - add Reviewed-by
>>
>> Changes since v2:
>>
>>    - use optional reset functions
>>    - add Acked-by to devictree bindings
>>
>> Changes since v1:
>>
>>    - remove reset-names property
>>    - remove warning if reset property is missing
>>
>> Steffen Trumtrar (3):
>>    watchdog: bindings: dw_wdt: add reset lines
>>    watchdog: dw_wdt: get reset lines from dt
>>    ARM: socfpga: dtsi: add dw-wdt reset lines
>>
>>   Documentation/devicetree/bindings/watchdog/dw_wdt.txt |  3 +++
>>   arch/arm/boot/dts/socfpga.dtsi                        |  2 ++
>>   drivers/watchdog/dw_wdt.c                             | 11 +++++++++++
>>   3 files changed, 16 insertions(+)
>>
>> base-commit: 2ea659a9ef488125eb46da6eb571de5eae5c43f6
> 
> Gentle Ping!
> 
> Is this series already applied somewhere I didn't look?
> 

https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/log/?h=watchdog-next

 From there, we can only hope that Wim will find the time to pick it up for the next release.

The arm dts change will have to go through the arm tree(s) as usual.

Guenter
--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v4 0/3] watchdog: dw_wdt: add reset lines
       [not found]       ` <a6d32d71-6f66-18af-5283-036bf1ef93ce-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2017-06-21  6:35         ` Steffen Trumtrar
  0 siblings, 0 replies; 10+ messages in thread
From: Steffen Trumtrar @ 2017-06-21  6:35 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Wim Van Sebroeck,
	Rob Herring, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Dinh Nguyen, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Philipp Zabel, kernel-bIcnvbaLZ9MEGnE8C9+IrQ


Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> writes:

> On 06/20/2017 12:55 AM, Steffen Trumtrar wrote:
>> 
>> Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> writes:
>> 
>>> Hi!
>>>
>>> This series adds support for the reset line that is (potentially) holding
>>> the watchdog in reset.
>>>
>>> As the watchdog is useless if this happens, it needs to be deasserted in
>>> the probe function.
>>>
>>> Tested on a Socrates board.
>>>
>>> Regards,
>>> Steffen
>>>
>>>
>>> Changes since v3:
>>>
>>>    - goto out_disable_clk
>>>    - add Reviewed-by
>>>
>>> Changes since v2:
>>>
>>>    - use optional reset functions
>>>    - add Acked-by to devictree bindings
>>>
>>> Changes since v1:
>>>
>>>    - remove reset-names property
>>>    - remove warning if reset property is missing
>>>
>>> Steffen Trumtrar (3):
>>>    watchdog: bindings: dw_wdt: add reset lines
>>>    watchdog: dw_wdt: get reset lines from dt
>>>    ARM: socfpga: dtsi: add dw-wdt reset lines
>>>
>>>   Documentation/devicetree/bindings/watchdog/dw_wdt.txt |  3 +++
>>>   arch/arm/boot/dts/socfpga.dtsi                        |  2 ++
>>>   drivers/watchdog/dw_wdt.c                             | 11 +++++++++++
>>>   3 files changed, 16 insertions(+)
>>>
>>> base-commit: 2ea659a9ef488125eb46da6eb571de5eae5c43f6
>> 
>> Gentle Ping!
>> 
>> Is this series already applied somewhere I didn't look?
>> 
>
> https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/log/?h=watchdog-next
>
>  From there, we can only hope that Wim will find the time to pick it up for the next release.

Ah, somewhere I didn't look :) Thanks.

Best regards,
Steffen

-- 
Pengutronix e.K.                           | Steffen Trumtrar            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-21  6:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22  8:51 [PATCH v4 0/3] watchdog: dw_wdt: add reset lines Steffen Trumtrar
     [not found] ` <cover.50aaf23e8fbe9028f711a67e39b96910c986e8b0.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-22  8:51   ` [PATCH v4 1/3] watchdog: bindings: " Steffen Trumtrar
     [not found]     ` <77954d7b338db9956e15298064f21c028c2070f3.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-25  0:57       ` Guenter Roeck
2017-05-22  8:51   ` [PATCH v4 2/3] watchdog: dw_wdt: get reset lines from dt Steffen Trumtrar
     [not found]     ` <17fdba7aa0c8f356cfdc28792d228817030b152e.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-25  0:58       ` Guenter Roeck
2017-05-22  8:51   ` [PATCH v4 3/3] ARM: socfpga: dtsi: add dw-wdt reset lines Steffen Trumtrar
     [not found]     ` <1606b1da6758142628496ae85b15b3f89f0f928d.1495443015.git-series.s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-05-25  0:59       ` Guenter Roeck
2017-06-20  7:55 ` [PATCH v4 0/3] watchdog: dw_wdt: add " Steffen Trumtrar
     [not found]   ` <738tknf5zp.fsf-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2017-06-21  1:43     ` Guenter Roeck
     [not found]       ` <a6d32d71-6f66-18af-5283-036bf1ef93ce-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2017-06-21  6:35         ` Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).