displaymode.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. videomode bindings
  2. ==================
  3. (from http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html)
  4. Required properties:
  5. - xres, yres: Display resolution
  6. - left-margin, right-margin, hsync-len: Horizontal Display timing
  7. parameters in pixels
  8. - upper-margin, lower-margin, vsync-len: Vertical display timing
  9. parameters in lines
  10. - clock: display clock in Hz
  11. Optional properties:
  12. - width-mm, height-mm: Display dimensions in mm
  13. - hsync-active-high (bool): Hsync pulse is active high
  14. - vsync-active-high (bool): Vsync pulse is active high
  15. - interlaced (bool): This is an interlaced mode
  16. - doublescan (bool): This is a doublescan mode
  17. There are different ways of describing a display mode. The devicetree
  18. representation corresponds to the one used by the Linux Framebuffer
  19. framework described here in Documentation/fb/framebuffer.txt. This
  20. representation has been chosen because it's the only format which does
  21. not allow for inconsistent parameters. Unlike the Framebuffer framework
  22. the devicetree has the clock in Hz instead of ps.
  23. Example:
  24. display@0 {
  25. /* 1920x1080p24 */
  26. clock = <52000000>;
  27. xres = <1920>;
  28. yres = <1080>;
  29. left-margin = <25>;
  30. right-margin = <25>;
  31. hsync-len = <25>;
  32. lower-margin = <2>;
  33. upper-margin = <2>;
  34. vsync-len = <2>;
  35. hsync-active-high;
  36. };