i.MX6Q LCD and HDMI dual display issue

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

i.MX6Q LCD and HDMI dual display issue

Jump to solution
1,981 Views
usrg_s
Contributor II

Hello NXP expert,

We are developing a product which need LCD and HDMI dual display.  For the LCD display is 720x1280 portrait and HDMI display is 1280x720 landscape, our application use g2d to do the rotation and draw to fb directly.

But we encounter the problem that LCD and HDMI  can't display simultaneously.

BSP version: L3.14.52_1.1.0

I use ipu_id 0 for lcd and and ipu_id1 for hdmi

    lcd@0 {

        compatible = "fsl,lcd";

        ipu_id = <0>;

        disp_id = <0>;

        default_ifmt = "RGB565";

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_ipu1>;

        status = "okay";

    };

&hdmi_core {

  ipu_id = <1>;

  disp_id = <0>;

  status = "okay";

};

My boot parameter is  'video=mxcfb0:dev=lcd,SSD2828@60,bpp=32,if=RGB24 video=mxcfb1:dev=hdmi,1920x1080M@60,bpp=32,if=RGB24'

I can see fb0 fb1fb2 and fb3

root@imx6qdlsolo:~# cat /sys/class/graphics/fb0/name

DISP3 BG

root@imx6qdlsolo:~# cat /sys/class/graphics/fb1/name

DISP3 FG

root@imx6qdlsolo:~# cat /sys/class/graphics/fb2/name

DISP4 BG

root@imx6qdlsolo:~# cat /sys/class/graphics/fb3/name

DISP4 FG

When I boot the device, fb0 is on.  But if I run "echo 0 > /sys/class/graphics/fb2/blank", hdmi display is on, but LCD display is off.

if I run

"echo 1 > /sys/class/graphics/fb2/blank"

"echo 0 > /sys/class/graphics/fb2/blank"

LCD display is on, but hdmi is off.

HDMI and LCD use different IPU, it is supposed they can output simultaneously.  Can you help to check?

Thanks

G

Labels (1)
0 Kudos
Reply
1 Solution
1,354 Views
usrg_s
Contributor II

I just found the solution, IPU1 and IPU2 need use different parent clock source. The problem is solved.

View solution in original post

6 Replies
1,354 Views
yyuan
Contributor III

hi   

 i had the same problem now.

i set the disp_id that is 1 and 2.

but hdmi is not work ,  hdmi can be light up,but it is display wrong.

please help me?

thank you 

0 Kudos
Reply
1,354 Views
nickruan
Contributor II

Hi usr g.s,

Thank you for your information, the dula display can work now,

but HDMI and LCD display different content, is it normal?

BRs,

Nick

0 Kudos
Reply
1,354 Views
nickruan
Contributor II

Hi usr g.s,

I also encounter the same dual dispaly issue,

Could you share your solution about clock source?

Thank you.

0 Kudos
Reply
1,354 Views
usrg_s
Contributor II

add int_clk in boot parameter such as below

setenv displayinfo 'video=mxcfb0:dev=lcd,FORMIKE-WVGA@60,bpp=32,if=RGB24 video=mxcfb1:dev=hdmi,1920x1080M@60,bpp=32,if=RGB24,int_clk'

0 Kudos
Reply
1,355 Views
usrg_s
Contributor II

I just found the solution, IPU1 and IPU2 need use different parent clock source. The problem is solved.

1,354 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

Good news you have solved your problem. If any questions you can create new thread in our community:smileyhappy:.

Have  a nice day

Dan

0 Kudos
Reply