touchscreen_dmi.c 56 KB

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