How does the IMX7D LCD rotate 90°?

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

How does the IMX7D LCD rotate 90°?

1,644件の閲覧回数
864535720
Contributor II

Hello everyone, I am using the official MCIMX7SABRE development board. My Linux version is 4.9.88. The resolution of our screen is 1280*720. We want to achieve a 90° rotation of the screen. Does the IMX7 support 90° rotation? If you support, can you provide some reference materials?

look forward to your reply.

ラベル(1)
0 件の賞賛
返信
10 返答(返信)

1,274件の閲覧回数
ankitr_patel
Senior Contributor II

Hi 其东 刘 ,

Have you using X11 as display? Then just use xrandr command to rotate the Display. https://community.nxp.com/thread/305977 

Or if it's base on Qt then may refer i.MX6S screen rotation.

0 件の賞賛
返信

1,274件の閲覧回数
864535720
Contributor II

Hi ANKIT PATEL,

We are using the linux fb approach. At the same time we want to turn the screen rotation to the kernel for processing. I used to see the IMX6q in the forum to rotate the screen through the IPU in the kernel. I would like to ask if IMX7D can be selected by IPU.

0 件の賞賛
返信

1,274件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

imx7 don't have IPU, you can use PXP to rotate, PXP supports rotate image for portrait or landscape support, for more detailed informaiton, you can refer to the 4.9.88 linux reference manual

0 件の賞賛
返信

1,274件の閲覧回数
864535720
Contributor II

hi,Joan Xie

Have you used PXP for screen rotation verification on IMX7D before? If so, can you provide the source code for verification?

0 件の賞賛
返信

1,274件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

I haven't tested on the imx7d, but I tested on the imx6sx PXP, you can refer to it

https://community.nxp.com/docs/DOC-334845 

0 件の賞賛
返信

1,274件の閲覧回数
864535720
Contributor II

Hi, Joan Xie:

   I tested the pxp_v4l2_test.out program and found that the image output to the screen via the parameter was indeed rotated. Then I downloaded the imx-test test program on the forum, refer to pxp_v4l2_test.c. When I read pxp_v4l2_test.c, I found that many functions inside could not find a specific implementation. For example, the pxp_get_mem function. Can I find the specific implementation of this function?
look forward to your reply.

0 件の賞賛
返信

1,274件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

why do you need the specific implementation of this function? I‘ve never tested this function .

0 件の賞賛
返信

1,274件の閲覧回数
864535720
Contributor II

Hi,Joan Xie

   I don't know how to make PXP rotate, so I want to refer to the test code. But just refer to the current test code, or can not let me understand how to make PXP rotate, because the current test code is used to the library. So I want to read more detailed code. Can you provide it?

0 件の賞賛
返信

1,274件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the latest source code, I don't find the function you mentioned,

pxp_v4l2_test.c\pxp_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

0 件の賞賛
返信

1,274件の閲覧回数
864535720
Contributor II

hi,Joan Xie

I went to read the 4.9.88 linux reference manual document you said. I looked at the code in pxp_dma_v3.c according to the introduction. Then I tracked the code inside. During the running of the code, I found that the thread created in the pxp_probe function, in its corresponding thread function, calls

wait_event_freezable(pxp->thread_waitq,Has_pending_task(pxp, pending) ||Kthread_should_stop());
Then the entire thread goes to sleep.
How can I wake up this thread?
look forward to your reply.

0 件の賞賛
返信