]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tvp5150: Initialize the chip on probe
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 7 Jan 2016 12:46:49 +0000 (10:46 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 12:59:13 +0000 (10:59 -0200)
commitd6f228aa831ea236177d2b34abfc24a6ec984397
treebbff00b1feffb1e7d0c6152f283eb7383251cd3d
parentfded8390bab63972bc38e944442dcdab80519914
[media] tvp5150: Initialize the chip on probe

After power-up, the tvp5150 decoder is in a unknown state until the
RESETB pin is driven LOW which reset all the registers and restarts
the chip's internal state machine.

The init sequence has some timing constraints and the RESETB signal
can only be used if the PDN (Power-down) pin is first released.

So, the initialization sequence is as follows:

1- PDN (active-low) is driven HIGH so the chip is power-up
2- A 20 ms delay is needed before sending a RESETB (active-low) signal.
3- The RESETB pulse duration is 500 ns.
4- A 200 us delay is needed for the I2C client to be active after reset.

This patch used as a reference the logic in the IGEPv2 board file from
the ISEE 2.6.37 vendor tree.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tvp5150.c