Commit 652980b1 authored by Rob Herring's avatar Rob Herring

dt-bindings: display: panel-timing: Define a single type for properties

It's not good practice to define multiple types for the same property, so
factor out the type reference making the properties always an uint32-array
with a length of 1 or 3 items.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20220413140016.3131013-1-robh@kernel.org
parent 5a674d9d
...@@ -71,78 +71,72 @@ properties: ...@@ -71,78 +71,72 @@ properties:
hfront-porch: hfront-porch:
description: Horizontal front porch panel timing description: Horizontal front porch panel timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
hback-porch: hback-porch:
description: Horizontal back porch timing description: Horizontal back porch timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
hsync-len: hsync-len:
description: Horizontal sync length panel timing description: Horizontal sync length panel timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
vfront-porch: vfront-porch:
description: Vertical front porch panel timing description: Vertical front porch panel timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
vback-porch: vback-porch:
description: Vertical back porch panel timing description: Vertical back porch panel timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
vsync-len: vsync-len:
description: Vertical sync length panel timing description: Vertical sync length panel timing
$ref: /schemas/types.yaml#/definitions/uint32-array
oneOf: oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - maxItems: 1
maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 3
minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment