Message ID | 20211206064732.280375-4-andrej.picej@norik.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [v5,1/5] mfd: da9062: make register CONFIG_I writable | expand |
On 06 December 2021 06:48, Andrej Picej wrote: > Document the watchdog timeout mode property. If this property is used > the user can select what happens on watchdog timeout. Set this property > to 1 to enable SHUTDOWN (the device resets), set it to 0 and the device > will go to POWERDOWN on watchdog timeout. > > If this property is not set, don't touch the WATCHDOG_SD bit and leave > the configuration to OTP. This way backward compatibility is not broken. > > Signed-off-by: Andrej Picej <andrej.picej@norik.com> > --- Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
On Mon, 06 Dec 2021 07:47:31 +0100, Andrej Picej wrote: > Document the watchdog timeout mode property. If this property is used > the user can select what happens on watchdog timeout. Set this property > to 1 to enable SHUTDOWN (the device resets), set it to 0 and the device > will go to POWERDOWN on watchdog timeout. > > If this property is not set, don't touch the WATCHDOG_SD bit and leave > the configuration to OTP. This way backward compatibility is not broken. > > Signed-off-by: Andrej Picej <andrej.picej@norik.com> > --- > Changes in v5: > - no changes > > Changes in v4: > - no changes > > Changes in v3: > - add note about using the default OTP setting if this DT binding is > not specified > > Changes in v2: > - new patch, document new DT binding > --- > Documentation/devicetree/bindings/watchdog/da9062-wdt.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > Acked-by: Rob Herring <robh@kernel.org>
On Mon, Dec 06, 2021 at 07:47:31AM +0100, Andrej Picej wrote: > Document the watchdog timeout mode property. If this property is used > the user can select what happens on watchdog timeout. Set this property > to 1 to enable SHUTDOWN (the device resets), set it to 0 and the device > will go to POWERDOWN on watchdog timeout. > > If this property is not set, don't touch the WATCHDOG_SD bit and leave > the configuration to OTP. This way backward compatibility is not broken. > > Signed-off-by: Andrej Picej <andrej.picej@norik.com> > Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> > Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> > --- > Changes in v5: > - no changes > > Changes in v4: > - no changes > > Changes in v3: > - add note about using the default OTP setting if this DT binding is > not specified > > Changes in v2: > - new patch, document new DT binding > --- > Documentation/devicetree/bindings/watchdog/da9062-wdt.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt b/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > index 950e4fba8dbc..354314d854ef 100644 > --- a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > +++ b/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > @@ -10,6 +10,12 @@ Optional properties: > - dlg,use-sw-pm: Add this property to disable the watchdog during suspend. > Only use this option if you can't use the watchdog automatic suspend > function during a suspend (see register CONTROL_B). > +- dlg,wdt-sd: Set what happens on watchdog timeout. If this bit is set the > + watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers > + POWERDOWN. Can be 0 or 1. Only use this option if you want to change the > + default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT > + set the WATCHDOG_SD bit and on timeout watchdog behavior will match the > + chip's OTP settings. > > Example: DA9062 >
diff --git a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt b/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt index 950e4fba8dbc..354314d854ef 100644 --- a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt @@ -10,6 +10,12 @@ Optional properties: - dlg,use-sw-pm: Add this property to disable the watchdog during suspend. Only use this option if you can't use the watchdog automatic suspend function during a suspend (see register CONTROL_B). +- dlg,wdt-sd: Set what happens on watchdog timeout. If this bit is set the + watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers + POWERDOWN. Can be 0 or 1. Only use this option if you want to change the + default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT + set the WATCHDOG_SD bit and on timeout watchdog behavior will match the + chip's OTP settings. Example: DA9062
Document the watchdog timeout mode property. If this property is used the user can select what happens on watchdog timeout. Set this property to 1 to enable SHUTDOWN (the device resets), set it to 0 and the device will go to POWERDOWN on watchdog timeout. If this property is not set, don't touch the WATCHDOG_SD bit and leave the configuration to OTP. This way backward compatibility is not broken. Signed-off-by: Andrej Picej <andrej.picej@norik.com> --- Changes in v5: - no changes Changes in v4: - no changes Changes in v3: - add note about using the default OTP setting if this DT binding is not specified Changes in v2: - new patch, document new DT binding --- Documentation/devicetree/bindings/watchdog/da9062-wdt.txt | 6 ++++++ 1 file changed, 6 insertions(+)