diff options
35 files changed, 1598 insertions, 358 deletions
diff --git a/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt b/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt index fcdd48f7dcff..f90e294d7631 100644 --- a/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt | |||
| @@ -9,11 +9,37 @@ Required properties: | |||
| 9 | 9 | ||
| 10 | Optional properties: | 10 | Optional properties: |
| 11 | - timeout-sec: contains the watchdog timeout in seconds. | 11 | - timeout-sec: contains the watchdog timeout in seconds. |
| 12 | - interrupts : Should contain WDT interrupt. | ||
| 13 | - atmel,max-heartbeat-sec : Should contain the maximum heartbeat value in | ||
| 14 | seconds. This value should be less or equal to 16. It is used to | ||
| 15 | compute the WDV field. | ||
| 16 | - atmel,min-heartbeat-sec : Should contain the minimum heartbeat value in | ||
| 17 | seconds. This value must be smaller than the max-heartbeat-sec value. | ||
| 18 | It is used to compute the WDD field. | ||
| 19 | - atmel,watchdog-type : Should be "hardware" or "software". Hardware watchdog | ||
| 20 | use the at91 watchdog reset. Software watchdog use the watchdog | ||
| 21 | interrupt to trigger a software reset. | ||
| 22 | - atmel,reset-type : Should be "proc" or "all". | ||
| 23 | "all" : assert peripherals and processor reset signals | ||
| 24 | "proc" : assert the processor reset signal | ||
| 25 | This is valid only when using "hardware" watchdog. | ||
| 26 | - atmel,disable : Should be present if you want to disable the watchdog. | ||
| 27 | - atmel,idle-halt : Should be present if you want to stop the watchdog when | ||
| 28 | entering idle state. | ||
| 29 | - atmel,dbg-halt : Should be present if you want to stop the watchdog when | ||
| 30 | entering debug state. | ||
| 12 | 31 | ||
| 13 | Example: | 32 | Example: |
| 14 | |||
| 15 | watchdog@fffffd40 { | 33 | watchdog@fffffd40 { |
| 16 | compatible = "atmel,at91sam9260-wdt"; | 34 | compatible = "atmel,at91sam9260-wdt"; |
| 17 | reg = <0xfffffd40 0x10>; | 35 | reg = <0xfffffd40 0x10>; |
| 18 | timeout-sec = <10>; | 36 | interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; |
| 37 | timeout-sec = <15>; | ||
| 38 | atmel,watchdog-type = "hardware"; | ||
| 39 | atmel,reset-type = "all"; | ||
| 40 | atmel,dbg-halt; | ||
| 41 | atmel,idle-halt; | ||
| 42 | atmel,max-heartbeat-sec = <16>; | ||
| 43 | atmel,min-heartbeat-sec = <0>; | ||
| 44 | status = "okay"; | ||
| 19 | }; | 45 | }; |
diff --git a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt b/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt index 75558ccd9a05..e60b9a13bdcb 100644 --- a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt | |||
| @@ -1,12 +1,24 @@ | |||
| 1 | DaVinci Watchdog Timer (WDT) Controller | 1 | Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller |
| 2 | 2 | ||
| 3 | Required properties: | 3 | Required properties: |
| 4 | - compatible : Should be "ti,davinci-wdt" | 4 | - compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" |
| 5 | - reg : Should contain WDT registers location and length | 5 | - reg : Should contain WDT registers location and length |
| 6 | 6 | ||
| 7 | Optional properties: | ||
| 8 | - timeout-sec : Contains the watchdog timeout in seconds | ||
| 9 | - clocks : the clock feeding the watchdog timer. | ||
| 10 | Needed if platform uses clocks. | ||
| 11 | See clock-bindings.txt | ||
| 12 | |||
| 13 | Documentation: | ||
| 14 | Davinci DM646x - http://www.ti.com/lit/ug/spruer5b/spruer5b.pdf | ||
| 15 | Keystone - http://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf | ||
| 16 | |||
| 7 | Examples: | 17 | Examples: |
| 8 | 18 | ||
| 9 | wdt: wdt@2320000 { | 19 | wdt: wdt@2320000 { |
| 10 | compatible = "ti,davinci-wdt"; | 20 | compatible = "ti,davinci-wdt"; |
| 11 | reg = <0x02320000 0x80>; | 21 | reg = <0x02320000 0x80>; |
| 22 | timeout-sec = <30>; | ||
| 23 | clocks = <&clkwdtimer0>; | ||
| 12 | }; | 24 | }; |
diff --git a/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt new file mode 100644 index 000000000000..37afec194949 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | * GPIO-controlled Watchdog | ||
| 2 | |||
| 3 | Required Properties: | ||
| 4 | - compatible: Should contain "linux,wdt-gpio". | ||
| 5 | - gpios: From common gpio binding; gpio connection to WDT reset pin. | ||
| 6 | - hw_algo: The algorithm used by the driver. Should be one of the | ||
| 7 | following values: | ||
| 8 | - toggle: Either a high-to-low or a low-to-high transition clears | ||
| 9 | the WDT counter. The watchdog timer is disabled when GPIO is | ||
| 10 | left floating or connected to a three-state buffer. | ||
| 11 | - level: Low or high level starts counting WDT timeout, | ||
| 12 | the opposite level disables the WDT. Active level is determined | ||
| 13 | by the GPIO flags. | ||
| 14 | - hw_margin_ms: Maximum time to reset watchdog circuit (milliseconds). | ||
| 15 | |||
| 16 | Example: | ||
| 17 | watchdog: watchdog { | ||
| 18 | /* ADM706 */ | ||
| 19 | compatible = "linux,wdt-gpio"; | ||
| 20 | gpios = <&gpio3 9 GPIO_ACTIVE_LOW>; | ||
| 21 | hw_algo = "toggle"; | ||
| 22 | hw_margin_ms = <1600>; | ||
| 23 | }; | ||
diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt b/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt index 2aa486cc1ff6..cfff37511aac 100644 --- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt | |||
| @@ -5,10 +5,29 @@ after a preset amount of time during which the WDT reset event has not | |||
| 5 | occurred. | 5 | occurred. |
| 6 | 6 | ||
| 7 | Required properties: | 7 | Required properties: |
| 8 | - compatible : should be "samsung,s3c2410-wdt" | 8 | - compatible : should be one among the following |
| 9 | (a) "samsung,s3c2410-wdt" for Exynos4 and previous SoCs | ||
| 10 | (b) "samsung,exynos5250-wdt" for Exynos5250 | ||
| 11 | (c) "samsung,exynos5420-wdt" for Exynos5420 | ||
| 12 | |||
| 9 | - reg : base physical address of the controller and length of memory mapped | 13 | - reg : base physical address of the controller and length of memory mapped |
| 10 | region. | 14 | region. |
| 11 | - interrupts : interrupt number to the cpu. | 15 | - interrupts : interrupt number to the cpu. |
| 16 | - samsung,syscon-phandle : reference to syscon node (This property required only | ||
| 17 | in case of compatible being "samsung,exynos5250-wdt" or "samsung,exynos5420-wdt". | ||
| 18 | In case of Exynos5250 and 5420 this property points to syscon node holding the PMU | ||
| 19 | base address) | ||
| 12 | 20 | ||
| 13 | Optional properties: | 21 | |
