aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v3.4.10' into HEADBruno Martins2017-08-011-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the 3.4.10 stable release Manual edits: arch/arm/kernel/entry-armv.S fs/ext4/resize.c Conflicts: arch/arm/kernel/entry-armv.S arch/arm/mm/mmu.c arch/arm/mm/tlb-v7.S arch/arm/vfp/entry.S drivers/base/power/main.c drivers/mmc/core/cd-gpio.c drivers/mmc/core/sdio_irq.c drivers/mmc/host/sdhci.c drivers/net/tun.c drivers/staging/zsmalloc/zsmalloc-main.c drivers/usb/core/hub.c drivers/usb/host/xhci-hub.c drivers/usb/host/xhci.h include/linux/sched.h kernel/power/suspend.c kernel/workqueue.c mm/vmscan.c net/wireless/reg.c Change-Id: Ied5de83f08e631a3c7aafb6751551d5c1ece7675
| * Input: eeti_ts: pass gpio value instead of IRQArnd Bergmann2012-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4eef6cbfcc03b294d9d334368a851b35b496ce53 upstream. The EETI touchscreen asserts its IRQ line as soon as it has data in its internal buffers. The line is automatically deasserted once all data has been read via I2C. Hence, the driver has to monitor the GPIO line and cannot simply rely on the interrupt handler reception. In the current implementation of the driver, irq_to_gpio() is used to determine the GPIO number from the i2c_client's IRQ value. As irq_to_gpio() is not available on all platforms, this patch changes this and makes the driver ignore the passed in IRQ. Instead, a GPIO is added to the platform_data struct and gpio_to_irq is used to derive the IRQ from that GPIO. If this fails, bail out. The driver is only able to work in environments where the touchscreen GPIO can be mapped to an IRQ. Without this patch, building raumfeld_defconfig results in: drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active': drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration] Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Sven Neumann <s.neumann@raumfeld.com> Cc: linux-input@vger.kernel.org Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | input: touchscreen: add option to ignore Focaltech family-id checkBingzhe Cai2013-10-091-0/+1
| | | | | | | | | | | | | | | | Focaltech touchscreen ICs may use different chip IDs for same module. Add support to ignore ID check for such cases. Change-Id: I0fe8da6a5e687317b4878b59ac5d1a4a4b620e1d Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
* | input: synaptics_i2c_rmi4: Read display resolution from dtAmy Maloche2013-09-191-2/+16
| | | | | | | | | | | | | | | | Read display resolution from platform data in order to properly use all virtual key implementations. Change-Id: Ic0a13d6a8166379f08c5bfb49d5ea47ac22b3229 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_i2c_rmi4: Enable user to set reset delayAmy Maloche2013-09-191-0/+2
| | | | | | | | | | | | | | | | Allow user to set reset delay in device tree. Default at 100ms. Change-Id: Ie785e7b1d6c1c734faee72962f1dee4db7034a65 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_i2c_rmi4: Update driver for S3408 supportAmy Maloche2013-09-191-0/+1
| | | | | | | | | | | | | | | | Support flip X & flip Y through sysfs entry and move lockdown enablement to device tree from #define. Change-Id: If5cf5fc6c07f9226800823f64d14a01d3651d9aa Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: ft5x06_ts: Upgrade firmware based on versionMohan Pallaka2013-08-291-0/+1
| | | | | | | | | | | | | | | | Upgrade firmware on the controller only when a new version of firmware is available. Change-Id: I4cf75b3c5efb90f151da09ed73b1ba62b9b5bb1c Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
* | Merge "input: synaptics_i2c_rmi4: Allow GPIOs to suspend during sleep"Linux Build Service Account2013-08-221-0/+1
|\ \
| * | input: synaptics_i2c_rmi4: Allow GPIOs to suspend during sleepAmy Maloche2013-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | In order to save power, enable GPIOs to go into suspened mode during sleep by freeing them, and re-requesting on wake. Change-Id: I5b1839f5a15fff0bad13b636be35079a8687fa6a Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | | Merge "input: synaptics_i2c_rmi4: Enable turning off regulators in suspend"Linux Build Service Account2013-08-221-0/+4
|\| |
| * | input: synaptics_i2c_rmi4: Enable turning off regulators in suspendAmy Maloche2013-08-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | In order to save max power, turn regulators completely off in suspend instead of just putting into low power mode. Change-Id: Ib325c7acf4c03a63124ed8d4f15b446ac8ad5ecb Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | | input: ft5x06_ts: Parse board specific parameters from pdataMohan Pallaka2013-08-201-0/+17
|/ / | | | | | | | | | | | | | | To support all models supported by focaltech push necessary parameters to platform data. Change-Id: I00b0e8ba7cfc8d8fbd48aa910bd3d0010283ed00 Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
* | Revert "input: synaptics_i2c_rmi4: Enable turning off regulators in suspend"Harry Yang2013-07-251-4/+0
| | | | | | | | | | | | | | | | | | This reverts commit c790dc84494b016ffe65f3bc18793ed6bc6d5ff2. It causes 1.5mA rock bottom regression in 8226. A new fix is needed. Change-Id: I9454693070b29f4ee87f8194b7460704ced657fb Signed-off-by: Harry Yang <harryy@codeaurora.org>
* | Merge "input: synaptics_i2c_rmi4: Enable turning off regulators in suspend"Linux Build Service Account2013-07-191-0/+4
|\ \
| * | input: synaptics_i2c_rmi4: Enable turning off regulators in suspendAmy Maloche2013-07-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | In order to save maximum power, turn regulators completely off instead of just putting into low power mode. Change-Id: I43042283dc1e06a8c26fd7b14556180389869059 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | | Merge "input: sensor: msm8610: Fix accelerometer working on wrong mode issue"Linux Build Service Account2013-07-101-1/+1
|\ \ \ | |/ / |/| |
| * | input: sensor: msm8610: Fix accelerometer working on wrong mode issueFigo Wang2013-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accelerometer Kionix kxtj9 always outputs 8-bit data because assign a boolean value to bit mask variable. This patch will fix this and also change the resolution control variable name from "res_12bit" to "res_ctl" to avoid misleading. Change-Id: I4784bfb18679a1a64941eafc80762241cdd825fe Signed-off-by: Figo Wang <figow@codeaurora.org>
* | | input: sensor: Add Gyro sensor support(mpu3050) for MSM8610 MTP.Richard Liu2013-07-051-0/+1
|/ / | | | | | | | | | | | | | | | | Add device tree support in mpu3050 driver to parse and handle sensor device configuration from DT. 'enable_gpio' is added as the switch control for sensor vlogic power. Change-Id: I45b5c0bf791d96646cd9ecfe4ac1038da97262e2 Signed-off-by: Richard Liu <richardl@codeaurora.org>
* | sensor: Use common device name for G-sensor device driverFigo Wang2013-06-191-1/+1
| | | | | | | | | | | | | | | | | | Use same name as name of input device on G-sensor driver kxtj9 and lis3dh that HAL layer library can use same name to find them, that we can share sensor library over projects which use different sensor device. Signed-off-by: Figo Wang <figow@codeaurora.org> Change-Id: I51ef9f2dfea23895a062009c7fdeb21d3fcef91a
* | Merge "input: synaptics_i2c_rmi4: Remove regulator_en property"Linux Build Service Account2013-06-081-2/+0
|\ \
| * | input: synaptics_i2c_rmi4: Remove regulator_en propertyAmy Maloche2013-06-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Regulator will always be required, so use it by default. Remove unnecessary device tree entry. Change-Id: If9480e4d6d8b2290eca6f594048948a77ef42d08 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | | input: ft5x06_ts: Add DT supportMohan Pallaka2013-06-051-4/+20
|/ / | | | | | | | | | | | | | | | | Add DeviceTree support for focaltech controller driver. The data is represented in device tree format and parsed by the driver using of framework apis. Change-Id: Ibcdd8c3579f401ac0632d670e1b7c674aa67ba8d Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
* | vkeys: gen_vkeys: Add key position offsetAmy Maloche2013-05-021-0/+1
| | | | | | | | | | | | | | | | | | Add virtual key position offset to match virtual key positions with front panel. Change-Id: Ibbf89e816d9654f202b75470df0c673aa42439c8 Acked-by: Chun Zhang <chunz@qti.qualcomm.com> Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_fw_update: Remove hardcoded firmware image nameAmy Maloche2013-04-031-0/+1
| | | | | | | | | | | | | | | | Firmware name should be passed in based on target, not hardcoded. Remove hardcoding and add appropriate error checking for this. Change-Id: Ia95bf2abf8a86adc649d64d757f22d84c8e0053f Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_i2c_rmi4: Add device tree supportAmy Maloche2013-03-081-1/+2
| | | | | | | | | | | | | | | | | | | | To work with device tree framework, support must be added in driver. Read in properties such as gpios, x/y size and soft button mapping. Also, enable multitouch with protocol b. Change-Id: I17f41105c57f22db1623d03627ca89f47ef57a8b Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_i2c_rmi4: Add regulator supportAmy Maloche2013-03-011-0/+2
| | | | | | | | | | | | | | | | Add support for regulators to be controlled from driver side. This includes configuration and enablement. Change-Id: I899dec377c4b766749d3f70b80a51f3c21757911 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | input: synaptics_i2c_rmi4: Add TS supportShantanu Jain2013-02-151-0/+59
| | | | | | | | | | | | | | | | | | | | Add synaptics driver support and firmware update support for synaptics touch panel, this patch also adds support for virtual keys. Corrects issues in "first commit" and "v1.1" of open source code. Change-Id: I78dcc2f540ca78e192b4570e414a8802e8982945 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | Update copyright to The Linux FoundationDuy Truong2013-02-138-8/+8
| | | | | | | | | | Change-Id: I9d411a9c00b37d0907066dbfa6db3a78c108646f Signed-off-by: Duy Truong <dtruong@codeaurora.org>
* | input: Add support for virtual key generationMohan Pallaka2013-01-211-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | Virtual keys are used for navigation on Android. These are not specific to the controller used in the target but are specific to the target. Add a module to generate virtual keys independently of the controller. Change-Id: I0c86dc77f1bc53c283e990be419c2715edf4e1c0 Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org> Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
* | STMicroelectronics LIS3DH device driver version 1.1.0Samuel Huo2012-07-121-0/+85
| | | | | | | | | | | | | | | | For Android/Linux kernel 3.4. This is the initial commit. Change-Id: I96e300d7b59743df1f757746228b47b5d444c76c Signed-off-by: Samuel Huo <samuel.huo@st.com> Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
* | input: change mpu3050 driver to request regulator, add poll supportWentao Xu2012-06-221-0/+31
| | | | | | | | | | | | | | | | Needed on 8x30 MTP/MDP platforms, where interrupt line polled up and does not work with driver's default configuration Change-Id: I4827c7a1f7df147245336d18523088c013381f1e Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
* | Merge commit 'AU_LINUX_ANDROID_ICS.04.00.04.00.126' into msm-3.4Steve Muckle2012-06-0610-5/+438
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AU_LINUX_ANDROID_ICS.04.00.04.00.126 from msm-3.0. First parent is from google/android-3.4. * commit 'AU_LINUX_ANDROID_ICS.04.00.04.00.126': (8712 commits) PRNG: Device tree entry for qrng device. vidc:1080p: Set video core timeout value for Thumbnail mode msm: sps: improve the debugging support in SPS driver board-8064 msm: Overlap secure and non secure video firmware heaps. msm: clock: Add handoff ops for 7x30 and copper XO clocks msm_fb: display: Wait for external vsync before DTV IOMMU unmap msm: Fix ciruclar dependency in debug UART settings msm: gdsc: Add GDSC regulator driver for msm-copper defconfig: Enable Mobicore Driver. mobicore: Add mobicore driver. mobicore: rename variable to lower case. mobicore: rename folder. mobicore: add makefiles mobicore: initial import of kernel driver ASoC: msm: Add SLIMBUS_2_RX CPU DAI board-8064-gpio: Update FUNC for EPM SPI CS msm_fb: display: Remove chicken bit config during video playback mmc: msm_sdcc: enable the sanitize capability msm-fb: display: lm2 writeback support on mpq platfroms msm_fb: display: Disable LVDS phy & pll during panel off ... Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
| * input: ft5x06_ts: Add driver for ft5x06 seriesMohan Pallaka2012-03-271-0/+31
| | | | | | | | | | | | | | | | | | | | Ft5x06 controllers are single chip capacitive touch panel controller ICs with a built-in 8 bit Micro Controller Unit. It supports multi-touch capability and can detect up to five touches. Change-Id: I39eb1175d473d1f2c463e1c4a0a1606307da9dc0 Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
| * drivers: pm8058: Delete pmic8058 specific subdevice driversAnirudh Ghayal2012-01-021-48/+0
| | | | | | | | | | | | | | | | | | PM8058 subdevices now use pm8xxx based drivers. Delete keypad, power-key, vibrator, rtc, mpp, gpio, thermal, batt-alarm, misc drivers. Change-Id: I7cb06a48b7d724aa1e1790ba88feeece1701bb35 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
| * input: pmic8xxx-pwrkey: Change algorithm on converting trigger delayJing Lin2011-12-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous algorithm requires that kpd_trigger_delay_us be set to 1/32 of the preferred trigger delay. The new algorithm allows setting kpd_trigger_delay_us to the preferred trigger delay directly. The actual delay can only be one of the eight levels: 2 sec, 1 sec, 1/2 sec, 1/4 sec, 1/8 sec, 1/16 sec, 1/32 sec, and 1/64 sec. The valid range of kpd_trigger_delay_us is 1/64 second to 2 seconds. A value within the valid range will be rounded down to the closest level. Any value outside the valid range will be rejected. Update board files for targets that use this driver accordingly. CRs-Fixed: 307203 Change-Id: If98b9cd32e03ab85cd078024b2adee02212cf030 Signed-off-by: Jing Lin <jinglin@codeaurora.org>
| * input: touchscreen: Add support for synaptics clearpad3000Taniya Das2011-10-242-0/+183
| | | | | | | | | | Change-Id: Ie00815ed507d81c6934ac0d4b1dfa745215ff01a Signed-off-by: Taniya Das <tdas@codeaurora.org>
| * Initial ContributionBryan Huntsman2011-10-037-5/+265
| | | | | | | | | | | | msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
* | Input: ili210x - add support for Ilitek ILI210x based touchscreensOlivier Sobrie2012-03-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | The driver supports chipsets ILI2102, ILI2102s, ILI2103, ILI2103s and ILI2105. Such kind of controllers can be found in Amazon Kindle Fire devices. Reviewed-by: Jan Paesmans <jan.paesmans@gmail.com> Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Olivier Sobrie <olivier@sobrie.be> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: kxtj9 - who_am_i check value and initial data rate fixesChristopher Hudson2012-03-161-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several fixes based on customer feedback: * WHO_AM_I value has changed since preliminary parts used for initial testing; * Output of le16_to_cpu must be saved to memory before shifting to preserve sign; * Initial data rate was not extracted from data control register init. This was causing the initial data rate to be set to maximum until it was changed. To fix this problem, it made more sense to specify initial data rate and extract the register mask from that. Signed-off-by: Chris Hudson <chudson@kionix.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: of_keymap - add device tree bindings for simple key matricesOlof Johansson2012-03-131-0/+19
| | | | | | | | | | | | | | | | | | This adds a simple device tree binding for simple key matrix data and a helper to fill in the platform data. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Merge branch 'for-next' of github.com:rydberg/linux into nextDmitry Torokhov2012-03-091-2/+6
|\ \
| * | Input: Use accessor for MT valuesHenrik Rydberg2012-02-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | The current MT accessor function does not distinguish between the MT values and the slot specification event. Add an accessor function for the values only, and use it where appropriate. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* | | Input: add support for TI Touchscreen controllerRachna Patil2012-03-041-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for TI's touchscreen controller for a 4/5/8 wire resistive panel that is directly fed to the ADC. This touchscreen controller will be part of AM335x TI SoC. The TRM can be found at: http://www.ti.com/lit/ug/spruh73a/spruh73a.pdf Signed-off-by: Patil, Rachna <rachna@ti.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | | Input: add Cypress TTSP capacitive multi-touch screen supportJavier Martinez Canillas2012-01-311-0/+58
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cypress TrueTouch(tm) Standard Product controllers are found in a wide range of embedded devices. This driver add support for a variety of TTSP controllers. Since the hardware is capable of tracking identifiable contacts, multi-touch protocol type B (stateful) is used to report contact information. The driver is composed of a core driver that process the data sent by the contacts and a set of bus specific interface modules. This patch adds the base core TTSP driver. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add driver for pixcir i2c touchscreensJianchun Bian2011-12-301-0/+10
| | | | | | | | | | | | | | | | This patch adds a driver for PIXCIR's I2C connected touchscreens. Signed-off-by: Jianchun <jcbian@pixcir.com.cn> Acked-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add driver for AUO In-Cell touchscreens using pixcir ICsHeiko Stübner2011-12-271-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some displays from AUO have a so called in-cell touchscreen, meaning it is built directly into the display unit. Touchdata is gathered through PIXCIR Tango-ICs and processed in an Atmel ATmega168P with custom firmware. Communication between the host system and ATmega is done via I2C. Devices using this touch solution include the Dell Streak5 and the family of Qisda ebook readers. The driver reports single- and multi-touch events including touch area values. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add driver for Sharp gp2ap002a00f proximity sensorCourtney Cavin2011-12-121-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | This driver adds support for Sharp's GP2AP002A00F proximity sensor. The proximity is measured as a binary switch, i.e. an object is either detected or not detected. Hence, this driver is implemented as a switch that reports SW_FRONT_PROXIMITY. Reviewed-by: Datta Shubhrajyoti <shubhrajyoti@ti.com> Signed-off-by: Courtney Cavin <courtney.cavin@sonyericsson.com> Signed-off-by: Oskar Andero <oskar.andero@sonyericsson.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add generic GPIO-tilt driverHeiko Stübner2011-11-301-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There exist tilt switches that simply report their tilt-state via some gpios. The number and orientation of their axes can vary depending on the switch used and the build of the device. Also two or more one-axis switches could be combined to provide multi-dimensional orientation. One example of a device using such a switch is the family of Qisda ebook readers, where the switch provides information about the landscape / portrait orientation of the device. The example in Documentation/input/gpio-tilt.txt documents exactly this one-axis device. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: samsung-keypad - enable compiling on other platformsDmitry Torokhov2011-11-151-0/+43
| | | | | | | | | | | | | | | | There is nothing in keypad platform definitions that requires the driver be complied on Samsung platform only, so let's move them out of the platform subdirectory and relax the dependencies. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: tca8418_keypad - initial driver releaseKyle Manna2011-10-291-0/+44
| | | | | | | | | | | | | | | | | | This driver has been tested with hardware and works as expected. To use it add the platform data as appropriate and register it with the corresponding I2C bus. Signed-off-by: Kyle Manna <kyle.manna@fuel7.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>