summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/media/nxp,imx7-csi.yaml
blob: 4e81a47e60ac625b41a72596ae77830c5f5eabd2 (plain)
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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: i.MX7 CMOS Sensor Interface

maintainers:
  - Rui Miguel Silva <rmfrfs@gmail.com>

description: |
  This is device node for the CMOS Sensor Interface (CSI) which enables the
  chip to connect directly to external CMOS image sensors.

properties:
  compatible:
    enum:
      - fsl,imx7-csi
      - fsl,imx6ul-csi

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: mclk

  port:
    type: object
    description:
      A node containing input port nodes with endpoint definitions as documented
      in Documentation/devicetree/bindings/media/video-interfaces.txt

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - port

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx7d-clock.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    csi: csi@30710000 {
            compatible = "fsl,imx7-csi";
            reg = <0x30710000 0x10000>;
            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
            clock-names = "mclk";

            port {
                    csi_from_csi_mux: endpoint {
                            remote-endpoint = <&csi_mux_to_csi>;
                    };
            };
    };

...