Skip to content

Commit 36dbe2f

Browse files
author
Jiri Kosina
committed
Merge branches 'ntrig', 'picolcd', 'prodikeys' and 'roccat-kone' into for-linus
Conflicts: drivers/hid/Makefile
5 parents 77933c3 + ab3f498 + aeacb6f + 95736de + 1f749d8 commit 36dbe2f

13 files changed

Lines changed: 5554 additions & 9 deletions
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/operation_mode
2+
Date: March 2010
3+
Contact: Bruno Prémont <bonbons@linux-vserver.org>
4+
Description: Make it possible to switch the PicoLCD device between LCD
5+
(firmware) and bootloader (flasher) operation modes.
6+
7+
Reading: returns list of available modes, the active mode being
8+
enclosed in brackets ('[' and ']')
9+
10+
Writing: causes operation mode switch. Permitted values are
11+
the non-active mode names listed when read.
12+
13+
Note: when switching mode the current PicoLCD HID device gets
14+
disconnected and reconnects after above delay (see attribute
15+
operation_mode_delay for its value).
16+
17+
18+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/operation_mode_delay
19+
Date: April 2010
20+
Contact: Bruno Prémont <bonbons@linux-vserver.org>
21+
Description: Delay PicoLCD waits before restarting in new mode when
22+
operation_mode has changed.
23+
24+
Reading/Writing: It is expressed in ms and permitted range is
25+
0..30000ms.
26+
27+
28+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/fb_update_rate
29+
Date: March 2010
30+
Contact: Bruno Prémont <bonbons@linux-vserver.org>
31+
Description: Make it possible to adjust defio refresh rate.
32+
33+
Reading: returns list of available refresh rates (expressed in Hz),
34+
the active refresh rate being enclosed in brackets ('[' and ']')
35+
36+
Writing: accepts new refresh rate expressed in integer Hz
37+
within permitted rates.
38+
39+
Note: As device can barely do 2 complete refreshes a second
40+
it only makes sense to adjust this value if only one or two
41+
tiles get changed and it's not appropriate to expect the application
42+
to flush it's tiny changes explicitely at higher than default rate.
43+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
What: /sys/bus/hid/drivers/prodikeys/.../channel
2+
Date: April 2010
3+
KernelVersion: 2.6.34
4+
Contact: Don Prince <dhprince.devel@yahoo.co.uk>
5+
Description:
6+
Allows control (via software) the midi channel to which
7+
that the pc-midi keyboard will output.midi data.
8+
Range: 0..15
9+
Type: Read/write
10+
What: /sys/bus/hid/drivers/prodikeys/.../sustain
11+
Date: April 2010
12+
KernelVersion: 2.6.34
13+
Contact: Don Prince <dhprince.devel@yahoo.co.uk>
14+
Description:
15+
Allows control (via software) the sustain duration of a
16+
note held by the pc-midi driver.
17+
0 means sustain mode is disabled.
18+
Range: 0..5000 (milliseconds)
19+
Type: Read/write
20+
What: /sys/bus/hid/drivers/prodikeys/.../octave
21+
Date: April 2010
22+
KernelVersion: 2.6.34
23+
Contact: Don Prince <dhprince.devel@yahoo.co.uk>
24+
Description:
25+
Controls the octave shift modifier in the pc-midi driver.
26+
The octave can be shifted via software up/down 2 octaves.
27+
0 means the no ocatve shift.
28+
Range: -2..2 (minus 2 to plus 2)
29+
Type: Read/Write
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_dpi
2+
Date: March 2010
3+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
4+
Description: It is possible to switch the dpi setting of the mouse with the
5+
press of a button.
6+
When read, this file returns the raw number of the actual dpi
7+
setting reported by the mouse. This number has to be further
8+
processed to receive the real dpi value.
9+
10+
VALUE DPI
11+
1 800
12+
2 1200
13+
3 1600
14+
4 2000
15+
5 2400
16+
6 3200
17+
18+
This file is readonly.
19+
20+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_profile
21+
Date: March 2010
22+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
23+
Description: When read, this file returns the number of the actual profile.
24+
This file is readonly.
25+
26+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/firmware_version
27+
Date: March 2010
28+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
29+
Description: When read, this file returns the raw integer version number of the
30+
firmware reported by the mouse. Using the integer value eases
31+
further usage in other programs. To receive the real version
32+
number the decimal point has to be shifted 2 positions to the
33+
left. E.g. a returned value of 138 means 1.38
34+
This file is readonly.
35+
36+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/kone_driver_version
37+
Date: March 2010
38+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
39+
Description: When read, this file returns the driver version.
40+
The format of the string is "v<major>.<minor>.<patchlevel>".
41+
This attribute is used by the userland tools to find the sysfs-
42+
paths of installed kone-mice and determine the capabilites of
43+
the driver. Versions of this driver for old kernels replace
44+
usbhid instead of generic-usb. The way to scan for this file
45+
has been chosen to provide a consistent way for all supported
46+
kernel versions.
47+
This file is readonly.
48+
49+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]
50+
Date: March 2010
51+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
52+
Description: The mouse can store 5 profiles which can be switched by the
53+
press of a button. A profile holds informations like button
54+
mappings, sensitivity, the colors of the 5 leds and light
55+
effects.
56+
When read, these files return the respective profile. The
57+
returned data is 975 bytes in size.
58+
When written, this file lets one write the respective profile
59+
data back to the mouse. The data has to be 975 bytes long.
60+
The mouse will reject invalid data, whereas the profile number
61+
stored in the profile doesn't need to fit the number of the
62+
store.
63+
64+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/settings
65+
Date: March 2010
66+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
67+
Description: When read, this file returns the settings stored in the mouse.
68+
The size of the data is 36 bytes and holds information like the
69+
startup_profile, tcu state and calibration_data.
70+
When written, this file lets write settings back to the mouse.
71+
The data has to be 36 bytes long. The mouse will reject invalid
72+
data.
73+
74+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/startup_profile
75+
Date: March 2010
76+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
77+
Description: The integer value of this attribute ranges from 1 to 5.
78+
When read, this attribute returns the number of the profile
79+
that's active when the mouse is powered on.
80+
When written, this file sets the number of the startup profile
81+
and the mouse activates this profile immediately.
82+
83+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/tcu
84+
Date: March 2010
85+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
86+
Description: The mouse has a "Tracking Control Unit" which lets the user
87+
calibrate the laser power to fit the mousepad surface.
88+
When read, this file returns the current state of the TCU,
89+
where 0 means off and 1 means on.
90+
Writing 0 in this file will switch the TCU off.
91+
Writing 1 in this file will start the calibration which takes
92+
around 6 seconds to complete and activates the TCU.
93+
94+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/weight
95+
Date: March 2010
96+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
97+
Description: The mouse can be equipped with one of four supplied weights
98+
ranging from 5 to 20 grams which are recognized by the mouse
99+
and its value can be read out. When read, this file returns the
100+
raw value returned by the mouse which eases further processing
101+
in other software.
102+
The values map to the weights as follows:
103+
104+
VALUE WEIGHT
105+
0 none
106+
1 5g
107+
2 10g
108+
3 15g
109+
4 20g
110+
111+
This file is readonly.

‎drivers/hid/Kconfig‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ config HID_CHICONY
106106
---help---
107107
Support for Chicony Tactical pad.
108108

109+
config HID_PRODIKEYS
110+
tristate "Prodikeys PC-MIDI Keyboard support"
111+
depends on USB_HID && SND
112+
select SND_RAWMIDI
113+
---help---
114+
Support for Prodikeys PC-MIDI Keyboard device support.
115+
Say Y here to enable support for this device.
116+
- Prodikeys PC-MIDI keyboard.
117+
The Prodikeys PC-MIDI acts as a USB Audio device, with one MIDI
118+
input and one MIDI output. These MIDI jacks appear as
119+
a sound "card" in the ALSA sound system.
120+
Note: if you say N here, this device will still function as a basic
121+
multimedia keyboard, but will lack support for the musical keyboard
122+
and some additional multimedia keys.
123+
109124
config HID_CYPRESS
110125
tristate "Cypress" if EMBEDDED
111126
depends on USB_HID
@@ -274,12 +289,76 @@ config HID_PETALYNX
274289
---help---
275290
Support for Petalynx Maxter remote control.
276291

292+
config HID_PICOLCD
293+
tristate "PicoLCD (graphic version)"
294+
depends on USB_HID
295+
---help---
296+
This provides support for Minibox PicoLCD devices, currently
297+
only the graphical ones are supported.
298+
299+
This includes support for the following device features:
300+
- Keypad
301+
- Switching between Firmware and Flash mode
302+
- EEProm / Flash access (via debugfs)
303+
Features selectively enabled:
304+
- Framebuffer for monochrome 256x64 display
305+
- Backlight control
306+
- Contrast control
307+
- General purpose outputs
308+
Features that are not (yet) supported:
309+
- IR
310+
311+
config HID_PICOLCD_FB
312+
bool "Framebuffer support" if EMBEDDED
313+
default !EMBEDDED
314+
depends on HID_PICOLCD
315+
depends on HID_PICOLCD=FB || FB=y
316+
select FB_DEFERRED_IO
317+
select FB_SYS_FILLRECT
318+
select FB_SYS_COPYAREA
319+
select FB_SYS_IMAGEBLIT
320+
select FB_SYS_FOPS
321+
---help---
322+
Provide access to PicoLCD's 256x64 monochrome display via a
323+
frambuffer device.
324+
325+
config HID_PICOLCD_BACKLIGHT
326+
bool "Backlight control" if EMBEDDED
327+
default !EMBEDDED
328+
depends on HID_PICOLCD
329+
depends on HID_PICOLCD=BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=y
330+
---help---
331+
Provide access to PicoLCD's backlight control via backlight
332+
class.
333+
334+
config HID_PICOLCD_LCD
335+
bool "Contrast control" if EMBEDDED
336+
default !EMBEDDED
337+
depends on HID_PICOLCD
338+
depends on HID_PICOLCD=LCD_CLASS_DEVICE || LCD_CLASS_DEVICE=y
339+
---help---
340+
Provide access to PicoLCD's LCD contrast via lcd class.
341+
342+
config HID_PICOLCD_LEDS
343+
bool "GPO via leds class" if EMBEDDED
344+
default !EMBEDDED
345+
depends on HID_PICOLCD
346+
depends on HID_PICOLCD=LEDS_CLASS || LEDS_CLASS=y
347+
---help---
348+
Provide access to PicoLCD's GPO pins via leds class.
349+
277350
config HID_QUANTA
278351
tristate "Quanta Optical Touch"
279352
depends on USB_HID
280353
---help---
281354
Support for Quanta Optical Touch dual-touch panels.
282355

356+
config HID_ROCCAT_KONE
357+
tristate "Roccat Kone Mouse support"
358+
depends on USB_HID
359+
---help---
360+
Support for Roccat Kone mouse.
361+
283362
config HID_SAMSUNG
284363
tristate "Samsung" if EMBEDDED
285364
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o
4343
obj-$(CONFIG_HID_MOSART) += hid-mosart.o
4444
obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o
4545
obj-$(CONFIG_HID_ORTEK) += hid-ortek.o
46+
obj-$(CONFIG_HID_PRODIKEYS) += hid-prodikeys.o
4647
obj-$(CONFIG_HID_QUANTA) += hid-quanta.o
4748
obj-$(CONFIG_HID_PANTHERLORD) += hid-pl.o
4849
obj-$(CONFIG_HID_PETALYNX) += hid-petalynx.o
50+
obj-$(CONFIG_HID_PICOLCD) += hid-picolcd.o
51+
obj-$(CONFIG_HID_ROCCAT_KONE) += hid-roccat-kone.o
4952
obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
5053
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o
5154
obj-$(CONFIG_HID_SONY) += hid-sony.o

‎drivers/hid/hid-core.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,7 @@ static const struct hid_device_id hid_blacklist[] = {
12871287
{ HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION) },
12881288
{ HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION_SOLAR) },
12891289
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_TACTICAL_PAD) },
1290+
{ HID_USB_DEVICE(USB_VENDOR_ID_CREATIVELABS, USB_DEVICE_ID_PRODIKEYS_PCMIDI) },
12901291
{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_1) },
12911292
{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_2) },
12921293
{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_3) },
@@ -1326,6 +1327,8 @@ static const struct hid_device_id hid_blacklist[] = {
13261327
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2) },
13271328
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACETRAVELLER) },
13281329
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACENAVIGATOR) },
1330+
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICOLCD) },
1331+
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICOLCD_BOOTLOADER) },
13291332
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_SIDEWINDER_GV) },
13301333
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_NE4K) },
13311334
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_LK6K) },
@@ -1337,6 +1340,7 @@ static const struct hid_device_id hid_blacklist[] = {
13371340
{ HID_USB_DEVICE(USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE) },
13381341
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH) },
13391342
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_PIXART_IMAGING_INC_OPTICAL_TOUCH_SCREEN) },
1343+
{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONE) },
13401344
{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) },
13411345
{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) },
13421346
{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) },

‎drivers/hid/hid-ids.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@
156156
#define USB_DEVICE_ID_CODEMERCS_IOW_FIRST 0x1500
157157
#define USB_DEVICE_ID_CODEMERCS_IOW_LAST 0x15ff
158158

159+
#define USB_VENDOR_ID_CREATIVELABS 0x041e
160+
#define USB_DEVICE_ID_PRODIKEYS_PCMIDI 0x2801
161+
159162
#define USB_VENDOR_ID_CYGNAL 0x10c4
160163
#define USB_DEVICE_ID_CYGNAL_RADIO_SI470X 0x818a
161164

@@ -354,6 +357,8 @@
354357
#define USB_VENDOR_ID_MICROCHIP 0x04d8
355358
#define USB_DEVICE_ID_PICKIT1 0x0032
356359
#define USB_DEVICE_ID_PICKIT2 0x0033
360+
#define USB_DEVICE_ID_PICOLCD 0xc002
361+
#define USB_DEVICE_ID_PICOLCD_BOOTLOADER 0xf002
357362

358363
#define USB_VENDOR_ID_MICROSOFT 0x045e
359364
#define USB_DEVICE_ID_SIDEWINDER_GV 0x003b
@@ -412,6 +417,9 @@
412417
#define USB_VENDOR_ID_PRODIGE 0x05af
413418
#define USB_DEVICE_ID_PRODIGE_CORDLESS 0x3062
414419

420+
#define USB_VENDOR_ID_ROCCAT 0x1e7d
421+
#define USB_DEVICE_ID_ROCCAT_KONE 0x2ced
422+
415423
#define USB_VENDOR_ID_SAITEK 0x06a3
416424
#define USB_DEVICE_ID_SAITEK_RUMBLEPAD 0xff17
417425

0 commit comments

Comments
 (0)