From 471a115457b1581e19825e993059c07d4e70062e Mon Sep 17 00:00:00 2001 From: Manoj Prabhu B Date: Wed, 23 Aug 2023 11:05:40 +0530 Subject: [PATCH] dt-bindings: memshare: Add devicetree bindings for memshare Add documentation for memshare driver device tree bindings aligning to new requirement. Change-Id: I1da604c4c444044ac4c2dd25037d11900ebe8a79 Signed-off-by: Manoj Prabhu B --- bindings/arm/msm/qcom,memshare.yaml | 84 +++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 bindings/arm/msm/qcom,memshare.yaml diff --git a/bindings/arm/msm/qcom,memshare.yaml b/bindings/arm/msm/qcom,memshare.yaml new file mode 100644 index 00000000..f0ccfc79 --- /dev/null +++ b/bindings/arm/msm/qcom,memshare.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/msm/qcom,memshare.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: HLOS Memory Share Driver + +maintainers: + - Manoj Prabhu B + +description: | + The Memshare driver implements a Kernel QMI service on the + APSS responsible for providing contiguous physical memory + to subsystems for use cases when additional memory is required. + +properties: + compatible: + const: qcom,memshare + description: Container of Memshare nodes + + child-node: + description: Container of Memshare client nodes + type: object + properites: + compatible: + const: qcom,memshare-peripheral + +patternProperties: + '^qcom,[a-zA-Z]+$': + type: object + properties: + qcom,peripheral-size: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + Indicates the size (in bytes) required for that child node + + qcom,client-id: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + Indicates the client id of the child node. + + qcom,allocate-boot-time: + type: boolean + description: | + Indicates whether clients needs boot time memory allocation. + + qcom,allocate-on-request: + type: boolean + description: | + Indicates memory allocation happens only upon client request. + qcom,allocate-boot-time and qcom,allocate-on-request are mutually exclusive rite now. + + qcom,guard-band: + type: boolean + description: | + Indicates addition of a guard band memory allocation in addition to the client's memory region. + + label: + $ref: '/schemas/types.yaml#/definitions/string' + description: | + Indicates the peripheral information for the node. + + required: + - compatible + - qcom,peripheral-size + - qcom,client-id + +required: + - compatible + +examples: + - | + qcom,memshare { + compatible = "qcom,memshare"; + + qcom,client_1 { + compatible = "qcom,memshare-peripheral"; + qcom,peripheral-size = <0x200000>; + qcom,client-id = <0>; + qcom,allocate-boot-time; + label = "modem"; + }; + }; \ No newline at end of file