reset.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. = Reset Signal Device Tree Bindings =
  2. This binding is intended to represent the hardware reset signals present
  3. internally in most IC (SoC, FPGA, ...) designs. Reset signals for whole
  4. standalone chips are most likely better represented as GPIOs, although there
  5. are likely to be exceptions to this rule.
  6. Hardware blocks typically receive a reset signal. This signal is generated by
  7. a reset provider (e.g. power management or clock module) and received by a
  8. reset consumer (the module being reset, or a module managing when a sub-
  9. ordinate module is reset). This binding exists to represent the provider and
  10. consumer, and provide a way to couple the two together.
  11. A reset signal is represented by the phandle of the provider, plus a reset
  12. specifier - a list of DT cells that represents the reset signal within the
  13. provider. The length (number of cells) and semantics of the reset specifier
  14. are dictated by the binding of the reset provider, although common schemes
  15. are described below.
  16. A word on where to place reset signal consumers in device tree: It is possible
  17. in hardware for a reset signal to affect multiple logically separate HW blocks
  18. at once. In this case, it would be unwise to represent this reset signal in
  19. the DT node of each affected HW block, since if activated, an unrelated block
  20. may be reset. Instead, reset signals should be represented in the DT node
  21. where it makes most sense to control it; this may be a bus node if all
  22. children of the bus are affected by the reset signal, or an individual HW
  23. block node for dedicated reset signals. The intent of this binding is to give
  24. appropriate software access to the reset signals in order to manage the HW,
  25. rather than to slavishly enumerate the reset signal that affects each HW
  26. block.
  27. = Reset providers =
  28. Required properties:
  29. #reset-cells: Number of cells in a reset specifier; Typically 0 for nodes
  30. with a single reset output and 1 for nodes with multiple
  31. reset outputs.
  32. For example:
  33. rst: reset-controller {
  34. #reset-cells = <1>;
  35. };
  36. = Reset consumers =
  37. Required properties:
  38. resets: List of phandle and reset specifier pairs, one pair
  39. for each reset signal that affects the device, or that the
  40. device manages. Note: if the reset provider specifies '0' for
  41. #reset-cells, then only the phandle portion of the pair will
  42. appear.
  43. Optional properties:
  44. reset-names: List of reset signal name strings sorted in the same order as
  45. the resets property. Consumers drivers will use reset-names to
  46. match reset signal names with reset specifiers.
  47. For example:
  48. device {
  49. resets = <&rst 20>;
  50. reset-names = "reset";
  51. };
  52. This represents a device with a single reset signal named "reset".
  53. bus {
  54. resets = <&rst 10> <&rst 11> <&rst 12> <&rst 11>;
  55. reset-names = "i2s1", "i2s2", "dma", "mixer";
  56. };
  57. This represents a bus that controls the reset signal of each of four sub-
  58. ordinate devices. Consider for example a bus that fails to operate unless no
  59. child device has reset asserted.