Merge branch 'stable/for-linus-5.12' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / media / nxp,imx7-csi.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: i.MX7 CMOS Sensor Interface
8
9 maintainers:
10   - Rui Miguel Silva <rmfrfs@gmail.com>
11
12 description: |
13   This is device node for the CMOS Sensor Interface (CSI) which enables the
14   chip to connect directly to external CMOS image sensors.
15
16 properties:
17   compatible:
18     enum:
19       - fsl,imx7-csi
20       - fsl,imx6ul-csi
21
22   reg:
23     maxItems: 1
24
25   interrupts:
26     maxItems: 1
27
28   clocks:
29     maxItems: 1
30
31   clock-names:
32     items:
33       - const: mclk
34
35   port:
36     $ref: /schemas/graph.yaml#/properties/port
37
38 required:
39   - compatible
40   - reg
41   - interrupts
42   - clocks
43   - clock-names
44   - port
45
46 additionalProperties: false
47
48 examples:
49   - |
50     #include <dt-bindings/clock/imx7d-clock.h>
51     #include <dt-bindings/interrupt-controller/arm-gic.h>
52     #include <dt-bindings/interrupt-controller/irq.h>
53
54     csi: csi@30710000 {
55             compatible = "fsl,imx7-csi";
56             reg = <0x30710000 0x10000>;
57             interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
58             clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
59             clock-names = "mclk";
60
61             port {
62                     csi_from_csi_mux: endpoint {
63                             remote-endpoint = <&csi_mux_to_csi>;
64                     };
65             };
66     };
67
68 ...