sysfs-class-watchdog 4.0 KB

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