Skip to contentSkip to conversation

ARM: dts: aspeed: Watchdog fixes

PATCH In review Joel Stanley 2 participants 5 messages Oct 4, 2017

Subsystems (2)
lore
Share & tools
lore

Joel Stanley

author maintainer
#0 lore raw

cover ARM: dts: aspeed: Watchdog fixes

A cleanup and a change in the default behaviour for the watchdog nodes to match what is required to boot with commonly shipped u-boots.

Joel Stanley (2):
ARM: dts: aspeed: Remove undocumented wdt properties
ARM: dts: aspeed: Enable watchdog two

 arch/arm/boot/dts/aspeed-g4.dtsi | 8 ++------
 arch/arm/boot/dts/aspeed-g5.dtsi | 9 +++------
 2 files changed, 5 insertions(+), 12 deletions(-)
Signature · 1 line
2.14.1
author maintainer
#1 lore raw

PATCH 1/2 ARM: dts: aspeed: Remove undocumented wdt properties

The watchdog bindings do not describe an interrupt property nor clock phandle, and the upstream driver never had code to use them. Drop them from the device tree.

Also rename the node from wdt the more commonly used watchdog.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 7 ++-----
 arch/arm/boot/dts/aspeed-g5.dtsi | 8 +++-----
 2 files changed, 5 insertions(+), 10 deletions(-)
arch/arm/boot/dts/aspeed-g4.dtsi +2 -5
index e455bd236798..5be2e6a39917 100644
@@ -204,17 +204,14 @@
 				status = "disabled";
 			};
 
-			wdt1: wdt at 1e785000 {
+			wdt1: watchdog at 1e785000 {
 				compatible = "aspeed,ast2400-wdt";
 				reg = <0x1e785000 0x1c>;
-				interrupts = <27>;
 			};
 
-			wdt2: wdt at 1e785020 {
+			wdt2: watchdog at 1e785020 {
 				compatible = "aspeed,ast2400-wdt";
 				reg = <0x1e785020 0x1c>;
-				interrupts = <27>;
-				clocks = <&clk_apb>;
 				status = "disabled";
 			};
 
arch/arm/boot/dts/aspeed-g5.dtsi +3 -5
index 77dded187d5a..71e1264b81aa 100644
@@ -248,20 +248,18 @@
 				status = "disabled";
 			};
 
-			wdt1: wdt at 1e785000 {
+			wdt1: watchdog at 1e785000 {
 				compatible = "aspeed,ast2500-wdt";
 				reg = <0x1e785000 0x20>;
-				interrupts = <27>;
 			};
 
-			wdt2: wdt at 1e785020 {
+			wdt2: watchdog at 1e785020 {
 				compatible = "aspeed,ast2500-wdt";
 				reg = <0x1e785020 0x20>;
-				interrupts = <27>;
 				status = "disabled";
 			};
 
-			wdt3: wdt at 1e785040 {
+			wdt3: watchdog at 1e785040 {
 				compatible = "aspeed,ast2500-wdt";
 				reg = <0x1e785040 0x20>;
 				status = "disabled";
Signature · 1 line
2.14.1
author maintainer
#3 lore raw

PATCH 2/2 ARM: dts: aspeed: Enable watchdog two

In reply to Joel Stanley

The second watchdog is left running by u-boot in the common configurations of the firmware shipped on ASPEED boards. Ensure a driver is loaded so the system can succcessfully boot.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 1 -
 arch/arm/boot/dts/aspeed-g5.dtsi | 1 -
 2 files changed, 2 deletions(-)
arch/arm/boot/dts/aspeed-g4.dtsi +0 -1
index 5be2e6a39917..9bf84d2ba038 100644
@@ -212,7 +212,6 @@
 			wdt2: watchdog at 1e785020 {
 				compatible = "aspeed,ast2400-wdt";
 				reg = <0x1e785020 0x1c>;
-				status = "disabled";
 			};
 
 			vuart: serial at 1e787000 {
arch/arm/boot/dts/aspeed-g5.dtsi +0 -1
index 71e1264b81aa..ca023e9ab0b8 100644
@@ -256,7 +256,6 @@
 			wdt2: watchdog at 1e785020 {
 				compatible = "aspeed,ast2500-wdt";
 				reg = <0x1e785020 0x20>;
-				status = "disabled";
 			};
 
 			wdt3: watchdog at 1e785040 {
Signature · 1 line
2.14.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] ARM: dts: aspeed: Remove undocumented wdt properties

In reply to Joel Stanley
Quoted 7 lines · Joel Stanley

The watchdog bindings do not describe an interrupt property nor clock phandle, and the upstream driver never had code to use them. Drop them from the device tree.
?
Also rename the node from wdt the more commonly used watchdog. ?

Quoted 54 lines

---
?arch/arm/boot/dts/aspeed-g4.dtsi | 7 ++----- ?arch/arm/boot/dts/aspeed-g5.dtsi | 8 +++----- ?2 files changed, 5 insertions(+), 10 deletions(-) ?

arch/arm/boot/dts/aspeed-g4.dtsi +0 -0
index e455bd236798..5be2e6a39917 100644
@@ -204,17 +204,14 @@
 ?				status = "disabled";
 ?			};

?

arch/arm/boot/dts/aspeed-g4.dtsi +1 -1
-			wdt1: wdt at 1e785000 {
+			wdt1: watchdog at 1e785000 {

? compatible = "aspeed,ast2400-wdt";
? reg = <0x1e785000 0x1c>;

arch/arm/boot/dts/aspeed-g4.dtsi +0 -1
-				interrupts = <27>;

? };
?

arch/arm/boot/dts/aspeed-g4.dtsi +1 -1
-			wdt2: wdt at 1e785020 {
+			wdt2: watchdog at 1e785020 {

? compatible = "aspeed,ast2400-wdt";
? reg = <0x1e785020 0x1c>;

arch/arm/boot/dts/aspeed-g4.dtsi +0 -2
-				interrupts = <27>;
-				clocks = <&clk_apb>;

? status = "disabled";
? };
?

arch/arm/boot/dts/aspeed-g5.dtsi +0 -0
index 77dded187d5a..71e1264b81aa 100644
@@ -248,20 +248,18 @@
 ?				status = "disabled";
 ?			};

?

arch/arm/boot/dts/aspeed-g5.dtsi +1 -1
-			wdt1: wdt at 1e785000 {
+			wdt1: watchdog at 1e785000 {

? compatible = "aspeed,ast2500-wdt";
? reg = <0x1e785000 0x20>;

arch/arm/boot/dts/aspeed-g5.dtsi +0 -1
-				interrupts = <27>;

? };
?

arch/arm/boot/dts/aspeed-g5.dtsi +1 -1
-			wdt2: wdt at 1e785020 {
+			wdt2: watchdog at 1e785020 {

? compatible = "aspeed,ast2500-wdt";
? reg = <0x1e785020 0x20>;

arch/arm/boot/dts/aspeed-g5.dtsi +0 -1
-				interrupts = <27>;

? status = "disabled";
? };
?

arch/arm/boot/dts/aspeed-g5.dtsi +1 -1
-			wdt3: wdt at 1e785040 {
+			wdt3: watchdog at 1e785040 {
Quoted 3 lines

? compatible = "aspeed,ast2500-wdt";
? reg = <0x1e785040 0x20>;
? status = "disabled";

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171004/3ca64410/attachment.sig>

Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] ARM: dts: aspeed: Enable watchdog two

In reply to Joel Stanley
Quoted 5 lines · Joel Stanley

The second watchdog is left running by u-boot in the common configurations of the firmware shipped on ASPEED boards. Ensure a driver is loaded so the system can succcessfully boot.
?

Quoted 27 lines

---
?arch/arm/boot/dts/aspeed-g4.dtsi | 1 -
?arch/arm/boot/dts/aspeed-g5.dtsi | 1 -
?2 files changed, 2 deletions(-)
?

arch/arm/boot/dts/aspeed-g4.dtsi +0 -1
index 5be2e6a39917..9bf84d2ba038 100644
@@ -212,7 +212,6 @@
 ?			wdt2: watchdog at 1e785020 {
 ?				compatible = "aspeed,ast2400-wdt";
 ?				reg = <0x1e785020 0x1c>;
-				status = "disabled";
 ?			};

?
? vuart: serial at 1e787000 {

arch/arm/boot/dts/aspeed-g5.dtsi +0 -1
index 71e1264b81aa..ca023e9ab0b8 100644
@@ -256,7 +256,6 @@
 ?			wdt2: watchdog at 1e785020 {
 ?				compatible = "aspeed,ast2500-wdt";
 ?				reg = <0x1e785020 0x20>;
-				status = "disabled";
 ?			};
Quoted 2 lines

?
? wdt3: watchdog at 1e785040 {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171004/e9d5f527/attachment.sig>