v4l2-dv-timings.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * V4L2 DV timings header.
  4. *
  5. * Copyright (C) 2012-2016 Hans Verkuil <hans.verkuil@cisco.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2 as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. */
  16. #ifndef _V4L2_DV_TIMINGS_H
  17. #define _V4L2_DV_TIMINGS_H
  18. #if __GNUC__ < 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ < 6))
  19. /* Sadly gcc versions older than 4.6 have a bug in how they initialize
  20. anonymous unions where they require additional curly brackets.
  21. This violates the C1x standard. This workaround adds the curly brackets
  22. if needed. */
  23. #define V4L2_INIT_BT_TIMINGS(_width, args...) \
  24. { .bt = { _width , ## args } }
  25. #else
  26. #define V4L2_INIT_BT_TIMINGS(_width, args...) \
  27. .bt = { _width , ## args }
  28. #endif
  29. /* CEA-861-F timings (i.e. standard HDTV timings) */
  30. #define V4L2_DV_BT_CEA_640X480P59_94 { \
  31. .type = V4L2_DV_BT_656_1120, \
  32. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  33. 25175000, 16, 96, 48, 10, 2, 33, 0, 0, 0, \
  34. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, \
  35. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 1) \
  36. }
  37. /* Note: these are the nominal timings, for HDMI links this format is typically
  38. * double-clocked to meet the minimum pixelclock requirements. */
  39. #define V4L2_DV_BT_CEA_720X480I59_94 { \
  40. .type = V4L2_DV_BT_656_1120, \
  41. V4L2_INIT_BT_TIMINGS(720, 480, 1, 0, \
  42. 13500000, 19, 62, 57, 4, 3, 15, 4, 3, 16, \
  43. V4L2_DV_BT_STD_CEA861, \
  44. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO | \
  45. V4L2_DV_FL_HAS_PICTURE_ASPECT | V4L2_DV_FL_HAS_CEA861_VIC, \
  46. { 4, 3 }, 6) \
  47. }
  48. #define V4L2_DV_BT_CEA_720X480P59_94 { \
  49. .type = V4L2_DV_BT_656_1120, \
  50. V4L2_INIT_BT_TIMINGS(720, 480, 0, 0, \
  51. 27000000, 16, 62, 60, 9, 6, 30, 0, 0, 0, \
  52. V4L2_DV_BT_STD_CEA861, \
  53. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_PICTURE_ASPECT | \
  54. V4L2_DV_FL_HAS_CEA861_VIC, { 4, 3 }, 2) \
  55. }
  56. /* Note: these are the nominal timings, for HDMI links this format is typically
  57. * double-clocked to meet the minimum pixelclock requirements. */
  58. #define V4L2_DV_BT_CEA_720X576I50 { \
  59. .type = V4L2_DV_BT_656_1120, \
  60. V4L2_INIT_BT_TIMINGS(720, 576, 1, 0, \
  61. 13500000, 12, 63, 69, 2, 3, 19, 2, 3, 20, \
  62. V4L2_DV_BT_STD_CEA861, \
  63. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO | \
  64. V4L2_DV_FL_HAS_PICTURE_ASPECT | V4L2_DV_FL_HAS_CEA861_VIC, \
  65. { 4, 3 }, 21) \
  66. }
  67. #define V4L2_DV_BT_CEA_720X576P50 { \
  68. .type = V4L2_DV_BT_656_1120, \
  69. V4L2_INIT_BT_TIMINGS(720, 576, 0, 0, \
  70. 27000000, 12, 64, 68, 5, 5, 39, 0, 0, 0, \
  71. V4L2_DV_BT_STD_CEA861, \
  72. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_PICTURE_ASPECT | \
  73. V4L2_DV_FL_HAS_CEA861_VIC, { 4, 3 }, 17) \
  74. }
  75. #define V4L2_DV_BT_CEA_1280X720P24 { \
  76. .type = V4L2_DV_BT_656_1120, \
  77. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  78. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  79. 59400000, 1760, 40, 220, 5, 5, 20, 0, 0, 0, \
  80. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, \
  81. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 60) \
  82. }
  83. #define V4L2_DV_BT_CEA_1280X720P25 { \
  84. .type = V4L2_DV_BT_656_1120, \
  85. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  86. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  87. 74250000, 2420, 40, 220, 5, 5, 20, 0, 0, 0, \
  88. V4L2_DV_BT_STD_CEA861, \
  89. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 61) \
  90. }
  91. #define V4L2_DV_BT_CEA_1280X720P30 { \
  92. .type = V4L2_DV_BT_656_1120, \
  93. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  94. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  95. 74250000, 1760, 40, 220, 5, 5, 20, 0, 0, 0, \
  96. V4L2_DV_BT_STD_CEA861, \
  97. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  98. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 62) \
  99. }
  100. #define V4L2_DV_BT_CEA_1280X720P50 { \
  101. .type = V4L2_DV_BT_656_1120, \
  102. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  103. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  104. 74250000, 440, 40, 220, 5, 5, 20, 0, 0, 0, \
  105. V4L2_DV_BT_STD_CEA861, \
  106. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 19) \
  107. }
  108. #define V4L2_DV_BT_CEA_1280X720P60 { \
  109. .type = V4L2_DV_BT_656_1120, \
  110. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  111. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  112. 74250000, 110, 40, 220, 5, 5, 20, 0, 0, 0, \
  113. V4L2_DV_BT_STD_CEA861, \
  114. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  115. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 4) \
  116. }
  117. #define V4L2_DV_BT_CEA_1920X1080P24 { \
  118. .type = V4L2_DV_BT_656_1120, \
  119. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  120. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  121. 74250000, 638, 44, 148, 4, 5, 36, 0, 0, 0, \
  122. V4L2_DV_BT_STD_CEA861, \
  123. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  124. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 32) \
  125. }
  126. #define V4L2_DV_BT_CEA_1920X1080P25 { \
  127. .type = V4L2_DV_BT_656_1120, \
  128. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  129. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  130. 74250000, 528, 44, 148, 4, 5, 36, 0, 0, 0, \
  131. V4L2_DV_BT_STD_CEA861, \
  132. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 33) \
  133. }
  134. #define V4L2_DV_BT_CEA_1920X1080P30 { \
  135. .type = V4L2_DV_BT_656_1120, \
  136. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  137. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  138. 74250000, 88, 44, 148, 4, 5, 36, 0, 0, 0, \
  139. V4L2_DV_BT_STD_CEA861, \
  140. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  141. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 34) \
  142. }
  143. #define V4L2_DV_BT_CEA_1920X1080I50 { \
  144. .type = V4L2_DV_BT_656_1120, \
  145. V4L2_INIT_BT_TIMINGS(1920, 1080, 1, \
  146. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  147. 74250000, 528, 44, 148, 2, 5, 15, 2, 5, 16, \
  148. V4L2_DV_BT_STD_CEA861, \
  149. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO | \
  150. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 20) \
  151. }
  152. #define V4L2_DV_BT_CEA_1920X1080P50 { \
  153. .type = V4L2_DV_BT_656_1120, \
  154. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  155. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  156. 148500000, 528, 44, 148, 4, 5, 36, 0, 0, 0, \
  157. V4L2_DV_BT_STD_CEA861, \
  158. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 31) \
  159. }
  160. #define V4L2_DV_BT_CEA_1920X1080I60 { \
  161. .type = V4L2_DV_BT_656_1120, \
  162. V4L2_INIT_BT_TIMINGS(1920, 1080, 1, \
  163. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  164. 74250000, 88, 44, 148, 2, 5, 15, 2, 5, 16, \
  165. V4L2_DV_BT_STD_CEA861, \
  166. V4L2_DV_FL_CAN_REDUCE_FPS | \
  167. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO | \
  168. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 5) \
  169. }
  170. #define V4L2_DV_BT_CEA_1920X1080P60 { \
  171. .type = V4L2_DV_BT_656_1120, \
  172. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  173. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  174. 148500000, 88, 44, 148, 4, 5, 36, 0, 0, 0, \
  175. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, \
  176. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  177. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 16) \
  178. }
  179. #define V4L2_DV_BT_CEA_3840X2160P24 { \
  180. .type = V4L2_DV_BT_656_1120, \
  181. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  182. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  183. 297000000, 1276, 88, 296, 8, 10, 72, 0, 0, 0, \
  184. V4L2_DV_BT_STD_CEA861, \
  185. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  186. V4L2_DV_FL_HAS_CEA861_VIC | V4L2_DV_FL_HAS_HDMI_VIC, \
  187. { 0, 0 }, 93, 3) \
  188. }
  189. #define V4L2_DV_BT_CEA_3840X2160P25 { \
  190. .type = V4L2_DV_BT_656_1120, \
  191. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  192. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  193. 297000000, 1056, 88, 296, 8, 10, 72, 0, 0, 0, \
  194. V4L2_DV_BT_STD_CEA861, \
  195. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC | \
  196. V4L2_DV_FL_HAS_HDMI_VIC, { 0, 0 }, 94, 2) \
  197. }
  198. #define V4L2_DV_BT_CEA_3840X2160P30 { \
  199. .type = V4L2_DV_BT_656_1120, \
  200. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  201. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  202. 297000000, 176, 88, 296, 8, 10, 72, 0, 0, 0, \
  203. V4L2_DV_BT_STD_CEA861, \
  204. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  205. V4L2_DV_FL_HAS_CEA861_VIC | V4L2_DV_FL_HAS_HDMI_VIC, \
  206. { 0, 0 }, 95, 1) \
  207. }
  208. #define V4L2_DV_BT_CEA_3840X2160P50 { \
  209. .type = V4L2_DV_BT_656_1120, \
  210. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  211. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  212. 594000000, 1056, 88, 296, 8, 10, 72, 0, 0, 0, \
  213. V4L2_DV_BT_STD_CEA861, \
  214. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 96) \
  215. }
  216. #define V4L2_DV_BT_CEA_3840X2160P60 { \
  217. .type = V4L2_DV_BT_656_1120, \
  218. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  219. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  220. 594000000, 176, 88, 296, 8, 10, 72, 0, 0, 0, \
  221. V4L2_DV_BT_STD_CEA861, \
  222. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  223. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 97) \
  224. }
  225. #define V4L2_DV_BT_CEA_4096X2160P24 { \
  226. .type = V4L2_DV_BT_656_1120, \
  227. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  228. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  229. 297000000, 1020, 88, 296, 8, 10, 72, 0, 0, 0, \
  230. V4L2_DV_BT_STD_CEA861, \
  231. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  232. V4L2_DV_FL_HAS_CEA861_VIC | V4L2_DV_FL_HAS_HDMI_VIC, \
  233. { 0, 0 }, 98, 4) \
  234. }
  235. #define V4L2_DV_BT_CEA_4096X2160P25 { \
  236. .type = V4L2_DV_BT_656_1120, \
  237. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  238. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  239. 297000000, 968, 88, 128, 8, 10, 72, 0, 0, 0, \
  240. V4L2_DV_BT_STD_CEA861, \
  241. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 99) \
  242. }
  243. #define V4L2_DV_BT_CEA_4096X2160P30 { \
  244. .type = V4L2_DV_BT_656_1120, \
  245. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  246. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  247. 297000000, 88, 88, 128, 8, 10, 72, 0, 0, 0, \
  248. V4L2_DV_BT_STD_CEA861, \
  249. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  250. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 100) \
  251. }
  252. #define V4L2_DV_BT_CEA_4096X2160P50 { \
  253. .type = V4L2_DV_BT_656_1120, \
  254. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  255. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  256. 594000000, 968, 88, 128, 8, 10, 72, 0, 0, 0, \
  257. V4L2_DV_BT_STD_CEA861, \
  258. V4L2_DV_FL_IS_CE_VIDEO | V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 101) \
  259. }
  260. #define V4L2_DV_BT_CEA_4096X2160P60 { \
  261. .type = V4L2_DV_BT_656_1120, \
  262. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  263. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  264. 594000000, 88, 88, 128, 8, 10, 72, 0, 0, 0, \
  265. V4L2_DV_BT_STD_CEA861, \
  266. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO | \
  267. V4L2_DV_FL_HAS_CEA861_VIC, { 0, 0 }, 102) \
  268. }
  269. /* VESA Discrete Monitor Timings as per version 1.0, revision 12 */
  270. #define V4L2_DV_BT_DMT_640X350P85 { \
  271. .type = V4L2_DV_BT_656_1120, \
  272. V4L2_INIT_BT_TIMINGS(640, 350, 0, V4L2_DV_HSYNC_POS_POL, \
  273. 31500000, 32, 64, 96, 32, 3, 60, 0, 0, 0, \
  274. V4L2_DV_BT_STD_DMT, 0) \
  275. }
  276. #define V4L2_DV_BT_DMT_640X400P85 { \
  277. .type = V4L2_DV_BT_656_1120, \
  278. V4L2_INIT_BT_TIMINGS(640, 400, 0, V4L2_DV_VSYNC_POS_POL, \
  279. 31500000, 32, 64, 96, 1, 3, 41, 0, 0, 0, \
  280. V4L2_DV_BT_STD_DMT, 0) \
  281. }
  282. #define V4L2_DV_BT_DMT_720X400P85 { \
  283. .type = V4L2_DV_BT_656_1120, \
  284. V4L2_INIT_BT_TIMINGS(720, 400, 0, V4L2_DV_VSYNC_POS_POL, \
  285. 35500000, 36, 72, 108, 1, 3, 42, 0, 0, 0, \
  286. V4L2_DV_BT_STD_DMT, 0) \
  287. }
  288. /* VGA resolutions */
  289. #define V4L2_DV_BT_DMT_640X480P60 V4L2_DV_BT_CEA_640X480P59_94
  290. #define V4L2_DV_BT_DMT_640X480P72 { \
  291. .type = V4L2_DV_BT_656_1120, \
  292. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  293. 31500000, 24, 40, 128, 9, 3, 28, 0, 0, 0, \
  294. V4L2_DV_BT_STD_DMT, 0) \
  295. }
  296. #define V4L2_DV_BT_DMT_640X480P75 { \
  297. .type = V4L2_DV_BT_656_1120, \
  298. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  299. 31500000, 16, 64, 120, 1, 3, 16, 0, 0, 0, \
  300. V4L2_DV_BT_STD_DMT, 0) \
  301. }
  302. #define V4L2_DV_BT_DMT_640X480P85 { \
  303. .type = V4L2_DV_BT_656_1120, \
  304. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  305. 36000000, 56, 56, 80, 1, 3, 25, 0, 0, 0, \
  306. V4L2_DV_BT_STD_DMT, 0) \
  307. }
  308. /* SVGA resolutions */
  309. #define V4L2_DV_BT_DMT_800X600P56 { \
  310. .type = V4L2_DV_BT_656_1120, \
  311. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  312. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  313. 36000000, 24, 72, 128, 1, 2, 22, 0, 0, 0, \
  314. V4L2_DV_BT_STD_DMT, 0) \
  315. }
  316. #define V4L2_DV_BT_DMT_800X600P60 { \
  317. .type = V4L2_DV_BT_656_1120, \
  318. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  319. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  320. 40000000, 40, 128, 88, 1, 4, 23, 0, 0, 0, \
  321. V4L2_DV_BT_STD_DMT, 0) \
  322. }
  323. #define V4L2_DV_BT_DMT_800X600P72 { \
  324. .type = V4L2_DV_BT_656_1120, \
  325. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  326. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  327. 50000000, 56, 120, 64, 37, 6, 23, 0, 0, 0, \
  328. V4L2_DV_BT_STD_DMT, 0) \
  329. }
  330. #define V4L2_DV_BT_DMT_800X600P75 { \
  331. .type = V4L2_DV_BT_656_1120, \
  332. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  333. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  334. 49500000, 16, 80, 160, 1, 3, 21, 0, 0, 0, \
  335. V4L2_DV_BT_STD_DMT, 0) \
  336. }
  337. #define V4L2_DV_BT_DMT_800X600P85 { \
  338. .type = V4L2_DV_BT_656_1120, \
  339. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  340. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  341. 56250000, 32, 64, 152, 1, 3, 27, 0, 0, 0, \
  342. V4L2_DV_BT_STD_DMT, 0) \
  343. }
  344. #define V4L2_DV_BT_DMT_800X600P120_RB { \
  345. .type = V4L2_DV_BT_656_1120, \
  346. V4L2_INIT_BT_TIMINGS(800, 600, 0, V4L2_DV_HSYNC_POS_POL, \
  347. 73250000, 48, 32, 80, 3, 4, 29, 0, 0, 0, \
  348. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  349. V4L2_DV_FL_REDUCED_BLANKING) \
  350. }
  351. #define V4L2_DV_BT_DMT_848X480P60 { \
  352. .type = V4L2_DV_BT_656_1120, \
  353. V4L2_INIT_BT_TIMINGS(848, 480, 0, \
  354. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  355. 33750000, 16, 112, 112, 6, 8, 23, 0, 0, 0, \
  356. V4L2_DV_BT_STD_DMT, 0) \
  357. }
  358. #define V4L2_DV_BT_DMT_1024X768I43 { \
  359. .type = V4L2_DV_BT_656_1120, \
  360. V4L2_INIT_BT_TIMINGS(1024, 768, 1, \
  361. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  362. 44900000, 8, 176, 56, 0, 4, 20, 0, 4, 21, \
  363. V4L2_DV_BT_STD_DMT, 0) \
  364. }
  365. /* XGA resolutions */
  366. #define V4L2_DV_BT_DMT_1024X768P60 { \
  367. .type = V4L2_DV_BT_656_1120, \
  368. V4L2_INIT_BT_TIMINGS(1024, 768, 0, 0, \
  369. 65000000, 24, 136, 160, 3, 6, 29, 0, 0, 0, \
  370. V4L2_DV_BT_STD_DMT, 0) \
  371. }
  372. #define V4L2_DV_BT_DMT_1024X768P70 { \
  373. .type = V4L2_DV_BT_656_1120, \
  374. V4L2_INIT_BT_TIMINGS(1024, 768, 0, 0, \
  375. 75000000, 24, 136, 144, 3, 6, 29, 0, 0, 0, \
  376. V4L2_DV_BT_STD_DMT, 0) \
  377. }
  378. #define V4L2_DV_BT_DMT_1024X768P75 { \
  379. .type = V4L2_DV_BT_656_1120, \
  380. V4L2_INIT_BT_TIMINGS(1024, 768, 0, \
  381. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  382. 78750000, 16, 96, 176, 1, 3, 28, 0, 0, 0, \
  383. V4L2_DV_BT_STD_DMT, 0) \
  384. }
  385. #define V4L2_DV_BT_DMT_1024X768P85 { \
  386. .type = V4L2_DV_BT_656_1120, \
  387. V4L2_INIT_BT_TIMINGS(1024, 768, 0, \
  388. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  389. 94500000, 48, 96, 208, 1, 3, 36, 0, 0, 0, \
  390. V4L2_DV_BT_STD_DMT, 0) \
  391. }
  392. #define V4L2_DV_BT_DMT_1024X768P120_RB { \
  393. .type = V4L2_DV_BT_656_1120, \
  394. V4L2_INIT_BT_TIMINGS(1024, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  395. 115500000, 48, 32, 80, 3, 4, 38, 0, 0, 0, \
  396. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  397. V4L2_DV_FL_REDUCED_BLANKING) \
  398. }
  399. /* XGA+ resolution */
  400. #define V4L2_DV_BT_DMT_1152X864P75 { \
  401. .type = V4L2_DV_BT_656_1120, \
  402. V4L2_INIT_BT_TIMINGS(1152, 864, 0, \
  403. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  404. 108000000, 64, 128, 256, 1, 3, 32, 0, 0, 0, \
  405. V4L2_DV_BT_STD_DMT, 0) \
  406. }
  407. #define V4L2_DV_BT_DMT_1280X720P60 V4L2_DV_BT_CEA_1280X720P60
  408. /* WXGA resolutions */
  409. #define V4L2_DV_BT_DMT_1280X768P60_RB { \
  410. .type = V4L2_DV_BT_656_1120, \
  411. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  412. 68250000, 48, 32, 80, 3, 7, 12, 0, 0, 0, \
  413. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  414. V4L2_DV_FL_REDUCED_BLANKING) \
  415. }
  416. #define V4L2_DV_BT_DMT_1280X768P60 { \
  417. .type = V4L2_DV_BT_656_1120, \
  418. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  419. 79500000, 64, 128, 192, 3, 7, 20, 0, 0, 0, \
  420. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  421. }
  422. #define V4L2_DV_BT_DMT_1280X768P75 { \
  423. .type = V4L2_DV_BT_656_1120, \
  424. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  425. 102250000, 80, 128, 208, 3, 7, 27, 0, 0, 0, \
  426. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  427. }
  428. #define V4L2_DV_BT_DMT_1280X768P85 { \
  429. .type = V4L2_DV_BT_656_1120, \
  430. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  431. 117500000, 80, 136, 216, 3, 7, 31, 0, 0, 0, \
  432. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  433. }
  434. #define V4L2_DV_BT_DMT_1280X768P120_RB { \
  435. .type = V4L2_DV_BT_656_1120, \
  436. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  437. 140250000, 48, 32, 80, 3, 7, 35, 0, 0, 0, \
  438. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  439. V4L2_DV_FL_REDUCED_BLANKING) \
  440. }
  441. #define V4L2_DV_BT_DMT_1280X800P60_RB { \
  442. .type = V4L2_DV_BT_656_1120, \
  443. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_HSYNC_POS_POL, \
  444. 71000000, 48, 32, 80, 3, 6, 14, 0, 0, 0, \
  445. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  446. V4L2_DV_FL_REDUCED_BLANKING) \
  447. }
  448. #define V4L2_DV_BT_DMT_1280X800P60 { \
  449. .type = V4L2_DV_BT_656_1120, \
  450. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  451. 83500000, 72, 128, 200, 3, 6, 22, 0, 0, 0, \
  452. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  453. }
  454. #define V4L2_DV_BT_DMT_1280X800P75 { \
  455. .type = V4L2_DV_BT_656_1120, \
  456. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  457. 106500000, 80, 128, 208, 3, 6, 29, 0, 0, 0, \
  458. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  459. }
  460. #define V4L2_DV_BT_DMT_1280X800P85 { \
  461. .type = V4L2_DV_BT_656_1120, \
  462. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  463. 122500000, 80, 136, 216, 3, 6, 34, 0, 0, 0, \
  464. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  465. }
  466. #define V4L2_DV_BT_DMT_1280X800P120_RB { \
  467. .type = V4L2_DV_BT_656_1120, \
  468. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_HSYNC_POS_POL, \
  469. 146250000, 48, 32, 80, 3, 6, 38, 0, 0, 0, \
  470. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  471. V4L2_DV_FL_REDUCED_BLANKING) \
  472. }
  473. #define V4L2_DV_BT_DMT_1280X960P60 { \
  474. .type = V4L2_DV_BT_656_1120, \
  475. V4L2_INIT_BT_TIMINGS(1280, 960, 0, \
  476. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  477. 108000000, 96, 112, 312, 1, 3, 36, 0, 0, 0, \
  478. V4L2_DV_BT_STD_DMT, 0) \
  479. }
  480. #define V4L2_DV_BT_DMT_1280X960P85 { \
  481. .type = V4L2_DV_BT_656_1120, \
  482. V4L2_INIT_BT_TIMINGS(1280, 960, 0, \
  483. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  484. 148500000, 64, 160, 224, 1, 3, 47, 0, 0, 0, \
  485. V4L2_DV_BT_STD_DMT, 0) \
  486. }
  487. #define V4L2_DV_BT_DMT_1280X960P120_RB { \
  488. .type = V4L2_DV_BT_656_1120, \
  489. V4L2_INIT_BT_TIMINGS(1280, 960, 0, V4L2_DV_HSYNC_POS_POL, \
  490. 175500000, 48, 32, 80, 3, 4, 50, 0, 0, 0, \
  491. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  492. V4L2_DV_FL_REDUCED_BLANKING) \
  493. }
  494. /* SXGA resolutions */
  495. #define V4L2_DV_BT_DMT_1280X1024P60 { \
  496. .type = V4L2_DV_BT_656_1120, \
  497. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  498. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  499. 108000000, 48, 112, 248, 1, 3, 38, 0, 0, 0, \
  500. V4L2_DV_BT_STD_DMT, 0) \
  501. }
  502. #define V4L2_DV_BT_DMT_1280X1024P75 { \
  503. .type = V4L2_DV_BT_656_1120, \
  504. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  505. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  506. 135000000, 16, 144, 248, 1, 3, 38, 0, 0, 0, \
  507. V4L2_DV_BT_STD_DMT, 0) \
  508. }
  509. #define V4L2_DV_BT_DMT_1280X1024P85 { \
  510. .type = V4L2_DV_BT_656_1120, \
  511. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  512. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  513. 157500000, 64, 160, 224, 1, 3, 44, 0, 0, 0, \
  514. V4L2_DV_BT_STD_DMT, 0) \
  515. }
  516. #define V4L2_DV_BT_DMT_1280X1024P120_RB { \
  517. .type = V4L2_DV_BT_656_1120, \
  518. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, V4L2_DV_HSYNC_POS_POL, \
  519. 187250000, 48, 32, 80, 3, 7, 50, 0, 0, 0, \
  520. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  521. V4L2_DV_FL_REDUCED_BLANKING) \
  522. }
  523. #define V4L2_DV_BT_DMT_1360X768P60 { \
  524. .type = V4L2_DV_BT_656_1120, \
  525. V4L2_INIT_BT_TIMINGS(1360, 768, 0, \
  526. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  527. 85500000, 64, 112, 256, 3, 6, 18, 0, 0, 0, \
  528. V4L2_DV_BT_STD_DMT, 0) \
  529. }
  530. #define V4L2_DV_BT_DMT_1360X768P120_RB { \
  531. .type = V4L2_DV_BT_656_1120, \
  532. V4L2_INIT_BT_TIMINGS(1360, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  533. 148250000, 48, 32, 80, 3, 5, 37, 0, 0, 0, \
  534. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  535. V4L2_DV_FL_REDUCED_BLANKING) \
  536. }
  537. #define V4L2_DV_BT_DMT_1366X768P60 { \
  538. .type = V4L2_DV_BT_656_1120, \
  539. V4L2_INIT_BT_TIMINGS(1366, 768, 0, \
  540. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  541. 85500000, 70, 143, 213, 3, 3, 24, 0, 0, 0, \
  542. V4L2_DV_BT_STD_DMT, 0) \
  543. }
  544. #define V4L2_DV_BT_DMT_1366X768P60_RB { \
  545. .type = V4L2_DV_BT_656_1120, \
  546. V4L2_INIT_BT_TIMINGS(1366, 768, 0, \
  547. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  548. 72000000, 14, 56, 64, 1, 3, 28, 0, 0, 0, \
  549. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  550. }
  551. /* SXGA+ resolutions */
  552. #define V4L2_DV_BT_DMT_1400X1050P60_RB { \
  553. .type = V4L2_DV_BT_656_1120, \
  554. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  555. 101000000, 48, 32, 80, 3, 4, 23, 0, 0, 0, \
  556. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  557. V4L2_DV_FL_REDUCED_BLANKING) \
  558. }
  559. #define V4L2_DV_BT_DMT_1400X1050P60 { \
  560. .type = V4L2_DV_BT_656_1120, \
  561. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  562. 121750000, 88, 144, 232, 3, 4, 32, 0, 0, 0, \
  563. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  564. }
  565. #define V4L2_DV_BT_DMT_1400X1050P75 { \
  566. .type = V4L2_DV_BT_656_1120, \
  567. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  568. 156000000, 104, 144, 248, 3, 4, 42, 0, 0, 0, \
  569. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  570. }
  571. #define V4L2_DV_BT_DMT_1400X1050P85 { \
  572. .type = V4L2_DV_BT_656_1120, \
  573. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  574. 179500000, 104, 152, 256, 3, 4, 48, 0, 0, 0, \
  575. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  576. }
  577. #define V4L2_DV_BT_DMT_1400X1050P120_RB { \
  578. .type = V4L2_DV_BT_656_1120, \
  579. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  580. 208000000, 48, 32, 80, 3, 4, 55, 0, 0, 0, \
  581. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  582. V4L2_DV_FL_REDUCED_BLANKING) \
  583. }
  584. /* WXGA+ resolutions */
  585. #define V4L2_DV_BT_DMT_1440X900P60_RB { \
  586. .type = V4L2_DV_BT_656_1120, \
  587. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_HSYNC_POS_POL, \
  588. 88750000, 48, 32, 80, 3, 6, 17, 0, 0, 0, \
  589. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  590. V4L2_DV_FL_REDUCED_BLANKING) \
  591. }
  592. #define V4L2_DV_BT_DMT_1440X900P60 { \
  593. .type = V4L2_DV_BT_656_1120, \
  594. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  595. 106500000, 80, 152, 232, 3, 6, 25, 0, 0, 0, \
  596. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  597. }
  598. #define V4L2_DV_BT_DMT_1440X900P75 { \
  599. .type = V4L2_DV_BT_656_1120, \
  600. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  601. 136750000, 96, 152, 248, 3, 6, 33, 0, 0, 0, \
  602. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  603. }
  604. #define V4L2_DV_BT_DMT_1440X900P85 { \
  605. .type = V4L2_DV_BT_656_1120, \
  606. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  607. 157000000, 104, 152, 256, 3, 6, 39, 0, 0, 0, \
  608. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  609. }
  610. #define V4L2_DV_BT_DMT_1440X900P120_RB { \
  611. .type = V4L2_DV_BT_656_1120, \
  612. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_HSYNC_POS_POL, \
  613. 182750000, 48, 32, 80, 3, 6, 44, 0, 0, 0, \
  614. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  615. V4L2_DV_FL_REDUCED_BLANKING) \
  616. }
  617. #define V4L2_DV_BT_DMT_1600X900P60_RB { \
  618. .type = V4L2_DV_BT_656_1120, \
  619. V4L2_INIT_BT_TIMINGS(1600, 900, 0, \
  620. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  621. 108000000, 24, 80, 96, 1, 3, 96, 0, 0, 0, \
  622. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  623. }
  624. /* UXGA resolutions */
  625. #define V4L2_DV_BT_DMT_1600X1200P60 { \
  626. .type = V4L2_DV_BT_656_1120, \
  627. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  628. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  629. 162000000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  630. V4L2_DV_BT_STD_DMT, 0) \
  631. }
  632. #define V4L2_DV_BT_DMT_1600X1200P65 { \
  633. .type = V4L2_DV_BT_656_1120, \
  634. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  635. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  636. 175500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  637. V4L2_DV_BT_STD_DMT, 0) \
  638. }
  639. #define V4L2_DV_BT_DMT_1600X1200P70 { \
  640. .type = V4L2_DV_BT_656_1120, \
  641. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  642. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  643. 189000000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  644. V4L2_DV_BT_STD_DMT, 0) \
  645. }
  646. #define V4L2_DV_BT_DMT_1600X1200P75 { \
  647. .type = V4L2_DV_BT_656_1120, \
  648. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  649. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  650. 202500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  651. V4L2_DV_BT_STD_DMT, 0) \
  652. }
  653. #define V4L2_DV_BT_DMT_1600X1200P85 { \
  654. .type = V4L2_DV_BT_656_1120, \
  655. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  656. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  657. 229500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  658. V4L2_DV_BT_STD_DMT, 0) \
  659. }
  660. #define V4L2_DV_BT_DMT_1600X1200P120_RB { \
  661. .type = V4L2_DV_BT_656_1120, \
  662. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  663. 268250000, 48, 32, 80, 3, 4, 64, 0, 0, 0, \
  664. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  665. V4L2_DV_FL_REDUCED_BLANKING) \
  666. }
  667. /* WSXGA+ resolutions */
  668. #define V4L2_DV_BT_DMT_1680X1050P60_RB { \
  669. .type = V4L2_DV_BT_656_1120, \
  670. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  671. 119000000, 48, 32, 80, 3, 6, 21, 0, 0, 0, \
  672. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  673. V4L2_DV_FL_REDUCED_BLANKING) \
  674. }
  675. #define V4L2_DV_BT_DMT_1680X1050P60 { \
  676. .type = V4L2_DV_BT_656_1120, \
  677. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  678. 146250000, 104, 176, 280, 3, 6, 30, 0, 0, 0, \
  679. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  680. }
  681. #define V4L2_DV_BT_DMT_1680X1050P75 { \
  682. .type = V4L2_DV_BT_656_1120, \
  683. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  684. 187000000, 120, 176, 296, 3, 6, 40, 0, 0, 0, \
  685. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  686. }
  687. #define V4L2_DV_BT_DMT_1680X1050P85 { \
  688. .type = V4L2_DV_BT_656_1120, \
  689. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  690. 214750000, 128, 176, 304, 3, 6, 46, 0, 0, 0, \
  691. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  692. }
  693. #define V4L2_DV_BT_DMT_1680X1050P120_RB { \
  694. .type = V4L2_DV_BT_656_1120, \
  695. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  696. 245500000, 48, 32, 80, 3, 6, 53, 0, 0, 0, \
  697. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  698. V4L2_DV_FL_REDUCED_BLANKING) \
  699. }
  700. #define V4L2_DV_BT_DMT_1792X1344P60 { \
  701. .type = V4L2_DV_BT_656_1120, \
  702. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_VSYNC_POS_POL, \
  703. 204750000, 128, 200, 328, 1, 3, 46, 0, 0, 0, \
  704. V4L2_DV_BT_STD_DMT, 0) \
  705. }
  706. #define V4L2_DV_BT_DMT_1792X1344P75 { \
  707. .type = V4L2_DV_BT_656_1120, \
  708. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_VSYNC_POS_POL, \
  709. 261000000, 96, 216, 352, 1, 3, 69, 0, 0, 0, \
  710. V4L2_DV_BT_STD_DMT, 0) \
  711. }
  712. #define V4L2_DV_BT_DMT_1792X1344P120_RB { \
  713. .type = V4L2_DV_BT_656_1120, \
  714. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_HSYNC_POS_POL, \
  715. 333250000, 48, 32, 80, 3, 4, 72, 0, 0, 0, \
  716. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  717. V4L2_DV_FL_REDUCED_BLANKING) \
  718. }
  719. #define V4L2_DV_BT_DMT_1856X1392P60 { \
  720. .type = V4L2_DV_BT_656_1120, \
  721. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_VSYNC_POS_POL, \
  722. 218250000, 96, 224, 352, 1, 3, 43, 0, 0, 0, \
  723. V4L2_DV_BT_STD_DMT, 0) \
  724. }
  725. #define V4L2_DV_BT_DMT_1856X1392P75 { \
  726. .type = V4L2_DV_BT_656_1120, \
  727. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_VSYNC_POS_POL, \
  728. 288000000, 128, 224, 352, 1, 3, 104, 0, 0, 0, \
  729. V4L2_DV_BT_STD_DMT, 0) \
  730. }
  731. #define V4L2_DV_BT_DMT_1856X1392P120_RB { \
  732. .type = V4L2_DV_BT_656_1120, \
  733. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_HSYNC_POS_POL, \
  734. 356500000, 48, 32, 80, 3, 4, 75, 0, 0, 0, \
  735. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  736. V4L2_DV_FL_REDUCED_BLANKING) \
  737. }
  738. #define V4L2_DV_BT_DMT_1920X1080P60 V4L2_DV_BT_CEA_1920X1080P60
  739. /* WUXGA resolutions */
  740. #define V4L2_DV_BT_DMT_1920X1200P60_RB { \
  741. .type = V4L2_DV_BT_656_1120, \
  742. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  743. 154000000, 48, 32, 80, 3, 6, 26, 0, 0, 0, \
  744. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  745. V4L2_DV_FL_REDUCED_BLANKING) \
  746. }
  747. #define V4L2_DV_BT_DMT_1920X1200P60 { \
  748. .type = V4L2_DV_BT_656_1120, \
  749. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  750. 193250000, 136, 200, 336, 3, 6, 36, 0, 0, 0, \
  751. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  752. }
  753. #define V4L2_DV_BT_DMT_1920X1200P75 { \
  754. .type = V4L2_DV_BT_656_1120, \
  755. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  756. 245250000, 136, 208, 344, 3, 6, 46, 0, 0, 0, \
  757. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  758. }
  759. #define V4L2_DV_BT_DMT_1920X1200P85 { \
  760. .type = V4L2_DV_BT_656_1120, \
  761. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  762. 281250000, 144, 208, 352, 3, 6, 53, 0, 0, 0, \
  763. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  764. }
  765. #define V4L2_DV_BT_DMT_1920X1200P120_RB { \
  766. .type = V4L2_DV_BT_656_1120, \
  767. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  768. 317000000, 48, 32, 80, 3, 6, 62, 0, 0, 0, \
  769. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  770. V4L2_DV_FL_REDUCED_BLANKING) \
  771. }
  772. #define V4L2_DV_BT_DMT_1920X1440P60 { \
  773. .type = V4L2_DV_BT_656_1120, \
  774. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_VSYNC_POS_POL, \
  775. 234000000, 128, 208, 344, 1, 3, 56, 0, 0, 0, \
  776. V4L2_DV_BT_STD_DMT, 0) \
  777. }
  778. #define V4L2_DV_BT_DMT_1920X1440P75 { \
  779. .type = V4L2_DV_BT_656_1120, \
  780. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_VSYNC_POS_POL, \
  781. 297000000, 144, 224, 352, 1, 3, 56, 0, 0, 0, \
  782. V4L2_DV_BT_STD_DMT, 0) \
  783. }
  784. #define V4L2_DV_BT_DMT_1920X1440P120_RB { \
  785. .type = V4L2_DV_BT_656_1120, \
  786. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_HSYNC_POS_POL, \
  787. 380500000, 48, 32, 80, 3, 4, 78, 0, 0, 0, \
  788. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  789. V4L2_DV_FL_REDUCED_BLANKING) \
  790. }
  791. #define V4L2_DV_BT_DMT_2048X1152P60_RB { \
  792. .type = V4L2_DV_BT_656_1120, \
  793. V4L2_INIT_BT_TIMINGS(2048, 1152, 0, \
  794. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  795. 162000000, 26, 80, 96, 1, 3, 44, 0, 0, 0, \
  796. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  797. }
  798. /* WQXGA resolutions */
  799. #define V4L2_DV_BT_DMT_2560X1600P60_RB { \
  800. .type = V4L2_DV_BT_656_1120, \
  801. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_HSYNC_POS_POL, \
  802. 268500000, 48, 32, 80, 3, 6, 37, 0, 0, 0, \
  803. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  804. V4L2_DV_FL_REDUCED_BLANKING) \
  805. }
  806. #define V4L2_DV_BT_DMT_2560X1600P60 { \
  807. .type = V4L2_DV_BT_656_1120, \
  808. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  809. 348500000, 192, 280, 472, 3, 6, 49, 0, 0, 0, \
  810. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  811. }
  812. #define V4L2_DV_BT_DMT_2560X1600P75 { \
  813. .type = V4L2_DV_BT_656_1120, \
  814. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  815. 443250000, 208, 280, 488, 3, 6, 63, 0, 0, 0, \
  816. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  817. }
  818. #define V4L2_DV_BT_DMT_2560X1600P85 { \
  819. .type = V4L2_DV_BT_656_1120, \
  820. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  821. 505250000, 208, 280, 488, 3, 6, 73, 0, 0, 0, \
  822. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  823. }
  824. #define V4L2_DV_BT_DMT_2560X1600P120_RB { \
  825. .type = V4L2_DV_BT_656_1120, \
  826. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_HSYNC_POS_POL, \
  827. 552750000, 48, 32, 80, 3, 6, 85, 0, 0, 0, \
  828. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  829. V4L2_DV_FL_REDUCED_BLANKING) \
  830. }
  831. /* 4K resolutions */
  832. #define V4L2_DV_BT_DMT_4096X2160P60_RB { \
  833. .type = V4L2_DV_BT_656_1120, \
  834. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, V4L2_DV_HSYNC_POS_POL, \
  835. 556744000, 8, 32, 40, 48, 8, 6, 0, 0, 0, \
  836. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  837. V4L2_DV_FL_REDUCED_BLANKING) \
  838. }
  839. #define V4L2_DV_BT_DMT_4096X2160P59_94_RB { \
  840. .type = V4L2_DV_BT_656_1120, \
  841. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, V4L2_DV_HSYNC_POS_POL, \
  842. 556188000, 8, 32, 40, 48, 8, 6, 0, 0, 0, \
  843. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  844. V4L2_DV_FL_REDUCED_BLANKING) \
  845. }
  846. /* SDI timings definitions */
  847. /* SMPTE-125M */
  848. #define V4L2_DV_BT_SDI_720X487I60 { \
  849. .type = V4L2_DV_BT_656_1120, \
  850. V4L2_INIT_BT_TIMINGS(720, 487, 1, \
  851. V4L2_DV_HSYNC_POS_POL, \
  852. 13500000, 16, 121, 0, 0, 19, 0, 0, 19, 0, \
  853. V4L2_DV_BT_STD_SDI, \
  854. V4L2_DV_FL_FIRST_FIELD_EXTRA_LINE) \
  855. }
  856. #endif