Skip to contentSkip to conversation

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

PATCH Applied Rob Herring 1 participant 2 messages Jan 25, 2023 – Jan 31, 2023 Device tree bindings

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 .../bindings/reserved-memory/reserved-memory.yaml    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml +6 -6
index 44f72bcf1782..b205215b130d 100644
@@ -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.
Signature · 1 line
2.39.0
author maintainer Applied
#1 lore raw
Quoted 8 lines · Rob Herring

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.

---
 .../bindings/reserved-memory/reserved-memory.yaml    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Applied, thanks!