-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path0040-dt-bindings-media-Add-binding-for-Phytium-JPEG-Encod.patch
92 lines (88 loc) · 2.83 KB
/
0040-dt-bindings-media-Add-binding-for-Phytium-JPEG-Encod.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From 26cac7f057540c8e12170e5fb0fcaea0e79d1c22 Mon Sep 17 00:00:00 2001
From: Wang Min <[email protected]>
Date: Mon, 17 Jun 2024 19:33:03 +0800
Subject: [PATCH 040/150] dt-bindings: media: Add binding for Phytium JPEG
Encoder Engine
Add device tree binding documentation for the JPEG Encoder Engine
of Phytium SoCs.
Signed-off-by: Wang Min <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Change-Id: I03d04669878c05a5d6af4cbd4a5789a5af2facbb
Signed-off-by: Andrew Powers-Holmes <[email protected]>
---
.../bindings/media/phytium,jpeg.yaml | 52 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 53 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/phytium,jpeg.yaml
diff --git a/Documentation/devicetree/bindings/media/phytium,jpeg.yaml b/Documentation/devicetree/bindings/media/phytium,jpeg.yaml
new file mode 100644
index 000000000000..71fd143130c9
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/phytium,jpeg.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/phytium,jpeg.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Phytium JPEG Engine
+
+maintainers:
+ - Chen Baozi <[email protected]>
+
+description: |-
+ The JPEG Engine embedded in the Phytium SOCs can capture
+ and compress video data from digital or analog sources.
+
+properties:
+ compatible:
+ const: phytium,jpeg
+
+ reg:
+ maxItems: 1
+ description: |
+ Contains the offset and length of the JPEG Engine memory region.
+
+ interrupts:
+ maxItems: 1
+ description: |
+ The interrupt associated with the VE on this platform.
+
+ phytium,ocm-buf-addr:
+ $ref: /schemas/types.yaml#/definitions/uint64
+ description: |
+ The physical address used to storage the inputing video data.
+
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - phytium,ocm-buf-addr
+
+additionalProperties: false
+
+examples:
+ - |
+ jpeg: jpeg@32b32000 {
+ compatible = "phytium,jpeg";
+ reg = <0x0 0x32b32000 0 0x1000>;
+ interrupts = <0 41 4>;
+ phytium,ocm-buf-addr = <0x30c40000 0x30c60000>;
+ status = "okay";
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index b0008b1dc539..07de0883bbc3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2533,6 +2533,7 @@ W: https://www.phytium.com.cn
F: Documentation/devicetree/bindings/gpio/phytium,gpio.yaml
F: Documentation/devicetree/bindings/hwlock/phytium,hwspinlock.yaml
F: Documentation/devicetree/bindings/i2c/phytium,i2c.yaml
+F: Documentation/devicetree/bindings/media/phytium,jpeg.yaml
F: Documentation/devicetree/bindings/iio/adc/phytium,adc.yaml
F: Documentation/devicetree/bindings/mmc/phytium,mci.yaml
F: Documentation/devicetree/bindings/mmc/phytium,sdci.yaml
--
2.47.0