xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/imx7-csi.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFreescale i.MX7 CMOS Sensor Interface
2*4882a593Smuzhiyun=====================================
3*4882a593Smuzhiyun
4*4882a593Smuzhiyuncsi node
5*4882a593Smuzhiyun--------
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThis is device node for the CMOS Sensor Interface (CSI) which enables the chip
8*4882a593Smuzhiyunto connect directly to external CMOS image sensors.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- compatible    : "fsl,imx7-csi" or "fsl,imx6ul-csi";
13*4882a593Smuzhiyun- reg           : base address and length of the register set for the device;
14*4882a593Smuzhiyun- interrupts    : should contain CSI interrupt;
15*4882a593Smuzhiyun- clocks        : list of clock specifiers, see
16*4882a593Smuzhiyun        Documentation/devicetree/bindings/clock/clock-bindings.txt for details;
17*4882a593Smuzhiyun- clock-names   : must contain "mclk";
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunThe device node shall contain one 'port' child node with one child 'endpoint'
20*4882a593Smuzhiyunnode, according to the bindings defined in:
21*4882a593SmuzhiyunDocumentation/devicetree/bindings/media/video-interfaces.txt.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunIn the following example a remote endpoint is a video multiplexer.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunexample:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun                csi: csi@30710000 {
28*4882a593Smuzhiyun                        #address-cells = <1>;
29*4882a593Smuzhiyun                        #size-cells = <0>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun                        compatible = "fsl,imx7-csi";
32*4882a593Smuzhiyun                        reg = <0x30710000 0x10000>;
33*4882a593Smuzhiyun                        interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
34*4882a593Smuzhiyun                        clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
35*4882a593Smuzhiyun                        clock-names = "mclk";
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun                        port {
38*4882a593Smuzhiyun                                csi_from_csi_mux: endpoint {
39*4882a593Smuzhiyun                                        remote-endpoint = <&csi_mux_to_csi>;
40*4882a593Smuzhiyun                                };
41*4882a593Smuzhiyun                        };
42*4882a593Smuzhiyun                };
43