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.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/dtor/input Pull input updates from Dmitry Torokhov: - a new driver for Rohm BU21029 touch controller - new bitmap APIs: bitmap_alloc, bitmap_zalloc and bitmap_free - updates to Atmel, eeti. pxrc and iforce drivers - assorted driver cleanups and fixes. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (57 commits) MAINTAINERS: Add PhoenixRC Flight Controller Adapter Input: do not use WARN() in input_alloc_absinfo() Input: mark expected switch fall-throughs Input: raydium_i2c_ts - use true and false for boolean values Input: evdev - switch to bitmap API Input: gpio-keys - switch to bitmap_zalloc() Input: elan_i2c_smbus - cast sizeof to int for comparison bitmap: Add bitmap_alloc(), bitmap_zalloc() and bitmap_free() md: Avoid namespace collision with bitmap API dm: Avoid namespace collision with bitmap API Input: pm8941-pwrkey - add resin entry Input: pm8941-pwrkey - abstract register offsets and event code Input: iforce - reorganize joystick configuration lists Input: atmel_mxt_ts - move completion to after config crc is updated Input: atmel_mxt_ts - don't report zero pressure from T9 Input: atmel_mxt_ts - zero terminate config firmware file Input: atmel_mxt_ts - refactor config update code to add context struct Input: atmel_mxt_ts - config CRC may start at T71 Input: atmel_mxt_ts - remove unnecessary debug on ENOMEM Input: atmel_mxt_ts - remove duplicate setup of ABS_MT_PRESSURE ...
- Loading branch information
Showing
99 changed files
with
1,468 additions
and
967 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,8 @@ | ||
General Keys Properties: | ||
|
||
Optional properties for Keys: | ||
- power-off-time-sec: Duration in seconds which the key should be kept | ||
pressed for device to power off automatically. Device with key pressed | ||
shutdown feature can specify this property. | ||
- linux,keycodes: Specifies the numeric keycode values to be used for | ||
reporting key presses. |
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
35 changes: 35 additions & 0 deletions
35
Documentation/devicetree/bindings/input/touchscreen/bu21029.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,35 @@ | ||
* Rohm BU21029 Touch Screen Controller | ||
|
||
Required properties: | ||
- compatible : must be "rohm,bu21029" | ||
- reg : i2c device address of the chip (0x40 or 0x41) | ||
- interrupt-parent : the phandle for the gpio controller | ||
- interrupts : (gpio) interrupt to which the chip is connected | ||
- rohm,x-plate-ohms : x-plate resistance in Ohm | ||
|
||
Optional properties: | ||
- reset-gpios : gpio pin to reset the chip (active low) | ||
- touchscreen-size-x : horizontal resolution of touchscreen (in pixels) | ||
- touchscreen-size-y : vertical resolution of touchscreen (in pixels) | ||
- touchscreen-max-pressure: maximum pressure value | ||
- vdd-supply : power supply for the controller | ||
|
||
Example: | ||
|
||
&i2c1 { | ||
/* ... */ | ||
|
||
bu21029: bu21029@40 { | ||
compatible = "rohm,bu21029"; | ||
reg = <0x40>; | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <4 IRQ_TYPE_EDGE_FALLING>; | ||
reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; | ||
rohm,x-plate-ohms = <600>; | ||
touchscreen-size-x = <800>; | ||
touchscreen-size-y = <480>; | ||
touchscreen-max-pressure = <4095>; | ||
}; | ||
|
||
/* ... */ | ||
}; |
30 changes: 30 additions & 0 deletions
30
Documentation/devicetree/bindings/input/touchscreen/eeti.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,30 @@ | ||
Bindings for EETI touchscreen controller | ||
|
||
Required properties: | ||
- compatible: should be "eeti,exc3000-i2c" | ||
- reg: I2C address of the chip. Should be set to <0xa> | ||
- interrupts: interrupt to which the chip is connected | ||
|
||
Optional properties: | ||
- attn-gpios: A handle to a GPIO to check whether interrupt is still | ||
latched. This is necessary for platforms that lack | ||
support for level-triggered IRQs. | ||
|
||
The following optional properties described in touchscreen.txt are | ||
also supported: | ||
|
||
- touchscreen-inverted-x | ||
- touchscreen-inverted-y | ||
- touchscreen-swapped-x-y | ||
|
||
Example: | ||
|
||
i2c-master { | ||
touchscreen@a { | ||
compatible = "eeti,exc3000-i2c"; | ||
reg = <0xa>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <123 IRQ_TYPE_EDGE_RISING>; | ||
attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; |
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 |
---|---|---|
|
@@ -11340,6 +11340,13 @@ S: Maintained | |
F: include/linux/personality.h | ||
F: include/uapi/linux/personality.h | ||
|
||
PHOENIX RC FLIGHT CONTROLLER ADAPTER | ||
M: Marcus Folkesson <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/input/devices/pxrc.rst | ||
F: drivers/input/joystick/pxrc.c | ||
|
||
PHONET PROTOCOL | ||
M: Remi Denis-Courmont <[email protected]> | ||
S: Supported | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <asm/io.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <asm/io.h> | ||
|
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 |
---|---|---|
|
@@ -21,10 +21,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <asm/io.h> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/delay.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/types.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/delay.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
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 |
---|---|---|
|
@@ -23,10 +23,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
@@ -263,6 +259,7 @@ static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char | |
db9_saturn_write_sub(port, type, 3, powered, 0); | ||
return data[0] = 0xe3; | ||
} | ||
/* else: fall through */ | ||
default: | ||
return data[0]; | ||
} | ||
|
@@ -282,11 +279,14 @@ static int db9_saturn_report(unsigned char id, unsigned char data[60], struct in | |
switch (data[j]) { | ||
case 0x16: /* multi controller (analog 4 axis) */ | ||
input_report_abs(dev, db9_abs[5], data[j + 6]); | ||
/* fall through */ | ||
case 0x15: /* mission stick (analog 3 axis) */ | ||
input_report_abs(dev, db9_abs[3], data[j + 4]); | ||
input_report_abs(dev, db9_abs[4], data[j + 5]); | ||
/* fall through */ | ||
case 0x13: /* racing controller (analog 1 axis) */ | ||
input_report_abs(dev, db9_abs[2], data[j + 3]); | ||
/* fall through */ | ||
case 0x34: /* saturn keyboard (udlr ZXC ASD QE Esc) */ | ||
case 0x02: /* digital pad (digital 2 axis + buttons) */ | ||
input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64)); | ||
|
@@ -380,6 +380,7 @@ static void db9_timer(struct timer_list *t) | |
input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); | ||
input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); | ||
input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); | ||
/* fall through */ | ||
|
||
case DB9_MULTI_0802: | ||
|
||
|
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 |
---|---|---|
|
@@ -24,10 +24,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/delay.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
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 |
---|---|---|
|
@@ -20,10 +20,6 @@ | |
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* Should you need to contact me, the author, you can do so either by | ||
* e-mail - mail your message to <[email protected]>, or by paper mail: | ||
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
Oops, something went wrong.