Skip to content

Commit cd57c3c

Browse files
committed
Merge remote-tracking branch 'remotes/origin/at91-4.14-trunk/base_adc' into linux-4.14-at91
2 parents 1fc507b + 2fdac5e commit cd57c3c

13 files changed

Lines changed: 1013 additions & 75 deletions

File tree

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,25 @@ Description:
190190
but should match other such assignments on device).
191191
Units after application of scale and offset are m/s^2.
192192

193+
What: /sys/bus/iio/devices/iio:deviceX/in_angl_raw
194+
KernelVersion: 4.17
195+
Contact: linux-iio@vger.kernel.org
196+
Description:
197+
Angle of rotation. Units after application of scale and offset
198+
are radians.
199+
200+
What: /sys/bus/iio/devices/iio:deviceX/in_positionrelative_x_raw
201+
What: /sys/bus/iio/devices/iio:deviceX/in_positionrelative_y_raw
202+
KernelVersion: 4.19
203+
Contact: linux-iio@vger.kernel.org
204+
Description:
205+
Relative position in direction x or y on a pad (may be
206+
arbitrarily assigned but should match other such assignments on
207+
device).
208+
Units after application of scale and offset are milli percents
209+
from the pad's size in both directions. Should be calibrated by
210+
the consumer.
211+
193212
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw
194213
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw
195214
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw

Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Optional properties:
2121
- dmas: Phandle to dma channel for the ADC.
2222
- dma-names: Must be "rx" when dmas property is being used.
2323
See ../../dma/dma.txt for details.
24+
- #io-channel-cells: in case consumer drivers are attached, this must be 1.
25+
See <Documentation/devicetree/bindings/iio/iio-bindings.txt> for details.
26+
27+
Properties for consumer drivers:
28+
- Consumer drivers can be connected to this producer device, as specified
29+
in <Documentation/devicetree/bindings/iio/iio-bindings.txt>
30+
- Channels exposed are specified in:
31+
<dt-bindings/iio/adc/at91-sama5d2_adc.txt>
2432

2533
Example:
2634

@@ -38,4 +46,5 @@ adc: adc@fc030000 {
3846
atmel,trigger-edge-type = <IRQ_TYPE_EDGE_BOTH>;
3947
dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>;
4048
dma-names = "rx";
49+
#io-channel-cells = <1>;
4150
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Generic resistive touchscreen ADC
2+
3+
Required properties:
4+
5+
- compatible: must be "resistive-adc-touch"
6+
The device must be connected to an ADC device that provides channels for
7+
position measurement and optional pressure.
8+
Refer to ../iio/iio-bindings.txt for details
9+
- iio-channels: must have at least two channels connected to an ADC device.
10+
These should correspond to the channels exposed by the ADC device and should
11+
have the right index as the ADC device registers them. These channels
12+
represent the relative position on the "x" and "y" axes.
13+
- iio-channel-names: must have all the channels' names. Mandatory channels
14+
are "x" and "y".
15+
16+
Optional properties:
17+
- iio-channels: The third channel named "pressure" is optional and can be
18+
used if the ADC device also measures pressure besides position.
19+
If this channel is missing, pressure will be ignored and the touchscreen
20+
will only report position.
21+
- iio-channel-names: optional channel named "pressure".
22+
23+
Example:
24+
25+
resistive_touch: resistive_touch {
26+
compatible = "resistive-adc-touch";
27+
touchscreen-min-pressure = <50000>;
28+
io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
29+
io-channel-names = "x", "y", "pressure";
30+
};

Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Optional properties for Touchscreens:
77
(in pixels)
88
- touchscreen-max-pressure : maximum reported pressure (arbitrary range
99
dependent on the controller)
10+
- touchscreen-min-pressure : minimum pressure on the touchscreen to be
11+
achieved in order for the touchscreen
12+
driver to report a touch event.
1013
- touchscreen-fuzz-x : horizontal noise value of the absolute input
1114
device (in pixels)
1215
- touchscreen-fuzz-y : vertical noise value of the absolute input

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5803,6 +5803,12 @@ F: drivers/base/power/domain*.c
58035803
F: include/linux/pm_domain.h
58045804
F: Documentation/devicetree/bindings/power/power_domain.txt
58055805

5806+
GENERIC RESISTIVE TOUCHSCREEN ADC DRIVER
5807+
M: Eugen Hristev <eugen.hristev@microchip.com>
5808+
L: linux-input@vger.kernel.org
5809+
S: Maintained
5810+
F: drivers/input/touchscreen/resistive-adc-touch.c
5811+
58065812
GENERIC UIO DRIVER FOR PCI DEVICES
58075813
M: "Michael S. Tsirkin" <mst@redhat.com>
58085814
L: kvm@vger.kernel.org

0 commit comments

Comments
 (0)