bindings: Address dt-binding-check errors for qcom-dma-buf

Improve compliance with dt-schema.

Change-Id: Ie0d5b863eaeff149db440cb9dee445abfad6281d
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
This commit is contained in:
Patrick Daly
2023-05-24 19:03:38 -07:00
parent 56cf12565c
commit ce56a62595

View File

@@ -23,11 +23,11 @@ properties:
description: Container of DMA-BUF heap nodes description: Container of DMA-BUF heap nodes
compatible: compatible:
items: const: qcom,dma-heaps
-const: qcom,dma-heaps
patternProperties: patternProperties:
'^qcom,[a-zA-Z]+$': '^qcom,[a-zA-Z]+$':
type: object
properties: properties:
qcom,dma-heap-name: qcom,dma-heap-name:
$ref: '/schemas/types.yaml#/definitions/string' $ref: '/schemas/types.yaml#/definitions/string'
@@ -35,10 +35,8 @@ patternProperties:
description: The name given to this heap. description: The name given to this heap.
qcom,dma-heap-type: qcom,dma-heap-type:
$ref: '/schemas/types.yaml#/definitions/string' $ref: '/schemas/types.yaml#/definitions/uint32'
maxItems: 1 enum:
items:
- enum:
- HEAP_TYPE_SECURE_CARVEOUT - HEAP_TYPE_SECURE_CARVEOUT
- HEAP_TYPE_CARVEOUT - HEAP_TYPE_CARVEOUT
- HEAP_TYPE_CMA - HEAP_TYPE_CMA
@@ -46,33 +44,28 @@ patternProperties:
The heap type to use for this heap. The heap type to use for this heap.
qcom,uncached-heap: qcom,uncached-heap:
Usage: optional type: boolean
Value type: <boolean> description: Denotes whether this heap provides uncached memory or not.
Definition: Denotes whether this heap provides uncached memory or not.
qcom,dynamic-heap: qcom,dynamic-heap:
Usage: optional type: boolean
Value type: <boolean> description: Denotes whether a heap can have memory dynamically added and
Definition: Denotes whether a heap can have memory dynamically added and
subtracted from it. Heaps with this property are assumed to start off subtracted from it. Heaps with this property are assumed to start off
with no memory, and must have memory added to them prior to any use. with no memory, and must have memory added to them prior to any use.
qcom,token: qcom,token:
$ref: '/schemas/types.yaml#/definitions/uint32' $ref: '/schemas/types.yaml#/definitions/uint32'
minItems: 1
description: | description: |
Specifies the set of secure domains which will be able to access Specifies the set of secure domains which will be able to access
the memory-region. the memory-region.
qcom,max-align: qcom,max-align:
$ref: '/schemas/types.yaml#/definitions/uint32' $ref: '/schemas/types.yaml#/definitions/uint32'
minItems: 1
description: | description: |
Maximum alignment of an allocation, in units of page order. Maximum alignment of an allocation, in units of page order.
memory-region: memory-region:
$ref: '/schemas/types.yaml#/definitions/phandle' $ref: '/schemas/types.yaml#/definitions/phandle'
maxItems: 1
description: | description: |
Specifies the reserved memory region that this heap will allocate Specifies the reserved memory region that this heap will allocate
memory from. This property is only required for heaps that draw memory memory from. This property is only required for heaps that draw memory
@@ -87,12 +80,13 @@ patternProperties:
required: required:
- compatible - compatible
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/arm/msm/qcom_dma_heap_dt_constants.h>
qcom,dma-heaps { qcom,dma-heaps {
compatible = "qcom,dma-heaps"; compatible = "qcom,dma-heaps";
#address-cells = <1>;
#size-cells = <0>;
qcom,adsp { qcom,adsp {
qcom,dma-heap-name = "qcom,adsp"; qcom,dma-heap-name = "qcom,adsp";