Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / Documentation / devicetree / bindings / media / rpivid_hevc.yaml
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/media/rpivid_hevc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Raspberry Pi HEVC Decoder
8
9 maintainers:
10   - Raspberry Pi <kernel-list@raspberrypi.com>
11
12 description: |-
13   The Camera Adaptation Layer (CAL) is a key component for image capture
14   applications. The capture module provides the system interface and the
15   processing capability to connect CSI2 image-sensor modules to the
16   DRA72x device.
17
18 properties:
19   compatible:
20     enum:
21       - raspberrypi,rpivid-vid-decoder
22
23   reg:
24     minItems: 2
25     items:
26       - description: The HEVC main register region
27       - description: The Interrupt controller register region
28
29   reg-names:
30     minItems: 2
31     items:
32       - const: hevc
33       - const: intc
34
35   interrupts:
36     maxItems: 1
37
38   clocks:
39     items:
40       - description: The HEVC block clock
41
42   clock-names:
43     items:
44       - const: hevc
45
46 required:
47   - compatible
48   - reg
49   - reg-names
50   - interrupts
51   - clocks
52
53 additionalProperties: false
54
55 examples:
56   - |
57     #include <dt-bindings/interrupt-controller/arm-gic.h>
58
59     video-codec@7eb10000 {
60         compatible = "raspberrypi,rpivid-vid-decoder";
61         reg = <0x0 0x7eb10000 0x1000>,  /* INTC */
62               <0x0 0x7eb00000 0x10000>; /* HEVC */
63         reg-names = "intc",
64                     "hevc";
65
66         interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
67
68         clocks = <&clk 0>;
69         clock-names = "hevc";
70     };
71
72 ...