Skip to content

Commit 7028772

Browse files
Jacopo Mondimchehab
authored andcommitted
media: i2c: rdacm21: Add delay after OV490 reset
Add a delay after the OV490 chip is put in reset state. The reset signal shall be held low for at least 250 useconds. Signed-off-by: Jacopo Mondi <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 9e0bf83 commit 7028772

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/media/i2c/rdacm21.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,18 @@ static int rdacm21_initialize(struct rdacm21_device *dev)
469469
if (ret)
470470
return ret;
471471

472-
/* Enable GPIO1 and hold OV490 in reset during max9271 configuration. */
472+
/*
473+
* Enable GPIO1 and hold OV490 in reset during max9271 configuration.
474+
* The reset signal has to be asserted for at least 250 useconds.
475+
*/
473476
ret = max9271_enable_gpios(&dev->serializer, MAX9271_GPIO1OUT);
474477
if (ret)
475478
return ret;
476479

477480
ret = max9271_clear_gpios(&dev->serializer, MAX9271_GPIO1OUT);
478481
if (ret)
479482
return ret;
483+
usleep_range(250, 500);
480484

481485
ret = max9271_configure_gmsl_link(&dev->serializer);
482486
if (ret)

0 commit comments

Comments
 (0)