Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321262
b: refs/heads/master
c: 1e7bad0
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Lunn committed Jul 27, 2012
1 parent b13c8f7 commit d7188af
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e91cac0a7746b2ce9d4134098678e3cc8cbf032d
refs/heads/master: 1e7bad0f5b91150fef78d732095ca84ca4a16585
14 changes: 14 additions & 0 deletions trunk/Documentation/devicetree/bindings/watchdog/marvel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* Marvell Orion Watchdog Time

Required Properties:

- Compatibility : "marvell,orion-wdt"
- reg : Address of the timer registers

Example:

wdt@20300 {
compatible = "marvell,orion-wdt";
reg = <0x20300 0x28>;
status = "okay";
};
6 changes: 6 additions & 0 deletions trunk/arch/arm/boot/dts/kirkwood.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
status = "disabled";
};

wdt@20300 {
compatible = "marvell,orion-wdt";
reg = <0x20300 0x28>;
status = "okay";
};

nand@3000000 {
#address-cells = <1>;
#size-cells = <1>;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-kirkwood/board-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct of_dev_auxdata kirkwood_auxdata_lookup[] __initdata = {
OF_DEV_AUXDATA("marvell,orion-spi", 0xf1010600, "orion_spi.0", NULL),
OF_DEV_AUXDATA("marvell,mv64xxx-i2c", 0xf1011000, "mv64xxx_i2c.0",
NULL),
OF_DEV_AUXDATA("marvell,orion-wdt", 0xf1020300, "orion_wdt", NULL),
{},
};

Expand All @@ -55,7 +56,6 @@ static void __init kirkwood_dt_init(void)
kirkwood_clk_init();

/* internal devices that every board has */
kirkwood_wdt_init();
kirkwood_xor0_init();
kirkwood_xor1_init();
kirkwood_crypto_init();
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/watchdog/orion_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/clk.h>
#include <linux/of.h>
#include <mach/bridge-regs.h>

/*
Expand Down Expand Up @@ -295,13 +296,20 @@ static void orion_wdt_shutdown(struct platform_device *pdev)
orion_wdt_disable();
}

static const struct of_device_id orion_wdt_of_match_table[] __devinitdata = {
{ .compatible = "marvell,orion-wdt", },
{},
};
MODULE_DEVICE_TABLE(of, orion_wdt_of_match_table);

static struct platform_driver orion_wdt_driver = {
.probe = orion_wdt_probe,
.remove = __devexit_p(orion_wdt_remove),
.shutdown = orion_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "orion_wdt",
.of_match_table = of_match_ptr(orion_wdt_of_match_table),
},
};

Expand Down

0 comments on commit d7188af

Please sign in to comment.