034-soc-qcom-Add-device-tree-binding-for-SMEM.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Content-Type: text/plain; charset="utf-8"
  2. MIME-Version: 1.0
  3. Content-Transfer-Encoding: 7bit
  4. Subject: [v2,1/2] soc: qcom: Add device tree binding for SMEM
  5. From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  6. X-Patchwork-Id: 6202201
  7. Message-Id: <1428795178-24312-1-git-send-email-bjorn.andersson@sonymobile.com>
  8. To: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
  9. Mark Rutland <mark.rutland@arm.com>,
  10. Ian Campbell <ijc+devicetree@hellion.org.uk>,
  11. Kumar Gala <galak@codeaurora.org>, Jeffrey Hugo <jhugo@codeaurora.org>,
  12. Andry Gross <agross@codeaurora.org>
  13. Cc: <devicetree@vger.kernel.org>,
  14. linux-arm-msm <linux-arm-msm@vger.kernel.org>,
  15. <linux-kernel@vger.kernel.org>
  16. Date: Sat, 11 Apr 2015 16:32:57 -0700
  17. Add device tree binding documentation for the Qualcom Shared Memory
  18. manager.
  19. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  20. ---
  21. Changes since v1:
  22. - None
  23. .../devicetree/bindings/soc/qcom/qcom,smem.txt | 49 ++++++++++++++++++++++
  24. 1 file changed, 49 insertions(+)
  25. create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt
  26. --- /dev/null
  27. +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt
  28. @@ -0,0 +1,49 @@
  29. +Qualcomm Shared Memory binding
  30. +
  31. +This binding describes the Qualcomm Shared Memory, used to share data between
  32. +various subsystems and OSes in Qualcomm platforms.
  33. +
  34. +- compatible:
  35. + Usage: required
  36. + Value type: <stringlist>
  37. + Definition: must be:
  38. + "qcom,smem"
  39. +
  40. +- memory-region:
  41. + Usage: required
  42. + Value type: <prop-encoded-array>
  43. + Definition: handle to memory reservation for main smem memory region.
  44. +
  45. +- reg:
  46. + Usage: optional
  47. + Value type: <prop-encoded-array>
  48. + Definition: base address and size pair for any additional memory areas
  49. + of the shared memory.
  50. +
  51. +- hwspinlocks:
  52. + Usage: required
  53. + Value type: <prop-encoded-array>
  54. + Definition: reference to a hwspinlock used to protect allocations from
  55. + the shared memory
  56. +
  57. += EXAMPLE
  58. +
  59. + reserved-memory {
  60. + #address-cells = <1>;
  61. + #size-cells = <1>;
  62. + ranges;
  63. +
  64. + smem_region: smem@fa00000 {
  65. + reg = <0xfa00000 0x200000>;
  66. + no-map;
  67. + };
  68. + };
  69. +
  70. + smem@fa00000 {
  71. + compatible = "qcom,smem";
  72. +
  73. + memory-region = <&smem_region>;
  74. + reg = <0xfc428000 0x4000>;
  75. +
  76. + hwlocks = <&tcsr_mutex 3>;
  77. + };