Part Number: TDA2-17
Other Parts Discussed in Thread: TVP5150, TVP5158, TVP5151
Tool/software: Linux
Hi,
I have been working the past few days to get camera data streaming into my system. I am capturing from a pair of TVP5151s on a shared I2C bus and pulling data in to VIN1A and VIN3A.
I have worked through some device tree issues and have both the VIP and 5151 recognized but my yavta commands fail to detect the presence of /dev/video*.
I am using Vision SDK 3.05 for building linux.
root@dra7xx-evm:~# dmesg | grep vip
[ 2.151977] vip 48970000.vip: loading firmware vpdma-1b8.bin
[ 2.158793] vip 48990000.vip: loading firmware vpdma-1b8.bin
[ 2.176102] vip 48970000.vip: VPDMA firmware loaded
[ 2.181071] vip1-s0: Port A: Using subdev tvp5150 3-005d for capture
[ 2.187709] vip 48990000.vip: VPDMA firmware loaded
[ 2.192847] vip1-s0: device registered as video0
[ 2.197526] vip2-s0: Port A: Using subdev tvp5150 3-005c for capture
[ 2.204066] vip2-s0: device registered as video1
root@dra7xx-evm:~# ls /dev/video
ls: /dev/video: No such file or directory
root@dra7xx-evm:~# dmesg | grep vip
[ 2.151977] vip 48970000.vip: loading firmware vpdma-1b8.bin
[ 2.158793] vip 48990000.vip: loading firmware vpdma-1b8.bin
[ 2.176102] vip 48970000.vip: VPDMA firmware loaded
[ 2.181071] vip1-s0: Port A: Using subdev tvp5150 3-005d for capture
[ 2.187709] vip 48990000.vip: VPDMA firmware loaded
[ 2.192847] vip1-s0: device registered as video0
[ 2.197526] vip2-s0: Port A: Using subdev tvp5150 3-005c for capture
[ 2.204066] vip2-s0: device registered as video1
root@dra7xx-evm:~# ls /dev/video0
/dev/video0
root@dra7xx-evm:~# ls /dev/video1
/dev/video1
root@dra7xx-evm:~# yavta /dev/video0
Error opening device /dev/video0: No such device (19).
root@dra7xx-evm:~# yavta /dev/video1
Error opening device /dev/video1: No such device (19).
My device tree entries are as follows:
/* modules used by BIOS, disable from Linux */
//DISABLE_COMPLETE(vip1);
//DISABLE_COMPLETE(vip2);
//DISABLE_COMPLETE(vip3);
&i2c4 {
status = "okay";
clock-frequency = <400000>;
tvp5150@5c {
compatible = "ti,tvp5150";
reg = <0x5c>;
//pdn-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
//reset-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>;
//hysnc-active=<0>;
//vsync-active=<0>;
port {
tvp5150_2: endpoint {
remote-endpoint = <&vin3a>;
channels = <0>;
//bus-width = <8>;
};
};
};
tvp5150@5d {
compatible = "ti,tvp5150";
reg = <0x5d>;
//pdn-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>;
//reset-gpios = <&gpio3 17 GPIO_ACTIVE_LOW>;
//hysnc-active=<0>;
//vsync-active=<0>;
port {
tvp5150_1: endpoint {
remote-endpoint = <&vin1a>;
channels = <0>;
//bus-width = <8>;
};
};
};
};
&vip1 {
status = "okay";
};
&vip2 {
status = "okay";
};
&vin1a {
status = "okay";
endpoint {
slave-mode;
remote-endpoint = <&tvp5150_1>;
};
};
&vin3a {
status = "okay";
endpoint {
slave-mode;
remote-endpoint = <&tvp5150_2>;
};
};
Thanks for any help. Please let me know if there is additional information I need to contribute to help the process.