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"; }; diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 7fcc05fc3e1a..81914b7d2137 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -2676,6 +2676,7 @@ qcom-mem-buf { compatible = "qcom,mem-buf"; + qcom,mem-buf-capabilities = "supplier"; }; qcom,chd { diff --git a/qcom/trustedvm.dtsi b/qcom/trustedvm.dtsi index b520e196ca45..0e081c3ba97a 100644 --- a/qcom/trustedvm.dtsi +++ b/qcom/trustedvm.dtsi @@ -40,6 +40,7 @@ qcom-mem-buf { compatible = "qcom,mem-buf"; + qcom,mem-buf-capabilities = "consumer"; }; memory@28800000 {