Part Number: TMDXIDK57X-LCD
Hello everyone,
I have an am5728 IDK and its camera module is not available, my target is running linux rt 4.9, I am trying to make configurations to use ov7670 via Video Input Port (VIP) connected to j9 connector. this is my camera module:
these are pin connections :
camera pin | pin name | j9 pin number |
SIOC | IND_I2C_SCL | 22 |
SIOD | IND_I2C_SDA | 24 |
VSYNC | CAM1_VSYNC | 2 |
HREF | CAM1_HSYNC | 4 |
PCLK | CAM1_PCLK | 9 |
XCLK | X1 OUT | pin23 |
D0...D7 | CAM1_DATA0 ... CAM1_DATA7 | |
PWON | GND | |
RESET | 3V3 |
now I can detect the camera using i2cdetect command, but it is not shown in /dev/ directory (as far as I know it should appear as video1, so that I can use it with gstreamer).
this was the original dts file I found in my PSDK on my Host (named am57xx-evm-common-cam-mt9t111.dtsi):
/* * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ &i2c5 { mt9t11x@3C { compatible = "aptina,mt9t111"; reg = <0x3C>; reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; camen-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; port { cam: endpoint { remote-endpoint = <&vin3a>; hsync-active = <1>; vsync-active = <0>; pclk-sample = <0>; input-clock-freq = <32000000>; pixel-clock-freq = <96000000>; }; }; }; }; &vip2 { status = "okay"; }; &vin3a { status = "okay"; endpoint { slave-mode; remote-endpoint = <&cam>; }; };
I changed it to:
/* * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ &i2c5 { mt9t11x@3C { compatible = "aptina,mt9t111"; reg = <0x21>; reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; camen-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; port { cam: endpoint { remote-endpoint = <&vin4b>; hsync-active = <1>; vsync-active = <0>; pclk-sample = <0>; input-clock-freq = <32000000>; pixel-clock-freq = <96000000>; }; }; }; }; &vip2 { status = "okay"; }; &vin4b { status = "okay"; endpoint { slave-mode; remote-endpoint = <&cam>; }; };
I compiled the dts using dtc and replaced the output dtb on my target with its equivalent, but still, nothing appears in /dev/. I also tried some other configuration but none of them were successful.
I was wondering if someone could explain the changes I have to make in the device tree (or maybe drivers) so that my target IDK can detect my camera module.
B.R,
Alex.