xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/samsung-s5c73m3.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSamsung S5C73M3 8Mp camera ISP
2*4882a593Smuzhiyun------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThe S5C73M3 camera ISP supports MIPI CSI-2 and parallel (ITU-R BT.656) video
5*4882a593Smuzhiyundata busses. The I2C bus is the main control bus and additionally the SPI bus
6*4882a593Smuzhiyunis used, mostly for transferring the firmware to and from the device. Two
7*4882a593Smuzhiyunslave device nodes corresponding to these control bus interfaces are required
8*4882a593Smuzhiyunand should be placed under respective bus controller nodes.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunI2C slave device node
11*4882a593Smuzhiyun---------------------
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRequired properties:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun- compatible	    : "samsung,s5c73m3";
16*4882a593Smuzhiyun- reg		    : I2C slave address of the sensor;
17*4882a593Smuzhiyun- vdd-int-supply    : digital power supply (1.2V);
18*4882a593Smuzhiyun- vdda-supply	    : analog power supply (1.2V);
19*4882a593Smuzhiyun- vdd-reg-supply    : regulator input power supply (2.8V);
20*4882a593Smuzhiyun- vddio-host-supply : host I/O power supply (1.8V to 2.8V);
21*4882a593Smuzhiyun- vddio-cis-supply  : CIS I/O power supply (1.2V to 1.8V);
22*4882a593Smuzhiyun- vdd-af-supply     : lens power supply (2.8V);
23*4882a593Smuzhiyun- xshutdown-gpios   : specifier of GPIO connected to the XSHUTDOWN pin;
24*4882a593Smuzhiyun- standby-gpios     : specifier of GPIO connected to the STANDBY pin;
25*4882a593Smuzhiyun- clocks	    : should contain list of phandle and clock specifier pairs
26*4882a593Smuzhiyun		      according to common clock bindings for the clocks described
27*4882a593Smuzhiyun		      in the clock-names property;
28*4882a593Smuzhiyun- clock-names	    : should contain "cis_extclk" entry for the CIS_EXTCLK clock;
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunOptional properties:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun- clock-frequency   : the frequency at which the "cis_extclk" clock should be
33*4882a593Smuzhiyun		      configured to operate, in Hz; if this property is not
34*4882a593Smuzhiyun		      specified default 24 MHz value will be used.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunThe common video interfaces bindings (see video-interfaces.txt) should be used
37*4882a593Smuzhiyunto specify link from the S5C73M3 to an external image data receiver. The S5C73M3
38*4882a593Smuzhiyundevice node should contain one 'port' child node with an 'endpoint' subnode for
39*4882a593Smuzhiyunthis purpose. The data link from a raw image sensor to the S5C73M3 can be
40*4882a593Smuzhiyunsimilarly specified, but it is optional since the S5C73M3 ISP and a raw image
41*4882a593Smuzhiyunsensor are usually inseparable and form a hybrid module.
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunFollowing properties are valid for the endpoint node(s):
44*4882a593Smuzhiyun
45*4882a593Smuzhiyunendpoint subnode
46*4882a593Smuzhiyun----------------
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun- data-lanes : (optional) specifies MIPI CSI-2 data lanes as covered in
49*4882a593Smuzhiyun  video-interfaces.txt. This sensor doesn't support data lane remapping
50*4882a593Smuzhiyun  and physical lane indexes in subsequent elements of the array should
51*4882a593Smuzhiyun  be only consecutive ascending values.
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunSPI device node
54*4882a593Smuzhiyun---------------
55*4882a593Smuzhiyun
56*4882a593SmuzhiyunRequired properties:
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun- compatible	    : "samsung,s5c73m3";
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunFor more details see description of the SPI busses bindings
61*4882a593Smuzhiyun(../spi/spi-bus.txt) and bindings of a specific bus controller.
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunExample:
64*4882a593Smuzhiyun
65*4882a593Smuzhiyuni2c@138a000000 {
66*4882a593Smuzhiyun	...
67*4882a593Smuzhiyun	s5c73m3@3c {
68*4882a593Smuzhiyun		compatible = "samsung,s5c73m3";
69*4882a593Smuzhiyun		reg = <0x3c>;
70*4882a593Smuzhiyun		vdd-int-supply = <&buck9_reg>;
71*4882a593Smuzhiyun		vdda-supply = <&ldo17_reg>;
72*4882a593Smuzhiyun		vdd-reg-supply = <&cam_io_reg>;
73*4882a593Smuzhiyun		vddio-host-supply = <&ldo18_reg>;
74*4882a593Smuzhiyun		vddio-cis-supply = <&ldo9_reg>;
75*4882a593Smuzhiyun		vdd-af-supply = <&cam_af_reg>;
76*4882a593Smuzhiyun		clock-frequency = <24000000>;
77*4882a593Smuzhiyun		clocks = <&clk 0>;
78*4882a593Smuzhiyun		clock-names = "cis_extclk";
79*4882a593Smuzhiyun		reset-gpios = <&gpf1 3 1>;
80*4882a593Smuzhiyun		standby-gpios = <&gpm0 1 1>;
81*4882a593Smuzhiyun		port {
82*4882a593Smuzhiyun			s5c73m3_ep: endpoint {
83*4882a593Smuzhiyun				remote-endpoint = <&csis0_ep>;
84*4882a593Smuzhiyun				data-lanes = <1 2 3 4>;
85*4882a593Smuzhiyun			};
86*4882a593Smuzhiyun		};
87*4882a593Smuzhiyun	};
88*4882a593Smuzhiyun};
89*4882a593Smuzhiyun
90*4882a593Smuzhiyunspi@1392000 {
91*4882a593Smuzhiyun	...
92*4882a593Smuzhiyun	s5c73m3_spi: s5c73m3@0 {
93*4882a593Smuzhiyun		compatible = "samsung,s5c73m3";
94*4882a593Smuzhiyun		reg = <0>;
95*4882a593Smuzhiyun		...
96*4882a593Smuzhiyun	};
97*4882a593Smuzhiyun};
98