Skip to content

Commit 6a72c8d

Browse files
Laurent Pinchartmchehab
authored andcommitted
media: dt-bindings: media: renesas,vsp1: Convert binding to YAML
Convert the Renesas R-Car VSP1 text binding to YAML. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 6249bda commit 6a72c8d

File tree

3 files changed

+84
-31
lines changed

3 files changed

+84
-31
lines changed

Documentation/devicetree/bindings/media/renesas,vsp1.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/renesas,vsp1.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas VSP Video Processing Engine
8+
9+
maintainers:
10+
- Laurent Pinchart <[email protected]>
11+
12+
description:
13+
The VSP is a video processing engine that supports up-/down-scaling, alpha
14+
blending, color space conversion and various other image processing features.
15+
It can be found in the Renesas R-Car Gen2, R-Car Gen3, RZ/G1, and RZ/G2 SoCs.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- renesas,vsp1 # R-Car Gen2 and RZ/G1
21+
- renesas,vsp2 # R-Car Gen3 and RZ/G2
22+
23+
reg:
24+
maxItems: 1
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
clocks:
30+
maxItems: 1
31+
32+
renesas,fcp:
33+
$ref: /schemas/types.yaml#/definitions/phandle
34+
description:
35+
A phandle referencing the FCP that handles memory accesses for the VSP.
36+
37+
required:
38+
- compatible
39+
- reg
40+
- interrupts
41+
- clocks
42+
43+
additionalProperties: false
44+
45+
if:
46+
properties:
47+
compatible:
48+
items:
49+
- const: renesas,vsp1
50+
then:
51+
properties:
52+
renesas,fcp: false
53+
else:
54+
required:
55+
- renesas,fcp
56+
57+
examples:
58+
# R8A7790 (R-Car H2) VSP1-S
59+
- |
60+
#include <dt-bindings/clock/renesas-cpg-mssr.h>
61+
#include <dt-bindings/interrupt-controller/arm-gic.h>
62+
63+
vsp@fe928000 {
64+
compatible = "renesas,vsp1";
65+
reg = <0xfe928000 0x8000>;
66+
interrupts = <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>;
67+
clocks = <&cpg CPG_MOD 131>;
68+
};
69+
70+
# R8A77951 (R-Car H3) VSP2-BC
71+
- |
72+
#include <dt-bindings/clock/renesas-cpg-mssr.h>
73+
#include <dt-bindings/interrupt-controller/arm-gic.h>
74+
75+
vsp@fe920000 {
76+
compatible = "renesas,vsp2";
77+
reg = <0xfe920000 0x8000>;
78+
interrupts = <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>;
79+
clocks = <&cpg CPG_MOD 624>;
80+
81+
renesas,fcp = <&fcpvb1>;
82+
};
83+
...

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10756,7 +10756,7 @@ L: [email protected]
1075610756
1075710757
S: Supported
1075810758
T: git git://linuxtv.org/media_tree.git
10759-
F: Documentation/devicetree/bindings/media/renesas,vsp1.txt
10759+
F: Documentation/devicetree/bindings/media/renesas,vsp1.yaml
1076010760
F: drivers/media/platform/vsp1/
1076110761

1076210762
MEDIA DRIVERS FOR ST STV0910 DEMODULATOR ICs

0 commit comments

Comments
 (0)