xref: /freebsd/sys/contrib/device-tree/Bindings/media/nxp,imx7-csi.yaml (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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,imx8mq-csi
21          - fsl,imx7-csi
22          - fsl,imx6ul-csi
23      - items:
24          - const: fsl,imx8mm-csi
25          - const: fsl,imx7-csi
26
27  reg:
28    maxItems: 1
29
30  interrupts:
31    maxItems: 1
32
33  clocks:
34    maxItems: 1
35
36  clock-names:
37    items:
38      - const: mclk
39
40  port:
41    $ref: /schemas/graph.yaml#/properties/port
42
43required:
44  - compatible
45  - reg
46  - interrupts
47  - clocks
48  - clock-names
49  - port
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/clock/imx7d-clock.h>
56    #include <dt-bindings/interrupt-controller/arm-gic.h>
57    #include <dt-bindings/interrupt-controller/irq.h>
58
59    csi: csi@30710000 {
60            compatible = "fsl,imx7-csi";
61            reg = <0x30710000 0x10000>;
62            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
63            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
64            clock-names = "mclk";
65
66            port {
67                    csi_from_csi_mux: endpoint {
68                            remote-endpoint = <&csi_mux_to_csi>;
69                    };
70            };
71    };
72
73...
74