I have got camera, with board plugged into DC4. In order to manage its settings I am required to change registers via i2c. How can I do that properly? Do I have to isolate TVP5146 explicitly, when I plug my camera board into DC4?
As Brandon Azbell said: " For the DaVinci DVEVM, you can use a pin on the DC4 connector to isolate the on-board TVP5146 device from the VPFE interface. I would suggest using a pullup resistor on your daughter card for pin 2 of DC4 (CAPTURE_EN). However, the pullup resistor should NOT be connected to 3.3V. The control inputs of the SN74AVCB164245 are referenced to VCCB (the B side of the Dual Supply Bus Transceiver) which on this board is 1.8V. The B side connects to the DM644X device. Therefore the pullup resistor should be connected to 1.8V, which is available on DC4 on pins 41 and 42. "
Actually, I tried the following code because I supposed that camera registers could be accessed using TVP5146 device address 0x56 on i2c. But, I got 'operation not permitted error code' when used "i2c_smbus_write_word_data" method, or 'remote i\o error' with "write" method.
TVP5146 device address is 0x5D instead of 0x56 !! (I know, in dvevm documentation you see 0x56, but it is 0x5D actually)
So, I think, I am using wrong device address to manage my plugged into DC4 camera registers. How can I get proper address of camera plugged into DC4 on i2c?
Is your camera i2c address configurable? If so, set your camera i2c address to 0x5D Best regards, Carlos _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source