162306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/bootstatus 262306a36Sopenharmony_ciDate: August 2015 362306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci It is a read only file. It contains status of the watchdog 662306a36Sopenharmony_ci device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of 762306a36Sopenharmony_ci ioctl interface. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/options 1062306a36Sopenharmony_ciDate: April 2023 1162306a36Sopenharmony_ciContact: Thomas Weißschuh 1262306a36Sopenharmony_ciDescription: 1362306a36Sopenharmony_ci It is a read only file. It contains options of watchdog device. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/fw_version 1662306a36Sopenharmony_ciDate: April 2023 1762306a36Sopenharmony_ciContact: Thomas Weißschuh 1862306a36Sopenharmony_ciDescription: 1962306a36Sopenharmony_ci It is a read only file. It contains firmware version of 2062306a36Sopenharmony_ci watchdog device. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/identity 2362306a36Sopenharmony_ciDate: August 2015 2462306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 2562306a36Sopenharmony_ciDescription: 2662306a36Sopenharmony_ci It is a read only file. It contains identity string of 2762306a36Sopenharmony_ci watchdog device. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/nowayout 3062306a36Sopenharmony_ciDate: August 2015 3162306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 3262306a36Sopenharmony_ciDescription: 3362306a36Sopenharmony_ci It is a read/write file. While reading, it gives '1' 3462306a36Sopenharmony_ci if the device has the nowayout feature set, otherwise 3562306a36Sopenharmony_ci it gives '0'. Writing a '1' to the file enables the 3662306a36Sopenharmony_ci nowayout feature. Once set, the nowayout feature 3762306a36Sopenharmony_ci cannot be disabled, so writing a '0' either has no 3862306a36Sopenharmony_ci effect (if the feature was already disabled) or 3962306a36Sopenharmony_ci results in a permission error. 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/state 4262306a36Sopenharmony_ciDate: August 2015 4362306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 4462306a36Sopenharmony_ciDescription: 4562306a36Sopenharmony_ci It is a read only file. It gives active/inactive status of 4662306a36Sopenharmony_ci watchdog device. 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/status 4962306a36Sopenharmony_ciDate: August 2015 5062306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 5162306a36Sopenharmony_ciDescription: 5262306a36Sopenharmony_ci It is a read only file. It contains watchdog device's 5362306a36Sopenharmony_ci internal status bits. It is equivalent to WDIOC_GETSTATUS 5462306a36Sopenharmony_ci of ioctl interface. 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/timeleft 5762306a36Sopenharmony_ciDate: August 2015 5862306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 5962306a36Sopenharmony_ciDescription: 6062306a36Sopenharmony_ci It is a read only file. It contains value of time left for 6162306a36Sopenharmony_ci reset generation. It is equivalent to WDIOC_GETTIMELEFT of 6262306a36Sopenharmony_ci ioctl interface. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/timeout 6562306a36Sopenharmony_ciDate: August 2015 6662306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 6762306a36Sopenharmony_ciDescription: 6862306a36Sopenharmony_ci It is a read only file. It is read to know about current 6962306a36Sopenharmony_ci value of timeout programmed. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/pretimeout 7262306a36Sopenharmony_ciDate: December 2016 7362306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 7462306a36Sopenharmony_ciDescription: 7562306a36Sopenharmony_ci It is a read only file. It specifies the time in seconds before 7662306a36Sopenharmony_ci timeout when the pretimeout interrupt is delivered. Pretimeout 7762306a36Sopenharmony_ci is an optional feature. 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/pretimeout_avaialable_governors 8062306a36Sopenharmony_ciDate: February 2017 8162306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 8262306a36Sopenharmony_ciDescription: 8362306a36Sopenharmony_ci It is a read only file. It shows the pretimeout governors 8462306a36Sopenharmony_ci available for this watchdog. 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdogn/pretimeout_governor 8762306a36Sopenharmony_ciDate: February 2017 8862306a36Sopenharmony_ciContact: Wim Van Sebroeck <wim@iguana.be> 8962306a36Sopenharmony_ciDescription: 9062306a36Sopenharmony_ci It is a read/write file. When read, the currently assigned 9162306a36Sopenharmony_ci pretimeout governor is returned. When written, it sets 9262306a36Sopenharmony_ci the pretimeout governor. 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ciWhat: /sys/class/watchdog/watchdog1/access_cs0 9562306a36Sopenharmony_ciDate: August 2019 9662306a36Sopenharmony_ciContact: Ivan Mikhaylov <i.mikhaylov@yadro.com>, 9762306a36Sopenharmony_ci Alexander Amelkin <a.amelkin@yadro.com> 9862306a36Sopenharmony_ciDescription: 9962306a36Sopenharmony_ci It is a read/write file. This attribute exists only if the 10062306a36Sopenharmony_ci system has booted from the alternate flash chip due to 10162306a36Sopenharmony_ci expiration of a watchdog timer of AST2400/AST2500 when 10262306a36Sopenharmony_ci alternate boot function was enabled with 'aspeed,alt-boot' 10362306a36Sopenharmony_ci devicetree option for that watchdog or with an appropriate 10462306a36Sopenharmony_ci h/w strapping (for WDT2 only). 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci At alternate flash the 'access_cs0' sysfs node provides: 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci ast2400: 10962306a36Sopenharmony_ci a way to get access to the primary SPI flash 11062306a36Sopenharmony_ci chip at CS0 after booting from the alternate 11162306a36Sopenharmony_ci chip at CS1. 11262306a36Sopenharmony_ci ast2500: 11362306a36Sopenharmony_ci a way to restore the normal address mapping 11462306a36Sopenharmony_ci from (CS0->CS1, CS1->CS0) to (CS0->CS0, 11562306a36Sopenharmony_ci CS1->CS1). 11662306a36Sopenharmony_ci 11762306a36Sopenharmony_ci Clearing the boot code selection and timeout counter also 11862306a36Sopenharmony_ci resets to the initial state the chip select line mapping. When 11962306a36Sopenharmony_ci the SoC is in normal mapping state (i.e. booted from CS0), 12062306a36Sopenharmony_ci clearing those bits does nothing for both versions of the SoC. 12162306a36Sopenharmony_ci For alternate boot mode (booted from CS1 due to wdt2 12262306a36Sopenharmony_ci expiration) the behavior differs as described above. 12362306a36Sopenharmony_ci 12462306a36Sopenharmony_ci This option can be used with wdt2 (watchdog1) only. 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ci When read, the current status of the boot code selection is 12762306a36Sopenharmony_ci shown. When written with any non-zero value, it clears 12862306a36Sopenharmony_ci the boot code selection and the timeout counter, which results 12962306a36Sopenharmony_ci in chipselect reset for AST2400/AST2500. 130