diff options
| author | Mark Brown <broonie@kernel.org> | 2020-12-28 17:20:00 +0300 | 
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-12-28 17:20:00 +0300 | 
| commit | 2ae6f64ce1ce304b502461fdfe0b96c8171ae2cc (patch) | |
| tree | 88e987c447daf2c29e2d4c15e58d1029b0cc78c2 /drivers/platform/x86/touchscreen_dmi.c | |
| parent | 3b66e4a8e58a85af3212c7117d7a29c9ef6679a2 (diff) | |
| parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) | |
| download | linux-2ae6f64ce1ce304b502461fdfe0b96c8171ae2cc.tar.xz | |
Merge tag 'v5.11-rc1' into regulator-5.11
Linux 5.11-rc1
Diffstat (limited to 'drivers/platform/x86/touchscreen_dmi.c')
| -rw-r--r-- | drivers/platform/x86/touchscreen_dmi.c | 50 | 
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index dda60f89c951..5783139d0a11 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -295,6 +295,21 @@ static const struct ts_dmi_data irbis_tw90_data = {  	.properties	= irbis_tw90_props,  }; +static const struct property_entry irbis_tw118_props[] = { +	PROPERTY_ENTRY_U32("touchscreen-min-x", 20), +	PROPERTY_ENTRY_U32("touchscreen-min-y", 30), +	PROPERTY_ENTRY_U32("touchscreen-size-x", 1960), +	PROPERTY_ENTRY_U32("touchscreen-size-y", 1510), +	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"), +	PROPERTY_ENTRY_U32("silead,max-fingers", 10), +	{ } +}; + +static const struct ts_dmi_data irbis_tw118_data = { +	.acpi_name	= "MSSL1680:00", +	.properties	= irbis_tw118_props, +}; +  static const struct property_entry itworks_tw891_props[] = {  	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),  	PROPERTY_ENTRY_U32("touchscreen-min-y", 5), @@ -623,6 +638,23 @@ static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {  	.properties	= pov_mobii_wintab_p1006w_v10_props,  }; +static const struct property_entry predia_basic_props[] = { +	PROPERTY_ENTRY_U32("touchscreen-min-x", 3), +	PROPERTY_ENTRY_U32("touchscreen-min-y", 10), +	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), +	PROPERTY_ENTRY_U32("touchscreen-size-y", 1144), +	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), +	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"), +	PROPERTY_ENTRY_U32("silead,max-fingers", 10), +	PROPERTY_ENTRY_BOOL("silead,home-button"), +	{ } +}; + +static const struct ts_dmi_data predia_basic_data = { +	.acpi_name	= "MSSL1680:00", +	.properties	= predia_basic_props, +}; +  static const struct property_entry schneider_sct101ctm_props[] = {  	PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),  	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), @@ -937,6 +969,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = {  		},  	},  	{ +		/* Irbis TW118 */ +		.driver_data = (void *)&irbis_tw118_data, +		.matches = { +			DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), +			DMI_MATCH(DMI_PRODUCT_NAME, "TW118"), +		}, +	}, +	{  		/* I.T.Works TW891 */  		.driver_data = (void *)&itworks_tw891_data,  		.matches = { @@ -1110,6 +1150,16 @@ const struct dmi_system_id touchscreen_dmi_table[] = {  		},  	},  	{ +		/* Predia Basic tablet) */ +		.driver_data = (void *)&predia_basic_data, +		.matches = { +			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), +			DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), +			/* Above matches are too generic, add bios-version match */ +			DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"), +		}, +	}, +	{  		/* Point of View mobii wintab p800w (v2.1) */  		.driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,  		.matches = {  | 
