aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
Commit message (Collapse)AuthorAgeFilesLines
* input: add GP2A light and proximity sensor driverZiyan2016-04-303-1/+914
| | | | | Based on the sources from: GT-P3110_JB_Opensource, plus: * f25245b - espresso: sensors: get rid of omap_muxtbl, minor cleanups
* bma180: cancel synch active accel work on suspendGrygorii Strashko2012-06-111-4/+6
| | | | | | | | | | | | | The bma180_accel_device_worklogic has to be canceled synchronously before continue suspending, because of: - it may sleep while accessing to I2C bus and, as result, WFI may be reached in the middle of its execution and that may prevent system from entering to OFF state. - the accel device suspend handler may switch bm180 to sleep state while bma180_accel_device_worklogic is still active. Change-Id: I66d56c895a37cc9391cfbb095f6e9ee45be86e49 Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
* OMAP4: hack for device is not resuming after suspendEugen Mandrenko2012-03-241-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The device is not resumed, in the case if "POWERON" button was pressed for short time. The algorithm is following: 1. Device is resumed, and system reads the reason of resuming from TWL status registers. But user releases the "POWERON" button while system is in resume process. See pic1 and pic2 ___ pic1 | | real button state /|\ \|/ ________| |___________ pic2 | | system receive \|/ \|/ following state _____________|___|______ | | /|\ \|/ where | is button pressed state | is button released state 2.We are read the cause of resume and get "button released". 3.After that we get second interrupt "Button released", because button was really released and second interrupt was happened. See pic2. In this situation the system sees this, like two pairs of "pressButton/releaseButton". The patch removes a second "pressButton/releaseButton". Change-Id: Ieec7227db19ed43f7964159169eee44386d7d511 Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com> Signed-off-by: Sergii Postulga <x0153364@ti.com>
* OMAP4:To Fix the Slow Resume during first suspendSiva Pothireddy2012-03-051-1/+1
| | | | | | | | | | | | | The below patch gave a workaround to avoid Long Key Press to resume from suspend http://review.omapzoom.org/#change,17913 But after reboot if we go to suspend without pressing the power key i.e. waiting for timeout, then its not resuming normally. So with this patch, if its first time we provide press/release event to the upper layer. Change-Id: If4d44adcc3e95bdaf8a5eec16b3a7561ae8a7b2a Signed-off-by: Siva Pothireddy <sivakumar.pothireddy@ti.com>
* tsl2771 prox/als: Change suspend/resume and enable/disable logicSergii Postulga2012-02-011-26/+29
| | | | | | | | | | | | | | | Logic in suspend/resume path is not correct. Even if proximity sensor is disabled - resume logic will enable it. This patch fixed this. Also, patch resolve issue with disabling ALS sensor. TSL2771's datasheet says that AEN bit should be enable, even if only proximity sensor is used. This patch keep AEN-bit if sensors are enabled and clear it during disabling last of them. Change-Id: Ib134429d36af2c640ff0b52235d91f7f0cf754ef Signed-off-by: Sergii Postulga <x0153364@ti.com>
* OMAP4: Workaround to avoid Long Key Press to resume from suspend.Sivakumar Pothireddy2011-12-271-3/+20
| | | | | | | | | | | | | TWL PIH interrupt gets enabled earlier than the module level interrupts. KeyPress has 2 events. Press and Release event for each Key press. There is only bit in the Register which maintains both the status. Due to delay in interrupt enabling we are loosing Press event interrupts. This patch maintains the prev state of keyevent. If current event is same as prev event we provide press/release event to the upper layer. Change-Id: I01808c7a52e62c951b8da178b02e1a5f9edb3b03 Signed-off-by: Sivakumar Pothireddy <sivakumar.pothireddy@ti.com> Signed-off-by: Rajeev Kulkarni <rajeevk@ti.com>
* BMA180: Fix interrupt handling in the accelerometerDan Murphy2011-12-151-14/+21
| | | | | | | | | Fix the interrupt handling in the BMA180 accelerometer driver The interrupt handler was not being called properly and the delayed work would always be called. Change-Id: Iadd2b9b053d7af053908fca204623d102b107b8d Signed-off-by: Dan Murphy <dmurphy@ti.com>
* hmc5843 driver fixesDavid Taylor2011-12-021-47/+55
| | | | | | | | | | | | | fixes several rate selection issues discovered: sysfs store parameter validation HMC5843_USE_WORK_QUEUES selected different sysfs rate scales one code path didn't unlock mutex hmc5843_sample_interval array overrun driver data mutex locking index register synchronization Change-Id: I882eb11ea067d9ca2d6b0e9ee4ede099867d2fec Signed-off-by: David Taylor <x0158378@ti.com>
* CMA3000: Fix race condition between enable and work schedule.Oleksandr Kozaruk2011-11-141-9/+9
| | | | | | | | | | | | | Accelerometer work can be scheduled from work itself and from userspace by enabling it in sysfs. The change in sysfs from userspace was ignored and work constantly rescheduled, keeping accelerometer always enabled. Now mode set from userspace is saved and analyzed in work before scheduling. If accelerometer is disable, work is not scheduled. Change-Id: I8eacc45cc974947ef474b5e15c961e04bae611f6 Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
* Merge branch 'android-omap-3.0' into p-android-omap-3.0Dan Murphy2011-11-111-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * android-omap-3.0: (26 commits) OMAP3+: Smartreflex: clear ERRCONFIG_VPBOUNDINTST only on a need OMAP3+: Smartreflex: Fix status masking in ERRCONFIG register OMAP3+: PM: VP: check only the VPINIDLE status bit OMAP3+: Smartreflex: Add a shutdown hook OMAP3+: Smartreflex: prevent dvfs during autocomp enable/disable sequences OMAP3+: PM: DVFS: remove omap_dvfs_is_scaling OMAP3+: PM: DVFS: simplify omap_dvfs_is_any_dev_scaling OMAP4: PM: skip going through the LP sleep sequence if conflict with DVFS cpufreq: interactive governor: default 20ms timer cpufreq: interactive governor: go to intermediate hi speed before max MFD: twl6040: Enable/disable external 32kHz clock MFD: twl6040: Remove unnecessary pdev local variable cpufreq: interactive governor: scale to max only if at min speed cpufreq: interactive governor: apply intermediate load on current speed ARM: idle: update idle ticks before call idle end notifier ARM: omap4: PM: mask all PPIs when going into low power mode input: gpio_input: don't print debounce message unless flag is set ASoC: omap-mcasp: HACK: Prevent C3 power state ASoC: omap-mcasp: Rename the omap_hw_dit_param function to omap_mcasp_setup ASoC: omap-mcasp: Do not configure the IDLE mode in the driver ... Change-Id: I687d9d018b17ce19b99afe5fc52a28e27385373a Signed-off-by: Dan Murphy <dmurphy@ti.com>
| * input: gpio_input: don't print debounce message unless flag is setDima Zavin2011-11-081-4/+5
| | | | | | | | | | Change-Id: I29ccb32e795c5c3e4c51c3d3a209f5b55dfd7d94 Signed-off-by: Dima Zavin <dima@android.com>
* | [Tablet] MPU3050: Initialize the default polling rateDan Murphy2011-10-131-1/+2
| | | | | | | | | | | | | | Initialize the default polling rate from the board file Change-Id: I36abf00e843b287e9c8a2ebff56d01d1e37f9dd8 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | bma180: Fix race condition between enable and work scheduleDan Murphy2011-10-031-4/+7
| | | | | | | | | | | | | | | | | | | | There is a race condition where the work logic thread may schedule another work item after the accelerometer was disabled Add some intelligence in the work logic to only schedule work items if the accel is enabled Change-Id: Ice69bae45d2dea8d9c92406dc3ecde2c2f98564c Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | bma180: Simplify suspend resume routines for accelDan Murphy2011-10-031-60/+19
| | | | | | | | | | | | | | | | | | | | | | Simplify the suspend and resume routines for the BMA180 since if the accel was off before suspend there is no reason to turn it off again. And if the accel was not on for resume then we should not turn on the accelerometer. Change-Id: I3a8ede8d8ffaaaf8c59038e14fdb080d99c55af3 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | tsl2771 prox/als: Update suspend/resume to dev_pm_opsDan Murphy2011-09-161-9/+17
| | | | | | | | | | | | | | | | Update the power management suspend/resume to use the dev_pm_ops instead of legacy suspend/resume callbacks Change-Id: Id6d89fdd72049ae1bf21053cab544253ae23437b Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | hmc5843 magnetometer: Update suspend/resume to dev_pm_opsDan Murphy2011-09-161-8/+15
| | | | | | | | | | | | | | | | Update the power management suspend/resume to use the dev_pm_ops instead of legacy suspend/resume callbacks Change-Id: Iabc4ee9734214b583e4b724dc761ccdc0828c308 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | mpu3050 gyro: Update suspend/resume to dev_pm_opsDan Murphy2011-09-161-9/+16
| | | | | | | | | | | | | | | | Update the power management suspend/resume to use the dev_pm_ops instead of legacy suspend/resume callbacks Change-Id: Ifb32f4351cf33ce5087081e06b45191ef9ac621c Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | cma3000 accelerometer: Update suspend/resume to dev_pm_opsDan Murphy2011-09-161-8/+17
| | | | | | | | | | | | | | | | Update the power management suspend/resume to use the dev_pm_ops instead of legacy suspend/resume callbacks Change-Id: I90bfe53bb36c2460c196f475be73079bf5da7cf8 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | bma180 accelerometer: Update suspend/resume to dev_pm_opsDan Murphy2011-09-161-9/+16
| | | | | | | | | | | | | | | | Update the power management suspend/resume to use the dev_pm_ops instead of legacy suspend/resume callbacks Change-Id: I879d206b14367486e8402b124ce442655c1292c7 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | TSL2771 prox/als: Remove unneeded logging statementDan Murphy2011-09-131-2/+1
| | | | | | | | | | | | | | | | The logging statement "not powering the device down" does not make sense and always is shown if the device was not enabled. Change-Id: Ic8c2eed25b2fd99791a40f66a5a0c3a0ef72113b Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | Merge branch 'android-omap-3.0' into p-android-omap-3.0Dan Murphy2011-09-131-5/+19
|\ \ | |/ | | | | | | | | | | | | Conflicts: sound/soc/omap/Kconfig Change-Id: Id52a4dcc5650d22a3d732b95592bb525e8448b05 Signed-off-by: Dan Murphy <dmurphy@ti.com>
| * input: misc: gpio; make wake irq conditional, and disable on remove pathsMike J. Chen2011-09-121-5/+19
| | | | | | | | | | | | | | | | | | Add a board file option to gpio_input devices to make calling enable_irq_wake conditional. Also disable the wake irq when removing the device. Change-Id: If933b9d3a751d89fa95ae3b7f739dfe70fcb23c8 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* | [Tablet] BMA180 Accelerometer:Port BMA180 k35 driver to k3.0Dan Murphy2011-07-223-0/+839
| | | | | | | | | | | | | | Port BMA180 k35 driver to k3.0 Change-Id: Ic018de4ae42db15ff50834fe726d2a77e9618678 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | [Tablet] MPU3050 Gyro:Port MPU3050 k35 driver to k3.0Dan Murphy2011-07-223-0/+778
| | | | | | | | | | | | | | Port MPU3050 k35 driver to k3.0 Change-Id: I574b4b42626b61bbd915fc6899505032f7492727 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | [Tablet] Added missing APIs for TSL2771 Proximity driverDan Murphy2011-07-221-1/+5
| | | | | | | | | | | | | | | | | | Added __set_bit and input_set_abs_params APIs to tsl2771.c This change stopped kernel panic from occurring Also allows the driver to function properly Change-Id: Ie5b9083880a90cb73e606bbbb9e0b4b84a741f88 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | [Tablet] TSL2771 Prox/ALS:Port TSL2771 k35 driver to k3.0Dan Murphy2011-07-223-0/+942
| | | | | | | | | | | | | | Port TSL2771 k35 driver to k3.0 Change-Id: Ib35625999528711ce110e716401326d053185ffa Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | [Blaze] Added enable feature for Ambient Light sensorArthur Philpot2011-07-161-2/+39
| | | | | | | | | | | | | | Added enable functions for Ambient Light Sensor to bh170gli.c Change-Id: Icbb18e3191c942fc8f93158b82718e7f655b503d Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | Merge branch 'android-omap-3.0' into p-android-omap-3.0Dan Murphy2011-07-131-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * android-omap-3.0: (227 commits) OMAP4: irq: Make use of IRQCHIP_MASK_ON_SUSPEND flag. ARM: gic: Allow gic arch extensions to provide irqchip flags netfitler: fixup the quota2, and enable. OMAP: TILER: export user_block_to_pa function Linux 3.0-rc7 Documentation/Changes: remove some really obsolete text netfilter: adding the original quota2 from xtables-addons ath5k: Add missing breaks in switch/case Documentation/spinlocks.txt: Remove reference to sti()/cli() cifs: drop spinlock before calling cifs_put_tlink hp-wmi: fix use after free dell-laptop - using buffer without mutex_lock Revert: "dell-laptop: Toggle the unsupported hardware killswitch" PM: Reintroduce dropped call to check_wakeup_irqs [CPUFREQ] fix cpumask memory leak in acpi-cpufreq on cpu hotplug. hwmon: (pmbus) Improve auto-detection of temperature status register hwmon: (lm95241) Fix negative temperature results firewire: ohci: do not bind to Pinnacle cards, avert panic cifs: fix expand_dfs_referral cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL ...
| * Merge commit 'v3.0-rc7' into android-3.0Colin Cross2011-07-121-1/+2
| |\
| | * input: pmic8xxx-pwrkey: Do not use mfd_get_data()Samuel Ortiz2011-07-051-1/+2
| | | | | | | | | | | | | | | | | | | | | mfd_get_data() has been removed from the MFD API. Cc: Anirudh Ghayal <aghayal@codeaurora.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | [Blaze] Fix for compiler warning on HMC5843 driverArthur Philpott2011-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | Fixed array out of bounds error in hmc5843_store_rate Change-Id: Ib3ef5424f52bc7a9f805869a777ad92620734505 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] Add power button support for the twl6030Dan Murphy2011-06-273-0/+193
| | | | | | | | | | | | | | | | | | Add the power button support for the twl6030 Signed-off-by: Dan Murphy <dmurphy@ti.com>
* | | [Blaze] HMC5843 Digital Compass:Port HMC5843 k39 driver to k3.0Dan Murphy2011-06-273-0/+692
| | | | | | | | | | | | | | | | | | | | | Port HMC5843 k39 driver to k3.0 Change-Id: I7c56afa3884cc451bab4931d179bb76f7ab425d6 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] BH1780GLI Ambient Light:Port BH1780GLI k39 driver to k3.0Dan Murphy2011-06-273-1/+444
| | | | | | | | | | | | | | | | | | | | | Port BH1780GLI k39 driver to k3.0 Change-Id: Ic1cf6f7c9537ffbadc5b5e4a556adccfbff8e737 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] BMP085 Pressure:Port BMP085 k39 driver to k3.0Dan Murphy2011-06-273-0/+610
| | | | | | | | | | | | | | | | | | | | | Port BMP085 k39 driver to k3.0 Change-Id: If8173267a795523fb219caa40732ab379a903f20 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] Kconfig:Add build flag for SFH7741 proximity for 4430 blazeDan Murphy2011-06-271-0/+8
| | | | | | | | | | | | | | | | | | | | | Added the SFH7741 build flags for the proximity driver Change-Id: Ifca849bbc78d1541090c09934e146b86266d974f Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] Board 4430 sdp:Removed SFH7741 structs and omap SFH7741 initDan Murphy2011-06-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Removed SFH7741 structs from board-4430sdp.c and added them to board-blaze-sensors.c Removed omap SFH7741 init from board-4430sdp.c and added it to board-blaze-sensors.c Change-Id: If2ae11bdd5251e16f409f4ee93338baed61056a9 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] SFH7741 Proximity:Port SFH7741 k39 driver to k3.0Dan Murphy2011-06-271-0/+317
| | | | | | | | | | | | | | | | | | | | | Port SFH7741 k39 driver to k3.0 Change-Id: I9dfb7cf82b09cd24e28e1808faf84536401d9ce9 Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | | [Blaze] CMA3000 accelerometer:Port CMA3000 k39 driver to k3.0Dan Murphy2011-06-273-307/+710
|/ / | | | | | | | | | | | | Port CMA3000 k39 driver to k3.0 Change-Id: Iaf2ab4e6adccd1e8a0ea7209b41ca30ebfe6802b Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
* | input: gpio_input: send input_sync after reporting keysJeff Brown2011-06-141-0/+8
| | | | | | | | | | Signed-off-by: jeffbrown@android.com Change-Id: Ie170960df3c8ab4833ed686135dc8575cb9f2d48
* | input: gpio_matrix: send input_sync after reporting keysJeff Brown2011-06-141-0/+9
| | | | | | | | | | Signed-off-by: jeffbrown@android.com Change-Id: I9bd2437503b48bf37f4d93505ccd2806e4aab977
* | input: misc: gpio_matrix: Fix irq call for 2.6.39Colin Cross2011-06-141-1/+1
| | | | | | | | | | Change-Id: Ib8dd0ab6554e6b0e3798bf75d41f77ea0b20b8de Signed-off-by: Colin Cross <ccross@android.com>
* | input: gpio_event: make driver be more robust against incorrectly configured ↵Dima Zavin2011-06-141-1/+10
| | | | | | | | | | | | | | lvl trigger irqs Change-Id: Ie378600668500dcffeaaddeaba3628e5c2141aa4 Signed-off-by: Dima Zavin <dima@android.com>
* | Input: gpio_event: Don't call gpio_cansleep before gpio_request.Arve Hjønnevåg2011-06-141-6/+6
| | | | | | | | | | | | If the gpio did not exist it would crash in gpiolib. Signed-off-by: Arve Hjønnevåg <arve@android.com>
* | drivers: input: misc: Fix section mismatch warningDmitry Shmidt2011-06-141-1/+1
| | | | | | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | input: keychord: Add keychord driverMike Lockwood2011-06-143-0/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver allows userspace to receive notification when client specified key combinations are pressed. The client opens /dev/keychord and writes a list of keychords for the driver to monitor. The client then reads or polls /dev/keychord for notifications. A client specified ID for the keychord is returned from read() when a keychord press is detected. Signed-off-by: Mike Lockwood <lockwood@android.com> keychord: fix to build without CONFIG_PREEMPT Change-Id: I911f13aeda4224b6fa57863bc7e8972fec8837fb
* | Input: gpio_input: disable_irq -> disable_irq_nosyncArve Hjønnevåg2011-06-142-4/+2
| | | | | | | | Signed-off-by: Arve Hjønnevåg <arve@android.com>
* | Input: gpio_event: Allow multiple input devices per gpio_event deviceArve Hjønnevåg2011-06-145-65/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to support devices that put non-keyboard buttons in the keyboard matrix. For instance several devices put the trackball button in the keyboard matrix. In this case BTN_MOUSE should be reported from the same input device as REL_X/Y. It is also useful for devices that have multiple logical keyboard in the same matrix. The HTC dream has a menu key on the external keyboard and another menu key on the slide-out keyboard. With a single input device only one of these menu keys can be mapped to KEY_MENU. Signed-off-by: Arve Hjønnevåg <arve@android.com>
* | Input: gpio_input: Fix keys with keycode 0x100-0x1ffArve Hjønnevåg2011-06-141-3/+2
| | | | | | | | | | | | KEY_MAX is no longer a power of 2. Signed-off-by: Arve Hjønnevåg <arve@android.com>
* | Input: Generic GPIO Input device.Arve Hjønnevåg2011-06-147-0/+1247
|/ | | | | | | | Supports keyboard matrixces, direct inputs, direct outputs and axes connected to gpios. Change-Id: I5e921e6e3a1cc169316ee3b665f4cc21b5735114 Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Nick Pelly <npelly@google.com>