xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/nokia,smia.txt (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1SMIA/SMIA++ sensor
2
3SMIA (Standard Mobile Imaging Architecture) is an image sensor standard
4defined jointly by Nokia and ST. SMIA++, defined by Nokia, is an extension
5of that. These definitions are valid for both types of sensors.
6
7More detailed documentation can be found in
8Documentation/devicetree/bindings/media/video-interfaces.txt .
9
10The device node should contain a "port" node which may contain one or more
11endpoint nodes, in accordance with video interface bindings defined in
12Documentation/devicetree/bindings/media/video-interfaces.txt .
13
14Mandatory properties
15--------------------
16
17- compatible: "nokia,smia"
18- reg: I2C address (0x10, or an alternative address)
19- vana-supply: Analogue voltage supply (VANA), typically 2,8 volts (sensor
20  dependent).
21- clocks: External clock to the sensor
22- clock-frequency: Frequency of the external clock to the sensor
23- link-frequencies: List of allowed data link frequencies. An array of
24  64-bit elements.
25
26
27Optional properties
28-------------------
29
30- reset-gpios: XSHUTDOWN GPIO
31- flash-leds: See ../video-interfaces.txt
32- lens-focus: See ../video-interfaces.txt
33- rotation: Integer property; valid values are 0 (sensor mounted upright)
34	    and 180 (sensor mounted upside down). See
35	    ../video-interfaces.txt .
36
37
38Endpoint node mandatory properties
39----------------------------------
40
41- data-lanes: <1..n>
42
43
44Example
45-------
46
47&i2c2 {
48	clock-frequency = <400000>;
49
50	camera-sensor@10 {
51		compatible = "nokia,smia";
52		reg = <0x10>;
53		reset-gpios = <&gpio3 20 0>;
54		vana-supply = <&vaux3>;
55		clocks = <&omap3_isp 0>;
56		clock-frequency = <9600000>;
57		nokia,nvm-size = <512>; /* 8 * 64 */
58		link-frequencies = /bits/ 64 <199200000 210000000 499200000>;
59		port {
60			smiapp_ep: endpoint {
61				data-lanes = <1 2>;
62				remote-endpoint = <&csi2a_ep>;
63			};
64		};
65	};
66};
67