Commit 18b616d0 authored by Rob Herring's avatar Rob Herring
Browse files

dt-bindings: reserved-memory: Refine 'size' and 'alignment' types

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.

Link: https://lore.kernel.org/r/20230125221450.3058762-1-robh@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 92ec34fe
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -31,17 +31,17 @@ properties:
  reg: true
  reg: true


  size:
  size:
    $ref: /schemas/types.yaml#/definitions/uint32-array
    oneOf:
    minItems: 1
      - $ref: /schemas/types.yaml#/definitions/uint32
    maxItems: 2
      - $ref: /schemas/types.yaml#/definitions/uint64
    description: >
    description: >
      Length based on parent's \#size-cells. Size in bytes of memory to
      Length based on parent's \#size-cells. Size in bytes of memory to
      reserve.
      reserve.


  alignment:
  alignment:
    $ref: /schemas/types.yaml#/definitions/uint32-array
    oneOf:
    minItems: 1
      - $ref: /schemas/types.yaml#/definitions/uint32
    maxItems: 2
      - $ref: /schemas/types.yaml#/definitions/uint64
    description: >
    description: >
      Length based on parent's \#size-cells. Address boundary for
      Length based on parent's \#size-cells. Address boundary for
      alignment of allocation.
      alignment of allocation.