dt-bindings: reserved-memory: Refine 'size' and 'alignment' types
authorRob Herring <robh@kernel.org>
Wed, 25 Jan 2023 22:14:50 +0000 (16:14 -0600)
committerRob Herring <robh@kernel.org>
Wed, 1 Feb 2023 01:22:34 +0000 (19:22 -0600)
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: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml

index 44f72bcf17825e13cd46d92f27fb28eaa441e271..b205215b130d131976e20b8a10bcc1715b1dca09 100644 (file)
@@ -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.