2020-02-11 08:10:05

by Eugen Hristev

[permalink] [raw]
Subject: [PATCH 1/3] ARM: dts: at91: sam9x60: add watchdog node

From: Eugen Hristev <[email protected]>

Add node for watchdog timer.

Signed-off-by: Eugen Hristev <[email protected]>
---
arch/arm/boot/dts/sam9x60.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sam9x60.dtsi b/arch/arm/boot/dts/sam9x60.dtsi
index 326b393..6763423 100644
--- a/arch/arm/boot/dts/sam9x60.dtsi
+++ b/arch/arm/boot/dts/sam9x60.dtsi
@@ -686,6 +686,14 @@
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
clocks = <&clk32k 0>;
};
+
+ watchdog: watchdog@ffffff80 {
+ compatible = "microchip,sam9x60-wdt";
+ reg = <0xffffff80 0x24>;
+ interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+ clocks = <&clk32k 0>;
+ status = "disabled";
+ };
};
};
};
--
2.7.4


2020-02-11 08:10:21

by Eugen Hristev

[permalink] [raw]
Subject: [PATCH 3/3] ARM: configs: at91: enable sama5d4 compatible watchdog

From: Eugen Hristev <[email protected]>

Enable CONFIG_SAMA5D4_WATCHDOG. This driver is compatible with sam9x60
watchdog timer block.

Signed-off-by: Eugen Hristev <[email protected]>
---
arch/arm/configs/at91_dt_defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index f66bb98..4a0ba2a 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -118,6 +118,7 @@ CONFIG_POWER_SUPPLY=y
# CONFIG_HWMON is not set
CONFIG_WATCHDOG=y
CONFIG_AT91SAM9X_WATCHDOG=y
+CONFIG_SAMA5D4_WATCHDOG=y
CONFIG_MFD_ATMEL_FLEXCOM=y
CONFIG_MFD_ATMEL_HLCDC=y
CONFIG_REGULATOR=y
--
2.7.4

2020-02-12 11:29:29

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH 1/3] ARM: dts: at91: sam9x60: add watchdog node

On 11/02/2020 08:07:14+0000, [email protected] wrote:
> From: Eugen Hristev <[email protected]>
>
> Add node for watchdog timer.
>
> Signed-off-by: Eugen Hristev <[email protected]>
> ---
> arch/arm/boot/dts/sam9x60.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Applied, thanks.

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

2020-02-12 11:31:27

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH 3/3] ARM: configs: at91: enable sama5d4 compatible watchdog

On 11/02/2020 08:07:15+0000, [email protected] wrote:
> From: Eugen Hristev <[email protected]>
>
> Enable CONFIG_SAMA5D4_WATCHDOG. This driver is compatible with sam9x60
> watchdog timer block.
>
> Signed-off-by: Eugen Hristev <[email protected]>
> ---
> arch/arm/configs/at91_dt_defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com