hwlock.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Generic hwlock bindings
  2. =======================
  3. Generic bindings that are common to all the hwlock platform specific driver
  4. implementations.
  5. Please also look through the individual platform specific hwlock binding
  6. documentations for identifying any additional properties specific to that
  7. platform.
  8. hwlock providers:
  9. =================
  10. Required properties:
  11. - #hwlock-cells: Specifies the number of cells needed to represent a
  12. specific lock.
  13. hwlock users:
  14. =============
  15. Consumers that require specific hwlock(s) should specify them using the
  16. property "hwlocks", and an optional "hwlock-names" property.
  17. Required properties:
  18. - hwlocks: List of phandle to a hwlock provider node and an
  19. associated hwlock args specifier as indicated by
  20. #hwlock-cells. The list can have just a single hwlock
  21. or multiple hwlocks, with each hwlock represented by
  22. a phandle and a corresponding args specifier.
  23. Optional properties:
  24. - hwlock-names: List of hwlock name strings defined in the same order
  25. as the hwlocks, with one name per hwlock. Consumers can
  26. use the hwlock-names to match and get a specific hwlock.
  27. 1. Example of a node using a single specific hwlock:
  28. The following example has a node requesting a hwlock in the bank defined by
  29. the node hwlock1. hwlock1 is a hwlock provider with an argument specifier
  30. of length 1.
  31. node {
  32. ...
  33. hwlocks = <&hwlock1 2>;
  34. ...
  35. };
  36. 2. Example of a node using multiple specific hwlocks:
  37. The following example has a node requesting two hwlocks, a hwlock within
  38. the hwlock device node 'hwlock1' with #hwlock-cells value of 1, and another
  39. hwlock within the hwlock device node 'hwlock2' with #hwlock-cells value of 2.
  40. node {
  41. ...
  42. hwlocks = <&hwlock1 2>, <&hwlock2 0 3>;
  43. ...
  44. };