iMX8M And MIPI display

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

iMX8M And MIPI display

4,568 Views
mariosan
Contributor II

Hi, I'm using a iMX8m custom board with a 1024x800 MIPI display,

I've changed my the DTS file (using fsl-imx8mm-ddr4-evk-rm67191.dts  as reference)

to have a panel (no lvds bridge) and try to use the  drivers/gpu/drm/panel/panel-raydium-rm67191.c

#########################################################

&mipi_dsi {

    panel@0 {
        pinctrl-0 = <&pinctrl_mipi_dsi_rst>;
        reg = <0>;
        reset-gpios= <&gpio5 3 GPIO_ACTIVE_LOW>;
        compatible = "raydium,rm67191";
        dsi-lanes = <4>;
        video-mode = <2>;    /* 0: burst mode
                     * 1: non-burst mode with sync event
                     * 2: non-burst mode with sync pulse
                     */
        panel-width-mm = <86>;
        panel-height-mm = <154>;
        status = "okay";
    };

};

#####################################################àà

With only this change, nothing appears on display and all I have is this message:

[    1.303695] [drm] Cannot find any crtc or sizes

Its seems that the panel isn't recognized at all......

Any suggestion will be appreciate...

M. Sangalli

Here an abstract of the dmesg:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.78-g7832a1a-dirty (root@srv-linux02) (gcc version 4.9.x 20150123 (prerelease) (GCC)) #1 SMP PREEMPT Thu Oct 3 12:25:19 CEST 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Kernel command line: console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 init=/init androidboot.console=ttymxc1 consoleblank=0 androidboot.hardware=freescale cma=800M androidboot.primary_display=imx-drm firmware_class.path=/vendor/firmware transparent_hugepage=never androidboot.selinux=permissive androidboot.wificountrycode=IT buildvariant=eng androidboot.serialno=1e03320a5c85d94a androidboot.soc_type=imx8mm androidboot.storage_type=sd androidboot.boottime=1BLL:0,1BLE:6482,KL:0,KD:0,AVB:2992,ODT:0,SW:0 androidboot.bootreason=cold,powerkey androidboot.verifiedbootstate=green androidboot.slot_suffix=_a dm="1 vroot none ro 1,0 3611944 verity 1 PARTUUID=505cfc37-389c-497c-97e6-437127bb1fe1 PARTUUID=505cfc37-389c-497c-97e6-437127bb1fe1 4096 4096 451493 451493 sha1 52aab5354016dc880d2d5d1e9904e9a8792d323d 39ae707654cfb9623e97ef6f808662be5792a12d 10 restart_on_corruption ignore_zero_blocks use_fec_from_device PARTUUID=505cfc37-389c-497c-97e6-437127bb1fe1 fec_roots 2 fec_bloc

[    1.283437] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.290087] [drm] No driver support for vblank timestamp query.
[    1.296097] imx-drm display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[    1.303695] [drm] Cannot find any crtc or sizes
[    1.308778] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0

0 Kudos
Reply
7 Replies

2,321 Views
aagam_jain
Contributor I

Is there any update on this ? How shall we support support <  74250khz ? 

0 Kudos
Reply

3,472 Views
mariosan
Contributor II

I'm using Android9.0.0.1 and kernel 4.14.78

all I can view are these messages: I've try also with simple-panels with same

results... Why driver do not probe the panel driver?

[    1.338414] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.345061] [drm] No driver support for vblank timestamp query.
[    1.351071] imx-drm display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[    1.358664] [drm] Cannot find any crtc or sizes
[    1.363763] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0

0 Kudos
Reply

3,473 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

For Android do the following:

Modify in a Linux computer the following files.
 
$ mv dtbo-imx8mm.img dtbo-imx8mm.img.old
$ mv dtbo-imx8mm-mipi-panel.img dtbo-imx8mm.img 
$ mv vbmeta-imx8mm.img vbmeta-imx8mm.img.old
$ mv vbmeta-imx8mm-mipi-panel.img vbmeta-imx8mm.img
 
And use the script.
 
$ sudo ./fsl-sdcard-partition.sh -f imx8mm /dev/sdx # Where x is the device number of your sdcar.
For Linux:
In the u-boot terminal type the following
u-boot -> env edit fdt_file
 
Modify the variable as below:
fsl-imx8mq-evk-dcss-rm67191.dtb
u-boot -> saveenv
u-boot -> reboot
Hope this information could help you.
Best regards,
Diego
0 Kudos
Reply

3,473 Views
diegoadrian
NXP Employee
NXP Employee

Hello

Are you using the rm67191 display?

Best regards,

Diego.

0 Kudos
Reply

3,473 Views
mariosan
Contributor II

Thanks Diego:  I'm using a different MIPI panel , a TDO's TL070WSH30CT and I'm started

using the panel-raydium-rm67191.c as reference , but code never reach the probe ....

Mario

0 Kudos
Reply

3,473 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Are you using Android or Linux?

Best regards,

Diego.

0 Kudos
Reply

3,473 Views
传策薛
Contributor V

probly nxp bugs:

only support >= 74250khz

0 Kudos
Reply