i.MX6Q HDMI can only support these modes?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6Q HDMI can only support these modes?

1,611 Views
zhiyancao
Contributor II

At /drivers/video/mxc/mxc_edid.c,

const struct fb_videomode mxc_cea_mode[64] = {

  /* #1: 640x480p@59.94/60Hz 4:3 */

  [1] = {

  NULL, 60, 640, 480, 39722, 48, 16, 33, 10, 96, 2, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, 0,

  },

  /* #2: 720x480p@59.94/60Hz 4:3 */

  [2] = {

  NULL, 60, 720, 480, 37037, 60, 16, 30, 9, 62, 6, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, 0,

  },

  /* #3: 720x480p@59.94/60Hz 16:9 */

  [3] = {

  NULL, 60, 720, 480, 37037, 60, 16, 30, 9, 62, 6, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #4: 1280x720p@59.94/60Hz 16:9 */

  [4] = {

  NULL, 60, 1280, 720, 13468, 220, 110, 20, 5, 40, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0

  },

  /* #5: 1920x1080i@59.94/60Hz 16:9 */

  [5] = {

  NULL, 60, 1920, 1080, 13763, 148, 88, 15, 2, 44, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_INTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #6: 720(1440)x480iH@59.94/60Hz 4:3 */

  [6] = {

  NULL, 60, 1440, 480, 18554/*37108*/, 114, 38, 15, 4, 124, 3, 0,

  FB_VMODE_INTERLACED | FB_VMODE_ASPECT_4_3, 0,

  },

  /* #7: 720(1440)x480iH@59.94/60Hz 16:9 */

  [7] = {

  NULL, 60, 1440, 480, 18554/*37108*/, 114, 38, 15, 4, 124, 3, 0,

  FB_VMODE_INTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #8: 720(1440)x240pH@59.94/60Hz 4:3 */

  [8] = {

  NULL, 60, 1440, 240, 18554, 114, 38, 16, 4, 124, 3, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #9: 720(1440)x240pH@59.94/60Hz 16:9 */

  [9] = {

  NULL, 60, 1440, 240, 18554, 114, 38, 16, 4, 124, 3, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #16: 1920x1080p@60Hz 16:9 */

  [16] = {

  NULL, 60, 1920, 1080, 6734, 148, 88, 36, 4, 44, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #17: 720x576pH@50Hz 4:3 */

  [17] = {

  NULL, 50, 720, 576, 37037, 68, 12, 39, 5, 64, 5, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, 0,

  },

  /* #18: 720x576pH@50Hz 16:9 */

  [18] = {

  NULL, 50, 720, 576, 37037, 68, 12, 39, 5, 64, 5, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #19: 1280x720p@50Hz */

  [19] = {

  NULL, 50, 1280, 720, 13468, 220, 440, 20, 5, 40, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #20: 1920x1080i@50Hz */

  [20] = {

  NULL, 50, 1920, 1080, 13480, 148, 528, 15, 5, 528, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_INTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #31: 1920x1080p@50Hz */

  [31] = {

  NULL, 50, 1920, 1080, 6734, 148, 528, 36, 4, 44, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #32: 1920x1080p@23.98/24Hz */

  [32] = {

  NULL, 24, 1920, 1080, 13468, 148, 638, 36, 4, 44, 5,

  FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, 0,

  },

  /* #35: (2880)x480p4x@59.94/60Hz */

  [35] = {

  NULL, 60, 2880, 480, 9250, 240, 64, 30, 9, 248, 6, 0,

  FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, 0,

  };

my hdmi display monitor have 20 mode, but it only match the  first item in mxc_cea_mode, so at last, my hdmi only work on 640*480.

the array can add other mode by myself?

Labels (1)
0 Kudos
4 Replies

761 Views
EricNelson
Senior Contributor II

Hi Zhiyan,

You can't simply add CEA modes, because they are tied to audio output.

You can over-ride the requirement for CEA modes as we've done in our

kernels, but this will mess up the audio clocking.

See these two posts for more details:

     http://boundarydevices.com/?s=cea+modes

0 Kudos

761 Views
zhiyancao
Contributor II

Hi Eric:

          Thank you for your advice.

           I try the method. But my monitor does not light at 1024*768. It only work at 640*480.

           There are other problems. My first monitor is vga, it use ipu0 and di0, it works at 1024*768@60 video mode, its name is DISP3 BG;

           my second monitor is hdmi, it use ipu1 and di0, it works at 640*480@60 video mode, its name is DISP4 BG.

           Each monitor use one ipu, i.MX6q should support?

           Could you give me some more hits?

0 Kudos

761 Views
EricNelson
Senior Contributor II

Hi Zhiyan,

i.MX6Q definitely supports this, and you should get proper audio with VGA timings (because that's a CEA mode).

Are you operating with EDID support?

0 Kudos

761 Views
zhiyancao
Contributor II

Hi Eric:

          My HDMI monitor adopt edid, and My VGA monitor also adopt edid such as dvi.

          I will try again.

          Thanks!

0 Kudos