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