qcom-hwspinlock.txt 915 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Qualcomm Hardware Mutex Block:
  2. The hardware block provides mutexes utilized between different processors on
  3. the SoC as part of the communication protocol used by these processors.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be one of:
  8. "qcom,sfpb-mutex",
  9. "qcom,tcsr-mutex"
  10. - syscon:
  11. Usage: required
  12. Value type: <prop-encoded-array>
  13. Definition: one cell containing:
  14. syscon phandle
  15. offset of the hwmutex block within the syscon
  16. stride of the hwmutex registers
  17. - #hwlock-cells:
  18. Usage: required
  19. Value type: <u32>
  20. Definition: must be 1, the specified cell represent the lock id
  21. (hwlock standard property, see hwlock.txt)
  22. Example:
  23. tcsr_mutex_block: syscon@fd484000 {
  24. compatible = "syscon";
  25. reg = <0xfd484000 0x2000>;
  26. };
  27. hwlock@fd484000 {
  28. compatible = "qcom,tcsr-mutex";
  29. syscon = <&tcsr_mutex_block 0 0x80>;
  30. #hwlock-cells = <1>;
  31. };