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
7title: i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface)
8
9maintainers:
10  - Rui Miguel Silva <rmfrfs@gmail.com>
11
12description: |
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
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - fsl,imx7-csi
21          - fsl,imx6ul-csi
22      - items:
23          - const: fsl,imx8mm-csi
24          - const: fsl,imx7-csi
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35  clock-names:
36    items:
37      - const: mclk
38
39  port:
40    $ref: /schemas/graph.yaml#/properties/port
41
42required:
43  - compatible
44  - reg
45  - interrupts
46  - clocks
47  - clock-names
48  - port
49
50additionalProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/clock/imx7d-clock.h>
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    #include <dt-bindings/interrupt-controller/irq.h>
57
58    csi: csi@30710000 {
59            compatible = "fsl,imx7-csi";
60            reg = <0x30710000 0x10000>;
61            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
62            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
63            clock-names = "mclk";
64
65            port {
66                    csi_from_csi_mux: endpoint {
67                            remote-endpoint = <&csi_mux_to_csi>;
68                    };
69            };
70    };
71
72...
73