TDA4VEN-Q1: Keep hanging when capturing frame

Part Number: TDA4VEN-Q1
Other Parts Discussed in Thread: AM67

Tool/software:

Hi TI,

We have TDA4VEN - DS90UB960 - IMX390 (builtin DS90UB953), and the device tree relay is set. Now, we want to test the sensor powering on and working or not using the following code:

Fullscreen
1
2
3
4
5
6
# after boot and login, config code provided by manutacturer
$ i2cset -y 7 0x3d 0x4c 0x01
$ i2cset -y 7 0x3d 0x58 0x5e
$ i2cset -y 7 0x3d 0x1f 0x02
$ i2cset -y 7 0x3d 0x20 0x20
$ i2cset -y 7 0x3d 0x33 0x03
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/videodev2.h>
#include <string.h>
#include <errno.h>
#define DEVICE "/dev/video4"
#define WIDTH 1936
#define HEIGHT 1100
int main() {
int fd = open(DEVICE, O_RDWR);
if (fd == -1) {
perror("Error opening video device");
return 1;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The execution hangs at line 88, and if we interrupt with ctrl + c and check the 0x20 and 0x33 registers of 954, the value was modified back to 0xf0, 0x02, respectively. The values seem to be modified after line 81 executed.

We also tried `v4l2-ctl --device /dev/video4 --stream-mmap --stream-count=1 --stream-to=frame.raw` and hanged too.

Regards