IMX6 camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 camera

1,065 Views
john_smith
Contributor II

Hi!

I'd like to connect a camera to my IMX6 based board. For this purpose I use tvp5150 decoder. I added in my device tree files:

&i2c1 {

    clock-frequency = <100000>;

    pinctrl-names = "default";

    pinctrl-0 = <&pinctrl_i2c1_2>;

    status = "okay";

videoin: tvp5150@5D {

        compatible = "ti,tvp5150";

        reg = <0x5D>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_ipu1_2>;

        clocks = <&clks 201>;

        clock-names = "csi_mclk";

        DOVDD-supply = <&reg_3p3v>;

        AVDD-supply = <&reg_3p3v>;

        DVDD-supply = <&reg_3p3v>;

        PVDD-supply = <&reg_3p3v>;

        mclk = <24000000>;

        mclk_source = <0>;

        ipu_id = <0>;

        csi_id = <0>;

        cvbs = <1>;

    };

v4l2_cap_0 {

        compatible = "fsl,imx6q-v4l2-capture";

        ipu_id = <0>;

        csi_id = <0>;

        mclk_source = <0>;

        status = "okay";

    };

I2C communication works fine, but v4l2 driver returns:

In MVC: mxc_v4l_open

ERROR: v4l2 capture: slave not found!

Do I need to add anything else to my device tree or kernel configuration?

0 Kudos
2 Replies

506 Views
igorpadykov
NXP Employee
NXP Employee

Hi John

for tvp5150 mxc_v4l2_tvin should be used, please check examples on

https://community.nxp.com/thread/310371

https://community.nxp.com/thread/312914

also it is supported in compulab CM-FX6 linux

https://www.compulab.co.il/workspace/mediawiki/index.php5/CM-FX6:_Linux:_Kernel#TVP5150_video_decode...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

506 Views
john_smith
Contributor II

Thank you for your answer!

Excuse me for my newbie questions...

How can I add mxc_v4l2_tvin support to my kernel? And what do I need to change in the DT files?

In order to get TVP5150 working I've already activated [VIDEO_TVP5150 = y] through menuconfig command. If it is important - I use TVP5151 (seems like 5150 and 5151 are practically similar).

0 Kudos