203e112466f86d867e25328fb3d8121c41e2ac92
[openwrt/staging/linusw.git] /
1 From 15b4e8fa2d5101b989856c42cdae6ec764c99db0 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 17 Mar 2020 10:53:16 +0000
4 Subject: [PATCH] media: dt-bindings: media: Add binding for the
5 Raspberry PI HEVC decoder
6
7 Adds a binding for the HEVC decoder found on the BCM2711 / Raspberry Pi 4.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 .../bindings/media/rpivid_hevc.yaml | 72 +++++++++++++++++++
12 MAINTAINERS | 7 ++
13 2 files changed, 79 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/media/rpivid_hevc.yaml
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/media/rpivid_hevc.yaml
18 @@ -0,0 +1,72 @@
19 +# SPDX-License-Identifier: GPL-2.0-only
20 +%YAML 1.2
21 +---
22 +$id: http://devicetree.org/schemas/media/rpivid_hevc.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
24 +
25 +title: Raspberry Pi HEVC Decoder
26 +
27 +maintainers:
28 + - Raspberry Pi <kernel-list@raspberrypi.com>
29 +
30 +description: |-
31 + The Camera Adaptation Layer (CAL) is a key component for image capture
32 + applications. The capture module provides the system interface and the
33 + processing capability to connect CSI2 image-sensor modules to the
34 + DRA72x device.
35 +
36 +properties:
37 + compatible:
38 + enum:
39 + - raspberrypi,rpivid-vid-decoder
40 +
41 + reg:
42 + minItems: 2
43 + items:
44 + - description: The HEVC main register region
45 + - description: The Interrupt controller register region
46 +
47 + reg-names:
48 + minItems: 2
49 + items:
50 + - const: hevc
51 + - const: intc
52 +
53 + interrupts:
54 + maxItems: 1
55 +
56 + clocks:
57 + items:
58 + - description: The HEVC block clock
59 +
60 + clock-names:
61 + items:
62 + - const: hevc
63 +
64 +required:
65 + - compatible
66 + - reg
67 + - reg-names
68 + - interrupts
69 + - clocks
70 +
71 +additionalProperties: false
72 +
73 +examples:
74 + - |
75 + #include <dt-bindings/interrupt-controller/arm-gic.h>
76 +
77 + video-codec@7eb10000 {
78 + compatible = "raspberrypi,rpivid-vid-decoder";
79 + reg = <0x0 0x7eb10000 0x1000>, /* INTC */
80 + <0x0 0x7eb00000 0x10000>; /* HEVC */
81 + reg-names = "intc",
82 + "hevc";
83 +
84 + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
85 +
86 + clocks = <&clk 0>;
87 + clock-names = "hevc";
88 + };
89 +
90 +...
91 --- a/MAINTAINERS
92 +++ b/MAINTAINERS
93 @@ -3198,6 +3198,13 @@ N: bcm2711
94 N: bcm2835
95 F: drivers/staging/vc04_services
96
97 +BROADCOM BCM2711 HEVC DECODER
98 +M: Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
99 +L: linux-media@vger.kernel.org
100 +S: Maintained
101 +F: Documentation/devicetree/bindings/media/rpivid_hevc.jaml
102 +F: drivers/staging/media/rpivid
103 +
104 BROADCOM BCM2835 CAMERA DRIVER
105 M: Dave Stevenson <dave.stevenson@raspberrypi.org>
106 L: linux-media@vger.kernel.org