ARM: dts: aspeed: Watchdog fixes
Subsystems (2)
Joel Stanley
maintainercover 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
Joel Stanley
maintainerPATCH 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
@@ -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
@@ -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
Joel Stanley
maintainerPATCH 2/2 ARM: dts: aspeed: Enable watchdog two
In reply to Joel StanleyThe 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
@@ -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
@@ -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
Re: [PATCH 1/2] ARM: dts: aspeed: Remove undocumented wdt properties
In reply to Joel StanleyQuoted 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. ?Signed-off-by Joel Stanley <[email protected]>
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@@ -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 = <0x1e7850000x1c>;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 = <0x1e7850200x1c>;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@@ -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 = <0x1e7850000x20>;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 = <0x1e7850200x20>;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 = <0x1e7850400x20>;
? 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>
Re: [PATCH 2/2] ARM: dts: aspeed: Enable watchdog two
In reply to Joel StanleyQuoted 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.
?Signed-off-by Joel Stanley <[email protected]>
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@@ -212,7 +212,6 @@ ? wdt2: watchdog at 1e785020 { ? compatible = "aspeed,ast2400-wdt"; ? reg = <0x1e785020 0x1c>; - status = "disabled"; ? };?
? vuart: serial at1e787000{arch/arm/boot/dts/aspeed-g5.dtsi +0
-1@@ -256,7 +256,6 @@ ? wdt2: watchdog at 1e785020 { ? compatible = "aspeed,ast2500-wdt"; ? reg = <0x1e785020 0x20>; - status = "disabled"; ? };
Quoted 2 lines
?
? wdt3: watchdog at1e785040{
-------------- 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>