Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ properties:
- const: fsl,imx93-mipi-csi2
- items:
- enum:
- rockchip,rk3576-mipi-csi2
- rockchip,rk3588-mipi-csi2
- const: rockchip,rk3568-mipi-csi2
- const: rockchip,rk3568-mipi-csi2
Expand Down Expand Up @@ -117,12 +118,39 @@ allOf:
minItems: 2
interrupt-names:
minItems: 2
required:
- resets

- if:
properties:
compatible:
contains:
const: rockchip,rk3568-mipi-csi2
not:
properties:
compatible:
contains:
const: rockchip,rk3576-mipi-csi2
then:
properties:
clocks:
maxItems: 1
clock-names:
maxItems: 1
required:
- resets

- if:
properties:
compatible:
contains:
const: rockchip,rk3576-mipi-csi2
then:
properties:
clocks:
minItems: 1
maxItems: 2
clock-names:
minItems: 1
maxItems: 2

- if:
properties:
Expand Down
40 changes: 32 additions & 8 deletions Documentation/devicetree/bindings/media/rockchip,rk3588-vicap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
$id: http://devicetree.org/schemas/media/rockchip,rk3588-vicap.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Rockchip RK3588 Video Capture (VICAP)
title: Rockchip RK3576 and RK3588 Video Capture (VICAP)

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

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

properties:
compatible:
enum:
- rockchip,rk3576-vicap
- rockchip,rk3588-vicap

reg:
Expand Down Expand Up @@ -47,6 +49,7 @@ properties:
maxItems: 1

resets:
minItems: 8
maxItems: 9

rockchip,grf:
Expand All @@ -63,7 +66,8 @@ properties:
port@0:
$ref: /schemas/graph.yaml#/$defs/port-base
unevaluatedProperties: false
description: The digital video port (DVP, a parallel video interface).
description:
The digital video port (DVP, a parallel video interface). RK3588 only.

properties:
endpoint:
Expand Down Expand Up @@ -124,7 +128,8 @@ properties:

port@6:
$ref: /schemas/graph.yaml#/properties/port
description: Port connected to the MIPI CSI-2 receiver 5 output.
description:
Port connected to the MIPI CSI-2 receiver 5 output. RK3588 only.

properties:
endpoint:
Expand All @@ -138,6 +143,25 @@ required:
- clocks
- ports

allOf:
- if:
properties:
compatible:
contains:
const: rockchip,rk3576-vicap
then:
properties:
resets:
maxItems: 8
ports:
properties:
port@0: false
port@6: false
else:
properties:
resets:
minItems: 9

additionalProperties: false

examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ properties:
- rockchip,rk3326-csi-dphy
- rockchip,rk3368-csi-dphy
- rockchip,rk3568-csi-dphy
- rockchip,rk3576-csi-dphy
- rockchip,rk3588-csi-dphy

reg:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/soc/rockchip/grf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ properties:
- rockchip,rk3568-usb2phy-grf
- rockchip,rk3576-bigcore-grf
- rockchip,rk3576-cci-grf
- rockchip,rk3576-csidphy-grf
- rockchip,rk3576-dcphy-grf
- rockchip,rk3576-gpu-grf
- rockchip,rk3576-hdptxphy-grf
Expand Down
Loading