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