aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-07 12:12:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-07 12:12:19 -0400
commitd4e65476bc68dbc9231b3c772b71f1576579b6fb (patch)
tree3408d0e17d8ea6bdfaa9c5cd5745298d5b7e67a3 /Documentation/devicetree/bindings/input
parentd042380886fb2fc6c4b0fcfe1214ba473769a8e9 (diff)
parentc758f96a8c346ac5a6822b521ec92308c5774381 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov: "You will get - a new driver for Elan eKTF2127 touchscreen controllers - a new "gpio-decoder" driver to read and report state of several GPIO lines - an ADC resistor ladder driver - the ft6326 driver is removed because edt-ft5x06 handles the same devices just fine. .. plus the regular slew of driver fixes/enhancements" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (26 commits) Input: elan_i2c - fix return tests of i2c_smbus_read_block_data() Input: ektf2127 - mark PM functions as __maybe_unused Input: snvs_pwrkey - drop input_free_device call if input_register_device fails Input: add support for Elan eKTF2127 touchscreen controller Input: serio - add hangup support Input: tps65218-pwrbutton - add support for tps65217 variant Input: jornada720_ts - get rid of mach/irqs.h and mach/hardware.h includes Input: jornada720_kbd - remove unneeded mach/hardware.h include Input: focaltech - mark focaltech_set_resolution() static Input: wdt87xx_i2c - fix the flash erase issue Input: gpio-keys-polled - don't use unit-address with button nodes Input: add generic input driver to read encoded GPIO lines Input: add ADC resistor ladder driver Input: pegasus_notetaker - directly include workqueue header Input: elants_i2c - get product id on recovery mode for FW update Input: wm97xx - remove deprecated create_singletheread_workqueue Input: mc13783_ts - remove deprecated create_singletheread_workqueue Input: psmouse - remove deprecated create_singletheread_workqueue Input: jornada720_kbd - switch to using dev_dbg Input: jornada720_kbd - get rid of mach/irqs.h include ...
Diffstat (limited to 'Documentation/devicetree/bindings/input')
-rw-r--r--Documentation/devicetree/bindings/input/adc-keys.txt49
-rw-r--r--Documentation/devicetree/bindings/input/gpio-decoder.txt23
-rw-r--r--Documentation/devicetree/bindings/input/gpio-keys-polled.txt5
-rw-r--r--Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt8
-rw-r--r--Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt27
-rw-r--r--Documentation/devicetree/bindings/input/touchscreen/focaltech-ft6236.txt35
-rw-r--r--Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt17
7 files changed, 123 insertions, 41 deletions
diff --git a/Documentation/devicetree/bindings/input/adc-keys.txt b/Documentation/devicetree/bindings/input/adc-keys.txt
new file mode 100644
index 000000000000..e551814629b4
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/adc-keys.txt
@@ -0,0 +1,49 @@
1ADC attached resistor ladder buttons
2------------------------------------
3
4Required properties:
5 - compatible: "adc-keys"
6 - io-channels: Phandle to an ADC channel
7 - io-channel-names = "buttons";
8 - keyup-threshold-microvolt: Voltage at which all the keys are considered up.
9
10Optional properties:
11 - poll-interval: Poll interval time in milliseconds
12 - autorepeat: Boolean, Enable auto repeat feature of Linux input
13 subsystem.
14
15Each button (key) is represented as a sub-node of "adc-keys":
16
17Required subnode-properties:
18 - label: Descriptive name of the key.
19 - linux,code: Keycode to emit.
20 - press-threshold-microvolt: Voltage ADC input when this key is pressed.
21
22Example:
23
24#include <dt-bindings/input/input.h>
25
26 adc-keys {
27 compatible = "adc-keys";
28 io-channels = <&lradc 0>;
29 io-channel-names = "buttons";
30 keyup-threshold-microvolt = <2000000>;
31
32 button-up {
33 label = "Volume Up";
34 linux,code = <KEY_VOLUMEUP>;
35 press-threshold-microvolt = <1500000>;
36 };
37
38 button-down {
39 label = "Volume Down";
40 linux,code = <KEY_VOLUMEDOWN>;
41 press-threshold-microvolt = <1000000>;
42 };
43
44 button-enter {
45 label = "Enter";
46 linux,code = <KEY_ENTER>;
47 press-threshold-microvolt = <500000>;
48 };
49 };
diff --git a/Documentation/devicetree/bindings/input/gpio-decoder.txt b/Documentation/devicetree/bindings/input/gpio-decoder.txt
new file mode 100644
index 000000000000..14a77fb96cf0
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/gpio-decoder.txt
@@ -0,0 +1,23 @@
1* GPIO Decoder DT bindings
2
3Required Properties:
4- compatible: should be "gpio-decoder"
5- gpios: a spec of gpios (at least two) to be decoded to a number with
6 first entry representing the MSB.
7
8Optional Properties:
9- decoder-max-value: Maximum possible value that can be reported by
10 the gpios.
11- linux,axis: the input subsystem axis to map to (ABS_X/ABS_Y).
12 Defaults to 0 (ABS_X).
13
14Example:
15 gpio-decoder0 {
16 compatible = "gpio-decoder";
17 gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
18 <&pca9536 2 GPIO_ACTIVE_HIGH>,
19 <&pca9536 1 GPIO_ACTIVE_HIGH>,
20 <&pca9536 0 GPIO_ACTIVE_HIGH>;
21 linux,axis = <0>; /* ABS_X */
22 decoder-max-value = <9>;
23 };
diff --git a/Documentation/devicetree/bindings/input/gpio-keys-polled.txt b/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
index 95d0fb11a787..4d9a3717eaaf 100644
--- a/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
+++ b/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
@@ -34,11 +34,10 @@ Example nodes:
34 34
35 gpio_keys_polled { 35 gpio_keys_polled {
36 compatible = "gpio-keys-polled"; 36 compatible = "gpio-keys-polled";
37 #address-cells = <1>;
38 #size-cells = <0>;
39 poll-interval = <100>; 37 poll-interval = <100>;
40 autorepeat; 38 autorepeat;
41 button@21 { 39
40 button21 {
42 label = "GPIO Key UP"; 41 label = "GPIO Key UP";
43 linux,code = <103>; 42 linux,code = <103>;
44 gpios = <&gpio1 0 1>; 43 gpios = <&gpio1 0 1>;
diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
index f99528da1b1d..6db22103e2dd 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
+++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
@@ -19,6 +19,7 @@ Required properties:
19 or: "edt,edt-ft5306" 19 or: "edt,edt-ft5306"
20 or: "edt,edt-ft5406" 20 or: "edt,edt-ft5406"
21 or: "edt,edt-ft5506" 21 or: "edt,edt-ft5506"
22 or: "focaltech,ft6236"
22 23
23 - reg: I2C slave address of the chip (0x38) 24 - reg: I2C slave address of the chip (0x38)
24 - interrupt-parent: a phandle pointing to the interrupt controller 25 - interrupt-parent: a phandle pointing to the interrupt controller
@@ -43,6 +44,13 @@ Optional properties:
43 44
44 - offset: allows setting the edge compensation in the range from 45 - offset: allows setting the edge compensation in the range from
45 0 to 31. 46 0 to 31.
47 - touchscreen-size-x : See touchscreen.txt
48 - touchscreen-size-y : See touchscreen.txt
49 - touchscreen-fuzz-x : See touchscreen.txt
50 - touchscreen-fuzz-y : See touchscreen.txt
51 - touchscreen-inverted-x : See touchscreen.txt
52 - touchscreen-inverted-y : See touchscreen.txt
53 - touchscreen-swapped-x-y : See touchscreen.txt
46 54
47Example: 55Example:
48 polytouch: edt-ft5x06@38 { 56 polytouch: edt-ft5x06@38 {
diff --git a/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt b/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt
new file mode 100644
index 000000000000..5a19f4c3e9d7
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt
@@ -0,0 +1,27 @@
1* Elan eKTF2127 I2C touchscreen controller
2
3Required properties:
4 - compatible : "elan,ektf2127"
5 - reg : I2C slave address of the chip (0x40)
6 - interrupt-parent : a phandle pointing to the interrupt controller
7 serving the interrupt for this chip
8 - interrupts : interrupt specification for the ektf2127 interrupt
9 - power-gpios : GPIO specification for the pin connected to the
10 ektf2127's wake input. This needs to be driven high
11 to take ektf2127 out of it's low power state
12
13For additional optional properties see: touchscreen.txt
14
15Example:
16
17i2c@00000000 {
18 ektf2127: touchscreen@15 {
19 compatible = "elan,ektf2127";
20 reg = <0x15>;
21 interrupt-parent = <&pio>;
22 interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>
23 power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
24 touchscreen-inverted-x;
25 touchscreen-swapped-x-y;
26 };
27};
diff --git a/Documentation/devicetree/bindings/input/touchscreen/focaltech-ft6236.txt b/Documentation/devicetree/bindings/input/touchscreen/focaltech-ft6236.txt
deleted file mode 100644
index 777521da3da5..000000000000
--- a/Documentation/devicetree/bindings/input/touchscreen/focaltech-ft6236.txt
+++ /dev/null
@@ -1,35 +0,0 @@
1* FocalTech FT6236 I2C touchscreen controller
2
3Required properties:
4 - compatible : "focaltech,ft6236"
5 - reg : I2C slave address of the chip (0x38)
6 - interrupt-parent : a phandle pointing to the interrupt controller
7 serving the interrupt for this chip
8 - interrupts : interrupt specification for the touch controller
9 interrupt
10 - reset-gpios : GPIO specification for the RSTN input
11 - touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
12 - touchscreen-size-y : vertical resolution of touchscreen (in pixels)
13
14Optional properties:
15 - touchscreen-fuzz-x : horizontal noise value of the absolute input
16 device (in pixels)
17 - touchscreen-fuzz-y : vertical noise value of the absolute input
18 device (in pixels)
19 - touchscreen-inverted-x : X axis is inverted (boolean)
20 - touchscreen-inverted-y : Y axis is inverted (boolean)
21 - touchscreen-swapped-x-y: X and Y axis are swapped (boolean)
22 Swapping is done after inverting the axis
23
24Example:
25
26 ft6x06@38 {
27 compatible = "focaltech,ft6236";
28 reg = <0x38>;
29 interrupt-parent = <&gpio>;
30 interrupts = <23 2>;
31 touchscreen-size-x = <320>;
32 touchscreen-size-y = <480>;
33 touchscreen-inverted-x;
34 touchscreen-swapped-x-y;
35 };
diff --git a/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt b/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt
index e30e0b93f2b3..3e5b9793341f 100644
--- a/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt
+++ b/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt
@@ -1,13 +1,24 @@
1Texas Instruments TPS65218 power button 1Texas Instruments TPS65217 and TPS65218 power button
2
3This module is part of the TPS65217/TPS65218. For more details about the whole
4TPS65217 chip see Documentation/devicetree/bindings/regulator/tps65217.txt.
2 5
3This driver provides a simple power button event via an Interrupt. 6This driver provides a simple power button event via an Interrupt.
4 7
5Required properties: 8Required properties:
6- compatible: should be "ti,tps65218-pwrbutton" 9- compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton"
10
11Required properties for TPS65218:
7- interrupts: should be one of the following 12- interrupts: should be one of the following
8 - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218 13 - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218
9 14
10Example: 15Examples:
16
17&tps {
18 tps65217-pwrbutton {
19 compatible = "ti,tps65217-pwrbutton";
20 };
21};
11 22
12&tps { 23&tps {
13 power-button { 24 power-button {