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