diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2012-09-15 22:18:10 -0600 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2012-10-25 20:42:36 -0600 |
commit | d0f1c7ffaa32bdda2d413d2db41c51bbdd105834 (patch) | |
tree | 45f432172081acdc24108e8a8c718b2513b52657 /Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) | |
download | blackbird-op-linux-d0f1c7ffaa32bdda2d413d2db41c51bbdd105834.tar.gz blackbird-op-linux-d0f1c7ffaa32bdda2d413d2db41c51bbdd105834.zip |
ARM: bcm2835: implement machine restart hook
Implement the machine restart hook using the SoC's watchdog timer module.
To support this, define a DT binding for the watchdog module, and add it
to the device tree.
The downstream rpi-split branch contains a full watchdog timer driver
implementation, which also implements the restart hook. However, the
restart function is largely separate from the watchdog driver, so for
simplicity, the restart hook is implemented here directly in the main
machine source file.
Overall structure (separate setup/restart) functions derived from the
picoxcell ARM support.
Watchdog register IO sequence taken from code by Simon Arlott. Note that
the watchdog module is not documented in BCM2835-ARM-Peripherals.pdf.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt')
-rw-r--r-- | Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt b/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt new file mode 100644 index 000000000000..d209366b4a69 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt @@ -0,0 +1,13 @@ +BCM2835 Watchdog timer + +Required properties: + +- compatible : should be "brcm,bcm2835-pm-wdt" +- reg : Specifies base physical address and size of the registers. + +Example: + +watchdog { + compatible = "brcm,bcm2835-pm-wdt"; + reg = <0x7e100000 0x28>; +}; |