diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-09 21:46:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-09 21:46:02 -0400 |
commit | f4f9b8fc73f9aa93744f0e91e18f367d7766f523 (patch) | |
tree | 90d02c6722b0ffd8252ac438370600aaf8d814e7 /arch/arm | |
parent | 9894e6d9c020b754dd962960e9f7eac18282f69f (diff) | |
parent | a292241cccb7e20e8b997a9a44177e7c98141859 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input updates from Dmitry Torokhov:
"A big update to the Atmel touchscreen driver, devm support for polled
input devices, several drivers have been converted to using managed
resources, and assorted driver fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (87 commits)
Input: synaptics - fix resolution for manually provided min/max
Input: atmel_mxt_ts - fix invalid return from mxt_get_bootloader_version
Input: max8997_haptic - add error handling for regulator and pwm
Input: elantech - don't set bit 1 of reg_10 when the no_hw_res quirk is set
Input: elantech - deal with clickpads reporting right button events
Input: edt-ft5x06 - fix an i2c write for M09 support
Input: omap-keypad - remove platform data support
ARM: OMAP2+: remove unused omap4-keypad file and code
Input: ab8500-ponkey - switch to using managed resources
Input: max8925_onkey - switch to using managed resources
Input: 88pm860x-ts - switch to using managed resources
Input: 88pm860x_onkey - switch to using managed resources
Input: intel-mid-touch - switch to using managed resources
Input: wacom - process outbound for newer Cintiqs
Input: wacom - set stylus_in_proximity when pen is in range
DTS: ARM: OMAP3-N900: Add tsc2005 support
Input: tsc2005 - add DT support
Input: add common DT binding for touchscreens
Input: jornada680_kbd - switch top using managed resources
Input: adp5520-keys - switch to using managed resources
...
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/omap3-n900.dts | 17 | ||||
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 33 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap4-keypad.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 8 |
4 files changed, 16 insertions, 50 deletions
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 059a8ff1e6ac..ae8ae3f4f9bf 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts | |||
@@ -651,9 +651,24 @@ | |||
651 | * Also... order in the device tree actually matters here. | 651 | * Also... order in the device tree actually matters here. |
652 | */ | 652 | */ |
653 | tsc2005@0 { | 653 | tsc2005@0 { |
654 | compatible = "tsc2005"; | 654 | compatible = "ti,tsc2005"; |
655 | spi-max-frequency = <6000000>; | 655 | spi-max-frequency = <6000000>; |
656 | reg = <0>; | 656 | reg = <0>; |
657 | |||
658 | vio-supply = <&vio>; | ||
659 | |||
660 | reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ | ||
661 | interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */ | ||
662 | |||
663 | touchscreen-fuzz-x = <4>; | ||
664 | touchscreen-fuzz-y = <7>; | ||
665 | touchscreen-fuzz-pressure = <2>; | ||
666 | touchscreen-max-x = <4096>; | ||
667 | touchscreen-max-y = <4096>; | ||
668 | touchscreen-max-pressure = <2048>; | ||
669 | |||
670 | ti,x-plate-ohms = <280>; | ||
671 | ti,esd-recovery-timeout-ms = <8000>; | ||
657 | }; | 672 | }; |
658 | 673 | ||
659 | acx565akm@2 { | 674 | acx565akm@2 { |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index e58609b312c7..592ba0a0ecf3 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/pinctrl/machine.h> | 20 | #include <linux/pinctrl/machine.h> |
21 | #include <linux/platform_data/omap4-keypad.h> | ||
22 | #include <linux/platform_data/mailbox-omap.h> | 21 | #include <linux/platform_data/mailbox-omap.h> |
23 | 22 | ||
24 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
@@ -29,7 +28,6 @@ | |||
29 | #include "iomap.h" | 28 | #include "iomap.h" |
30 | #include "omap_hwmod.h" | 29 | #include "omap_hwmod.h" |
31 | #include "omap_device.h" | 30 | #include "omap_device.h" |
32 | #include "omap4-keypad.h" | ||
33 | 31 | ||
34 | #include "soc.h" | 32 | #include "soc.h" |
35 | #include "common.h" | 33 | #include "common.h" |
@@ -255,37 +253,6 @@ static inline void omap_init_camera(void) | |||
255 | #endif | 253 | #endif |
256 | } | 254 | } |
257 | 255 | ||
258 | int __init omap4_keyboard_init(struct omap4_keypad_platform_data | ||
259 | *sdp4430_keypad_data, struct omap_board_data *bdata) | ||
260 | { | ||
261 | struct platform_device *pdev; | ||
262 | struct omap_hwmod *oh; | ||
263 | struct omap4_keypad_platform_data *keypad_data; | ||
264 | unsigned int id = -1; | ||
265 | char *oh_name = "kbd"; | ||
266 | char *name = "omap4-keypad"; | ||
267 | |||
268 | oh = omap_hwmod_lookup(oh_name); | ||
269 | if (!oh) { | ||
270 | pr_err("Could not look up %s\n", oh_name); | ||
271 | return -ENODEV; | ||
272 | } | ||
273 | |||
274 | keypad_data = sdp4430_keypad_data; | ||
275 | |||
276 | pdev = omap_device_build(name, id, oh, keypad_data, | ||
277 | sizeof(struct omap4_keypad_platform_data)); | ||
278 | |||
279 | if (IS_ERR(pdev)) { | ||
280 | WARN(1, "Can't build omap_device for %s:%s.\n", | ||
281 | name, oh->name); | ||
282 | return PTR_ERR(pdev); | ||
283 | } | ||
284 | oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt); | ||
285 | |||
286 | return 0; | ||
287 | } | ||
288 | |||
289 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) | 256 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) |
290 | static inline void __init omap_init_mbox(void) | 257 | static inline void __init omap_init_mbox(void) |
291 | { | 258 | { |
diff --git a/arch/arm/mach-omap2/omap4-keypad.h b/arch/arm/mach-omap2/omap4-keypad.h deleted file mode 100644 index 20de0d5a7e77..000000000000 --- a/arch/arm/mach-omap2/omap4-keypad.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H | ||
2 | #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H | ||
3 | |||
4 | struct omap_board_data; | ||
5 | |||
6 | extern int omap4_keyboard_init(struct omap4_keypad_platform_data *, | ||
7 | struct omap_board_data *); | ||
8 | #endif | ||
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 6c719eccb94e..c1ce921c4088 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -234,14 +234,6 @@ static void __init goni_radio_init(void) | |||
234 | 234 | ||
235 | /* TSP */ | 235 | /* TSP */ |
236 | static struct mxt_platform_data qt602240_platform_data = { | 236 | static struct mxt_platform_data qt602240_platform_data = { |
237 | .x_line = 17, | ||
238 | .y_line = 11, | ||
239 | .x_size = 800, | ||
240 | .y_size = 480, | ||
241 | .blen = 0x21, | ||
242 | .threshold = 0x28, | ||
243 | .voltage = 2800000, /* 2.8V */ | ||
244 | .orient = MXT_DIAGONAL, | ||
245 | .irqflags = IRQF_TRIGGER_FALLING, | 237 | .irqflags = IRQF_TRIGGER_FALLING, |
246 | }; | 238 | }; |
247 | 239 | ||