Skip to contentSkip to conversation

devicetree: watchdog: add binding for Sigma Designs SMP8642 watchdog

PATCH In review Mans Rullgard 2 participants 3 messages Oct 27, 2015

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

PATCH 1/2 devicetree: watchdog: add binding for Sigma Designs SMP8642 watchdog

This adds a binding for the watchdog in Sigma Designs SMP8642 and similar devices.

---
 .../devicetree/bindings/watchdog/sigma,8642-wdt.txt        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/sigma,8642-wdt.txt
Documentation/devicetree/bindings/watchdog/sigma,8642-wdt.txt new file +14 -0
new file mode 100644
index 0000000..31fef37
@@ -0,0 +1,14 @@
+Sigma Designs SMP86xx watchdog
+
+Required properties:
+- compatible: Should be "sigma,smp8642-wdt"
+- reg: Specifies the physical address region
+- clocks: Should be a phandle to the clock
+
+Example:
+
+watchdog@1fd00 {
+	compatible = "sigma,smp8642-wdt";
+	reg = <0x1fd00 8>;
+	clocks = <&xtal_in_clk>;
+};
Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH 2/2 watchdog: add support for Sigma Designs SMP86xx

This adds support for the Sigma Designs SMP86xx family built-in watchdog.

---
 drivers/watchdog/Kconfig      |   7 ++
 drivers/watchdog/Makefile     |   1 +
 drivers/watchdog/tangox_wdt.c | 185 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 193 insertions(+)
 create mode 100644 drivers/watchdog/tangox_wdt.c
drivers/watchdog/Kconfig +7 -0
index 79e1aa1..0ed5ee8 100644
@@ -1337,6 +1337,13 @@ config RALINK_WDT
 	help
 	  Hardware driver for the Ralink SoC Watchdog Timer.
 
+config TANGOX_WDT
+	tristate "SMP86xx watchdog"
+	select WATCHDOG_CORE
+	depends on ARCH_TANGOX
+	help
+	  Watchdog driver for Sigma Designs SMP86xx.
+
 # PARISC Architecture
 
 # POWERPC Architecture
drivers/watchdog/Makefile +1 -0
index 0c616e3..ed00796 100644
@@ -148,6 +148,7 @@ octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o
 obj-$(CONFIG_LANTIQ_WDT) += lantiq_wdt.o
 obj-$(CONFIG_RALINK_WDT) += rt2880_wdt.o
 obj-$(CONFIG_IMGPDC_WDT) += imgpdc_wdt.o
+obj-$(CONFIG_TANGOX_WDT) += tangox_wdt.o
 
 # PARISC Architecture
 
drivers/watchdog/tangox_wdt.c new file +185 -0

185 lines not on this page · raw message

Signature · 1 line
2.6.2
Acked-by on v1 1/2
#2 lore raw
In reply to Mans Rullgard
Quoted 4 lines · Mans Rullgard

This adds a binding for the watchdog in Sigma Designs SMP8642 and similar devices.

Quoted 26 lines
---
 .../devicetree/bindings/watchdog/sigma,8642-wdt.txt        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/sigma,8642-wdt.txt
Documentation/devicetree/bindings/watchdog/sigma,8642-wdt.txt new file +14 -1
new file mode 100644
index 0000000..31fef37
@@ -0,0 +1,14 @@
+Sigma Designs SMP86xx watchdog
+
+Required properties:
+- compatible: Should be "sigma,smp8642-wdt"
+- reg: Specifies the physical address region
+- clocks: Should be a phandle to the clock
+
+Example:
+
+watchdog@1fd00 {
+       compatible = "sigma,smp8642-wdt";
+       reg = <0x1fd00 8>;
+       clocks = <&xtal_in_clk>;
+};
--
Quoted 2 lines

2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html