summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/media/i2c/sony,imx219.txt
blob: 57101e58e8b21be335dcab4ba88ceaea7f599be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
* Sony 8 Mega-Pixel CMOS Digital Image Sensor

The Sony IMX219 is a diagonal 4.60 mm (Type 1/4.0) CMOS active pixel
digital image sensor with an active array size of 3280 x 2464.  It is
programmable through an I2C interface. Image data is sent through MIPI
CSI-2, through 2 or 4 lanes at a maximum throughput of 755Mbps/lane
(with 4 lanes) or 912Mbps/lane (2 lanes.)


Required Properties:
- compatible: shall be "sony,imx219".
- reg: I2C bus address of the device, shall be <0x10>.
- clocks: single clock for the sensor INCK signal.
- xclr-gpios: a single active-low GPIO for the sensor XCLR signal.

Optional Properties:
- virtual-channel: CSI-2 virtual channel identifier, shall be between 0 and 3,
    defaults to 0.

The imx219 device node should contain one 'port' child node with an
'endpoint' subnode. For further reading on port node refer to
Documentation/devicetree/bindings/media/video-interfaces.txt.

Required endpoint properties:
- clock-noncontinuous: the bus always operates in non-continuous mode.
- data-lanes: shall be <1 2> for 2 lane, or <1 2 3 4> for 4 lane.

Optional endpoint properties:
- bus-type: shall be 4 - MIPI CSI-2 D-PHY.
- clock-lanes: shall be zero.
- lane-polarities: shall be zero (normal polarity) for each lane.

Example:

	camera@10 {
		compatible = "sony,imx219";
		reg = <0x10>;
		xclr-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
		clocks = <&imx219_clk>;
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;

			imx219_out: endpoint {
				clock-lanes = <0>;
				clock-noncontinuous;
				data-lanes = <1 2>;
				remote-endpoint = <&mipi_csi_from_mipi_sensor>;
			};
		};
	};