Skip to content

Commit a36a0b2

Browse files
Mehdi DjaitHans Verkuil
authored andcommitted
media: dt-bindings: add rockchip px30 vip
Add documentation for the Rockchip PX30 Video Input Processor (VIP). Signed-off-by: Mehdi Djait <mehdi.djait@bootlin.com> [revised description] Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Michael Riesch <michael.riesch@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
1 parent 4a09126 commit a36a0b2

2 files changed

Lines changed: 125 additions & 0 deletions

File tree

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/rockchip,px30-vip.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Rockchip PX30 Video Input Processor (VIP)
8+
9+
maintainers:
10+
- Mehdi Djait <mehdi.djait@linux.intel.com>
11+
- Michael Riesch <michael.riesch@collabora.com>
12+
13+
description:
14+
The Rockchip PX30 Video Input Processor (VIP) receives the data from a camera
15+
sensor or CCIR656 encoder and transfers it into system main memory by AXI bus.
16+
17+
properties:
18+
compatible:
19+
const: rockchip,px30-vip
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
items:
29+
- description: ACLK
30+
- description: HCLK
31+
- description: PCLK
32+
33+
clock-names:
34+
items:
35+
- const: aclk
36+
- const: hclk
37+
- const: pclk
38+
39+
resets:
40+
items:
41+
- description: AXI
42+
- description: AHB
43+
- description: PCLK IN
44+
45+
reset-names:
46+
items:
47+
- const: axi
48+
- const: ahb
49+
- const: pclkin
50+
51+
power-domains:
52+
maxItems: 1
53+
54+
ports:
55+
$ref: /schemas/graph.yaml#/properties/ports
56+
57+
properties:
58+
port@0:
59+
$ref: /schemas/graph.yaml#/$defs/port-base
60+
unevaluatedProperties: false
61+
description: input port on the parallel interface
62+
63+
properties:
64+
endpoint:
65+
$ref: video-interfaces.yaml#
66+
unevaluatedProperties: false
67+
68+
properties:
69+
bus-type:
70+
enum:
71+
- 5 # MEDIA_BUS_TYPE_PARALLEL
72+
- 6 # MEDIA_BUS_TYPE_BT656
73+
74+
required:
75+
- bus-type
76+
77+
required:
78+
- port@0
79+
80+
required:
81+
- compatible
82+
- reg
83+
- interrupts
84+
- clocks
85+
- ports
86+
87+
additionalProperties: false
88+
89+
examples:
90+
- |
91+
#include <dt-bindings/clock/px30-cru.h>
92+
#include <dt-bindings/interrupt-controller/arm-gic.h>
93+
#include <dt-bindings/media/video-interfaces.h>
94+
#include <dt-bindings/power/px30-power.h>
95+
96+
soc {
97+
#address-cells = <2>;
98+
#size-cells = <2>;
99+
100+
video-capture@ff490000 {
101+
compatible = "rockchip,px30-vip";
102+
reg = <0x0 0xff490000 0x0 0x200>;
103+
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
104+
clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>;
105+
clock-names = "aclk", "hclk", "pclk";
106+
power-domains = <&power PX30_PD_VI>;
107+
resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>;
108+
reset-names = "axi", "ahb", "pclkin";
109+
110+
ports {
111+
#address-cells = <1>;
112+
#size-cells = <0>;
113+
114+
port@0 {
115+
reg = <0>;
116+
117+
cif_in: endpoint {
118+
remote-endpoint = <&tw9900_out>;
119+
bus-type = <MEDIA_BUS_TYPE_BT656>;
120+
};
121+
};
122+
};
123+
};
124+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22269,6 +22269,7 @@ M: Michael Riesch <michael.riesch@collabora.com>
2226922269
L: linux-media@vger.kernel.org
2227022270
S: Maintained
2227122271
F: Documentation/admin-guide/media/rkcif*
22272+
F: Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml
2227222273

2227322274
ROCKCHIP CRYPTO DRIVERS
2227422275
M: Corentin Labbe <clabbe@baylibre.com>

0 commit comments

Comments
 (0)