-
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.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/dtor/input Pull input updates from Dmitry Torokhov: "The first round of updates for the input subsystem. A few new drivers (power button handler for AXP20x PMIC, tps65218 power button driver, sun4i keys driver, regulator haptic driver, NI Ettus Research USRP E3x0 button, Alwinner A10/A20 PS/2 controller). Updates to Synaptics and ALPS touchpad drivers (with more to come later), brand new Focaltech PS/2 support, update to Cypress driver to handle Gen5 (in addition to Gen3) devices, and number of other fixups to various drivers as well as input core" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (54 commits) Input: elan_i2c - fix wrong %p extension Input: evdev - do not queue SYN_DROPPED if queue is empty Input: gscps2 - fix MODULE_DEVICE_TABLE invocation Input: synaptics - use dmax in input_mt_assign_slots Input: pxa27x_keypad - remove unnecessary ARM includes Input: ti_am335x_tsc - replace delta filtering with median filtering ARM: dts: AM335x: Make charge delay a DT parameter for TSC Input: ti_am335x_tsc - read charge delay from DT Input: ti_am335x_tsc - remove udelay in interrupt handler Input: ti_am335x_tsc - interchange touchscreen and ADC steps Input: MT - add support for balanced slot assignment Input: drv2667 - remove wrong and unneeded drv2667-haptics modalias Input: drv260x - remove wrong and unneeded drv260x-haptics modalias Input: cap11xx - remove wrong and unneeded cap11xx modalias Input: sun4i-ts - add support for touchpanel controller on A31 Input: serio - add support for Alwinner A10/A20 PS/2 controller Input: gtco - use sign_extend32() for sign extension Input: elan_i2c - verify firmware signature applying it Input: elantech - remove stale comment from Kconfig Input: cyapa - off by one in cyapa_update_fw_store() ...
- Loading branch information
Showing
61 changed files
with
7,963 additions
and
1,308 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
What: /sys/class/input/input(x)/device/startup | ||
Date: March 2014 | ||
Contact: Carlo Caione <carlo@caione.org> | ||
Description: Startup time in us. Board is powered on if the button is pressed | ||
for more than <startup_time> | ||
|
||
What: /sys/class/input/input(x)/device/shutdown | ||
Date: March 2014 | ||
Contact: Carlo Caione <carlo@caione.org> | ||
Description: Shutdown time in us. Board is powered off if the button is pressed | ||
for more than <shutdown_time> |
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,25 @@ | ||
National Instruments Ettus Research USRP E3x0 button driver | ||
|
||
This module is part of the NI Ettus Research USRP E3x0 SDR. | ||
|
||
This module provides a simple power button event via two interrupts. | ||
|
||
Required properties: | ||
- compatible: should be one of the following | ||
- "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0 | ||
- interrupt-parent: | ||
- a phandle to the interrupt controller that it is attached to. | ||
- interrupts: should be one of the following | ||
- <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0 | ||
- interrupt-names: should be one of the following | ||
- "press", "release": For devices such as the NI Ettus Research USRP E3x0 | ||
|
||
Note: Interrupt numbers might vary depending on the FPGA configuration. | ||
|
||
Example: | ||
button { | ||
compatible = "ettus,e3x0-button"; | ||
interrupt-parent = <&intc>; | ||
interrupts = <0 30 1>, <0 31 1>; | ||
interrupt-names = "press", "release"; | ||
} |
21 changes: 21 additions & 0 deletions
21
Documentation/devicetree/bindings/input/regulator-haptic.txt
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,21 @@ | ||
* Regulator Haptic Device Tree Bindings | ||
|
||
Required Properties: | ||
- compatible : Should be "regulator-haptic" | ||
- haptic-supply : Power supply to the haptic motor. | ||
[*] refer Documentation/devicetree/bindings/regulator/regulator.txt | ||
|
||
- max-microvolt : The maximum voltage value supplied to the haptic motor. | ||
[The unit of the voltage is a micro] | ||
|
||
- min-microvolt : The minimum voltage value supplied to the haptic motor. | ||
[The unit of the voltage is a micro] | ||
|
||
Example: | ||
|
||
haptics { | ||
compatible = "regulator-haptic"; | ||
haptic-supply = <&motor_regulator>; | ||
max-microvolt = <2700000>; | ||
min-microvolt = <1100000>; | ||
}; |
62 changes: 62 additions & 0 deletions
62
Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
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,62 @@ | ||
Allwinner sun4i low res adc attached tablet keys | ||
------------------------------------------------ | ||
|
||
Required properties: | ||
- compatible: "allwinner,sun4i-a10-lradc-keys" | ||
- reg: mmio address range of the chip | ||
- interrupts: interrupt to which the chip is connected | ||
- vref-supply: powersupply for the lradc reference voltage | ||
|
||
Each key is represented as a sub-node of "allwinner,sun4i-a10-lradc-keys": | ||
|
||
Required subnode-properties: | ||
- label: Descriptive name of the key. | ||
- linux,code: Keycode to emit. | ||
- channel: Channel this key is attached to, mut be 0 or 1. | ||
- voltage: Voltage in µV at lradc input when this key is pressed. | ||
|
||
Example: | ||
|
||
#include <dt-bindings/input/input.h> | ||
|
||
lradc: lradc@01c22800 { | ||
compatible = "allwinner,sun4i-a10-lradc-keys"; | ||
reg = <0x01c22800 0x100>; | ||
interrupts = <31>; | ||
vref-supply = <®_vcc3v0>; | ||
|
||
button@191 { | ||
label = "Volume Up"; | ||
linux,code = <KEY_VOLUMEUP>; | ||
channel = <0>; | ||
voltage = <191274>; | ||
}; | ||
|
||
button@392 { | ||
label = "Volume Down"; | ||
linux,code = <KEY_VOLUMEDOWN>; | ||
channel = <0>; | ||
voltage = <392644>; | ||
}; | ||
|
||
button@601 { | ||
label = "Menu"; | ||
linux,code = <KEY_MENU>; | ||
channel = <0>; | ||
voltage = <601151>; | ||
}; | ||
|
||
button@795 { | ||
label = "Enter"; | ||
linux,code = <KEY_ENTER>; | ||
channel = <0>; | ||
voltage = <795090>; | ||
}; | ||
|
||
button@987 { | ||
label = "Home"; | ||
linux,code = <KEY_HOMEPAGE>; | ||
channel = <0>; | ||
voltage = <987387>; | ||
}; | ||
}; |
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
17 changes: 17 additions & 0 deletions
17
Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt
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,17 @@ | ||
Texas Instruments TPS65218 power button | ||
|
||
This driver provides a simple power button event via an Interrupt. | ||
|
||
Required properties: | ||
- compatible: should be "ti,tps65218-pwrbutton" | ||
- interrupts: should be one of the following | ||
- <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218 | ||
|
||
Example: | ||
|
||
&tps { | ||
power-button { | ||
compatible = "ti,tps65218-pwrbutton"; | ||
interrupts = <3 IRQ_TYPE_EDGE_BOTH>; | ||
}; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/serio/allwinner,sun4i-ps2.txt
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,23 @@ | ||
* Device tree bindings for Allwinner A10, A20 PS2 host controller | ||
|
||
A20 PS2 is dual role controller (PS2 host and PS2 device). These bindings are | ||
for PS2 A10/A20 host controller. IBM compliant IBM PS2 and AT-compatible keyboard | ||
and mouse can be connected. | ||
|
||
Required properties: | ||
|
||
- reg : Offset and length of the register set for the device. | ||
- compatible : Should be as of the following: | ||
- "allwinner,sun4i-a10-ps2" | ||
- interrupts : The interrupt line connected to the PS2. | ||
- clocks : The gate clk connected to the PS2. | ||
|
||
|
||
Example: | ||
ps20: ps2@0x01c2a000 { | ||
compatible = "allwinner,sun4i-a10-ps2"; | ||
reg = <0x01c2a000 0x400>; | ||
interrupts = <0 62 4>; | ||
clocks = <&apb1_gates 6>; | ||
status = "disabled"; | ||
}; |
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
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
Oops, something went wrong.