Skip to content

Commit 43c40df

Browse files
committed
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull LED updates from Bryan Wu: "This cycle we got: - a fix of attribute-creation race for the whole leds subsystem - new drivers (HID:GT683R, leds-ipaq-micro) - other fixing and clean up" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (23 commits) leds: ipaq-micro: fix sparse non static symbol warning leds: add driver for the iPAQ micro Documentation: dts: tcs6507: Fix wrong statement about #gpio-cells leds: convert blink timer to workqueue leds:pca963x: Update for PCA9635 and correct statement about MODE2 OUTDRV default leds:pca963x: Always initialize MODE2 register leds:pca963x: Add support for PCA9635 LED driver chip HID: gt683r: move mode attribute to led-class devices HID: gt683r: fix race condition HID: add support for MSI GT683R led panels leds: lp55xx-common: fix attribute-creation race leds: lp55xx-common: fix sysfs entry leak input: lm8323: fix attribute-creation race leds: wm831x-status: fix attribute-creation race leds: ss4200: fix attribute-creation race leds: ns2: fix attribute-creation race leds: netxbig: fix attribute-creation race leds: max8997: fix attribute-creation race leds: lm3642: fix attribute-creation race leds: lm355x: fix attribute-creation race ...
2 parents 7385d6f + e661c89 commit 43c40df

27 files changed

Lines changed: 644 additions & 169 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
What: /sys/class/leds/<led>/gt683r/mode
2+
Date: Jun 2014
3+
KernelVersion: 3.17
4+
Contact: Janne Kanniainen <janne.kanniainen@gmail.com>
5+
Description:
6+
Set the mode of LEDs. You should notice that changing the mode
7+
of one LED will update the mode of its two sibling devices as
8+
well.
9+
10+
0 - normal
11+
1 - audio
12+
2 - breathing
13+
14+
Normal: LEDs are fully on when enabled
15+
Audio: LEDs brightness depends on sound level
16+
Breathing: LEDs brightness varies at human breathing rate

‎Documentation/devicetree/bindings/leds/pca963x.txt‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
LEDs connected to pca9632, pca9633 or pca9634
22

33
Required properties:
4-
- compatible : should be : "nxp,pca9632", "nxp,pca9633" or "nxp,pca9634"
4+
- compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
55

66
Optional properties:
7-
- nxp,totem-pole : use totem pole (push-pull) instead of default open-drain
7+
- nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults
8+
to open-drain, newer chips to totem pole)
89
- nxp,hw-blink : use hardware blinking instead of software blinking
910

1011
Each led is represented as a sub-node of the nxp,pca963x device.
1112

1213
LED sub-node properties:
1314
- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
14-
- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633
15-
or 0 to 7 in pca9634)
15+
- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633,
16+
0 to 7 in pca9634, or 0 to 15 in pca9635)
1617
- linux,default-trigger : (optional)
1718
see Documentation/devicetree/bindings/leds/common.txt
1819

‎Documentation/devicetree/bindings/leds/tca6507.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Required properties:
88

99
Optional properties:
1010
- gpio-controller: allows lines to be used as output-only GPIOs.
11-
- #gpio-cells: if present, must be 0.
11+
- #gpio-cells: if present, must not be 0.
1212

1313
Each led is represented as a sub-node of the ti,tca6507 device.
1414

‎drivers/hid/Kconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,20 @@ config HOLTEK_FF
261261
Say Y here if you have a Holtek On Line Grip based game controller
262262
and want to have force feedback support for it.
263263

264+
config HID_GT683R
265+
tristate "MSI GT68xR LED support"
266+
depends on LEDS_CLASS && USB_HID
267+
---help---
268+
Say Y here if you want to enable support for the three MSI GT68xR LEDs
269+
270+
This driver support following modes:
271+
- Normal: LEDs are fully on when enabled
272+
- Audio: LEDs brightness depends on sound level
273+
- Breathing: LEDs brightness varies at human breathing rate
274+
275+
Currently the following devices are know to be supported:
276+
- MSI GT683R
277+
264278
config HID_HUION
265279
tristate "Huion tablets"
266280
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ obj-$(CONFIG_HID_EMS_FF) += hid-emsff.o
4848
obj-$(CONFIG_HID_ELECOM) += hid-elecom.o
4949
obj-$(CONFIG_HID_ELO) += hid-elo.o
5050
obj-$(CONFIG_HID_EZKEY) += hid-ezkey.o
51+
obj-$(CONFIG_HID_GT683R) += hid-gt683r.o
5152
obj-$(CONFIG_HID_GYRATION) += hid-gyration.o
5253
obj-$(CONFIG_HID_HOLTEK) += hid-holtek-kbd.o
5354
obj-$(CONFIG_HID_HOLTEK) += hid-holtek-mouse.o

‎drivers/hid/hid-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
18491849
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_WIRELESS_OPTICAL_DESKTOP_3_0) },
18501850
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_OFFICE_KB) },
18511851
{ HID_USB_DEVICE(USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E) },
1852+
{ HID_USB_DEVICE(USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL) },
18521853
{ HID_USB_DEVICE(USB_VENDOR_ID_NTRIG, USB_DEVICE_ID_NTRIG_TOUCH_SCREEN) },
18531854
{ HID_USB_DEVICE(USB_VENDOR_ID_NTRIG, USB_DEVICE_ID_NTRIG_TOUCH_SCREEN_1) },
18541855
{ HID_USB_DEVICE(USB_VENDOR_ID_NTRIG, USB_DEVICE_ID_NTRIG_TOUCH_SCREEN_2) },

0 commit comments

Comments
 (0)