Hi Mario,
Sorry for late reply, I just see your reply today. The patch is for the 4.14.78 version BSP on our i.MX8M EVK board. Yes, you need to modify in device tree. For the clocks changes we can not do it dynamically. You needs to change the clocks accordingly to the your display requirements. You clock you can modify in that patch. You can not directly use that patch, you can refer to it to modify towards your display and board.
Here If you want the non-default resolution work, you also need to modify kernel file:
driver/gpu/drm/imx/hdp/imx-hdp.c and driver/gpu/drm/imx/drm_edid.c
static struct drm_display_mode edid_cea_modes[] = {........} change to your screen parameters (You can see your screen datasheet).
When you finished the source code modify you need to compile and then download the images to your board.
When you boot up your board you also need to change the boot cmdline in u-boot.
Hope this can do help for you
Best Regards
Rita