msm_watchdog.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. * Qualcomm MSM Watchdog
  2. Watchdog timer is configured with a bark and a bite time.
  3. if the watchdog is not "pet" at regular intervals, the system
  4. is assumed to have become non responsive and needs to be reset.
  5. A warning in the form of a bark timeout leads to a bark interrupt
  6. and a kernel panic. if the watchdog timer is still not reset,
  7. a bite timeout occurs, which is an interrupt in the secure mode,
  8. which leads to a reset of the SOC via the secure watchdog. The
  9. driver needs the petting time, and the bark timeout to be programmed
  10. into the watchdog, as well as the bark and bite irqs.
  11. The device tree parameters for the watchdog are:
  12. Required properties:
  13. - compatible : "qcom,msm-watchdog"
  14. - reg : offset and length of the register set for the watchdog block.
  15. - interrupts : should contain bark and bite irq numbers
  16. - qcom,pet-time : Non zero time interval at which watchdog should be pet in ms.
  17. - qcom,bark-time : Non zero timeout value for a watchdog bark in ms.
  18. Optional properties:
  19. - qcom,ipi-ping : (boolean) send keep alive ping to other cpus if present
  20. Example:
  21. qcom,wdt@f9017000 {
  22. compatible = "qcom,msm-watchdog";
  23. reg = <0xf9017000 0x1000>;
  24. interrupts = <0 3 0>, <0 4 0>;
  25. qcom,bark-time = <11000>;
  26. qcom,pet-time = <10000>;
  27. qcom,ipi-ping;
  28. };