Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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