Skip to content

Commit ee073d9

Browse files
[Marvell-arm64] Enable CONFIG_ARM_SMC_WATCHDOG (#374)
This change enables CONFIG_ARM_SMC_WATCHDOG in kconfig and dts. SMC watchdog is replacing the existing AC5_WATCHDOG. All the changes for AC5_WATCHDOG are removed. Signed-off-by: Pavan Naregundi <[email protected]>
1 parent a1d0039 commit ee073d9

4 files changed

+21
-541
lines changed

patch/0004-dts-ac5-marvell-Add-switching-mmc-watchdog-node.patch

+20-14
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ This patch adds following changes to 98DX25xx and 98DX35xx SoC,
66
- SDMA(Subsystem DMA engine) node for control path Rx/Tx.
77
- prestera node for interupt handing from switching ASIC.
88
- mmc node using Xenon SDHCI Controller.
9-
- watchdog node.
9+
- arm watchdog node.
1010
- clock-frequency in timer node.
1111
- ac5-ehci compatible string in usb.
1212

1313
Signed-off-by: Yuval Shaia <[email protected]>
1414
Tested-by: Raz Adashi <[email protected]>
1515
Reviewed-by: Raz Adashi <[email protected]>
1616
---
17-
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 47 ++++++++++++++++++-
18-
.../boot/dts/marvell/ac5-98dx35xx-rd.dts | 8 ++++
19-
2 files changed, 54 insertions(+), 1 deletion(-)
17+
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 44 ++++++++++++++++++-
18+
.../boot/dts/marvell/ac5-98dx35xx-rd.dts | 10 ++++-
19+
2 files changed, 52 insertions(+), 2 deletions(-)
2020

2121
diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
22-
index 8bce64069..f1f96799b 100644
22+
index 8bce64069..b4ca6ba4d 100644
2323
--- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
2424
+++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
2525
@@ -64,6 +64,7 @@ timer {
@@ -70,7 +70,7 @@ index 8bce64069..f1f96799b 100644
7070
reg = <0x0 0x80000 0x0 0x500>;
7171
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
7272
status = "disabled";
73-
@@ -296,6 +321,20 @@ spi1: spi@805a8000 {
73+
@@ -296,6 +321,17 @@ spi1: spi@805a8000 {
7474
status = "disabled";
7575
};
7676

@@ -80,18 +80,15 @@ index 8bce64069..f1f96799b 100644
8080
+ status = "okay";
8181
+ };
8282
+
83-
+ watchdog@80216000 {
84-
+ compatible = "marvell,ac5-wd";
85-
+ reg = <0x0 0x80216000 0 0x1000>,
86-
+ <0x0 0x80215000 0 0x1000>;
87-
+ interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
88-
+ timeout-sec = <30>;
83+
+ wdog {
84+
+ compatible = "arm,smc-wdt";
85+
+ status = "okay";
8986
+ };
9087
+
9188
gic: interrupt-controller@80600000 {
9289
compatible = "arm,gic-v3";
9390
#interrupt-cells = <3>;
94-
@@ -318,5 +357,11 @@ spi_clock: spi-clock {
91+
@@ -318,5 +354,11 @@ spi_clock: spi-clock {
9592
#clock-cells = <0>;
9693
clock-frequency = <200000000>;
9794
};
@@ -104,9 +101,18 @@ index 8bce64069..f1f96799b 100644
104101
};
105102
};
106103
diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts b/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts
107-
index f0ebdb84e..45c305d46 100644
104+
index f0ebdb84e..4b31390c3 100644
108105
--- a/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts
109106
+++ b/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts
107+
@@ -29,7 +29,7 @@ aliases {
108+
109+
memory@0 {
110+
device_type = "memory";
111+
- reg = <0x2 0x00000000 0x0 0x40000000>;
112+
+ reg = <0x2 0x00000000 0x1 0x00000000>;
113+
};
114+
115+
usb1phy: usb-phy {
110116
@@ -99,3 +99,11 @@ parition@2 {
111117
};
112118
};

0 commit comments

Comments
 (0)