forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: Add channel for Position Relative
Add new channel type for relative position on a pad. These type of analog sensor offers the position of a pen on a touchpad, and is represented as a voltage, which can be converted to a position on X and Y axis on the pad. The channel will hand the relative position on the pad in both directions. The channel can then be consumed by a touchscreen driver or read as-is for a raw indication of the touchpen on a touchpad. Signed-off-by: Eugen Hristev <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information
Showing
4 changed files
with
16 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -197,6 +197,18 @@ Description: | |
Angle of rotation. Units after application of scale and offset | ||
are radians. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_positionrelative_x_raw | ||
What: /sys/bus/iio/devices/iio:deviceX/in_positionrelative_y_raw | ||
KernelVersion: 4.18 | ||
Contact: [email protected] | ||
Description: | ||
Relative position in direction x or y on a pad (may be | ||
arbitrarily assigned but should match other such assignments on | ||
device). | ||
Units after application of scale and offset are milli percents | ||
from the pad's size in both directions. Should be calibrated by | ||
the consumer. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw | ||
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw | ||
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw | ||
|
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
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
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