Ok I was able to query get the correct parameters for the lcd via "cat /sys/class/drm/card0-HDMI-A-1/edid | parse-edid"
Which did have this line which is the resolution I want:
"Modeline "Mode 0" 33.90 800 844 932 1056 480 483 489 535 +hsync +vsync"
But when I try to add this mode via xrandr I am getting this error and screen is going black:
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219299] [drm] Pixel clock frequency: 33900 KHz, character clock frequency: 33900, color depth is 8-bit.
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219315] [drm] Pixel clock frequency (33900 KHz) not supported for this color depth (8-bit)
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219331] [drm:hdmi_phy_init_t28hpc] *ERROR* failed to set phy pclock
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.226009] [drm:imx_hdp_bridge_mode_set] *ERROR* Failed to initialise HDP PHY
So it does seem I need to use this "HDMI - pixel clock calculation" spreadsheet and add a new line to t28hpc_hdmitx_table.c.
The challenge I am having is what I need to add the spreadsheet for the input variables:
- Reference Clock Freq
- Expected Pixel clock
- Generated clock tolerance
- pll input divider
- pll feedback divider
- pixel clock divider
- character clock divider
Based on the above modeline should I be able to dervice these values or I need more information?