130 lines · plain
1What: /sys/class/watchdog/watchdogn/bootstatus2Date: August 20153Contact: Wim Van Sebroeck <wim@iguana.be>4Description:5 It is a read only file. It contains status of the watchdog6 device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of7 ioctl interface.8 9What: /sys/class/watchdog/watchdogn/options10Date: April 202311Contact: Thomas Weißschuh12Description:13 It is a read only file. It contains options of watchdog device.14 15What: /sys/class/watchdog/watchdogn/fw_version16Date: April 202317Contact: Thomas Weißschuh18Description:19 It is a read only file. It contains firmware version of20 watchdog device.21 22What: /sys/class/watchdog/watchdogn/identity23Date: August 201524Contact: Wim Van Sebroeck <wim@iguana.be>25Description:26 It is a read only file. It contains identity string of27 watchdog device.28 29What: /sys/class/watchdog/watchdogn/nowayout30Date: August 201531Contact: Wim Van Sebroeck <wim@iguana.be>32Description:33 It is a read/write file. While reading, it gives '1'34 if the device has the nowayout feature set, otherwise35 it gives '0'. Writing a '1' to the file enables the36 nowayout feature. Once set, the nowayout feature37 cannot be disabled, so writing a '0' either has no38 effect (if the feature was already disabled) or39 results in a permission error.40 41What: /sys/class/watchdog/watchdogn/state42Date: August 201543Contact: Wim Van Sebroeck <wim@iguana.be>44Description:45 It is a read only file. It gives active/inactive status of46 watchdog device.47 48What: /sys/class/watchdog/watchdogn/status49Date: August 201550Contact: Wim Van Sebroeck <wim@iguana.be>51Description:52 It is a read only file. It contains watchdog device's53 internal status bits. It is equivalent to WDIOC_GETSTATUS54 of ioctl interface.55 56What: /sys/class/watchdog/watchdogn/timeleft57Date: August 201558Contact: Wim Van Sebroeck <wim@iguana.be>59Description:60 It is a read only file. It contains value of time left for61 reset generation. It is equivalent to WDIOC_GETTIMELEFT of62 ioctl interface.63 64What: /sys/class/watchdog/watchdogn/timeout65Date: August 201566Contact: Wim Van Sebroeck <wim@iguana.be>67Description:68 It is a read only file. It is read to know about current69 value of timeout programmed.70 71What: /sys/class/watchdog/watchdogn/pretimeout72Date: December 201673Contact: Wim Van Sebroeck <wim@iguana.be>74Description:75 It is a read only file. It specifies the time in seconds before76 timeout when the pretimeout interrupt is delivered. Pretimeout77 is an optional feature.78 79What: /sys/class/watchdog/watchdogn/pretimeout_avaialable_governors80Date: February 201781Contact: Wim Van Sebroeck <wim@iguana.be>82Description:83 It is a read only file. It shows the pretimeout governors84 available for this watchdog.85 86What: /sys/class/watchdog/watchdogn/pretimeout_governor87Date: February 201788Contact: Wim Van Sebroeck <wim@iguana.be>89Description:90 It is a read/write file. When read, the currently assigned91 pretimeout governor is returned. When written, it sets92 the pretimeout governor.93 94What: /sys/class/watchdog/watchdog1/access_cs095Date: August 201996Contact: Ivan Mikhaylov <i.mikhaylov@yadro.com>,97 Alexander Amelkin <a.amelkin@yadro.com>98Description:99 It is a read/write file. This attribute exists only if the100 system has booted from the alternate flash chip due to101 expiration of a watchdog timer of AST2400/AST2500 when102 alternate boot function was enabled with 'aspeed,alt-boot'103 devicetree option for that watchdog or with an appropriate104 h/w strapping (for WDT2 only).105 106 At alternate flash the 'access_cs0' sysfs node provides:107 108 ast2400:109 a way to get access to the primary SPI flash110 chip at CS0 after booting from the alternate111 chip at CS1.112 ast2500:113 a way to restore the normal address mapping114 from (CS0->CS1, CS1->CS0) to (CS0->CS0,115 CS1->CS1).116 117 Clearing the boot code selection and timeout counter also118 resets to the initial state the chip select line mapping. When119 the SoC is in normal mapping state (i.e. booted from CS0),120 clearing those bits does nothing for both versions of the SoC.121 For alternate boot mode (booted from CS1 due to wdt2122 expiration) the behavior differs as described above.123 124 This option can be used with wdt2 (watchdog1) only.125 126 When read, the current status of the boot code selection is127 shown. When written with any non-zero value, it clears128 the boot code selection and the timeout counter, which results129 in chipselect reset for AST2400/AST2500.130