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) * Atmel Watchdog Timers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) ** at91sam9-wdt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) - compatible: must be "atmel,at91sam9260-wdt".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - reg: physical base address of the controller and length of memory mapped
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)   region.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) - clocks: phandle to input clock.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - timeout-sec: contains the watchdog timeout in seconds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - interrupts : Should contain WDT interrupt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - atmel,max-heartbeat-sec : Should contain the maximum heartbeat value in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	seconds. This value should be less or equal to 16. It is used to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	compute the WDV field.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - atmel,min-heartbeat-sec : Should contain the minimum heartbeat value in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	seconds. This value must be smaller than the max-heartbeat-sec value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	It is used to compute the WDD field.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - atmel,watchdog-type : Should be "hardware" or "software". Hardware watchdog
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	use the at91 watchdog reset. Software watchdog use the watchdog
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	interrupt to trigger a software reset.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - atmel,reset-type : Should be "proc" or "all".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	"all" : assert peripherals and processor reset signals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	"proc" : assert the processor reset signal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	This is valid only when using "hardware" watchdog.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - atmel,disable : Should be present if you want to disable the watchdog.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - atmel,idle-halt : Should be present if you want to stop the watchdog when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	entering idle state.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	CAUTION: This property should be used with care, it actually makes the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	watchdog not counting when the CPU is in idle state, therefore the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	watchdog reset time depends on mean CPU usage and will not reset at all
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	if the CPU stop working while it is in idle state, which is probably
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	not what you want.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) - atmel,dbg-halt : Should be present if you want to stop the watchdog when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	entering debug state.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	watchdog@fffffd40 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 		compatible = "atmel,at91sam9260-wdt";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 		reg = <0xfffffd40 0x10>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 		interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		clocks = <&clk32k>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 		timeout-sec = <15>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		atmel,watchdog-type = "hardware";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		atmel,reset-type = "all";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 		atmel,dbg-halt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 		atmel,idle-halt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 		atmel,max-heartbeat-sec = <16>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		atmel,min-heartbeat-sec = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	};