i.MX6Q LCD and HDMI dual display issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6Q LCD and HDMI dual display issue

ソリューションへジャンプ
1,984件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,357件の閲覧回数
usrg_s
Contributor II

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

元の投稿で解決策を見る

6 返答(返信)
1,357件の閲覧回数
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 件の賞賛
返信
1,357件の閲覧回数
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 件の賞賛
返信
1,357件の閲覧回数
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 件の賞賛
返信
1,357件の閲覧回数
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 件の賞賛
返信
1,358件の閲覧回数
usrg_s
Contributor II

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

1,357件の閲覧回数
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 件の賞賛
返信