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