From 483d60868354caa80468573af6766d6c95da0eec Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Wed, 26 Feb 2020 17:58:49 -0800 Subject: [PATCH] dt-bindings: Document the mem-buf capabilities property Add documentation for the "qcom,mem-buf-capabilities" dt-binding for the mem-buf device. This property defines the role of an instance of a mem-buf driver on a particular Virtual Machine (VM) as per the supplier and consumer model that the driver follows. Change-Id: Ic20476fb5aa5e21f8b78e19a47b4f682e35e6a36 --- bindings/soc/qcom/qcom,mem-buf.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bindings/soc/qcom/qcom,mem-buf.yaml b/bindings/soc/qcom/qcom,mem-buf.yaml index 88fa9f248c82..6754edd6c079 100644 --- a/bindings/soc/qcom/qcom,mem-buf.yaml +++ b/bindings/soc/qcom/qcom,mem-buf.yaml @@ -17,11 +17,27 @@ properties: items: - const: qcom,mem-buf + qcom,mem-buf-capabilities: + oneOf: + - const: supplier + description: Allows the mem-buf driver to supply memory to other VMs. + + - const: consumer + description: + Allows the mem-buf driver to request and accept memory from other VMs. + + - const: dual + description: + Allows the mem-buf driver to supply memory to other VMs, as well as + request and accept memory from other VMs + required: - compatible + - qcom,mem-buf-capabilities examples: - | qcom,mem-buf { compatible = "qcom,mem-buf"; + qcom,mem-buf-capabilities = "supplier"; };