Hi everyone
If anyone use imx8x and yocto and need display rotation (or flip), here is my solution: Screen rotate feature has Display controller (DC) DPR block. In register Frame Control 0 (FRAME_CTRL0 offset 0x70) you can find flip and rotate settings.
To change screen direction, edit driver in kernel source: drivers/gpu/imx/imx8_dprc.c. There is the register definition (#define FRAME_CTRL0 0x70). If you use ctrl+f you can find where is written to it:
dprc_write(dprc, PITCH(stride), FRAME_CTRL0);
Modify it and you can see screen rotation. I use:
stride_tmp = PITCH(stride) | VFLIP_EN | HFLIP_EN;
... and It works!