rk312x : cif : cif driver v0.0x1.0
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk312x-cif-sensor.dtsi
1 #include "rk312x.dtsi" 
2 #include "rk312x-pinctrl.dtsi"
3 #include "../../mach-rockchip/rk_camera_sensor_info.h"
4 /{
5         cif_sensor: cif_sensor{
6                         compatible = "rockchip,sensor";
7                         CONFIG_SENSOR_POWER_IOCTL_USR           = <1>;
8                         CONFIG_SENSOR_RESET_IOCTL_USR           = <0>;
9                         CONFIG_SENSOR_POWERDOWN_IOCTL_USR       = <0>;
10                         CONFIG_SENSOR_FLASH_IOCTL_USR           = <0>;
11                         CONFIG_SENSOR_AF_IOCTL_USR                      = <0>;
12
13                 ov2659{
14                         is_front = <1>; 
15                         rockchip,powerdown = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>;
16                         #pwdn_active = <>;
17                         #rockchip,power = <>;
18                         #pwr_active = <>;
19                         #rockchip,reset = <>;
20                         #rst_active = <>;
21                         mir = <0>;
22                         flash_attach = <0>;
23                         resolution = <ov2659_FULL_RESOLUTION>;
24                         pwdn_info = <ov2659_PWRDN_ACTIVE>;
25                         powerup_sequence = <ov2659_PWRSEQ>;             
26                         orientation = <0>;
27                         i2c_add = <ov2659_I2C_ADDR>;
28                         i2c_rata = <100000>;
29                         i2c_chl = <0>;
30                         cif_chl = <0>;
31                         mclk_rate = <24>;
32                 };
33                 gc0329{
34                         is_front = <1>; 
35                         rockchip,powerdown = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>;
36                         #pwdn_active = <>;
37                         #rockchip,power = <>;
38                         #pwr_active = <>;
39                         #rockchip,reset = <>;
40                         #rst_active = <>;
41                         mir = <0>;
42                         flash_attach = <0>;
43                         resolution = <gc0329_FULL_RESOLUTION>;
44                         pwdn_info = <gc0329_PWRDN_ACTIVE>;
45                         powerup_sequence = <gc0329_PWRSEQ>;     
46                         orientation = <0>;
47                         i2c_add = <gc0329_I2C_ADDR>;
48                         i2c_rata = <100000>;
49                         i2c_chl = <0>;
50                         cif_chl = <0>;
51                         mclk_rate = <24>;
52                 };
53         };
54 };
55