[COMMON] fimc-is2: increase delay in 2p7sq module power on sequence
authorWooyeon Kim <wooy88.kim@samsung.com>
Fri, 14 Sep 2018 01:17:31 +0000 (10:17 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:04 +0000 (20:23 +0300)
 - 2P7SQ need more delay between MCLK ~ first i2c timing
   (42000 MCLK cycles, common sensor need 23000 MCLK cycles)
   so it may needs to get more margin

   PR JIRA ID: CPR-255

Change-Id: I45ddef9a71a0b3287181b4c735ffa04a5ba3472d
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/modules/fimc-is-device-module-2p7sq.c

index 06b85cdf35bfa5adae5502811eb48b9d245b8df6..63af26fee2c3c9a80c5e3c380f4d710198973708 100644 (file)
@@ -154,7 +154,7 @@ static int sensor_module_2p7sq_power_setpin(struct device *dev,
        SET_PIN(pdata, SENSOR_SCENARIO_NORMAL, GPIO_SCENARIO_ON, gpio_none, "VDDD_1.0V_CAM", PIN_REGULATOR, 1, 0);
 
        SET_PIN(pdata, SENSOR_SCENARIO_NORMAL, GPIO_SCENARIO_ON, gpio_none, "pin", PIN_FUNCTION, 2, 0);
-       SET_PIN(pdata, SENSOR_SCENARIO_NORMAL, GPIO_SCENARIO_ON, gpio_reset, "sen_rst high", PIN_OUTPUT, 1, 2000);
+       SET_PIN(pdata, SENSOR_SCENARIO_NORMAL, GPIO_SCENARIO_ON, gpio_reset, "sen_rst high", PIN_OUTPUT, 1, 3000);
 
        /* BACK CAEMRA - POWER OFF */
        SET_PIN(pdata, SENSOR_SCENARIO_NORMAL, GPIO_SCENARIO_OFF, gpio_reset, "sen_rst", PIN_RESET, 0, 10);
@@ -178,7 +178,7 @@ static int sensor_module_2p7sq_power_setpin(struct device *dev,
        SET_PIN(pdata, SENSOR_SCENARIO_VISION, GPIO_SCENARIO_ON, gpio_none, "VDDD_1.0V_CAM", PIN_REGULATOR, 1, 0);
 
        SET_PIN(pdata, SENSOR_SCENARIO_VISION, GPIO_SCENARIO_ON, gpio_none, "pin", PIN_FUNCTION, 2, 0);
-       SET_PIN(pdata, SENSOR_SCENARIO_VISION, GPIO_SCENARIO_ON, gpio_reset, "sen_rst high", PIN_OUTPUT, 1, 2000);
+       SET_PIN(pdata, SENSOR_SCENARIO_VISION, GPIO_SCENARIO_ON, gpio_reset, "sen_rst high", PIN_OUTPUT, 1, 3000);
 
 
        /* REAR VISION CAEMRA - POWER OFF */