summaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)Author
2011-12-08ENGR00162493-2 isl29023: register the isl29023 as earlysuspend deviceLin Fuzhen
When screen off, let isl29023 entry in suspend to save some power Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2011-11-09ENGR00153941 input: egalax_ts - not dump the i2c package in debug level.Zhang Jiejing
Found the driver will leave i2c package dump message in kernel debug level, it create too much noice, this should be deleted. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-06-20ENGR00151167 input: mpr121: add debug function and improve sensitivityZhang Jiejing
improve mpr121 capacitive key sensitivity by change threshold of release and touch and add a quick charge bit in init which is not documented in MPR121's data sheet. move macro define from header to source file. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-06-03ENGR00143857 MX53_SMD: egalax_ts: wake up IC before read firmware version.Zhang Jiejing
Due to the HW 's suspend not work before, we don't know touch screen's suspend function work good or not. After suspend really work, I found after suspend, and reset, will cause touch panel I2C failed. The root cause is the touch IC still in suspend state, so I add wake up IC in driver probe. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-05-09ENGR00143120 p1003, egalax: enable PRESSURE eventLily Zhang
Enable PRESSURE event in P1003 and egalax touch screen driver. This event is required for tslib used in gnome mobile. To use egalax touch screen driver in gnome mobile, please follow the steps: 1. Add "#define FORCE_SINGLE_POINTER_SUPPORT" in egalax_ts.c 2. If you find the touch screen is not accurate, please run ts_calibrate to do calibration: export TSLIB_TSDEVICE=/dev/input/ts0 ts_calibrate Signed-off-by: Lily Zhang <r58066@freescale.com>
2011-04-27ENGR00141486-2 i.mx drivers: remove building warning messageLily Zhang
remove building warning message in i.mx drivers Signed-off-by: Lily Zhang <r58066@freescale.com>
2011-04-20ENGR00142347-3 input: egalax_ts, add suspend and force single mode support.Zhang Jiejing
- add suspend support for egalax_ts. - add force single mode support, it can enabled by #define FORCE_SINGLE_POINTER_SUPPORT this macro. This is for ubuntu which not support multiple touch. If you want to use this touch screen on ubuntu, please define this marco Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-04-20ENGR00142347-1 input: add basic support for EETI eGalax touch screenZhang Jiejing
This patch add support for EETI eGalax touchscreen. EETI eGalax serial touch screen controller is a I2C based multiple touch screen controller, it can supports 5 pointer multiple touch. This driver add single pointer support and multiple pointer support. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-04-11ENGR00141923 input: max11801: adjust calibration orientationZhang Jiejing
adjust orientation for correct HW connection. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-03-08ENGR00140391 ISL29023:Keep int thresholds in interrupt handlerLiu Ying
We used to set the interrupt thresholds to the measure range of the light sensor in the interrupt handler, this potentially makes user poll on the input event and never be waken up. This patch keeps the interrupt thresholds in the interrupt handler and is tested on MX53 SMD. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2011-03-07ENGR00140122 MX53_SMD: p1003: report single pointer.Zhang Jiejing
Since Ubuntu needs report single pointer, I add BTN_TOUCH event in single pointer event report. It will not affact Android, also made ubuntu touchscreen works. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-02-28ENGR00139383-1 Add ISL29023 light sensor supportLiu Ying
This patch adds ISL29023 light sensor support. Users may control the light sensor work at different modes/ranges/resolutions or read the lux value via sysfs. A power state node is also created in sysfs. If the light sensor works at ALS once mode, users need to power down/power up the sensor before read the lux value again. Currently, IR(Infra Red) mode is not supported. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2011-02-21ENGR00136880 keypad: Add early suspend callback to keypad for android einkXinyu Chen
In the non eink early suspend mode, we disable the wakeup source for keypad. Only apply to imx50. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2011-02-16ENGR00137879-1 input: add HannStar p1003 touch screen driverZhang Jiejing
This is HannStar p1003 touch screen driver with Ilitek firmware multitouch(two point at max) touch screen driver. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com> Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-02-12ENGR00139112 mxc_ts: Add earlysuspend callback to touchscreen on androidHu hui
When the system entry suspend, touchscreen should not report the event to the input subsystem. Signed-off-by: Hu hui <b29976@freescale.com> Signed-off-by: Xinyu Chen <b03824@freescale.com>
2011-02-12input: Use monotonic time for event time stamps on android.Arve Hjønnevåg
Since wall time can jump backwards, it cannot be used to determine if one event occured before another or for how long a key was pressed. Signed-off-by: Arve Hjønnevåg <arve@android.com>
2011-02-03ENGR00138213-1 Add da9053 power key to mx53 smd &locoZhou Jingyu
Add da9053 power key config, add key up event Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2011-02-03ENGR00138130-1 input: Maxi max11801 resistance touchscreen controllerZhang Jiejing
Add MAXI max11801 resistance touch screen controller driver, add a compile config of ts_lib calibration in driver, it is default disable. This driver use Auto Mode and Aperture Mode. Other max1180x driver could support in this driver further. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-02-03ENGR00138071-2 input: mpr121: change input type from EV_MSC to EV_KEYZhang Jiejing
EV_MSC will ignore by some system, so change this device to a EV_KEY device. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-02-03ENGR00136874-1 pwrkey: enhance the driver to support key press statusXinyu Chen
Add get keypad press status callback and desired send key value to the platform data. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2011-02-03ENGR00137556-2 porting da9053 pmic driverZhou Jingyu
porting da9053 pmic driver Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2011-02-03ENGR00137556-1 add da9053 pmic driverDavid Dajun Chen
Add DA9053 source code from Dialog The code revision is 3r0 and it is base on DA9052 driver code Acked-by: Lily Zhang <r58066@freescale.com> Signed-off-by: David Dajun Chen <Dajun.Chen@diasemi.com>
2011-02-03ENGR00137602-1 input: FSL MPR121 capacitive touch button.Zhang Jiejing
This button driver is based on Freescale MPR121 capacitive touch sensor controller. It can support 12 elements maximal. The chip is use i2c interface. You can find all the data sheet reference in code by google the name. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2010-10-15ENGR00132639-2 Power: mxc_pwerkey break mx25 kernel buildHu hui
Driver Part define a new platform data struct, and Put the pmic callback register into platform data structure, then we can cover all pmic Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-14ENGR00132553-2 Power: enable power on/off key as suspend/resume keyHu hui
Driver Part enable the powerkey as suspend/resume key on mx53evk and mx50 rdp Signed-off-by: Hu Hui <b29976@freescale.com>
2010-09-07ENGR00127171-5 Kernel Upgrade: Fix all drivers build error for mx23/mx28Frank Li
Fix build error because kernel upgrade Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-09-01ENGR00126692-3: Upgrade kernel to 2.6.35Dinh Nguyen
This patch contains changes to /drivers files Contains all checkpatch and copyright fixes. Acked-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-08-25tsc2007: fail registration on i2c errorRob Herring
Return an error on probe if i2c errors occur indicating the device is not present. Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-07-22Merge branch 'for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: synaptics - relax capability ID checks on newer hardware Input: twl40300-keypad - fix handling of "all ground" rows Input: gamecon - reference correct pad in gc_psx_command() Input: gamecon - reference correct input device in NES mode Input: w90p910_keypad - change platfrom driver name to 'nuc900-kpi' Input: i8042 - add Gigabyte Spring Peak to dmi_noloop_table Input: qt2160 - rename kconfig symbol name
2010-07-21Input: synaptics - relax capability ID checks on newer hardwareDmitry Torokhov
Older firmwares fixed the middle byte of the Synaptics capabilities query to 0x47, but starting with firmware 7.5 the middle byte represents submodel ID, sometimes also called "dash number". Reported-and-tested-by: Miroslav Šulc <fordfrog@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-20Input: twl40300-keypad - fix handling of "all ground" rowsDmitry Torokhov
The Nokia RX51 board code (arch/arm/mach-omap2/board-rx51-peripherals.c) defines a key map for the matrix keypad keyboard. The hardware seems to use all of the 8 rows and 8 columns of the keypad, although not all possible locations are used. The TWL4030 supports keypads with at most 8 rows and 8 columns. Most keys are defined with a row and column number between 0 and 7, except KEY(0xff, 2, KEY_F9), KEY(0xff, 4, KEY_F10), KEY(0xff, 5, KEY_F11), which represent keycodes that should be emitted when entire row is connected to the ground. since the driver handles this case as if we had an extra column in the key matrix. Unfortunately we do not allocate enough space and end up owerwriting some random memory. Reported-and-tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: stable@kernel.org Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-20Input: gamecon - reference correct pad in gc_psx_command()Dmitry Torokhov
Otherwise we won't see any events from the gamepad. Addresses https://bugzilla.kernel.org/show_bug.cgi?id=16408 Reported-and-tested-by: Eugene Yudin <eugene.yudin@gmail.com> Cc: stable@kernel.org Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-20Input: gamecon - reference correct input device in NES modeDmitry Torokhov
We moved input devices from 'struct gc' to individial pads (struct gc-pad), but gc_nes_process_packet() was still trying to use old ones and crashing. Cc: stable@kernel.org Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-19Input: w90p910_keypad - change platfrom driver name to 'nuc900-kpi'Wan ZongShun
The name of platfrom device was changed and we need to make driver's name match in order for it to bind to the device. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-19Input: i8042 - add Gigabyte Spring Peak to dmi_noloop_tableKamal Mostafa
Gigabyte "Spring Peak" notebook indicates wrong chassis-type, tripping up i8042 and breaking the touchpad. Add this model to i8042_dmi_noloop_table[] to resolve. BugLink: https://bugs.launchpad.net/bugs/580664 Signed-off-by: Kamal Mostafa <kamal@canonical.com> Cc: stable@kernel.org Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-17Input: qt2160 - rename kconfig symbol nameChristoph Fritz
drivers/input/keyboard/Kconfig defines QT2160 while the corresponding Makefile expects CONFIG_KEYBOARD_QT2160 as all other keyboard drivers do. To keep this Makefile consistent rename the config-token from CONFIG_QT2160 to CONFIG_KEYBOARD_QT2160. The various defconfig files are left alone. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-16Merge branch 'for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: w90p910_ts - fix call to setup_timer() Input: synaptics - fix wrong dimensions check Input: i8042 - mark stubs in i8042.h "static inline"
2010-07-15Input: w90p910_ts - fix call to setup_timer()Wan ZongShun
No need to take address, w90p910_ts is already a pointer. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-14Input: synaptics - fix wrong dimensions checkTakashi Iwai
The commit 83ba9ea8a04b72dfee2515428c15e7414ba4fc61 ommitted the return line for the old synaptics model accidentally. This resulted in a wrong check, namely, the dimensions are checked for the old devices that don't support the query properly. This patch adds the return line back. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-07-07input: i8042 - add runtime check in x86's i8042_platform_initFeng Tang
Then it will first check x86_platforms's i8042 detection result, then go on with normal probe. Signed-off-by: Feng Tang <feng.tang@intel.com> LKML-Reference: <4c34dd482753bb8f1@agluck-desktop.sc.intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Acked-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-07-07Revert "Input: fixup X86_MRST selects"Feng Tang
This reverts commit 0b28bac5aef7bd1ab213723df031e61db9ff151a. After adding x86_platform's detection for i8042 controller, we don't need the force dependency on !X86_MRST any more Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Feng Tang <feng.tang@intel.com> LKML-Reference: <1278342202-10973-5-git-send-email-feng.tang@intel.com> Acked-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-07-07Revert "Input: do not force selecting i8042 on Moorestown"Feng Tang
This reverts commit 685afae02557a178185a4be36f58332976e79f63. After adding x86_platform's detection for i8042 controller, we don't need the force dependency on !X86_MRST any more Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Feng Tang <feng.tang@intel.com> LKML-Reference: <1278342202-10973-4-git-send-email-feng.tang@intel.com> Acked-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-06-22Input: wacom - fix serial number handling on Cintiq 21UX2Ping Cheng
Cintiq 21UX2 added 8 more bits for the tool serial number and more buttons for the expresskey. We did not enable them properly in the last patch. Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-06-22Input: fixup X86_MRST selectsRandy Dunlap
Some of the recent X86_MRST additions make some "select"s conditional on X86_MRST but missed some related kconfig symbols, causing: drivers/built-in.o: In function `ps2_end_command': (.text+0x257ab2): undefined reference to `i8042_check_port_owner' drivers/built-in.o: In function `ps2_end_command': (.text+0x257ae1): undefined reference to `i8042_unlock_chip' drivers/built-in.o: In function `ps2_begin_command': (.text+0x257b40): undefined reference to `i8042_check_port_owner' drivers/built-in.o: In function `ps2_begin_command': (.text+0x257b6f): undefined reference to `i8042_lock_chip' when SERIO_I8042=m, SERIO_LIBPS2=y, KEYBOARD_ATKBD=y. We need to make i8042 dependant upon !X86_MRST and allow deselecting atkbd on Moorestown even when !CONFIG_EMBEDDED. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Jacob Pan <jacob.jun.pan@intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-06-22Merge commit 'v2.6.35-rc3' into for-linusDmitry Torokhov
2010-06-08hp_sdc_rtc: fix broken ioctl conversionArnd Bergmann
Commit 55929332c92 "drivers: Push down BKL into various drivers" introduced a regression in hp_sdc_rtc, caused by a missing change of the .unlocked_ioctl pointer to the newly introduced function. Fixes: drivers/input/misc/hp_sdc_rtc.c:681: warning: initialization from incompatible pointer type drivers/input/misc/hp_sdc_rtc.c:665: warning: ‘hp_sdc_rtc_unlocked_ioctl’ defined but not used Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
2010-06-08Input: ad7877 - fix spi word size to 16 bitOskar Schirmer
With no word size given in the users platform data, a generic spi host controller driver will assume a default word size of eight bit. This causes transmission to be performed bytewise, which will fail on little endian machines for sure. Failure on big endian depends on usage of slave select to mark word boundaries. Anyway, ad7877 is specified to work with 16 bit per word, so unconditionally set the word size accordingly. Flag an error where 16 bit per word is not available. Signed-off-by: Oskar Schirmer <os@emlix.com> Signed-off-by: Daniel Glöckner <dg@emlix.com> Signed-off-by: Oliver Schneidewind <osw@emlix.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-06-05Input: pcf8574_keypad - fix off by one in pcf8574_kp_irq_handler()Dan Carpenter
If nextstate == ARRAY_SIZE(lp->btncode), then we read one past the end of the array on the next line. This fixes a smatch warning: drivers/input/misc/pcf8574_keypad.c +74 pcf8574_kp_irq_handler(8) error: buffer overflow 'lp->btncode' 17 <= 17 Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-06-04Merge branch 'for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: wacom - add Cintiq 21UX2 and Intuos4 WL Input: ads7846 - fix compiler warning in ads7846_probe() Input: tps6507x-ts - a couple work queue cleanups Input: s3c2410_ts - tone down logging Input: s3c2410_ts - fix build error due to ADC Kconfig rename
2010-06-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6Linus Torvalds
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits) sh: Make intc messages consistent via pr_fmt. sh: make sure static declaration on ms7724se sh: make sure static declaration on mach-migor sh: make sure static declaration on mach-ecovec24 sh: make sure static declaration on mach-ap325rxa clocksource: sh_cmt: compute mult and shift before registration clocksource: sh_tmu: compute mult and shift before registration sh: PIO disabling for x3proto and urquell. sh: mach-sdk7786: conditionally disable PIO support. sh: support for platforms without PIO. usb: r8a66597-hcd pio to mmio accessor conversion. usb: gadget: r8a66597-udc pio to mmio accessor conversion. usb: gadget: m66592-udc pio to mmio accessor conversion. sh: add romImage MMCIF boot for sh7724 and Ecovec V2 sh: add boot code to MMCIF driver header sh: prepare MMCIF driver header file sh: allow romImage data between head.S and the zero page sh: Add support MMCIF for ecovec sh: remove duplicated #include input: serio: disable i8042 for non-cayman sh platforms. ...