Skip to content

Commit 652980b

Browse files
committed
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: Rob Herring <robh@kernel.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://lore.kernel.org/r/20220413140016.3131013-1-robh@kernel.org
1 parent 5a674d9 commit 652980b

1 file changed

Lines changed: 18 additions & 24 deletions

File tree

Documentation/devicetree/bindings/display/panel/panel-timing.yaml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,78 +71,72 @@ properties:
7171

7272
hfront-porch:
7373
description: Horizontal front porch panel timing
74+
$ref: /schemas/types.yaml#/definitions/uint32-array
7475
oneOf:
75-
- $ref: /schemas/types.yaml#/definitions/uint32
76-
maxItems: 1
76+
- maxItems: 1
7777
items:
7878
description: typical number of pixels
79-
- $ref: /schemas/types.yaml#/definitions/uint32-array
80-
minItems: 3
79+
- minItems: 3
8180
maxItems: 3
8281
items:
8382
description: min, typ, max number of pixels
8483

8584
hback-porch:
8685
description: Horizontal back porch timing
86+
$ref: /schemas/types.yaml#/definitions/uint32-array
8787
oneOf:
88-
- $ref: /schemas/types.yaml#/definitions/uint32
89-
maxItems: 1
88+
- maxItems: 1
9089
items:
9190
description: typical number of pixels
92-
- $ref: /schemas/types.yaml#/definitions/uint32-array
93-
minItems: 3
91+
- minItems: 3
9492
maxItems: 3
9593
items:
9694
description: min, typ, max number of pixels
9795

9896
hsync-len:
9997
description: Horizontal sync length panel timing
98+
$ref: /schemas/types.yaml#/definitions/uint32-array
10099
oneOf:
101-
- $ref: /schemas/types.yaml#/definitions/uint32
102-
maxItems: 1
100+
- maxItems: 1
103101
items:
104102
description: typical number of pixels
105-
- $ref: /schemas/types.yaml#/definitions/uint32-array
106-
minItems: 3
103+
- minItems: 3
107104
maxItems: 3
108105
items:
109106
description: min, typ, max number of pixels
110107

111108
vfront-porch:
112109
description: Vertical front porch panel timing
110+
$ref: /schemas/types.yaml#/definitions/uint32-array
113111
oneOf:
114-
- $ref: /schemas/types.yaml#/definitions/uint32
115-
maxItems: 1
112+
- maxItems: 1
116113
items:
117114
description: typical number of lines
118-
- $ref: /schemas/types.yaml#/definitions/uint32-array
119-
minItems: 3
115+
- minItems: 3
120116
maxItems: 3
121117
items:
122118
description: min, typ, max number of lines
123119

124120
vback-porch:
125121
description: Vertical back porch panel timing
122+
$ref: /schemas/types.yaml#/definitions/uint32-array
126123
oneOf:
127-
- $ref: /schemas/types.yaml#/definitions/uint32
128-
maxItems: 1
124+
- maxItems: 1
129125
items:
130126
description: typical number of lines
131-
- $ref: /schemas/types.yaml#/definitions/uint32-array
132-
minItems: 3
127+
- minItems: 3
133128
maxItems: 3
134129
items:
135130
description: min, typ, max number of lines
136131

137132
vsync-len:
138133
description: Vertical sync length panel timing
134+
$ref: /schemas/types.yaml#/definitions/uint32-array
139135
oneOf:
140-
- $ref: /schemas/types.yaml#/definitions/uint32
141-
maxItems: 1
136+
- maxItems: 1
142137
items:
143138
description: typical number of lines
144-
- $ref: /schemas/types.yaml#/definitions/uint32-array
145-
minItems: 3
139+
- minItems: 3
146140
maxItems: 3
147141
items:
148142
description: min, typ, max number of lines

0 commit comments

Comments
 (0)