mbox series

[v3,0/2] update mediatek wdt driver and dt-binding

Message ID 20210914123454.32603-1-Fengquan.Chen@mediatek.com
Headers show
Series update mediatek wdt driver and dt-binding | expand

Message

Fengquan Chen Sept. 14, 2021, 12:34 p.m. UTC
1. update watchdog dt-binding
2. add disable_wdt_extrst to support disable reset signal output

fengquan.chen (2):
  dt-bindings: watchdog: mtk-wdt: add disable_wdt_extrst support
  watchdog: mtk: add disable_wdt_extrst support

 Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 2 ++
 drivers/watchdog/mtk_wdt.c                             | 7 +++++++
 2 files changed, 9 insertions(+)

Comments

Guenter Roeck Sept. 17, 2021, 2:57 p.m. UTC | #1
On Tue, Sep 14, 2021 at 08:34:53PM +0800, Fengquan Chen wrote:
> This patch add a description and example of disable_wdt_extrst

> element for watchdog on MTK Socs

> 

> Signed-off-by: Fengquan Chen <fengquan.chen@mediatek.com>

> Acked-by: Rob Herring <robh@kernel.org>


Reviewed-by: Guenter Roeck <linux@roeck-us.net>


> ---

>  Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

> index a4e31ce96e0e..0114871f887a 100644

> --- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

> +++ b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

> @@ -22,6 +22,7 @@ Required properties:

>  - reg : Specifies base physical address and size of the registers.

>  

>  Optional properties:

> +- mediatek,disable-extrst: disable send output reset signal

>  - interrupts: Watchdog pre-timeout (bark) interrupt.

>  - timeout-sec: contains the watchdog timeout in seconds.

>  - #reset-cells: Should be 1.

> @@ -31,6 +32,7 @@ Example:

>  watchdog: watchdog@10007000 {

>  	compatible = "mediatek,mt8183-wdt",

>  		     "mediatek,mt6589-wdt";

> +	mediatek,disable-extrst;

>  	reg = <0 0x10007000 0 0x100>;

>  	interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>;

>  	timeout-sec = <10>;