18c2ecf20Sopenharmony_ciAspeed Watchdog Timer 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci - compatible: must be one of: 58c2ecf20Sopenharmony_ci - "aspeed,ast2400-wdt" 68c2ecf20Sopenharmony_ci - "aspeed,ast2500-wdt" 78c2ecf20Sopenharmony_ci - "aspeed,ast2600-wdt" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci - reg: physical base address of the controller and length of memory mapped 108c2ecf20Sopenharmony_ci region 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciOptional properties: 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci - aspeed,reset-type = "cpu|soc|system|none" 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci Reset behavior - Whenever a timeout occurs the watchdog can be programmed 178c2ecf20Sopenharmony_ci to generate one of three different, mutually exclusive, types of resets. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci Type "none" can be specified to indicate that no resets are to be done. 208c2ecf20Sopenharmony_ci This is useful in situations where another watchdog engine on chip is 218c2ecf20Sopenharmony_ci to perform the reset. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci If 'aspeed,reset-type=' is not specified the default is to enable system 248c2ecf20Sopenharmony_ci reset. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci Reset types: 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci - cpu: Reset CPU on watchdog timeout 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci - soc: Reset 'System on Chip' on watchdog timeout 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci - system: Reset system on watchdog timeout 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci - none: No reset is performed on timeout. Assumes another watchdog 358c2ecf20Sopenharmony_ci engine is responsible for this. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci - aspeed,alt-boot: If property is present then boot from alternate block. 388c2ecf20Sopenharmony_ci - aspeed,external-signal: If property is present then signal is sent to 398c2ecf20Sopenharmony_ci external reset counter (only WDT1 and WDT2). If not 408c2ecf20Sopenharmony_ci specified no external signal is sent. 418c2ecf20Sopenharmony_ci - aspeed,ext-pulse-duration: External signal pulse duration in microseconds 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciOptional properties for AST2500-compatible watchdogs: 448c2ecf20Sopenharmony_ci - aspeed,ext-push-pull: If aspeed,external-signal is present, set the pin's 458c2ecf20Sopenharmony_ci drive type to push-pull. The default is open-drain. 468c2ecf20Sopenharmony_ci - aspeed,ext-active-high: If aspeed,external-signal is present and and the pin 478c2ecf20Sopenharmony_ci is configured as push-pull, then set the pulse 488c2ecf20Sopenharmony_ci polarity to active-high. The default is active-low. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciExample: 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci wdt1: watchdog@1e785000 { 538c2ecf20Sopenharmony_ci compatible = "aspeed,ast2400-wdt"; 548c2ecf20Sopenharmony_ci reg = <0x1e785000 0x1c>; 558c2ecf20Sopenharmony_ci aspeed,reset-type = "system"; 568c2ecf20Sopenharmony_ci aspeed,external-signal; 578c2ecf20Sopenharmony_ci }; 58