forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input: exc3000 - add support to query model and fw_version
Expose model and fw_version via sysfs. Also query the model in probe to make sure, that the I2C communication with the device works before successfully probing the driver. This is a bit complicated, since EETI devices do not have a sync interface. Sending the commands and directly reading does not work. Sending the command and waiting for some time is also not an option, since there might be touch events in the mean time. Last but not least we do not cache the results, since this interface can be used to check the I2C communication is still working as expected. Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
- Loading branch information
Showing
2 changed files
with
162 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
What: /sys/bus/i2c/devices/xxx/fw_version | ||
Date: Aug 2020 | ||
Contact: [email protected] | ||
Description: Reports the firmware version provided by the touchscreen, for example "00_T6" on a EXC80H60 | ||
|
||
Access: Read | ||
Valid values: Represented as string | ||
|
||
What: /sys/bus/i2c/devices/xxx/model | ||
Date: Aug 2020 | ||
Contact: [email protected] | ||
Description: Reports the model identification provided by the touchscreen, for example "Orion_1320" on a EXC80H60 | ||
|
||
Access: Read | ||
Valid values: Represented as string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters