Skip to content

Commit 664fb23

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input updates from Dmitry Torokhov: - big update to Wacom driver by Benjamin Tissoires, converting it to HID infrastructure and unifying USB and Bluetooth models - large update to ALPS driver by Hans de Goede, which adds support for newer touchpad models as well as cleans up and restructures the code - more changes to Atmel MXT driver, including device tree support - new driver for iPaq x3xxx touchscreen - driver for serial Wacom tablets - driver for Microchip's CAP1106 - assorted cleanups and improvements to existing drover and input core * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (93 commits) Input: wacom - update the ABI doc according to latest changes Input: wacom - only register once the MODULE_* macros Input: HID - remove hid-wacom Bluetooth driver Input: wacom - add copyright note and bump version to 2.0 Input: wacom - remove passing id for wacom_set_report Input: wacom - check for bluetooth protocol while setting OLEDs Input: wacom - handle Intuos 4 BT in wacom.ko Input: wacom - handle Graphire BT tablets in wacom.ko Input: wacom - prepare the driver to include BT devices Input: hyperv-keyboard - register as a wakeup source Input: imx_keypad - remove ifdef round PM methods Input: jornada720_ts - get rid of space indentation and use tab Input: jornada720_ts - switch to using managed resources Input: alps - Rushmore and v7 resolution support Input: mcs5000_ts - remove ifdef around power management methods Input: mcs5000_ts - protect PM functions with CONFIG_PM_SLEEP Input: ads7846 - release resources on failure for clean exit Input: wacom - add support for 0x12C ISDv4 sensor Input: atmel_mxt_ts - use deep sleep mode when stopped ARM: dts: am437x-gp-evm: Update binding for touchscreen size ...
2 parents 8065be8 + c704b4e commit 664fb23

48 files changed

Lines changed: 4516 additions & 2886 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,68 @@
1-
WWhat: /sys/class/hidraw/hidraw*/device/oled*_img
2-
Date: June 2012
3-
Contact: linux-bluetooth@vger.kernel.org
4-
Description:
5-
The /sys/class/hidraw/hidraw*/device/oled*_img files control
6-
OLED mocro displays on Intuos4 Wireless tablet. Accepted image
7-
has to contain 256 bytes (64x32 px 1 bit colour). The format
8-
is the same as PBM image 62x32px without header (64 bits per
9-
horizontal line, 32 lines). An example of setting OLED No. 0:
10-
dd bs=256 count=1 if=img_file of=[path to oled0_img]/oled0_img
11-
The attribute is read only and no local copy of the image is
12-
stored.
13-
14-
What: /sys/class/hidraw/hidraw*/device/speed
1+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/speed
152
Date: April 2010
163
Kernel Version: 2.6.35
174
Contact: linux-bluetooth@vger.kernel.org
185
Description:
19-
The /sys/class/hidraw/hidraw*/device/speed file controls
20-
reporting speed of Wacom bluetooth tablet. Reading from
21-
this file returns 1 if tablet reports in high speed mode
6+
The /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/speed file
7+
controls reporting speed of Wacom bluetooth tablet. Reading
8+
from this file returns 1 if tablet reports in high speed mode
229
or 0 otherwise. Writing to this file one of these values
2310
switches reporting speed.
2411

25-
What: /sys/class/leds/0005\:056A\:00BD.0001\:selector\:*/
26-
Date: May 2012
27-
Kernel Version: 3.5
28-
Contact: linux-bluetooth@vger.kernel.org
29-
Description:
30-
LED selector for Intuos4 WL. There are 4 leds, but only one LED
31-
can be lit at a time. Max brightness is 127.
32-
33-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/led
34-
Date: August 2011
12+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/led
13+
Date: August 2014
3514
Contact: linux-input@vger.kernel.org
3615
Description:
3716
Attribute group for control of the status LEDs and the OLEDs.
3817
This attribute group is only available for Intuos 4 M, L,
39-
and XL (with LEDs and OLEDs), Intuos 5 (LEDs only), and Cintiq
40-
21UX2 and Cintiq 24HD (LEDs only). Therefore its presence
41-
implicitly signifies the presence of said LEDs and OLEDs on the
42-
tablet device.
18+
and XL (with LEDs and OLEDs), Intuos 4 WL, Intuos 5 (LEDs only),
19+
Intuos Pro (LEDs only) and Cintiq 21UX2 and Cintiq 24HD
20+
(LEDs only). Therefore its presence implicitly signifies the
21+
presence of said LEDs and OLEDs on the tablet device.
4322

44-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status0_luminance
45-
Date: August 2011
23+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status0_luminance
24+
Date: August 2014
4625
Contact: linux-input@vger.kernel.org
4726
Description:
4827
Writing to this file sets the status LED luminance (1..127)
4928
when the stylus does not touch the tablet surface, and no
5029
button is pressed on the stylus. This luminance level is
5130
normally lower than the level when a button is pressed.
5231

53-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status1_luminance
54-
Date: August 2011
32+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status1_luminance
33+
Date: August 2014
5534
Contact: linux-input@vger.kernel.org
5635
Description:
5736
Writing to this file sets the status LED luminance (1..127)
5837
when the stylus touches the tablet surface, or any button is
5938
pressed on the stylus.
6039

61-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led0_select
62-
Date: August 2011
40+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led0_select
41+
Date: August 2014
6342
Contact: linux-input@vger.kernel.org
6443
Description:
6544
Writing to this file sets which one of the four (for Intuos 4
6645
and Intuos 5) or of the right four (for Cintiq 21UX2 and Cintiq
6746
24HD) status LEDs is active (0..3). The other three LEDs on the
6847
same side are always inactive.
6948

70-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led1_select
71-
Date: September 2011
49+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led1_select
50+
Date: August 2014
7251
Contact: linux-input@vger.kernel.org
7352
Description:
7453
Writing to this file sets which one of the left four (for Cintiq 21UX2
7554
and Cintiq 24HD) status LEDs is active (0..3). The other three LEDs on
7655
the left are always inactive.
7756

78-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/buttons_luminance
79-
Date: August 2011
57+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/buttons_luminance
58+
Date: August 2014
8059
Contact: linux-input@vger.kernel.org
8160
Description:
8261
Writing to this file sets the overall luminance level (0..15)
8362
of all eight button OLED displays.
8463

85-
What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/button<n>_rawimg
86-
Date: August 2011
64+
What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/button<n>_rawimg
65+
Date: August 2014
8766
Contact: linux-input@vger.kernel.org
8867
Description:
8968
When writing a 1024 byte raw image in Wacom Intuos 4
@@ -93,3 +72,8 @@ Description:
9372
byte chunk encodes the image data for two consecutive lines on
9473
the display. The low nibble of each byte contains the first
9574
line, and the high nibble contains the second line.
75+
When the Wacom Intuos 4 is connected over Bluetooth, the
76+
image has to contain 256 bytes (64x32 px 1 bit colour).
77+
The format is also scrambled, like in the USB mode, and it can
78+
be summarized by converting 76543210 into GECA6420.
79+
HGFEDCBA HFDB7531
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Atmel maXTouch touchscreen/touchpad
2+
3+
Required properties:
4+
- compatible:
5+
atmel,maxtouch
6+
7+
- reg: The I2C address of the device
8+
9+
- interrupts: The sink for the touchpad's IRQ output
10+
See ../interrupt-controller/interrupts.txt
11+
12+
Optional properties for main touchpad device:
13+
14+
- linux,gpio-keymap: An array of up to 4 entries indicating the Linux
15+
keycode generated by each GPIO. Linux keycodes are defined in
16+
<dt-bindings/input/input.h>.
17+
18+
Example:
19+
20+
touch@4b {
21+
compatible = "atmel,maxtouch";
22+
reg = <0x4b>;
23+
interrupt-parent = <&gpio>;
24+
interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
25+
};
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Device tree bindings for Microchip CAP1106, 6 channel capacitive touch sensor
2+
3+
The node for this driver must be a child of a I2C controller node, as the
4+
device communication via I2C only.
5+
6+
Required properties:
7+
8+
compatible: Must be "microchip,cap1106"
9+
10+
reg: The I2C slave address of the device.
11+
Only 0x28 is valid.
12+
13+
interrupts: Property describing the interrupt line the
14+
device's ALERT#/CM_IRQ# pin is connected to.
15+
The device only has one interrupt source.
16+
17+
Optional properties:
18+
19+
autorepeat: Enables the Linux input system's autorepeat
20+
feature on the input device.
21+
22+
microchip,sensor-gain: Defines the gain of the sensor circuitry. This
23+
effectively controls the sensitivity, as a
24+
smaller delta capacitance is required to
25+
generate the same delta count values.
26+
Valid values are 1, 2, 4, and 8.
27+
By default, a gain of 1 is set.
28+
29+
linux,keycodes: Specifies an array of numeric keycode values to
30+
be used for the channels. If this property is
31+
omitted, KEY_A, KEY_B, etc are used as
32+
defaults. The array must have exactly six
33+
entries.
34+
35+
Example:
36+
37+
i2c_controller {
38+
cap1106@28 {
39+
compatible = "microchip,cap1106";
40+
interrupt-parent = <&gpio1>;
41+
interrupts = <0 0>;
42+
reg = <0x28>;
43+
autorepeat;
44+
microchip,sensor-gain = <2>;
45+
46+
linux,keycodes = <103 /* KEY_UP */
47+
106 /* KEY_RIGHT */
48+
108 /* KEY_DOWN */
49+
105 /* KEY_LEFT */
50+
109 /* KEY_PAGEDOWN */
51+
104>; /* KEY_PAGEUP */
52+
};
53+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
* Pixcir I2C touchscreen controllers
2+
3+
Required properties:
4+
- compatible: must be "pixcir,pixcir_ts" or "pixcir,pixcir_tangoc"
5+
- reg: I2C address of the chip
6+
- interrupts: interrupt to which the chip is connected
7+
- attb-gpio: GPIO connected to the ATTB line of the chip
8+
- touchscreen-size-x: horizontal resolution of touchscreen (in pixels)
9+
- touchscreen-size-y: vertical resolution of touchscreen (in pixels)
10+
11+
Example:
12+
13+
i2c@00000000 {
14+
/* ... */
15+
16+
pixcir_ts@5c {
17+
compatible = "pixcir,pixcir_ts";
18+
reg = <0x5c>;
19+
interrupts = <2 0>;
20+
attb-gpio = <&gpf 2 0 2>;
21+
touchscreen-size-x = <800>;
22+
touchscreen-size-y = <600>;
23+
};
24+
25+
/* ... */
26+
};

‎Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Required properties:
99
- x-size: horizontal resolution of touchscreen
1010
- y-size: vertical resolution of touchscreen
1111

12+
Optional properties:
13+
- vdd-supply: Regulator controlling the controller supply
14+
1215
Example:
1316

1417
i2c@00000000 {
@@ -18,6 +21,7 @@ Example:
1821
compatible = "neonode,zforce";
1922
reg = <0x50>;
2023
interrupts = <2 0>;
24+
vdd-supply = <&reg_zforce_vdd>;
2125

2226
gpios = <&gpio5 6 0>, /* INT */
2327
<&gpio5 9 0>; /* RST */

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ panasonic Panasonic Corporation
103103
phytec PHYTEC Messtechnik GmbH
104104
picochip Picochip Ltd
105105
plathome Plat'Home Co., Ltd.
106+
pixcir PIXCIR MICROELECTRONICS Co., Ltd
106107
powervr PowerVR (deprecated, use img)
107108
qca Qualcomm Atheros, Inc.
108109
qcom Qualcomm Technologies, Inc

‎MAINTAINERS‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9877,6 +9877,13 @@ M: Pierre Ossman <pierre@ossman.eu>
98779877
S: Maintained
98789878
F: drivers/mmc/host/wbsd.*
98799879

9880+
WACOM PROTOCOL 4 SERIAL TABLETS
9881+
M: Julian Squires <julian@cipht.net>
9882+
M: Hans de Goede <hdegoede@redhat.com>
9883+
L: linux-input@vger.kernel.org
9884+
S: Maintained
9885+
F: drivers/input/tablet/wacom_serial4.c
9886+
98809887
WATCHDOG DEVICE DRIVERS
98819888
M: Wim Van Sebroeck <wim@iguana.be>
98829889
L: linux-watchdog@vger.kernel.org

‎arch/arm/boot/dts/am437x-gp-evm.dts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@
334334

335335
attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
336336

337-
x-size = <1024>;
338-
y-size = <600>;
337+
touchscreen-size-x = <1024>;
338+
touchscreen-size-y = <600>;
339339
};
340340
};
341341

‎arch/arm/boot/dts/am43x-epos-evm.dts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@
403403

404404
attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>;
405405

406-
x-size = <1024>;
407-
y-size = <600>;
406+
touchscreen-size-x = <1024>;
407+
touchscreen-size-y = <600>;
408408
};
409409
};
410410

‎drivers/hid/Kconfig‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,17 @@ config THRUSTMASTER_FF
764764
Rumble Force or Force Feedback Wheel.
765765

766766
config HID_WACOM
767-
tristate "Wacom Bluetooth devices support"
767+
tristate "Wacom Intuos/Graphire tablet support (USB)"
768768
depends on HID
769-
depends on LEDS_CLASS
770769
select POWER_SUPPLY
771-
---help---
772-
Support for Wacom Graphire Bluetooth and Intuos4 WL tablets.
770+
select NEW_LEDS
771+
select LEDS_CLASS
772+
help
773+
Say Y here if you want to use the USB or BT version of the Wacom Intuos
774+
or Graphire tablet.
775+
776+
To compile this driver as a module, choose M here: the
777+
module will be called wacom.
773778

774779
config HID_WIIMOTE
775780
tristate "Nintendo Wii / Wii U peripherals"

0 commit comments

Comments
 (0)