Dear,
I am designing a board broadly based on am4378-gp-evm. I have connected TVP5146 (video decoder) instead of ov2659.
My problem is , If i declare bus-width = <8>; in the dts file as given below, USB is not working. and If i dont declare "bus-width = <8>;" i am getting " Invalid bus width error" in the console output.
My brief hardware data connection is given below
Y2-Y9 (TVP5146) = > cam1_data0 to cam1_data7 (am4378)
data clock (TVP5146) => cam1_pclk (am4378)
See below relevant dts entries..
tvp514x@5c {
compatible = "ti,tvp5146";
reg = <0x5c>;
status = "okay";
port {
tvp514x_0: endpoint {
remote-endpoint = <&vpfe1_ep>;
};
};
};
&vpfe1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&cam1_pins_default>;
pinctrl-1 = <&cam1_pins_sleep>;
port {
vpfe1_ep: endpoint {
slave-mode;
remote-endpoint = <&tvp514x_0>;
ti,am437x-vpfe-interface = <1>;
bus-width = <8>;
hsync-active = <1>;
vsync-active = <1>;
pclk-sample = <0>;
};
};
};
cam1_pins_default: cam1_pins_default {
pinctrl-single,pins = <
0x1dc ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AE21) cam1_pclk.cam1_pclk */
0x1e8 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AB20) cam1_data0.cam1_data0 */
0x1ec ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AC21) cam1_data1.cam1_data1 */
0x1f0 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AD21) cam1_data2.cam1_data2 */
0x1f4 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AE22) cam1_data3.cam1_data3 */
0x1f8 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AD22) cam1_data4.cam1_data4 */
0x1fc ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AE23) cam1_data5.cam1_data5 */
0x200 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AD23) cam1_data6.cam1_data6 */
0x204 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (AE24) cam1_data7.cam1_data7 */
>;
};
/* Optional sleep pin settings. Must manually enter values in the below skeleton. */
cam1_pins_sleep: cam1_pins_sleep {
pinctrl-single,pins = <
0x1dc (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AE21) cam1_pclk.cam1_pclk */
0x1e8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AB20) cam1_data0.cam1_data0 */
0x1ec (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AC21) cam1_data1.cam1_data1 */
0x1f0 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AD21) cam1_data2.cam1_data2 */
0x1f4 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AE22) cam1_data3.cam1_data3 */
0x1f8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AD22) cam1_data4.cam1_data4 */
0x1fc (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AE23) cam1_data5.cam1_data5 */
0x200 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AD23) cam1_data6.cam1_data6 */
0x204 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7 ) /* (AE24) cam1_data7.cam1_data7 */
>;
};
Does it have any mistake in above dts entry?I want to use BT.656 , 8 bit ycbcr embedded sync mode.
Should i make any config setting or i2c register setting in tvp5146 side? Ultimately i want to capture the video using tvp5146 decoder.
Regards,
Winiston.P