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
This commit is contained in:
Isaac J. Manjarres 2020-02-26 17:58:49 -08:00 • committed by Gerrit - the friendly Code Review server
commit 483d608683

View file

@ -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";
};