Skip to content

Commit 5fae33f

Browse files
jammyaspeedhverkuil
authored andcommitted
media: dt-bindings: aspeed,video-engine: Convert to json schema
Convert aspeed-video.txt to yaml format. Update aspeed-video.txt to aspeed,video-engine.yaml in MAINTAINER file. Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
1 parent 3a544a3 commit 5fae33f

File tree

3 files changed

+71
-34
lines changed

3 files changed

+71
-34
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/aspeed,video-engine.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ASPEED Video Engine
8+
9+
maintainers:
10+
- Eddie James <eajames@linux.ibm.com>
11+
12+
description:
13+
The Video Engine (VE) embedded in the ASPEED SOCs can be configured to
14+
capture and compress video data from digital or analog sources.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- aspeed,ast2400-video-engine
20+
- aspeed,ast2500-video-engine
21+
- aspeed,ast2600-video-engine
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 2
28+
29+
clock-names:
30+
items:
31+
- const: vclk
32+
- const: eclk
33+
34+
resets:
35+
maxItems: 1
36+
37+
interrupts:
38+
maxItems: 1
39+
40+
memory-region:
41+
maxItems: 1
42+
description: |
43+
Phandle to the reserved memory nodes to be associated with the
44+
VE. VE will acquires memory space for 3 purposes:
45+
1. JPEG header
46+
2. Compressed result
47+
3. Temporary transformed image data
48+
49+
required:
50+
- compatible
51+
- reg
52+
- clocks
53+
- clock-names
54+
- interrupts
55+
56+
additionalProperties: false
57+
58+
examples:
59+
- |
60+
#include <dt-bindings/interrupt-controller/arm-gic.h>
61+
#include <dt-bindings/clock/ast2600-clock.h>
62+
63+
video@1e700000 {
64+
compatible = "aspeed,ast2600-video-engine";
65+
reg = <0x1e700000 0x1000>;
66+
clocks = <&syscon ASPEED_CLK_GATE_VCLK>,
67+
<&syscon ASPEED_CLK_GATE_ECLK>;
68+
clock-names = "vclk", "eclk";
69+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
70+
};

Documentation/devicetree/bindings/media/aspeed-video.txt

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

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,7 @@ M: Eddie James <eajames@linux.ibm.com>
35493549
L: linux-media@vger.kernel.org
35503550
L: openbmc@lists.ozlabs.org (moderated for non-subscribers)
35513551
S: Maintained
3552-
F: Documentation/devicetree/bindings/media/aspeed-video.txt
3552+
F: Documentation/devicetree/bindings/media/aspeed,video-engine.yaml
35533553
F: drivers/media/platform/aspeed/
35543554

35553555
ASUS EC HARDWARE MONITOR DRIVER

0 commit comments

Comments
 (0)