xref: /linux/Documentation/devicetree/bindings/media/nxp,imx7-csi.yaml (revision 338de94d220d5c413b029460a59e7a5ebeeb903f)
1*338de94dSRui Miguel Silva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*338de94dSRui Miguel Silva%YAML 1.2
3*338de94dSRui Miguel Silva---
4*338de94dSRui Miguel Silva$id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#
5*338de94dSRui Miguel Silva$schema: http://devicetree.org/meta-schemas/core.yaml#
6*338de94dSRui Miguel Silva
7*338de94dSRui Miguel Silvatitle: i.MX7 CMOS Sensor Interface
8*338de94dSRui Miguel Silva
9*338de94dSRui Miguel Silvamaintainers:
10*338de94dSRui Miguel Silva  - Rui Miguel Silva <rmfrfs@gmail.com>
11*338de94dSRui Miguel Silva
12*338de94dSRui Miguel Silvadescription: |
13*338de94dSRui Miguel Silva  This is device node for the CMOS Sensor Interface (CSI) which enables the
14*338de94dSRui Miguel Silva  chip to connect directly to external CMOS image sensors.
15*338de94dSRui Miguel Silva
16*338de94dSRui Miguel Silvaproperties:
17*338de94dSRui Miguel Silva  compatible:
18*338de94dSRui Miguel Silva    enum:
19*338de94dSRui Miguel Silva      - fsl,imx7-csi
20*338de94dSRui Miguel Silva      - fsl,imx6ul-csi
21*338de94dSRui Miguel Silva
22*338de94dSRui Miguel Silva  reg:
23*338de94dSRui Miguel Silva    maxItems: 1
24*338de94dSRui Miguel Silva
25*338de94dSRui Miguel Silva  interrupts:
26*338de94dSRui Miguel Silva    maxItems: 1
27*338de94dSRui Miguel Silva
28*338de94dSRui Miguel Silva  clocks:
29*338de94dSRui Miguel Silva    maxItems: 1
30*338de94dSRui Miguel Silva
31*338de94dSRui Miguel Silva  clock-names:
32*338de94dSRui Miguel Silva    items:
33*338de94dSRui Miguel Silva      - const: mclk
34*338de94dSRui Miguel Silva
35*338de94dSRui Miguel Silva  port:
36*338de94dSRui Miguel Silva    type: object
37*338de94dSRui Miguel Silva    description:
38*338de94dSRui Miguel Silva      A node containing input port nodes with endpoint definitions as documented
39*338de94dSRui Miguel Silva      in Documentation/devicetree/bindings/media/video-interfaces.txt
40*338de94dSRui Miguel Silva
41*338de94dSRui Miguel Silvarequired:
42*338de94dSRui Miguel Silva  - compatible
43*338de94dSRui Miguel Silva  - reg
44*338de94dSRui Miguel Silva  - interrupts
45*338de94dSRui Miguel Silva  - clocks
46*338de94dSRui Miguel Silva  - clock-names
47*338de94dSRui Miguel Silva  - port
48*338de94dSRui Miguel Silva
49*338de94dSRui Miguel SilvaadditionalProperties: false
50*338de94dSRui Miguel Silva
51*338de94dSRui Miguel Silvaexamples:
52*338de94dSRui Miguel Silva  - |
53*338de94dSRui Miguel Silva    #include <dt-bindings/clock/imx7d-clock.h>
54*338de94dSRui Miguel Silva    #include <dt-bindings/interrupt-controller/arm-gic.h>
55*338de94dSRui Miguel Silva    #include <dt-bindings/interrupt-controller/irq.h>
56*338de94dSRui Miguel Silva
57*338de94dSRui Miguel Silva    csi: csi@30710000 {
58*338de94dSRui Miguel Silva            compatible = "fsl,imx7-csi";
59*338de94dSRui Miguel Silva            reg = <0x30710000 0x10000>;
60*338de94dSRui Miguel Silva            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
61*338de94dSRui Miguel Silva            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
62*338de94dSRui Miguel Silva            clock-names = "mclk";
63*338de94dSRui Miguel Silva
64*338de94dSRui Miguel Silva            port {
65*338de94dSRui Miguel Silva                    csi_from_csi_mux: endpoint {
66*338de94dSRui Miguel Silva                            remote-endpoint = <&csi_mux_to_csi>;
67*338de94dSRui Miguel Silva                    };
68*338de94dSRui Miguel Silva            };
69*338de94dSRui Miguel Silva    };
70*338de94dSRui Miguel Silva
71*338de94dSRui Miguel Silva...
72