dt-bindings: reserved-memory: Refine 'size' and 'alignment' types
Commit Message
Both 'size' and 'alignment' are single values, but can be 32 or 64 bits.
Use the precise types rather than the 2 32-bit cell encoding.
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../bindings/reserved-memory/reserved-memory.yaml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Comments
On Wed, 25 Jan 2023 16:14:50 -0600, Rob Herring wrote:
> Both 'size' and 'alignment' are single values, but can be 32 or 64 bits.
> Use the precise types rather than the 2 32-bit cell encoding.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> .../bindings/reserved-memory/reserved-memory.yaml | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
Applied, thanks!
@@ -31,17 +31,17 @@ properties:
reg: true
size:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
- maxItems: 2
+ oneOf:
+ - $ref: /schemas/types.yaml#/definitions/uint32
+ - $ref: /schemas/types.yaml#/definitions/uint64
description: >
Length based on parent's \#size-cells. Size in bytes of memory to
reserve.
alignment:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
- maxItems: 2
+ oneOf:
+ - $ref: /schemas/types.yaml#/definitions/uint32
+ - $ref: /schemas/types.yaml#/definitions/uint64
description: >
Length based on parent's \#size-cells. Address boundary for
alignment of allocation.