forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: "This patchset contains: - Various small clean-ups and fixes - boot logic hanegs for mpc8xxx_wdt - it87_wdt: Work around non-working CIR interrupts - iTCO_wdt: Fix the parent device - Kconfig dependencies - simplification of code with devm_ioremap_resource() or platform_driver_probe() - conversion of xilinx watchdog driver to Generic watchdog Framework - addition of extra functionality and devices for the xilinx watchdog driver - Addition of Tegra watchdog" * git://www.linux-watchdog.org/linux-watchdog: (38 commits) watchdog: Fix Elan SC520 dependencies watchdog: ib700wdt: Use platform_driver_probe watchdog: geodewdt: Use platform_driver_probe watchdog: advantechwdt: Use platform_driver_probe watchdog: acquirewdt: Use platform_driver_probe watchdog: iTCO_wdt: Fix the parent device watchdog: it87_wdt: Work around non-working CIR interrupts watchdog: bcm281xx: Fix Kconfig dependency watchdog: s3c2410_wdt: Check return value of clk_prepare_enable watchdog: s3c2410_wdt: Remove unneeded initialization watchdog: sunxi: Change compatibles watchdog: orion: prepare new Dove DT Kconfig variable watchdog: fix checkpatch warnings and error watchdog: Add tegra watchdog watchdog: xilinx: Remove no_timeout variable watchdog: xilinx: Enable this driver for Zynq watchdog: xilinx: Add missing binding watchdog: xilinx: Use correct comment indentation watchdog: xilinx: Use of_property_read_u32 watchdog: xilinx: Fix all printk messages ...
- Loading branch information
Showing
55 changed files
with
584 additions
and
470 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/watchdog/of-xilinx-wdt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Xilinx AXI/PLB soft-core watchdog Device Tree Bindings | ||
--------------------------------------------------------- | ||
|
||
Required properties: | ||
- compatible : Should be "xlnx,xps-timebase-wdt-1.00.a" or | ||
"xlnx,xps-timebase-wdt-1.01.a". | ||
- reg : Physical base address and size | ||
|
||
Optional properties: | ||
- clock-frequency : Frequency of clock in Hz | ||
- xlnx,wdt-enable-once : 0 - Watchdog can be restarted | ||
1 - Watchdog can be enabled just once | ||
- xlnx,wdt-interval : Watchdog timeout interval in 2^<val> clock cycles, | ||
<val> is integer from 8 to 31. | ||
|
||
Example: | ||
axi-timebase-wdt@40100000 { | ||
clock-frequency = <50000000>; | ||
compatible = "xlnx,xps-timebase-wdt-1.00.a"; | ||
reg = <0x40100000 0x10000>; | ||
xlnx,wdt-enable-once = <0x0>; | ||
xlnx,wdt-interval = <0x1b>; | ||
} ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,16 +118,9 @@ static int ep93xx_wdt_probe(struct platform_device *pdev) | |
int err; | ||
|
||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
if (!res) | ||
return -ENXIO; | ||
|
||
if (!devm_request_mem_region(&pdev->dev, res->start, | ||
resource_size(res), pdev->name)) | ||
return -EBUSY; | ||
|
||
mmio_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); | ||
if (!mmio_base) | ||
return -ENXIO; | ||
mmio_base = devm_ioremap_resource(&pdev->dev, res); | ||
if (IS_ERR(mmio_base)) | ||
return PTR_ERR(mmio_base); | ||
|
||
if (timeout < 1 || timeout > 3600) { | ||
timeout = WDT_TIMEOUT; | ||
|
@@ -172,9 +165,9 @@ static struct platform_driver ep93xx_wdt_driver = { | |
|
||
module_platform_driver(ep93xx_wdt_driver); | ||
|
||
MODULE_AUTHOR("Ray Lehtiniemi <[email protected]>," | ||
"Alessandro Zummo <[email protected]>," | ||
"H Hartley Sweeten <[email protected]>"); | ||
MODULE_AUTHOR("Ray Lehtiniemi <[email protected]>"); | ||
MODULE_AUTHOR("Alessandro Zummo <[email protected]>"); | ||
MODULE_AUTHOR("H Hartley Sweeten <[email protected]>"); | ||
MODULE_DESCRIPTION("EP93xx Watchdog"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(WDT_VERSION); |
Oops, something went wrong.