iMX6 and LVDS

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

iMX6 and LVDS

3,533 Views
stefanogaleazzi
Contributor II

Hi,

I have a RiotBoard, the external connection have a LVDS on miniHDMI connector 19pin.

The pin-out documented have 3 data LVDS signal (balanced line with N and P) configured TxData0, TxData1, TxData2.

I want to connect this Board with an LCD that have data input configurable to SELB to select 6bit or 8bit.

If I put the SELB on 6bit, I must use on LCD the RxData0, RxData1, RxData2 or the RxData1, RxData2, RxData3?

Thanks

Stefano

11 Replies

1,724 Views
joevince
Contributor II

hi,

I added the given patch for ft5x06 and added the patch in .bb file  but still i am getting the following error

ERROR: Command Error: exit status: 1  Output:

Applying patch 0026-imx6q-smx6-edt-ft5x06.patch

patching file Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt

patching file drivers/input/touchscreen/edt-ft5x06.c

Hunk #22 FAILED at 751.

Hunk #23 succeeded at 811 (offset -1 lines).

Hunk #24 FAILED at 922.

Hunk #25 FAILED at 959.

Hunk #26 FAILED at 995.

Hunk #27 FAILED at 1009.

Hunk #28 succeeded at 1077 (offset 17 lines).

5 out of 28 hunks FAILED -- rejects in file drivers/input/touchscreen/edt-ft5x06.c

Patch 0026-imx6q-smx6-edt-ft5x06.patch does not apply (enforce with -f)

ERROR: Function failed: patch_do_patch

did you come across this error ?

Can you help me how to solve it!!!!

0 Kudos

1,724 Views
joevince
Contributor II

I also facing the same issue

edt_ft5x06 4-0038: no platform data?

edt_ft5x06: probe of 4-0038 failed with error -22

I made my modification in imx6qdl-smx6.dtsi as

polytouch: edt-ft5x06@38 {

                compatible = "edt,edt-ft5x06";

                reg = <0x38>;

                pinctrl-names = "default";

               };

please help to solve this problem

0 Kudos

1,724 Views
zhenli
Contributor II

Hi,

     look here!

    LINUX3.14:imx6q+ft5x06 probe problem

1,724 Views
zhenli
Contributor II

Hi 

  i meet this problem too.

edt_ft5x06 2-0038: no platform data?

edt_ft5x06: probe of 2-0038 failed with error -22

  what should i do ?

Thanks!

0 Kudos

1,724 Views
nikolaydimitro1
Contributor II

Hi Stefano,

Page 18 from RIoTboard's User Manual V2.1 explicitly states that the available LVDS data pairs are only TX0, TX1 and TX2. Data pair TX3 is not wired to the LVDS connector, so you can't use it. This also means that the RIoTboard supports only 18-bit LVDS video, so you must set your SELB to 6-bit per color.

Regards,

Nikolay

0 Kudos

1,724 Views
stefanogaleazzi
Contributor II

Thanks for you response,

now I have another problem, the touchscreen I2c on I2C3 of iMX6Solo.

The LCD chip is an FT5x06 and I configured the kernel DTS file to probe on

I2C3 the ft5x06 driver.

But the board on boot put this message

….

edt_ft5x06 2-0038: no platform data?

edt_ft5x06: probe of 2-0038 failed with error -22

….

Can You help me?

Thanks

Stefano

0 Kudos

1,724 Views
nikolaydimitro1
Contributor II

Hi Stefano,

Seems like a wrong configuration in the .dts file. Please share which kernel version and branch you're using, and also your DTS file, or at least the touch-screen controller part.

Regards,

Nikolay

0 Kudos

1,724 Views
stefanogaleazzi
Contributor II

I’m using the kernel linux-imx-embest_imx_3.10.17_1.0.0_ga, I have enabled

the driver

CONFIG_TOUCHSCREEN_EDT_FT5X06=y

And I added on DTS a driver on i2c3 session:

On two cases

&i2c3 {

clock-frequency = <400000>;

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_i2c3_5>;

status = "okay";



lvds: ft5306@38 {

compatible = "edt,edt-ft5x06";

reg = <0x38>;

};

};



&i2c3 {

clock-frequency = <400000>;

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_i2c3_5>;

status = "okay";



lvds: ft5306@0 {

compatible = "edt,edt-ft5x06";

reg = <0x0>;

};

};

I obtain an error (i2c i2c-2: of_i2c: Failure registering

/soc/aips-bus@02100000/i2c@021a8000/ft5306@0 on the last configuration with

reg 0)

0 Kudos

1,724 Views
nikolaydimitro1
Contributor II

Hmm, "lvds" is a strange name for a multi-touch controller... Never mind, can you please check the tx6 board .dts, it has the same controller:

&i2c3 {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_i2c3>;

        clock-frequency = <400000>;

        status = "okay";

        polytouch: edt-ft5x06@38 {

                compatible = "edt,edt-ft5x06";

                reg = <0x38>;

                pinctrl-names = "default";

                pinctrl-0 = <&pinctrl_edt_ft5x06>;

                interrupt-parent = <&gpio6>;

                interrupts = <15 0>;

                reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;

                wake-gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;

                linux,wakeup;

        };

Regards,

Nikolay

0 Kudos

1,724 Views
igorpadykov
NXP Employee
NXP Employee

Hi Stefano

usually this should be RxData0, RxData1, RxData2,

however one needs to consult with LCD datasheet to be sure.

Best regards

igor

0 Kudos

1,724 Views
stefanogaleazzi
Contributor II

Thanks for you response,

now I have another problem, the touchscreen I2c on I2C3 of iMX6Solo.

The chip is an FT5x06 and I configured the DTS file to probe on I2C3 the

ft5x06 driver.

But the board on boot put this message

….

edt_ft5x06 2-0038: no platform data?

edt_ft5x06: probe of 2-0038 failed with error -22

….

Can You help me?

Thanks

Stefano

0 Kudos