Skip to content

Commit 1803bfb

Browse files
Andy Yanmmind
authored andcommitted
dt-bindings: display: vop2: describe constraint SoC by SoC
As more SoCs variants are introduced, each SoC brings its own unique set of constraints, describe this constraints SoC by SoC will make things easier. Signed-off-by: Andy Yan <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e7aae9f commit 1803bfb

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description:
1414
maintainers:
1515
- Sandy Huang <[email protected]>
1616
- Heiko Stuebner <[email protected]>
17+
- Andy Yan <[email protected]>
1718

1819
properties:
1920
compatible:
@@ -124,43 +125,54 @@ allOf:
124125
properties:
125126
compatible:
126127
contains:
127-
const: rockchip,rk3588-vop
128+
enum:
129+
- rockchip,rk3566-vop
130+
- rockchip,rk3568-vop
128131
then:
129132
properties:
130133
clocks:
131-
minItems: 7
134+
maxItems: 5
135+
132136
clock-names:
133-
minItems: 7
137+
maxItems: 5
134138

135139
ports:
136140
required:
137141
- port@0
138142
- port@1
139143
- port@2
140-
- port@3
141144

142-
required:
143-
- rockchip,grf
144-
- rockchip,vo1-grf
145-
- rockchip,vop-grf
146-
- rockchip,pmu
147-
148-
else:
149-
properties:
150145
rockchip,vo1-grf: false
151146
rockchip,vop-grf: false
152147
rockchip,pmu: false
153148

149+
- if:
150+
properties:
151+
compatible:
152+
contains:
153+
const: rockchip,rk3588-vop
154+
then:
155+
properties:
154156
clocks:
155-
maxItems: 5
157+
minItems: 7
158+
maxItems: 9
159+
156160
clock-names:
157-
maxItems: 5
161+
minItems: 7
162+
maxItems: 9
158163

159164
ports:
160165
required:
161166
- port@0
162167
- port@1
163168
- port@2
169+
- port@3
170+
171+
required:
172+
- rockchip,grf
173+
- rockchip,vo1-grf
174+
- rockchip,vop-grf
175+
- rockchip,pmu
164176

165177
additionalProperties: false
166178

0 commit comments

Comments
 (0)