touchscreen_dmi.c 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Touchscreen driver DMI based configuration code
  4. *
  5. * Copyright (c) 2017 Red Hat Inc.
  6. *
  7. * Red Hat authors:
  8. * Hans de Goede <hdegoede@redhat.com>
  9. */
  10. #include <linux/acpi.h>
  11. #include <linux/device.h>
  12. #include <linux/dmi.h>
  13. #include <linux/efi_embedded_fw.h>
  14. #include <linux/i2c.h>
  15. #include <linux/notifier.h>
  16. #include <linux/property.h>
  17. #include <linux/string.h>
  18. struct ts_dmi_data {
  19. /* The EFI embedded-fw code expects this to be the first member! */
  20. struct efi_embedded_fw_desc embedded_fw;
  21. const char *acpi_name;
  22. const struct property_entry *properties;
  23. };
  24. /* NOTE: Please keep all entries sorted alphabetically */
  25. static const struct property_entry chuwi_hi8_props[] = {
  26. PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
  27. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  28. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  29. PROPERTY_ENTRY_BOOL("silead,home-button"),
  30. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
  31. { }
  32. };
  33. static const struct ts_dmi_data chuwi_hi8_data = {
  34. .acpi_name = "MSSL0001:00",
  35. .properties = chuwi_hi8_props,
  36. };
  37. static const struct property_entry chuwi_hi8_air_props[] = {
  38. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  39. PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
  40. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  41. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"),
  42. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  43. { }
  44. };
  45. static const struct ts_dmi_data chuwi_hi8_air_data = {
  46. .acpi_name = "MSSL1680:00",
  47. .properties = chuwi_hi8_air_props,
  48. };
  49. static const struct property_entry chuwi_hi8_pro_props[] = {
  50. PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
  51. PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
  52. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  53. PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
  54. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  55. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
  56. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  57. PROPERTY_ENTRY_BOOL("silead,home-button"),
  58. { }
  59. };
  60. static const struct ts_dmi_data chuwi_hi8_pro_data = {
  61. .embedded_fw = {
  62. .name = "silead/gsl3680-chuwi-hi8-pro.fw",
  63. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  64. .length = 39864,
  65. .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
  66. 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95,
  67. 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92,
  68. 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff },
  69. },
  70. .acpi_name = "MSSL1680:00",
  71. .properties = chuwi_hi8_pro_props,
  72. };
  73. static const struct property_entry chuwi_hi10_air_props[] = {
  74. PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
  75. PROPERTY_ENTRY_U32("touchscreen-size-y", 1271),
  76. PROPERTY_ENTRY_U32("touchscreen-min-x", 99),
  77. PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
  78. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  79. PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5),
  80. PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4),
  81. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"),
  82. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  83. PROPERTY_ENTRY_BOOL("silead,home-button"),
  84. { }
  85. };
  86. static const struct ts_dmi_data chuwi_hi10_air_data = {
  87. .acpi_name = "MSSL1680:00",
  88. .properties = chuwi_hi10_air_props,
  89. };
  90. static const struct property_entry chuwi_hi10_plus_props[] = {
  91. PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
  92. PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
  93. PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
  94. PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
  95. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
  96. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  97. PROPERTY_ENTRY_BOOL("silead,home-button"),
  98. { }
  99. };
  100. static const struct ts_dmi_data chuwi_hi10_plus_data = {
  101. .embedded_fw = {
  102. .name = "silead/gsl1680-chuwi-hi10plus.fw",
  103. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  104. .length = 34056,
  105. .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
  106. 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
  107. 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
  108. 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
  109. },
  110. .acpi_name = "MSSL0017:00",
  111. .properties = chuwi_hi10_plus_props,
  112. };
  113. static const struct property_entry chuwi_hi10_pro_props[] = {
  114. PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
  115. PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
  116. PROPERTY_ENTRY_U32("touchscreen-size-x", 1912),
  117. PROPERTY_ENTRY_U32("touchscreen-size-y", 1272),
  118. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  119. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
  120. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  121. PROPERTY_ENTRY_BOOL("silead,home-button"),
  122. { }
  123. };
  124. static const struct ts_dmi_data chuwi_hi10_pro_data = {
  125. .embedded_fw = {
  126. .name = "silead/gsl1680-chuwi-hi10-pro.fw",
  127. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  128. .length = 42504,
  129. .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
  130. 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
  131. 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
  132. 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
  133. },
  134. .acpi_name = "MSSL1680:00",
  135. .properties = chuwi_hi10_pro_props,
  136. };
  137. static const struct property_entry chuwi_hibook_props[] = {
  138. PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
  139. PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
  140. PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
  141. PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
  142. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  143. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  144. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
  145. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  146. PROPERTY_ENTRY_BOOL("silead,home-button"),
  147. { }
  148. };
  149. static const struct ts_dmi_data chuwi_hibook_data = {
  150. .embedded_fw = {
  151. .name = "silead/gsl1680-chuwi-hibook.fw",
  152. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  153. .length = 40392,
  154. .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
  155. 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
  156. 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
  157. 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
  158. },
  159. .acpi_name = "MSSL0017:00",
  160. .properties = chuwi_hibook_props,
  161. };
  162. static const struct property_entry chuwi_vi8_props[] = {
  163. PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
  164. PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
  165. PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
  166. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  167. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  168. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
  169. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  170. PROPERTY_ENTRY_BOOL("silead,home-button"),
  171. { }
  172. };
  173. static const struct ts_dmi_data chuwi_vi8_data = {
  174. .acpi_name = "MSSL1680:00",
  175. .properties = chuwi_vi8_props,
  176. };
  177. static const struct ts_dmi_data chuwi_vi8_plus_data = {
  178. .embedded_fw = {
  179. .name = "chipone/icn8505-HAMP0002.fw",
  180. .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
  181. .length = 35012,
  182. .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
  183. 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
  184. 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
  185. 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
  186. },
  187. };
  188. static const struct property_entry chuwi_vi10_props[] = {
  189. PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
  190. PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
  191. PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
  192. PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
  193. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
  194. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  195. PROPERTY_ENTRY_BOOL("silead,home-button"),
  196. { }
  197. };
  198. static const struct ts_dmi_data chuwi_vi10_data = {
  199. .acpi_name = "MSSL0002:00",
  200. .properties = chuwi_vi10_props,
  201. };
  202. static const struct property_entry chuwi_surbook_mini_props[] = {
  203. PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
  204. PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
  205. PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
  206. PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
  207. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
  208. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  209. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  210. { }
  211. };
  212. static const struct ts_dmi_data chuwi_surbook_mini_data = {
  213. .acpi_name = "MSSL1680:00",
  214. .properties = chuwi_surbook_mini_props,
  215. };
  216. static const struct property_entry connect_tablet9_props[] = {
  217. PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
  218. PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
  219. PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
  220. PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
  221. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  222. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  223. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
  224. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  225. { }
  226. };
  227. static const struct ts_dmi_data connect_tablet9_data = {
  228. .acpi_name = "MSSL1680:00",
  229. .properties = connect_tablet9_props,
  230. };
  231. static const struct property_entry cube_iwork8_air_props[] = {
  232. PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
  233. PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
  234. PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
  235. PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
  236. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  237. PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
  238. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  239. { }
  240. };
  241. static const struct ts_dmi_data cube_iwork8_air_data = {
  242. .embedded_fw = {
  243. .name = "silead/gsl3670-cube-iwork8-air.fw",
  244. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  245. .length = 38808,
  246. .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
  247. 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
  248. 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
  249. 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
  250. },
  251. .acpi_name = "MSSL1680:00",
  252. .properties = cube_iwork8_air_props,
  253. };
  254. static const struct property_entry cube_knote_i1101_props[] = {
  255. PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
  256. PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
  257. PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
  258. PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
  259. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
  260. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  261. PROPERTY_ENTRY_BOOL("silead,home-button"),
  262. { }
  263. };
  264. static const struct ts_dmi_data cube_knote_i1101_data = {
  265. .acpi_name = "MSSL1680:00",
  266. .properties = cube_knote_i1101_props,
  267. };
  268. static const struct property_entry dexp_ursus_7w_props[] = {
  269. PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
  270. PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
  271. PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
  272. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  273. PROPERTY_ENTRY_BOOL("silead,home-button"),
  274. { }
  275. };
  276. static const struct ts_dmi_data dexp_ursus_7w_data = {
  277. .acpi_name = "MSSL1680:00",
  278. .properties = dexp_ursus_7w_props,
  279. };
  280. static const struct property_entry digma_citi_e200_props[] = {
  281. PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
  282. PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
  283. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  284. PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
  285. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  286. PROPERTY_ENTRY_BOOL("silead,home-button"),
  287. { }
  288. };
  289. static const struct ts_dmi_data digma_citi_e200_data = {
  290. .acpi_name = "MSSL1680:00",
  291. .properties = digma_citi_e200_props,
  292. };
  293. static const struct property_entry estar_beauty_hd_props[] = {
  294. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  295. { }
  296. };
  297. static const struct ts_dmi_data estar_beauty_hd_data = {
  298. .acpi_name = "GDIX1001:00",
  299. .properties = estar_beauty_hd_props,
  300. };
  301. /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
  302. static const struct property_entry gdix1001_upside_down_props[] = {
  303. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  304. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  305. { }
  306. };
  307. static const struct ts_dmi_data gdix1001_00_upside_down_data = {
  308. .acpi_name = "GDIX1001:00",
  309. .properties = gdix1001_upside_down_props,
  310. };
  311. static const struct ts_dmi_data gdix1001_01_upside_down_data = {
  312. .acpi_name = "GDIX1001:01",
  313. .properties = gdix1001_upside_down_props,
  314. };
  315. static const struct property_entry glavey_tm800a550l_props[] = {
  316. PROPERTY_ENTRY_STRING("firmware-name", "gt912-glavey-tm800a550l.fw"),
  317. PROPERTY_ENTRY_STRING("goodix,config-name", "gt912-glavey-tm800a550l.cfg"),
  318. PROPERTY_ENTRY_U32("goodix,main-clk", 54),
  319. { }
  320. };
  321. static const struct ts_dmi_data glavey_tm800a550l_data = {
  322. .acpi_name = "GDIX1001:00",
  323. .properties = glavey_tm800a550l_props,
  324. };
  325. static const struct property_entry gp_electronic_t701_props[] = {
  326. PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
  327. PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
  328. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  329. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  330. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
  331. { }
  332. };
  333. static const struct ts_dmi_data gp_electronic_t701_data = {
  334. .acpi_name = "MSSL1680:00",
  335. .properties = gp_electronic_t701_props,
  336. };
  337. static const struct property_entry irbis_tw90_props[] = {
  338. PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
  339. PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
  340. PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
  341. PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
  342. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  343. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  344. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
  345. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  346. PROPERTY_ENTRY_BOOL("silead,home-button"),
  347. { }
  348. };
  349. static const struct ts_dmi_data irbis_tw90_data = {
  350. .acpi_name = "MSSL1680:00",
  351. .properties = irbis_tw90_props,
  352. };
  353. static const struct property_entry irbis_tw118_props[] = {
  354. PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
  355. PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
  356. PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
  357. PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
  358. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
  359. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  360. { }
  361. };
  362. static const struct ts_dmi_data irbis_tw118_data = {
  363. .acpi_name = "MSSL1680:00",
  364. .properties = irbis_tw118_props,
  365. };
  366. static const struct property_entry itworks_tw891_props[] = {
  367. PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
  368. PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
  369. PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
  370. PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
  371. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  372. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  373. PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
  374. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  375. { }
  376. };
  377. static const struct ts_dmi_data itworks_tw891_data = {
  378. .acpi_name = "MSSL1680:00",
  379. .properties = itworks_tw891_props,
  380. };
  381. static const struct property_entry jumper_ezpad_6_pro_props[] = {
  382. PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
  383. PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
  384. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
  385. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  386. PROPERTY_ENTRY_BOOL("silead,home-button"),
  387. { }
  388. };
  389. static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
  390. .acpi_name = "MSSL1680:00",
  391. .properties = jumper_ezpad_6_pro_props,
  392. };
  393. static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
  394. PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
  395. PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
  396. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
  397. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  398. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  399. PROPERTY_ENTRY_BOOL("silead,home-button"),
  400. { }
  401. };
  402. static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
  403. .acpi_name = "MSSL1680:00",
  404. .properties = jumper_ezpad_6_pro_b_props,
  405. };
  406. static const struct property_entry jumper_ezpad_6_m4_props[] = {
  407. PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
  408. PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
  409. PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
  410. PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
  411. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
  412. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  413. PROPERTY_ENTRY_BOOL("silead,home-button"),
  414. { }
  415. };
  416. static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
  417. .acpi_name = "MSSL1680:00",
  418. .properties = jumper_ezpad_6_m4_props,
  419. };
  420. static const struct property_entry jumper_ezpad_mini3_props[] = {
  421. PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
  422. PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
  423. PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
  424. PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
  425. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  426. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
  427. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  428. { }
  429. };
  430. static const struct ts_dmi_data jumper_ezpad_mini3_data = {
  431. .acpi_name = "MSSL1680:00",
  432. .properties = jumper_ezpad_mini3_props,
  433. };
  434. static const struct property_entry mpman_converter9_props[] = {
  435. PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
  436. PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
  437. PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
  438. PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
  439. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  440. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  441. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
  442. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  443. { }
  444. };
  445. static const struct ts_dmi_data mpman_converter9_data = {
  446. .acpi_name = "MSSL1680:00",
  447. .properties = mpman_converter9_props,
  448. };
  449. static const struct property_entry mpman_mpwin895cl_props[] = {
  450. PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
  451. PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
  452. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  453. PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
  454. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  455. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
  456. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  457. PROPERTY_ENTRY_BOOL("silead,home-button"),
  458. { }
  459. };
  460. static const struct ts_dmi_data mpman_mpwin895cl_data = {
  461. .acpi_name = "MSSL1680:00",
  462. .properties = mpman_mpwin895cl_props,
  463. };
  464. static const struct property_entry myria_my8307_props[] = {
  465. PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
  466. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  467. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  468. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  469. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  470. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
  471. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  472. PROPERTY_ENTRY_BOOL("silead,home-button"),
  473. { }
  474. };
  475. static const struct ts_dmi_data myria_my8307_data = {
  476. .acpi_name = "MSSL1680:00",
  477. .properties = myria_my8307_props,
  478. };
  479. static const struct property_entry onda_obook_20_plus_props[] = {
  480. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  481. PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
  482. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  483. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  484. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  485. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
  486. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  487. PROPERTY_ENTRY_BOOL("silead,home-button"),
  488. { }
  489. };
  490. static const struct ts_dmi_data onda_obook_20_plus_data = {
  491. .acpi_name = "MSSL1680:00",
  492. .properties = onda_obook_20_plus_props,
  493. };
  494. static const struct property_entry onda_v80_plus_v3_props[] = {
  495. PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
  496. PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
  497. PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
  498. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  499. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  500. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
  501. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  502. PROPERTY_ENTRY_BOOL("silead,home-button"),
  503. { }
  504. };
  505. static const struct ts_dmi_data onda_v80_plus_v3_data = {
  506. .embedded_fw = {
  507. .name = "silead/gsl3676-onda-v80-plus-v3.fw",
  508. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  509. .length = 37224,
  510. .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
  511. 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
  512. 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
  513. 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
  514. },
  515. .acpi_name = "MSSL1680:00",
  516. .properties = onda_v80_plus_v3_props,
  517. };
  518. static const struct property_entry onda_v820w_32g_props[] = {
  519. PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
  520. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  521. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  522. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
  523. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  524. PROPERTY_ENTRY_BOOL("silead,home-button"),
  525. { }
  526. };
  527. static const struct ts_dmi_data onda_v820w_32g_data = {
  528. .acpi_name = "MSSL1680:00",
  529. .properties = onda_v820w_32g_props,
  530. };
  531. static const struct property_entry onda_v891_v5_props[] = {
  532. PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
  533. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  534. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  535. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  536. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  537. PROPERTY_ENTRY_STRING("firmware-name",
  538. "gsl3676-onda-v891-v5.fw"),
  539. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  540. PROPERTY_ENTRY_BOOL("silead,home-button"),
  541. { }
  542. };
  543. static const struct ts_dmi_data onda_v891_v5_data = {
  544. .acpi_name = "MSSL1680:00",
  545. .properties = onda_v891_v5_props,
  546. };
  547. static const struct property_entry onda_v891w_v1_props[] = {
  548. PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
  549. PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
  550. PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
  551. PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
  552. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
  553. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  554. PROPERTY_ENTRY_BOOL("silead,home-button"),
  555. { }
  556. };
  557. static const struct ts_dmi_data onda_v891w_v1_data = {
  558. .acpi_name = "MSSL1680:00",
  559. .properties = onda_v891w_v1_props,
  560. };
  561. static const struct property_entry onda_v891w_v3_props[] = {
  562. PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
  563. PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
  564. PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
  565. PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
  566. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  567. PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
  568. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  569. PROPERTY_ENTRY_BOOL("silead,home-button"),
  570. { }
  571. };
  572. static const struct ts_dmi_data onda_v891w_v3_data = {
  573. .acpi_name = "MSSL1680:00",
  574. .properties = onda_v891w_v3_props,
  575. };
  576. static const struct property_entry pipo_w2s_props[] = {
  577. PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
  578. PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
  579. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  580. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  581. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
  582. { }
  583. };
  584. static const struct ts_dmi_data pipo_w2s_data = {
  585. .embedded_fw = {
  586. .name = "silead/gsl1680-pipo-w2s.fw",
  587. .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
  588. .length = 39072,
  589. .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
  590. 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
  591. 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
  592. 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
  593. },
  594. .acpi_name = "MSSL1680:00",
  595. .properties = pipo_w2s_props,
  596. };
  597. static const struct property_entry pipo_w11_props[] = {
  598. PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
  599. PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
  600. PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
  601. PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
  602. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
  603. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  604. PROPERTY_ENTRY_BOOL("silead,home-button"),
  605. { }
  606. };
  607. static const struct ts_dmi_data pipo_w11_data = {
  608. .acpi_name = "MSSL1680:00",
  609. .properties = pipo_w11_props,
  610. };
  611. static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
  612. PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
  613. PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
  614. PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
  615. PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
  616. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  617. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
  618. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  619. PROPERTY_ENTRY_BOOL("silead,home-button"),
  620. { }
  621. };
  622. static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
  623. .acpi_name = "MSSL1680:00",
  624. .properties = pov_mobii_wintab_p800w_v20_props,
  625. };
  626. static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
  627. PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
  628. PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
  629. PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
  630. PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
  631. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  632. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
  633. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  634. PROPERTY_ENTRY_BOOL("silead,home-button"),
  635. { }
  636. };
  637. static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
  638. .acpi_name = "MSSL1680:00",
  639. .properties = pov_mobii_wintab_p800w_v21_props,
  640. };
  641. static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
  642. PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
  643. PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
  644. PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
  645. PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
  646. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  647. PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
  648. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  649. PROPERTY_ENTRY_BOOL("silead,home-button"),
  650. { }
  651. };
  652. static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
  653. .acpi_name = "MSSL1680:00",
  654. .properties = pov_mobii_wintab_p1006w_v10_props,
  655. };
  656. static const struct property_entry predia_basic_props[] = {
  657. PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
  658. PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
  659. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  660. PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
  661. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  662. PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
  663. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  664. PROPERTY_ENTRY_BOOL("silead,home-button"),
  665. { }
  666. };
  667. static const struct ts_dmi_data predia_basic_data = {
  668. .acpi_name = "MSSL1680:00",
  669. .properties = predia_basic_props,
  670. };
  671. static const struct property_entry rwc_nanote_p8_props[] = {
  672. PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
  673. PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
  674. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  675. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  676. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"),
  677. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  678. { }
  679. };
  680. static const struct ts_dmi_data rwc_nanote_p8_data = {
  681. .acpi_name = "MSSL1680:00",
  682. .properties = rwc_nanote_p8_props,
  683. };
  684. static const struct property_entry schneider_sct101ctm_props[] = {
  685. PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
  686. PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
  687. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  688. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  689. PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
  690. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
  691. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  692. PROPERTY_ENTRY_BOOL("silead,home-button"),
  693. { }
  694. };
  695. static const struct ts_dmi_data schneider_sct101ctm_data = {
  696. .acpi_name = "MSSL1680:00",
  697. .properties = schneider_sct101ctm_props,
  698. };
  699. static const struct property_entry techbite_arc_11_6_props[] = {
  700. PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
  701. PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
  702. PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
  703. PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
  704. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  705. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
  706. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  707. { }
  708. };
  709. static const struct ts_dmi_data techbite_arc_11_6_data = {
  710. .acpi_name = "MSSL1680:00",
  711. .properties = techbite_arc_11_6_props,
  712. };
  713. static const struct property_entry teclast_x3_plus_props[] = {
  714. PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
  715. PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
  716. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
  717. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  718. PROPERTY_ENTRY_BOOL("silead,home-button"),
  719. { }
  720. };
  721. static const struct ts_dmi_data teclast_x3_plus_data = {
  722. .acpi_name = "MSSL1680:00",
  723. .properties = teclast_x3_plus_props,
  724. };
  725. static const struct property_entry teclast_x98plus2_props[] = {
  726. PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
  727. PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
  728. PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
  729. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  730. PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
  731. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  732. { }
  733. };
  734. static const struct ts_dmi_data teclast_x98plus2_data = {
  735. .acpi_name = "MSSL1680:00",
  736. .properties = teclast_x98plus2_props,
  737. };
  738. static const struct property_entry trekstor_primebook_c11_props[] = {
  739. PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
  740. PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
  741. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  742. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
  743. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  744. PROPERTY_ENTRY_BOOL("silead,home-button"),
  745. { }
  746. };
  747. static const struct ts_dmi_data trekstor_primebook_c11_data = {
  748. .acpi_name = "MSSL1680:00",
  749. .properties = trekstor_primebook_c11_props,
  750. };
  751. static const struct property_entry trekstor_primebook_c13_props[] = {
  752. PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
  753. PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
  754. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
  755. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  756. PROPERTY_ENTRY_BOOL("silead,home-button"),
  757. { }
  758. };
  759. static const struct ts_dmi_data trekstor_primebook_c13_data = {
  760. .acpi_name = "MSSL1680:00",
  761. .properties = trekstor_primebook_c13_props,
  762. };
  763. static const struct property_entry trekstor_primetab_t13b_props[] = {
  764. PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
  765. PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
  766. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
  767. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  768. PROPERTY_ENTRY_BOOL("silead,home-button"),
  769. PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
  770. { }
  771. };
  772. static const struct ts_dmi_data trekstor_primetab_t13b_data = {
  773. .acpi_name = "MSSL1680:00",
  774. .properties = trekstor_primetab_t13b_props,
  775. };
  776. static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
  777. PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
  778. PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
  779. PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
  780. PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
  781. PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
  782. PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
  783. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  784. PROPERTY_ENTRY_BOOL("silead,home-button"),
  785. { }
  786. };
  787. static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
  788. .acpi_name = "MSSL1680:00",
  789. .properties = trekstor_surftab_twin_10_1_props,
  790. };
  791. static const struct property_entry trekstor_surftab_wintron70_props[] = {
  792. PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
  793. PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
  794. PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
  795. PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
  796. PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
  797. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  798. PROPERTY_ENTRY_BOOL("silead,home-button"),
  799. { }
  800. };
  801. static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
  802. .acpi_name = "MSSL1680:00",
  803. .properties = trekstor_surftab_wintron70_props,
  804. };
  805. static const struct property_entry vinga_twizzle_j116_props[] = {
  806. PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
  807. PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
  808. PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
  809. PROPERTY_ENTRY_U32("silead,max-fingers", 10),
  810. PROPERTY_ENTRY_BOOL("silead,home-button"),
  811. { }
  812. };
  813. static const struct ts_dmi_data vinga_twizzle_j116_data = {
  814. .acpi_name = "MSSL1680:00",
  815. .properties = vinga_twizzle_j116_props,
  816. };
  817. /* NOTE: Please keep this table sorted alphabetically */
  818. const struct dmi_system_id touchscreen_dmi_table[] = {
  819. {
  820. /* Chuwi Hi8 */
  821. .driver_data = (void *)&chuwi_hi8_data,
  822. .matches = {
  823. DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
  824. DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
  825. },
  826. },
  827. {
  828. /* Chuwi Hi8 (H1D_S806_206) */
  829. .driver_data = (void *)&chuwi_hi8_data,
  830. .matches = {
  831. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  832. DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
  833. DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
  834. },
  835. },
  836. {
  837. /* Chuwi Hi8 Air (CWI543) */
  838. .driver_data = (void *)&chuwi_hi8_air_data,
  839. .matches = {
  840. DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
  841. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  842. DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
  843. },
  844. },
  845. {
  846. /* Chuwi Hi8 Pro (CWI513) */
  847. .driver_data = (void *)&chuwi_hi8_pro_data,
  848. .matches = {
  849. DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
  850. DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
  851. },
  852. },
  853. {
  854. /* Chuwi Hi10 Air */
  855. .driver_data = (void *)&chuwi_hi10_air_data,
  856. .matches = {
  857. DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
  858. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  859. DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
  860. },
  861. },
  862. {
  863. /* Chuwi Hi10 Plus (CWI527) */
  864. .driver_data = (void *)&chuwi_hi10_plus_data,
  865. .matches = {
  866. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  867. DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
  868. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  869. },
  870. },
  871. {
  872. /* Chuwi Hi10 Prus (CWI597) */
  873. .driver_data = (void *)&chuwi_hi10_pro_data,
  874. .matches = {
  875. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  876. DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
  877. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  878. },
  879. },
  880. {
  881. /* Chuwi HiBook (CWI514) */
  882. .driver_data = (void *)&chuwi_hibook_data,
  883. .matches = {
  884. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  885. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  886. /* Above matches are too generic, add bios-date match */
  887. DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
  888. },
  889. },
  890. {
  891. /* Chuwi Vi8 (CWI506) */
  892. .driver_data = (void *)&chuwi_vi8_data,
  893. .matches = {
  894. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  895. DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
  896. DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
  897. },
  898. },
  899. {
  900. /* Chuwi Vi8 Plus (CWI519) */
  901. .driver_data = (void *)&chuwi_vi8_plus_data,
  902. .matches = {
  903. DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
  904. DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
  905. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  906. },
  907. },
  908. {
  909. /* Chuwi Vi10 (CWI505) */
  910. .driver_data = (void *)&chuwi_vi10_data,
  911. .matches = {
  912. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  913. DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
  914. DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
  915. DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
  916. },
  917. },
  918. {
  919. /* Chuwi Surbook Mini (CWI540) */
  920. .driver_data = (void *)&chuwi_surbook_mini_data,
  921. .matches = {
  922. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  923. DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
  924. },
  925. },
  926. {
  927. /* Connect Tablet 9 */
  928. .driver_data = (void *)&connect_tablet9_data,
  929. .matches = {
  930. DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
  931. DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
  932. },
  933. },
  934. {
  935. /* CUBE iwork8 Air */
  936. .driver_data = (void *)&cube_iwork8_air_data,
  937. .matches = {
  938. DMI_MATCH(DMI_SYS_VENDOR, "cube"),
  939. DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
  940. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  941. },
  942. },
  943. {
  944. /* Cube KNote i1101 */
  945. .driver_data = (void *)&cube_knote_i1101_data,
  946. .matches = {
  947. DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
  948. DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
  949. DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
  950. DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
  951. },
  952. },
  953. {
  954. /* DEXP Ursus 7W */
  955. .driver_data = (void *)&dexp_ursus_7w_data,
  956. .matches = {
  957. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  958. DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
  959. },
  960. },
  961. {
  962. /* Digma Citi E200 */
  963. .driver_data = (void *)&digma_citi_e200_data,
  964. .matches = {
  965. DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
  966. DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
  967. DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
  968. },
  969. },
  970. {
  971. /* Estar Beauty HD (MID 7316R) */
  972. .driver_data = (void *)&estar_beauty_hd_data,
  973. .matches = {
  974. DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
  975. DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
  976. },
  977. },
  978. { /* Glavey TM800A550L */
  979. .driver_data = (void *)&glavey_tm800a550l_data,
  980. .matches = {
  981. DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
  982. DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
  983. /* Above strings are too generic, also match on BIOS version */
  984. DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
  985. },
  986. },
  987. {
  988. /* GP-electronic T701 */
  989. .driver_data = (void *)&gp_electronic_t701_data,
  990. .matches = {
  991. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  992. DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
  993. DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
  994. },
  995. },
  996. {
  997. /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
  998. .driver_data = (void *)&trekstor_surftab_wintron70_data,
  999. .matches = {
  1000. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1001. DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
  1002. DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
  1003. },
  1004. },
  1005. {
  1006. /* Irbis TW90 */
  1007. .driver_data = (void *)&irbis_tw90_data,
  1008. .matches = {
  1009. DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
  1010. DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
  1011. },
  1012. },
  1013. {
  1014. /* Irbis TW118 */
  1015. .driver_data = (void *)&irbis_tw118_data,
  1016. .matches = {
  1017. DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
  1018. DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
  1019. },
  1020. },
  1021. {
  1022. /* I.T.Works TW891 */
  1023. .driver_data = (void *)&itworks_tw891_data,
  1024. .matches = {
  1025. DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
  1026. DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
  1027. },
  1028. },
  1029. {
  1030. /* Jumper EZpad 6 Pro */
  1031. .driver_data = (void *)&jumper_ezpad_6_pro_data,
  1032. .matches = {
  1033. DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
  1034. DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
  1035. DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
  1036. /* Above matches are too generic, add bios-date match */
  1037. DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
  1038. },
  1039. },
  1040. {
  1041. /* Jumper EZpad 6 Pro B */
  1042. .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
  1043. .matches = {
  1044. DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
  1045. DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
  1046. DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
  1047. /* Above matches are too generic, add bios-date match */
  1048. DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
  1049. },
  1050. },
  1051. {
  1052. /* Jumper EZpad 6 m4 */
  1053. .driver_data = (void *)&jumper_ezpad_6_m4_data,
  1054. .matches = {
  1055. DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
  1056. DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
  1057. /* Jumper8.S106x.A00C.1066 with the version dropped */
  1058. DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
  1059. },
  1060. },
  1061. {
  1062. /* Jumper EZpad mini3 */
  1063. .driver_data = (void *)&jumper_ezpad_mini3_data,
  1064. .matches = {
  1065. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1066. /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
  1067. DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
  1068. },
  1069. },
  1070. {
  1071. /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
  1072. .driver_data = (void *)&trekstor_surftab_wintron70_data,
  1073. .matches = {
  1074. DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
  1075. DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
  1076. },
  1077. },
  1078. {
  1079. /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
  1080. .driver_data = (void *)&trekstor_primebook_c11_data,
  1081. .matches = {
  1082. DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
  1083. DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
  1084. },
  1085. },
  1086. {
  1087. /* MP Man Converter 9 */
  1088. .driver_data = (void *)&mpman_converter9_data,
  1089. .matches = {
  1090. DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
  1091. DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
  1092. },
  1093. },
  1094. {
  1095. /* MP Man MPWIN895CL */
  1096. .driver_data = (void *)&mpman_mpwin895cl_data,
  1097. .matches = {
  1098. DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
  1099. DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
  1100. },
  1101. },
  1102. {
  1103. /* Myria MY8307 */
  1104. .driver_data = (void *)&myria_my8307_data,
  1105. .matches = {
  1106. DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
  1107. DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
  1108. },
  1109. },
  1110. {
  1111. /* Onda oBook 20 Plus */
  1112. .driver_data = (void *)&onda_obook_20_plus_data,
  1113. .matches = {
  1114. DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
  1115. DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
  1116. },
  1117. },
  1118. {
  1119. /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
  1120. .driver_data = (void *)&onda_v80_plus_v3_data,
  1121. .matches = {
  1122. DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
  1123. DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
  1124. },
  1125. },
  1126. {
  1127. /* ONDA V820w DualOS */
  1128. .driver_data = (void *)&onda_v820w_32g_data,
  1129. .matches = {
  1130. DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
  1131. DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
  1132. },
  1133. },
  1134. {
  1135. /* ONDA V891 v5 */
  1136. .driver_data = (void *)&onda_v891_v5_data,
  1137. .matches = {
  1138. DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
  1139. DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
  1140. DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
  1141. },
  1142. },
  1143. {
  1144. /* ONDA V891w revision P891WBEBV1B00 aka v1 */
  1145. .driver_data = (void *)&onda_v891w_v1_data,
  1146. .matches = {
  1147. DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
  1148. DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
  1149. DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
  1150. /* Exact match, different versions need different fw */
  1151. DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
  1152. },
  1153. },
  1154. {
  1155. /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
  1156. .driver_data = (void *)&onda_v891w_v3_data,
  1157. .matches = {
  1158. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1159. DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
  1160. DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
  1161. },
  1162. },
  1163. {
  1164. /* Pipo W2S */
  1165. .driver_data = (void *)&pipo_w2s_data,
  1166. .matches = {
  1167. DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
  1168. DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
  1169. },
  1170. },
  1171. {
  1172. /* Pipo W11 */
  1173. .driver_data = (void *)&pipo_w11_data,
  1174. .matches = {
  1175. DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
  1176. DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
  1177. /* Above matches are too generic, add bios-ver match */
  1178. DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
  1179. },
  1180. },
  1181. {
  1182. /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
  1183. .driver_data = (void *)&trekstor_surftab_wintron70_data,
  1184. .matches = {
  1185. DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
  1186. DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
  1187. /* Exact match, different versions need different fw */
  1188. DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
  1189. },
  1190. },
  1191. {
  1192. /* Point of View mobii wintab p800w (v2.0) */
  1193. .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
  1194. .matches = {
  1195. DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
  1196. DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
  1197. DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
  1198. /* Above matches are too generic, add bios-date match */
  1199. DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
  1200. },
  1201. },
  1202. {
  1203. /* Predia Basic tablet) */
  1204. .driver_data = (void *)&predia_basic_data,
  1205. .matches = {
  1206. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1207. DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
  1208. /* Above matches are too generic, add bios-version match */
  1209. DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
  1210. },
  1211. },
  1212. {
  1213. /* Point of View mobii wintab p800w (v2.1) */
  1214. .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
  1215. .matches = {
  1216. DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
  1217. DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
  1218. DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
  1219. /* Above matches are too generic, add bios-date match */
  1220. DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
  1221. },
  1222. },
  1223. {
  1224. /* Point of View mobii wintab p1006w (v1.0) */
  1225. .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
  1226. .matches = {
  1227. DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1228. DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
  1229. /* Note 105b is Foxcon's USB/PCI vendor id */
  1230. DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
  1231. DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
  1232. },
  1233. },
  1234. {
  1235. /* RWC NANOTE P8 */
  1236. .driver_data = (void *)&rwc_nanote_p8_data,
  1237. .matches = {
  1238. DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
  1239. DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
  1240. DMI_MATCH(DMI_PRODUCT_SKU, "0001")
  1241. },
  1242. },
  1243. {
  1244. /* Schneider SCT101CTM */
  1245. .driver_data = (void *)&schneider_sct101ctm_data,
  1246. .matches = {
  1247. DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
  1248. DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
  1249. },
  1250. },
  1251. {
  1252. /* Techbite Arc 11.6 */
  1253. .driver_data = (void *)&techbite_arc_11_6_data,
  1254. .matches = {
  1255. DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
  1256. DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
  1257. DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
  1258. },
  1259. },
  1260. {
  1261. /* Teclast X3 Plus */
  1262. .driver_data = (void *)&teclast_x3_plus_data,
  1263. .matches = {
  1264. DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
  1265. DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
  1266. DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
  1267. },
  1268. },
  1269. {
  1270. /* Teclast X89 (Android version / BIOS) */
  1271. .driver_data = (void *)&gdix1001_00_upside_down_data,
  1272. .matches = {
  1273. DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
  1274. DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
  1275. },
  1276. },
  1277. {
  1278. /* Teclast X89 (Windows version / BIOS) */
  1279. .driver_data = (void *)&gdix1001_01_upside_down_data,
  1280. .matches = {
  1281. /* tPAD is too generic, also match on bios date */
  1282. DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
  1283. DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
  1284. DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
  1285. },
  1286. },
  1287. {
  1288. /* Teclast X98 Plus II */
  1289. .driver_data = (void *)&teclast_x98plus2_data,
  1290. .matches = {
  1291. DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
  1292. DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
  1293. },
  1294. },
  1295. {
  1296. /* Teclast X98 Pro */
  1297. .driver_data = (void *)&gdix1001_00_upside_down_data,
  1298. .matches = {
  1299. /*
  1300. * Only match BIOS date, because the manufacturers
  1301. * BIOS does not report the board name at all
  1302. * (sometimes)...
  1303. */
  1304. DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
  1305. DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
  1306. },
  1307. },
  1308. {
  1309. /* Trekstor Primebook C11 */
  1310. .driver_data = (void *)&trekstor_primebook_c11_data,
  1311. .matches = {
  1312. DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
  1313. DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
  1314. },
  1315. },
  1316. {
  1317. /* Trekstor Primebook C11B (same touchscreen as the C11) */
  1318. .driver_data = (void *)&trekstor_primebook_c11_data,
  1319. .matches = {
  1320. DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
  1321. DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
  1322. },
  1323. },
  1324. {
  1325. /* Trekstor Primebook C13 */
  1326. .driver_data = (void *)&trekstor_primebook_c13_data,
  1327. .matches = {
  1328. DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
  1329. DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
  1330. },
  1331. },
  1332. {
  1333. /* Trekstor Primetab T13B */
  1334. .driver_data = (void *)&trekstor_primetab_t13b_data,
  1335. .matches = {
  1336. DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
  1337. DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
  1338. },
  1339. },
  1340. {
  1341. /* TrekStor SurfTab twin 10.1 ST10432-8 */
  1342. .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
  1343. .matches = {
  1344. DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
  1345. DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
  1346. },
  1347. },
  1348. {
  1349. /* Trekstor Surftab Wintron 7.0 ST70416-6 */
  1350. .driver_data = (void *)&trekstor_surftab_wintron70_data,
  1351. .matches = {
  1352. DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
  1353. DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
  1354. /* Exact match, different versions need different fw */
  1355. DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
  1356. },
  1357. },
  1358. {
  1359. /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
  1360. .driver_data = (void *)&trekstor_surftab_wintron70_data,
  1361. .matches = {
  1362. DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
  1363. DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
  1364. /* Exact match, different versions need different fw */
  1365. DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
  1366. },
  1367. },
  1368. {
  1369. /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
  1370. .driver_data = (void *)&trekstor_primebook_c11_data,
  1371. .matches = {
  1372. DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
  1373. DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
  1374. },
  1375. },
  1376. {
  1377. /* Vinga Twizzle J116 */
  1378. .driver_data = (void *)&vinga_twizzle_j116_data,
  1379. .matches = {
  1380. DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
  1381. },
  1382. },
  1383. {
  1384. /* "WinBook TW100" */
  1385. .driver_data = (void *)&gdix1001_00_upside_down_data,
  1386. .matches = {
  1387. DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
  1388. DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
  1389. }
  1390. },
  1391. {
  1392. /* WinBook TW700 */
  1393. .driver_data = (void *)&gdix1001_00_upside_down_data,
  1394. .matches = {
  1395. DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
  1396. DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
  1397. },
  1398. },
  1399. {
  1400. /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
  1401. .driver_data = (void *)&chuwi_vi8_data,
  1402. .matches = {
  1403. DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
  1404. DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
  1405. },
  1406. },
  1407. { }
  1408. };
  1409. static const struct ts_dmi_data *ts_data;
  1410. static void ts_dmi_add_props(struct i2c_client *client)
  1411. {
  1412. struct device *dev = &client->dev;
  1413. int error;
  1414. if (has_acpi_companion(dev) &&
  1415. !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
  1416. error = device_add_properties(dev, ts_data->properties);
  1417. if (error)
  1418. dev_err(dev, "failed to add properties: %d\n", error);
  1419. }
  1420. }
  1421. static int ts_dmi_notifier_call(struct notifier_block *nb,
  1422. unsigned long action, void *data)
  1423. {
  1424. struct device *dev = data;
  1425. struct i2c_client *client;
  1426. switch (action) {
  1427. case BUS_NOTIFY_ADD_DEVICE:
  1428. client = i2c_verify_client(dev);
  1429. if (client)
  1430. ts_dmi_add_props(client);
  1431. break;
  1432. default:
  1433. break;
  1434. }
  1435. return 0;
  1436. }
  1437. static struct notifier_block ts_dmi_notifier = {
  1438. .notifier_call = ts_dmi_notifier_call,
  1439. };
  1440. static int __init ts_dmi_init(void)
  1441. {
  1442. const struct dmi_system_id *dmi_id;
  1443. int error;
  1444. dmi_id = dmi_first_match(touchscreen_dmi_table);
  1445. if (!dmi_id)
  1446. return 0; /* Not an error */
  1447. ts_data = dmi_id->driver_data;
  1448. /* Some dmi table entries only provide an efi_embedded_fw_desc */
  1449. if (!ts_data->properties)
  1450. return 0;
  1451. error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
  1452. if (error)
  1453. pr_err("%s: failed to register i2c bus notifier: %d\n",
  1454. __func__, error);
  1455. return error;
  1456. }
  1457. /*
  1458. * We are registering out notifier after i2c core is initialized and i2c bus
  1459. * itself is ready (which happens at postcore initcall level), but before
  1460. * ACPI starts enumerating devices (at subsys initcall level).
  1461. */
  1462. arch_initcall(ts_dmi_init);