Skip to content

Commit 17e41c2

Browse files
committed
dt-bindings: media: rockchip,rk3588-vicap: add rk3576 support
The RK3576 VICAP uses the same register layout and clock setup as the RK3588 one, with two differences: it has five MIPI CSI-2 input ports instead of six and no DVP parallel port. Extend the existing RK3588 binding rather than adding a separate file: add the rockchip,rk3576-vicap compatible and an allOf/if-then block that drops the DVP port@0 and the sixth MIPI port@6, and caps resets at eight, when that compatible is used. Signed-off-by: Jason Devers <dev.json2@gmail.com>
1 parent 7a72cdf commit 17e41c2

1 file changed

Lines changed: 27 additions & 8 deletions

File tree

Documentation/devicetree/bindings/media/rockchip,rk3588-vicap.yaml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,23 @@
44
$id: http://devicetree.org/schemas/media/rockchip,rk3588-vicap.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Rockchip RK3588 Video Capture (VICAP)
7+
title: Rockchip RK3576 and RK3588 Video Capture (VICAP)
88

99
maintainers:
1010
- Michael Riesch <michael.riesch@collabora.com>
1111

1212
description:
13-
The Rockchip RK3588 Video Capture (VICAP) block features a digital video
14-
port (DVP, a parallel video interface) and six MIPI CSI-2 ports. It receives
15-
the data from camera sensors, video decoders, or other companion ICs and
16-
transfers it into system main memory by AXI bus and/or passes it the image
17-
signal processing (ISP) blocks.
13+
The Rockchip Video Capture (VICAP) block receives data from camera sensors,
14+
video decoders, or other companion ICs and transfers it into system main
15+
memory by AXI bus and/or passes it to the image signal processing (ISP)
16+
blocks. On RK3588 it features a digital video port (DVP, a parallel video
17+
interface) and six MIPI CSI-2 ports. RK3576 has no DVP and five MIPI CSI-2
18+
ports.
1819

1920
properties:
2021
compatible:
2122
enum:
23+
- rockchip,rk3576-vicap
2224
- rockchip,rk3588-vicap
2325

2426
reg:
@@ -63,7 +65,8 @@ properties:
6365
port@0:
6466
$ref: /schemas/graph.yaml#/$defs/port-base
6567
unevaluatedProperties: false
66-
description: The digital video port (DVP, a parallel video interface).
68+
description:
69+
The digital video port (DVP, a parallel video interface). RK3588 only.
6770

6871
properties:
6972
endpoint:
@@ -124,7 +127,8 @@ properties:
124127

125128
port@6:
126129
$ref: /schemas/graph.yaml#/properties/port
127-
description: Port connected to the MIPI CSI-2 receiver 5 output.
130+
description:
131+
Port connected to the MIPI CSI-2 receiver 5 output. RK3588 only.
128132

129133
properties:
130134
endpoint:
@@ -138,6 +142,21 @@ required:
138142
- clocks
139143
- ports
140144

145+
allOf:
146+
- if:
147+
properties:
148+
compatible:
149+
contains:
150+
const: rockchip,rk3576-vicap
151+
then:
152+
properties:
153+
resets:
154+
maxItems: 8
155+
ports:
156+
properties:
157+
port@0: false
158+
port@6: false
159+
141160
additionalProperties: false
142161

143162
examples:

0 commit comments

Comments
 (0)