xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/sc2239.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1* Smartsens SC2239 MIPI sensor
2
3Required Properties:
4- compatible: should be "smartsens,sc2239"
5- clocks: reference to the 24M xvclk input clock.
6- clock-names: should be "xvclk".
7- dovdd-supply: Digital I/O voltage supply, 1.8 volts
8- avdd-supply: Analog voltage supply, 2.8 volts
9- dvdd-supply: Digital core voltage supply, 1.5 volts
10- pwdn-gpios High active reset gpio
11- reset-gpios: High active reset gpio
12
13Attention:
14SC2239 device address 0x30(7bit) or 0x32(7bit) is decided by SID pin;
15
16The device node must contain one 'port' child node for its digital output
17video port, in accordance with the video interface bindings defined in
18Documentation/devicetree/bindings/media/video-interfaces.txt.
19
20Example:
21//rv1126 evb13 board
22&i2c1 {
23	status = "okay";
24	sc2239: sc2239@30 {	// or sc2239: sc2239@32
25		compatible = "smartsens,sc2239";
26		reg = <0x30>;
27		clocks = <&cru CLK_MIPICSI_OUT>;
28		clock-names = "xvclk";
29		power-domains = <&power RV1126_PD_VI>;
30		pinctrl-names = "rockchip,camera_default";
31		pinctrl-0 = <&mipicsi_clk0>;
32		avdd-supply = <&vcc_avdd>;
33		dovdd-supply = <&vcc_dovdd>;
34		dvdd-supply = <&vcc_dvdd>;
35		pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
36		reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
37		rockchip,camera-module-index = <1>;
38		rockchip,camera-module-facing = "front";
39		rockchip,camera-module-name = "CMK-OT1607-FV1";
40		rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";
41		/* NO_HDR:0 HDR_X2:5 HDR_X3:6 */
42		rockchip,camera-hdr-mode = <5>;
43		port {
44			sc2239_out: endpoint {
45				remote-endpoint = <&mipi_in_ucam>;
46				data-lanes = <1>;
47			};
48		};
49	};
50};
51