Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-cif-sensor.dtsi
1 #include "../../mach-rockchip/rk_camera_sensor_info.h"
2 /{
3         rk3126_cif_sensor: rk3126_cif_sensor{
4                         compatible = "rockchip,sensor";
5                         status = "disabled";
6                         CONFIG_SENSOR_POWER_IOCTL_USR           = <1>;
7                         CONFIG_SENSOR_RESET_IOCTL_USR           = <0>;
8                         CONFIG_SENSOR_POWERDOWN_IOCTL_USR       = <0>;
9                         CONFIG_SENSOR_FLASH_IOCTL_USR           = <0>;
10                         CONFIG_SENSOR_AF_IOCTL_USR                      = <0>;
11         
12      gc2035{
13             is_front = <0>;
14             rockchip,power = <&gpio2 GPIO_B2 GPIO_ACTIVE_HIGH>;
15             rockchip,powerdown = <&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>;
16             pwdn_active = <gc2035_PWRDN_ACTIVE>;
17             pwr_active = <PWR_ACTIVE_HIGH>;
18             mir = <0>;
19             flash_attach = <0>;
20             resolution = <gc2035_FULL_RESOLUTION>;
21             powerup_sequence = <gc2035_PWRSEQ>;
22             orientation = <0>;
23             i2c_add = <gc2035_I2C_ADDR>;
24             i2c_rata = <100000>;
25             i2c_chl = <1>;
26             cif_chl = <0>;
27             mclk_rate = <24>;
28         };
29  
30         gc0308{
31                         is_front = <1>;
32                         rockchip,power = <&gpio2 GPIO_B2 GPIO_ACTIVE_HIGH>; 
33                         rockchip,powerdown = <&gpio1 GPIO_B2 GPIO_ACTIVE_HIGH>;
34                         pwdn_active = <gc0308_PWRDN_ACTIVE>;
35                         pwr_active = <PWR_ACTIVE_HIGH>;
36                         mir = <0>;
37                         flash_attach = <0>;
38                         resolution = <gc0308_FULL_RESOLUTION>;
39                         powerup_sequence = <gc0308_PWRSEQ>;
40                         orientation = <0>;              
41                         i2c_add = <gc0308_I2C_ADDR>;
42                         i2c_rata = <100000>;
43                         i2c_chl = <1>;
44                         cif_chl = <0>;
45                         mclk_rate = <24>;
46                 };
47
48                 
49                  gc0329{
50                         is_front = <0>;
51                         //rockchip,power = <&gpio2 GPIO_B2 GPIO_ACTIVE_HIGH>;
52                         //rockchip,power_pmu_name1 = "rk818_ldo4";
53                         //rockchip,power_pmu_voltage1 = <2800000>;
54                         //rockchip,power_pmu_name2 = "rk818_ldo8";
55                         //rockchip,power_pmu_voltage2 = <1800000>;
56                         rockchip,powerdown = <&gpio3 GPIO_B3 GPIO_ACTIVE_HIGH>;
57                         //rockchip,powerdown_pmu = "";
58                         //rockchip,powerdown_pmu_voltage = <3000000>;
59                         pwdn_active = <gc0329_PWRDN_ACTIVE>;
60                         pwr_active = <PWR_ACTIVE_HIGH>;
61                         mir = <0>;
62                         flash_attach = <1>;
63                         //rockchip,flash = <>;
64                         flash_active = <1>;
65                         resolution = <gc0329_FULL_RESOLUTION>;
66                         powerup_sequence = <gc0329_PWRSEQ>;
67                         orientation = <0>;              
68                         i2c_add = <gc0329_I2C_ADDR>;
69                         i2c_rata = <100000>;
70                         i2c_chl = <1>;
71                         cif_chl = <0>;
72                         mclk_rate = <24>;
73                 };
74
75         };
76 };
77