Skip to contentSkip to conversation

ARM: dts: at91: sam9x60: add watchdog node

PATCH Applied [email protected] 2 participants 6 messages Feb 11, 2020 – Feb 12, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: dts: at91: sam9x60: add watchdog node

From: Eugen Hristev <[email protected]>

Add node for watchdog timer.

---
 arch/arm/boot/dts/sam9x60.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/sam9x60.dtsi +8 -0
index 326b393..6763423 100644
@@ -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";
+			};
 		};
 	};
 };
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 ARM: dts: at91: sam9x60ek: enable watchdog node

From: Eugen Hristev <[email protected]>

Enable node for watchdog timer

---
 arch/arm/boot/dts/at91-sam9x60ek.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/at91-sam9x60ek.dts +5 -0
index 9f30132..b484745 100644
@@ -645,3 +645,8 @@
 &usb2 {
 	status = "okay";
 };
+
+&watchdog {
+	status = "okay";
+};
+
Signature · 1 line
2.7.4
maintainer Applied
#2 lore raw

Re: [PATCH 2/3] ARM: dts: at91: sam9x60ek: enable watchdog node

Quoted 9 lines · On 11/02/2020 08:07:14+0000, [email protected] wrote:

From: Eugen Hristev <[email protected]>

Enable node for watchdog timer

---
 arch/arm/boot/dts/at91-sam9x60ek.dts | 5 +++++
 1 file changed, 5 insertions(+)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 3/3 ARM: configs: at91: enable sama5d4 compatible watchdog

In reply to [email protected]

From: Eugen Hristev <[email protected]>

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

---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/at91_dt_defconfig +1 -0
index f66bb98..4a0ba2a 100644
@@ -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
Signature · 1 line
2.7.4
maintainer Applied
#4 lore raw

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

Quoted 10 lines · 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.

---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com