keystone-reset.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. * Device tree bindings for Texas Instruments keystone reset
  2. This node is intended to allow SoC reset in case of software reset
  3. of selected watchdogs.
  4. The Keystone SoCs can contain up to 4 watchdog timers to reset
  5. SoC. Each watchdog timer event input is connected to the Reset Mux
  6. block. The Reset Mux block can be configured to cause reset or not.
  7. Additionally soft or hard reset can be configured.
  8. Required properties:
  9. - compatible: ti,keystone-reset
  10. - ti,syscon-pll: phandle/offset pair. The phandle to syscon used to
  11. access pll controller registers and the offset to use
  12. reset control registers.
  13. - ti,syscon-dev: phandle/offset pair. The phandle to syscon used to
  14. access device state control registers and the offset
  15. in order to use mux block registers for all watchdogs.
  16. Optional properties:
  17. - ti,soft-reset: Boolean option indicating soft reset.
  18. By default hard reset is used.
  19. - ti,wdt-list: WDT list that can cause SoC reset. It's not related
  20. to WDT driver, it's just needed to enable a SoC related
  21. reset that's triggered by one of WDTs. The list is
  22. in format: <0>, <2>; It can be in random order and
  23. begins from 0 to 3, as keystone can contain up to 4 SoC
  24. reset watchdogs and can be in random order.
  25. Example 1:
  26. Setup keystone reset so that in case software reset or
  27. WDT0 is triggered it issues hard reset for SoC.
  28. pllctrl: pll-controller@02310000 {
  29. compatible = "ti,keystone-pllctrl", "syscon";
  30. reg = <0x02310000 0x200>;
  31. };
  32. devctrl: device-state-control@02620000 {
  33. compatible = "ti,keystone-devctrl", "syscon";
  34. reg = <0x02620000 0x1000>;
  35. };
  36. rstctrl: reset-controller {
  37. compatible = "ti,keystone-reset";
  38. ti,syscon-pll = <&pllctrl 0xe4>;
  39. ti,syscon-dev = <&devctrl 0x328>;
  40. ti,wdt-list = <0>;
  41. };
  42. Example 2:
  43. Setup keystone reset so that in case of software reset or
  44. WDT0 or WDT2 is triggered it issues soft reset for SoC.
  45. rstctrl: reset-controller {
  46. compatible = "ti,keystone-reset";
  47. ti,syscon-pll = <&pllctrl 0xe4>;
  48. ti,syscon-dev = <&devctrl 0x328>;
  49. ti,wdt-list = <0>, <2>;
  50. ti,soft-reset;
  51. };