Skip to content

Commit c3b7c5a

Browse files
Andy Yanmmind
authored andcommitted
dt-bindings: display: vop2: Add rk3576 support
Add vop found on rk3576, the main difference between rk3576 and the previous vop is that each VP has its own interrupt line. 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 47d31e6 commit c3b7c5a

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

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

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ properties:
2121
enum:
2222
- rockchip,rk3566-vop
2323
- rockchip,rk3568-vop
24+
- rockchip,rk3576-vop
2425
- rockchip,rk3588-vop
2526

2627
reg:
@@ -38,10 +39,21 @@ properties:
3839
- const: gamma-lut
3940

4041
interrupts:
41-
maxItems: 1
42+
minItems: 1
43+
maxItems: 4
4244
description:
43-
The VOP interrupt is shared by several interrupt sources, such as
44-
frame start (VSYNC), line flag and other status interrupts.
45+
For VOP version under rk3576, the interrupt is shared by several interrupt
46+
sources, such as frame start (VSYNC), line flag and other interrupt status.
47+
For VOP version from rk3576 there is a system interrupt for bus error, and
48+
every video port has it's independent interrupts for vsync and other video
49+
port related error interrupts.
50+
51+
interrupt-names:
52+
items:
53+
- const: sys
54+
- const: vp0
55+
- const: vp1
56+
- const: vp2
4557

4658
# See compatible-specific constraints below.
4759
clocks:
@@ -136,6 +148,11 @@ allOf:
136148
clock-names:
137149
maxItems: 5
138150

151+
interrupts:
152+
maxItems: 1
153+
154+
interrupt-names: false
155+
139156
ports:
140157
required:
141158
- port@0
@@ -149,6 +166,39 @@ allOf:
149166
required:
150167
- rockchip,grf
151168

169+
- if:
170+
properties:
171+
compatible:
172+
contains:
173+
enum:
174+
- rockchip,rk3576-vop
175+
then:
176+
properties:
177+
clocks:
178+
maxItems: 5
179+
180+
clock-names:
181+
maxItems: 5
182+
183+
interrupts:
184+
minItems: 4
185+
186+
interrupt-names:
187+
minItems: 4
188+
189+
ports:
190+
required:
191+
- port@0
192+
- port@1
193+
- port@2
194+
195+
rockchip,vo1-grf: false
196+
rockchip,vop-grf: false
197+
198+
required:
199+
- rockchip,grf
200+
- rockchip,pmu
201+
152202
- if:
153203
properties:
154204
compatible:
@@ -164,6 +214,11 @@ allOf:
164214
minItems: 7
165215
maxItems: 9
166216

217+
interrupts:
218+
maxItems: 1
219+
220+
interrupt-names: false
221+
167222
ports:
168223
required:
169224
- port@0

0 commit comments

Comments
 (0)