summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/i2c/nokia,smia.txt
blob: c3c3479233c4ab854077b3176afb42a25411bd9b (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SMIA/SMIA++ sensor

SMIA (Standard Mobile Imaging Architecture) is an image sensor standard
defined jointly by Nokia and ST. SMIA++, defined by Nokia, is an extension
of that. These definitions are valid for both types of sensors.

More detailed documentation can be found in
Documentation/devicetree/bindings/media/video-interfaces.txt .

The device node should contain a "port" node which may contain one or more
endpoint nodes, in accordance with video interface bindings defined in
Documentation/devicetree/bindings/media/video-interfaces.txt .

Mandatory properties
--------------------

- compatible: "nokia,smia"
- reg: I2C address (0x10, or an alternative address)
- vana-supply: Analogue voltage supply (VANA), typically 2,8 volts (sensor
  dependent).
- clocks: External clock to the sensor
- clock-frequency: Frequency of the external clock to the sensor
- link-frequencies: List of allowed data link frequencies. An array of
  64-bit elements.


Optional properties
-------------------

- nokia,nvm-size: The size of the NVM, in bytes. If the size is not given,
  the NVM contents will not be read.
- reset-gpios: XSHUTDOWN GPIO
- flash-leds: See ../video-interfaces.txt
- lens-focus: See ../video-interfaces.txt
- rotation: Integer property; valid values are 0 (sensor mounted upright)
	    and 180 (sensor mounted upside down). See
	    ../video-interfaces.txt .


Endpoint node mandatory properties
----------------------------------

- data-lanes: <1..n>


Example
-------

&i2c2 {
	clock-frequency = <400000>;

	camera-sensor@10 {
		compatible = "nokia,smia";
		reg = <0x10>;
		reset-gpios = <&gpio3 20 0>;
		vana-supply = <&vaux3>;
		clocks = <&omap3_isp 0>;
		clock-frequency = <9600000>;
		nokia,nvm-size = <512>; /* 8 * 64 */
		link-frequencies = /bits/ 64 <199200000 210000000 499200000>;
		port {
			smiapp_ep: endpoint {
				data-lanes = <1 2>;
				remote-endpoint = <&csi2a_ep>;
			};
		};
	};
};