1What:		/sys/class/watchdog/watchdogn/bootstatus
2Date:		August 2015
3Contact:	Wim Van Sebroeck <wim@iguana.be>
4Description:
5		It is a read only file. It contains status of the watchdog
6		device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of
7		ioctl interface.
8
9What:		/sys/class/watchdog/watchdogn/fw_version
10Date:		April 2023
11Contact:	Thomas Weißschuh
12Description:
13		It is a read only file. It contains firmware version of
14		watchdog device.
15
16What:		/sys/class/watchdog/watchdogn/identity
17Date:		August 2015
18Contact:	Wim Van Sebroeck <wim@iguana.be>
19Description:
20		It is a read only file. It contains identity string of
21		watchdog device.
22
23What:		/sys/class/watchdog/watchdogn/nowayout
24Date:		August 2015
25Contact:	Wim Van Sebroeck <wim@iguana.be>
26Description:
27		It is a read/write file. While reading, it gives '1'
28		if the device has the nowayout feature set, otherwise
29		it gives '0'. Writing a '1' to the file enables the
30		nowayout feature. Once set, the nowayout feature
31		cannot be disabled, so writing a '0' either has no
32		effect (if the feature was already disabled) or
33		results in a permission error.
34
35What:		/sys/class/watchdog/watchdogn/state
36Date:		August 2015
37Contact:	Wim Van Sebroeck <wim@iguana.be>
38Description:
39		It is a read only file. It gives active/inactive status of
40		watchdog device.
41
42What:		/sys/class/watchdog/watchdogn/status
43Date:		August 2015
44Contact:	Wim Van Sebroeck <wim@iguana.be>
45Description:
46		It is a read only file. It contains watchdog device's
47		internal status bits. It is equivalent to WDIOC_GETSTATUS
48		of ioctl interface.
49
50What:		/sys/class/watchdog/watchdogn/timeleft
51Date:		August 2015
52Contact:	Wim Van Sebroeck <wim@iguana.be>
53Description:
54		It is a read only file. It contains value of time left for
55		reset generation. It is equivalent to WDIOC_GETTIMELEFT of
56		ioctl interface.
57
58What:		/sys/class/watchdog/watchdogn/timeout
59Date:		August 2015
60Contact:	Wim Van Sebroeck <wim@iguana.be>
61Description:
62		It is a read only file. It is read to know about current
63		value of timeout programmed.
64
65What:		/sys/class/watchdog/watchdogn/pretimeout
66Date:		December 2016
67Contact:	Wim Van Sebroeck <wim@iguana.be>
68Description:
69		It is a read only file. It specifies the time in seconds before
70		timeout when the pretimeout interrupt is delivered.  Pretimeout
71		is an optional feature.
72
73What:		/sys/class/watchdog/watchdogn/pretimeout_avaialable_governors
74Date:		February 2017
75Contact:	Wim Van Sebroeck <wim@iguana.be>
76Description:
77		It is a read only file. It shows the pretimeout governors
78		available for this watchdog.
79
80What:		/sys/class/watchdog/watchdogn/pretimeout_governor
81Date:		February 2017
82Contact:	Wim Van Sebroeck <wim@iguana.be>
83Description:
84		It is a read/write file. When read, the currently assigned
85		pretimeout governor is returned.  When written, it sets
86		the pretimeout governor.
87
88What:		/sys/class/watchdog/watchdog1/access_cs0
89Date:		August 2019
90Contact:	Ivan Mikhaylov <i.mikhaylov@yadro.com>,
91		Alexander Amelkin <a.amelkin@yadro.com>
92Description:
93		It is a read/write file. This attribute exists only if the
94		system has booted from the alternate flash chip due to
95		expiration of a watchdog timer of AST2400/AST2500 when
96		alternate boot function was enabled with 'aspeed,alt-boot'
97		devicetree option for that watchdog or with an appropriate
98		h/w strapping (for WDT2 only).
99
100		At alternate flash the 'access_cs0' sysfs node provides:
101
102			ast2400:
103				a way to get access to the primary SPI flash
104				chip at CS0 after booting from the alternate
105				chip at CS1.
106			ast2500:
107				a way to restore the normal address mapping
108				from (CS0->CS1, CS1->CS0) to (CS0->CS0,
109				CS1->CS1).
110
111		Clearing the boot code selection and timeout counter also
112		resets to the initial state the chip select line mapping. When
113		the SoC is in normal mapping state (i.e. booted from CS0),
114		clearing those bits does nothing for both versions of the SoC.
115		For alternate boot mode (booted from CS1 due to wdt2
116		expiration) the behavior differs as described above.
117
118		This option can be used with wdt2 (watchdog1) only.
119
120		When read, the current status of the boot code selection is
121		shown. When written with any non-zero value, it clears
122		the boot code selection and the timeout counter, which results
123		in chipselect reset for AST2400/AST2500.
124