Skip to contentSkip to conversation

watchdog: sp805_wdt: add arm cmsdk apb wdt support

PATCH In review Bing Fan 2 participants 2 messages Jun 24, 2022 – Jun 27, 2022 Watchdog device drivers

lore
Share & tools
lore

Bing Fan

author
#0 lore raw

PATCH 1/1 watchdog: sp805_wdt: add arm cmsdk apb wdt support

From: Bing Fan <[email protected]>

Support arm CMSDK ip apb watchdog device. Description details of this device can be found in the document DDI0479D_m_class_processor_system_r1p1_trm.pdf on the arm's document web. Which periphid is 0x001bb824. The registers are basically the same as the 805, just a few more: Periphid4/5/6/7 with offset 0xFD0/0xFD4/0xFD8/0xFDC. For the register description of arm,sp805, please refer to the document DDI0270-arm-sp805.pdf.

---
 drivers/watchdog/sp805_wdt.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/watchdog/sp805_wdt.c +5 -0
index f9479a3fe2a6..78ba36689eec 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * drivers/char/watchdog/sp805-wdt.c
  *
@@ -341,6 +342,10 @@ static const struct amba_id sp805_wdt_ids[] = {
 		.id	= 0x00141805,
 		.mask	= 0x00ffffff,
 	},
+	{
+		.id     = 0x001bb824,
+		.mask   = 0x00ffffff,
+	},
 	{ 0, 0 },
 };
 
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Bing Fan

From: Bing Fan <[email protected]>

Support arm CMSDK ip apb watchdog device. Description details of this device can be found in the document DDI0479D_m_class_processor_system_r1p1_trm.pdf on the arm's document web. Which periphid is 0x001bb824. The registers are basically the same as the 805, just a few more: Periphid4/5/6/7 with offset 0xFD0/0xFD4/0xFD8/0xFDC. For the register description of arm,sp805, please refer to the document DDI0270-arm-sp805.pdf.

Quoted 1 line
Quoted 24 lines
---
  drivers/watchdog/sp805_wdt.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/watchdog/sp805_wdt.c +5 -0
index f9479a3fe2a6..78ba36689eec 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
  /*
   * drivers/char/watchdog/sp805-wdt.c
   *
@@ -341,6 +342,10 @@ static const struct amba_id sp805_wdt_ids[] = {
  		.id	= 0x00141805,
  		.mask	= 0x00ffffff,
  	},
+	{
+		.id     = 0x001bb824,
+		.mask   = 0x00ffffff,
+	},
  	{ 0, 0 },
  };