Skip to content

Commit 49ceb03

Browse files
adalessandrorobherring
authored andcommitted
dt-bindings: media: Convert MediaTek mt8173-vpu bindings to DT schema
Convert the existing text-based DT bindings for Mediatek MT8173 Video Processor Unit to a DT schema. Signed-off-by: Ariel D'Alessandro <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> [robh: update MAINTAINERS and mediatek-mdp.txt references] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 37020f8 commit 49ceb03

4 files changed

Lines changed: 77 additions & 33 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/mediatek,mt8173-vpu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Mediatek MT8173 Video Processor Unit
8+
9+
maintainers:
10+
- Ariel D'Alessandro <[email protected]>
11+
12+
description:
13+
Video Processor Unit is a HW video controller. It controls HW Codec including
14+
H.264/VP8/VP9 Decode, H.264/VP8 Encode and Image Processor (scale/rotate/color
15+
convert).
16+
17+
properties:
18+
compatible:
19+
const: mediatek,mt8173-vpu
20+
21+
reg:
22+
maxItems: 2
23+
24+
reg-names:
25+
items:
26+
- const: tcm
27+
- const: cfg_reg
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
clocks:
33+
maxItems: 1
34+
35+
clock-names:
36+
items:
37+
- const: main
38+
39+
memory-region:
40+
maxItems: 1
41+
42+
required:
43+
- compatible
44+
- reg
45+
- reg-names
46+
- interrupts
47+
- clocks
48+
- clock-names
49+
- memory-region
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/clock/mt8173-clk.h>
56+
#include <dt-bindings/interrupt-controller/arm-gic.h>
57+
58+
soc {
59+
#address-cells = <2>;
60+
#size-cells = <2>;
61+
62+
vpu: vpu@10020000 {
63+
compatible = "mediatek,mt8173-vpu";
64+
reg = <0 0x10020000 0 0x30000>,
65+
<0 0x10050000 0 0x100>;
66+
reg-names = "tcm", "cfg_reg";
67+
interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
68+
clocks = <&topckgen CLK_TOP_SCP_SEL>;
69+
clock-names = "main";
70+
memory-region = <&vpu_dma_reserved>;
71+
};
72+
};
73+
74+
...

Documentation/devicetree/bindings/media/mediatek-mdp.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Media Data Path is used for scaling and color space conversion.
55
Required properties (controller node):
66
- compatible: "mediatek,mt8173-mdp"
77
- mediatek,vpu: the node of video processor unit, see
8-
Documentation/devicetree/bindings/media/mediatek-vpu.txt for details.
8+
Documentation/devicetree/bindings/media/mediatek,mt8173-vpu.yaml for
9+
details.
910

1011
Required properties (all function blocks, child node):
1112
- compatible: Should be one of

Documentation/devicetree/bindings/media/mediatek-vpu.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15540,7 +15540,7 @@ M: Andrew-CT Chen <[email protected]>
1554015540
M: Yunfei Dong <[email protected]>
1554115541
S: Supported
1554215542
F: Documentation/devicetree/bindings/media/mediatek,vcodec*.yaml
15543-
F: Documentation/devicetree/bindings/media/mediatek-vpu.txt
15543+
F: Documentation/devicetree/bindings/media/mediatek,mt8173-vpu.yaml
1554415544
F: drivers/media/platform/mediatek/vcodec/
1554515545
F: drivers/media/platform/mediatek/vpu/
1554615546

0 commit comments

Comments
 (0)