Skip to content

Commit 12878a9

Browse files
andrejpicejWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: fsl-imx: document suspend in wait mode
Property "fsl,suspend-in-wait" suspends watchdog in "WAIT" mode which corresponds to Linux's Suspend-to-Idle S0 mode. If this property is not set and the device is put into Suspend-to-Idle mode, the watchdog triggers a reset after 128 seconds. Signed-off-by: Andrej Picej <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent e42c73f commit 12878a9

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ title: Freescale i.MX Watchdog Timer (WDT) Controller
99
maintainers:
1010
- Anson Huang <[email protected]>
1111

12-
allOf:
13-
- $ref: "watchdog.yaml#"
14-
1512
properties:
1613
compatible:
1714
oneOf:
@@ -55,11 +52,45 @@ properties:
5552
If present, the watchdog device is configured to assert its
5653
external reset (WDOG_B) instead of issuing a software reset.
5754
55+
fsl,suspend-in-wait:
56+
$ref: /schemas/types.yaml#/definitions/flag
57+
description: |
58+
If present, the watchdog device is suspended in WAIT mode
59+
(Suspend-to-Idle). Only supported on certain devices.
60+
5861
required:
5962
- compatible
6063
- interrupts
6164
- reg
6265

66+
allOf:
67+
- $ref: watchdog.yaml#
68+
- if:
69+
not:
70+
properties:
71+
compatible:
72+
contains:
73+
enum:
74+
- fsl,imx25-wdt
75+
- fsl,imx35-wdt
76+
- fsl,imx50-wdt
77+
- fsl,imx51-wdt
78+
- fsl,imx53-wdt
79+
- fsl,imx6q-wdt
80+
- fsl,imx6sl-wdt
81+
- fsl,imx6sll-wdt
82+
- fsl,imx6sx-wdt
83+
- fsl,imx6ul-wdt
84+
- fsl,imx7d-wdt
85+
- fsl,imx8mm-wdt
86+
- fsl,imx8mn-wdt
87+
- fsl,imx8mp-wdt
88+
- fsl,imx8mq-wdt
89+
- fsl,vf610-wdt
90+
then:
91+
properties:
92+
fsl,suspend-in-wait: false
93+
6394
unevaluatedProperties: false
6495

6596
examples:

0 commit comments

Comments
 (0)