omap-panel-data.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*
  2. * Header containing platform_data structs for omap panels
  3. *
  4. * Copyright (C) 2013 Texas Instruments
  5. * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
  6. * Archit Taneja <archit@ti.com>
  7. *
  8. * Copyright (C) 2011 Texas Instruments
  9. * Author: Mayuresh Janorkar <mayur@ti.com>
  10. *
  11. * Copyright (C) 2010 Canonical Ltd.
  12. * Author: Bryan Wu <bryan.wu@canonical.com>
  13. *
  14. * This program is free software; you can redistribute it and/or modify it
  15. * under the terms of the GNU General Public License version 2 as published by
  16. * the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful, but WITHOUT
  19. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  20. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  21. * more details.
  22. *
  23. * You should have received a copy of the GNU General Public License along with
  24. * this program. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. #ifndef __OMAP_PANEL_DATA_H
  27. #define __OMAP_PANEL_DATA_H
  28. #include <video/omapdss.h>
  29. #include <video/display_timing.h>
  30. struct omap_dss_device;
  31. /**
  32. * encoder_tfp410 platform data
  33. * @name: name for this display entity
  34. * @power_down_gpio: gpio number for PD pin (or -1 if not available)
  35. * @data_lines: number of DPI datalines
  36. */
  37. struct encoder_tfp410_platform_data {
  38. const char *name;
  39. const char *source;
  40. int power_down_gpio;
  41. int data_lines;
  42. };
  43. /**
  44. * encoder_tpd12s015 platform data
  45. * @name: name for this display entity
  46. * @ct_cp_hpd_gpio: CT_CP_HPD gpio number
  47. * @ls_oe_gpio: LS_OE gpio number
  48. * @hpd_gpio: HPD gpio number
  49. */
  50. struct encoder_tpd12s015_platform_data {
  51. const char *name;
  52. const char *source;
  53. int ct_cp_hpd_gpio;
  54. int ls_oe_gpio;
  55. int hpd_gpio;
  56. };
  57. /**
  58. * connector_dvi platform data
  59. * @name: name for this display entity
  60. * @source: name of the display entity used as a video source
  61. * @i2c_bus_num: i2c bus number to be used for reading EDID
  62. */
  63. struct connector_dvi_platform_data {
  64. const char *name;
  65. const char *source;
  66. int i2c_bus_num;
  67. };
  68. /**
  69. * connector_hdmi platform data
  70. * @name: name for this display entity
  71. * @source: name of the display entity used as a video source
  72. */
  73. struct connector_hdmi_platform_data {
  74. const char *name;
  75. const char *source;
  76. };
  77. /**
  78. * connector_atv platform data
  79. * @name: name for this display entity
  80. * @source: name of the display entity used as a video source
  81. * @connector_type: composite/svideo
  82. * @invert_polarity: invert signal polarity
  83. */
  84. struct connector_atv_platform_data {
  85. const char *name;
  86. const char *source;
  87. enum omap_dss_venc_type connector_type;
  88. bool invert_polarity;
  89. };
  90. /**
  91. * panel_dpi platform data
  92. * @name: name for this display entity
  93. * @source: name of the display entity used as a video source
  94. * @data_lines: number of DPI datalines
  95. * @display_timing: timings for this panel
  96. * @backlight_gpio: gpio to enable/disable the backlight (or -1)
  97. * @enable_gpio: gpio to enable/disable the panel (or -1)
  98. */
  99. struct panel_dpi_platform_data {
  100. const char *name;
  101. const char *source;
  102. int data_lines;
  103. const struct display_timing *display_timing;
  104. int backlight_gpio;
  105. int enable_gpio;
  106. };
  107. /**
  108. * panel_dsicm platform data
  109. * @name: name for this display entity
  110. * @source: name of the display entity used as a video source
  111. * @reset_gpio: gpio to reset the panel (or -1)
  112. * @use_ext_te: use external TE GPIO
  113. * @ext_te_gpio: external TE GPIO
  114. * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)
  115. * @use_dsi_backlight: true if panel uses DSI command to control backlight
  116. * @pin_config: DSI pin configuration
  117. */
  118. struct panel_dsicm_platform_data {
  119. const char *name;
  120. const char *source;
  121. int reset_gpio;
  122. bool use_ext_te;
  123. int ext_te_gpio;
  124. unsigned ulps_timeout;
  125. bool use_dsi_backlight;
  126. struct omap_dsi_pin_config pin_config;
  127. };
  128. /**
  129. * panel_acx565akm platform data
  130. * @name: name for this display entity
  131. * @source: name of the display entity used as a video source
  132. * @reset_gpio: gpio to reset the panel (or -1)
  133. * @datapairs: number of SDI datapairs
  134. */
  135. struct panel_acx565akm_platform_data {
  136. const char *name;
  137. const char *source;
  138. int reset_gpio;
  139. int datapairs;
  140. };
  141. /**
  142. * panel_lb035q02 platform data
  143. * @name: name for this display entity
  144. * @source: name of the display entity used as a video source
  145. * @data_lines: number of DPI datalines
  146. * @backlight_gpio: gpio to enable/disable the backlight (or -1)
  147. * @enable_gpio: gpio to enable/disable the panel (or -1)
  148. */
  149. struct panel_lb035q02_platform_data {
  150. const char *name;
  151. const char *source;
  152. int data_lines;
  153. int backlight_gpio;
  154. int enable_gpio;
  155. };
  156. /**
  157. * panel_sharp_ls037v7dw01 platform data
  158. * @name: name for this display entity
  159. * @source: name of the display entity used as a video source
  160. * @data_lines: number of DPI datalines
  161. * @resb_gpio: reset signal GPIO
  162. * @ini_gpio: power on control GPIO
  163. * @mo_gpio: selection for resolution(VGA/QVGA) GPIO
  164. * @lr_gpio: selection for horizontal scanning direction GPIO
  165. * @ud_gpio: selection for vertical scanning direction GPIO
  166. */
  167. struct panel_sharp_ls037v7dw01_platform_data {
  168. const char *name;
  169. const char *source;
  170. int data_lines;
  171. int resb_gpio;
  172. int ini_gpio;
  173. int mo_gpio;
  174. int lr_gpio;
  175. int ud_gpio;
  176. };
  177. /**
  178. * panel-tpo-td043mtea1 platform data
  179. * @name: name for this display entity
  180. * @source: name of the display entity used as a video source
  181. * @data_lines: number of DPI datalines
  182. * @nreset_gpio: reset signal
  183. */
  184. struct panel_tpo_td043mtea1_platform_data {
  185. const char *name;
  186. const char *source;
  187. int data_lines;
  188. int nreset_gpio;
  189. };
  190. /**
  191. * panel-nec-nl8048hl11 platform data
  192. * @name: name for this display entity
  193. * @source: name of the display entity used as a video source
  194. * @data_lines: number of DPI datalines
  195. * @res_gpio: reset signal
  196. * @qvga_gpio: selection for resolution(QVGA/WVGA)
  197. */
  198. struct panel_nec_nl8048hl11_platform_data {
  199. const char *name;
  200. const char *source;
  201. int data_lines;
  202. int res_gpio;
  203. int qvga_gpio;
  204. };
  205. /**
  206. * panel-tpo-td028ttec1 platform data
  207. * @name: name for display entity
  208. * @source: name of the display entity used as a video source
  209. * @data_lines: number of DPI datalines
  210. */
  211. struct panel_tpo_td028ttec1_platform_data {
  212. const char *name;
  213. const char *source;
  214. int data_lines;
  215. };
  216. #endif /* __OMAP_PANEL_DATA_H */