drm/nouveau/vm: fix memory corruption when pgt allocation fails
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / Documentation / leds / leds-blinkm.txt
blob9dd92f4cf4e1cc3aeba53eb91713ab44d9da9d63
1 The leds-blinkm driver supports the devices of the BlinkM family.
3 They are RGB-LED modules driven by a (AT)tiny microcontroller and
4 communicate through I2C. The default address of these modules is
5 0x09 but this can be changed through a command. By this you could
6 dasy-chain up to 127 BlinkMs on an I2C bus.
8 The device accepts RGB and HSB color values through separate commands.
9 Also you can store blinking sequences as "scripts" in
10 the controller and run them. Also fading is an option.
12 The interface this driver provides is 2-fold:
14 a) LED class interface for use with triggers
15 ############################################
17 The registration follows the scheme:
18 blinkm-<i2c-bus-nr>-<i2c-device-nr>-<color>
20 $ ls -h /sys/class/leds/blinkm-6-*
21 /sys/class/leds/blinkm-6-9-blue:
22 brightness  device  max_brightness  power  subsystem  trigger  uevent
24 /sys/class/leds/blinkm-6-9-green:
25 brightness  device  max_brightness  power  subsystem  trigger  uevent
27 /sys/class/leds/blinkm-6-9-red:
28 brightness  device  max_brightness  power  subsystem  trigger  uevent
30 (same is /sys/bus/i2c/devices/6-0009/leds)
32 We can control the colors separated into red, green and blue and
33 assign triggers on each color.
35 E.g.:
37 $ cat blinkm-6-9-blue/brightness
40 $ echo 200 > blinkm-6-9-blue/brightness
43 $ modprobe ledtrig-heartbeat
44 $ echo heartbeat > blinkm-6-9-green/trigger
48 b) Sysfs group to control rgb, fade, hsb, scripts ...
49 #####################################################
51 This extended interface is available as folder blinkm
52 in the sysfs folder of the I2C device.
53 E.g. below /sys/bus/i2c/devices/6-0009/blinkm
55 $ ls -h /sys/bus/i2c/devices/6-0009/blinkm/
56 blue  green  red  test
58 Currently supported is just setting red, green, blue
59 and a test sequence.
61 E.g.:
63 $ cat *
67 #Write into test to start test sequence!#
69 $ echo 1 > test
72 $ echo 255 > red
77 as of 6/2012
79 dl9pf <at> gmx <dot> de