qcom,smem.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Qualcomm Shared Memory Manager binding
  2. This binding describes the Qualcomm Shared Memory Manager, used to share data
  3. between various subsystems and OSes in Qualcomm platforms.
  4. - compatible:
  5. Usage: required
  6. Value type: <stringlist>
  7. Definition: must be:
  8. "qcom,smem"
  9. - memory-region:
  10. Usage: required
  11. Value type: <prop-encoded-array>
  12. Definition: handle to memory reservation for main SMEM memory region.
  13. - qcom,rpm-msg-ram:
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: handle to RPM message memory resource
  17. - hwlocks:
  18. Usage: required
  19. Value type: <prop-encoded-array>
  20. Definition: reference to a hwspinlock used to protect allocations from
  21. the shared memory
  22. = EXAMPLE
  23. The following example shows the SMEM setup for MSM8974, with a main SMEM region
  24. at 0xfa00000 and the RPM message ram at 0xfc428000:
  25. reserved-memory {
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. ranges;
  29. smem_region: smem@fa00000 {
  30. reg = <0xfa00000 0x200000>;
  31. no-map;
  32. };
  33. };
  34. smem@fa00000 {
  35. compatible = "qcom,smem";
  36. memory-region = <&smem_region>;
  37. qcom,rpm-msg-ram = <&rpm_msg_ram>;
  38. hwlocks = <&tcsr_mutex 3>;
  39. };
  40. soc {
  41. rpm_msg_ram: memory@fc428000 {
  42. compatible = "qcom,rpm-msg-ram";
  43. reg = <0xfc428000 0x4000>;
  44. };
  45. };