forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sub-driver for the LEDs on National Semiconductor / TI LM3533 lighting power chips. The chip provides 256 brightness levels, hardware accelerated blinking as well as ambient-light-sensor and pwm input control. Signed-off-by: Johan Hovold <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Rob Landley <[email protected]> Cc: Samuel Ortiz <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Mark Brown <[email protected]> Cc: Bryan Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
4 changed files
with
864 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
What: /sys/class/leds/<led>/als_channel | ||
Date: May 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Set the ALS output channel to use as input in | ||
ALS-current-control mode (1, 2), where | ||
|
||
1 - out_current1 | ||
2 - out_current2 | ||
|
||
What: /sys/class/leds/<led>/als_en | ||
Date: May 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Enable ALS-current-control mode (0, 1). | ||
|
||
What: /sys/class/leds/<led>/falltime | ||
What: /sys/class/leds/<led>/risetime | ||
Date: April 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Set the pattern generator fall and rise times (0..7), where | ||
|
||
0 - 2048 us | ||
1 - 262 ms | ||
2 - 524 ms | ||
3 - 1.049 s | ||
4 - 2.097 s | ||
5 - 4.194 s | ||
6 - 8.389 s | ||
7 - 16.78 s | ||
|
||
What: /sys/class/leds/<led>/id | ||
Date: April 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Get the id of this led (0..3). | ||
|
||
What: /sys/class/leds/<led>/linear | ||
Date: April 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Set the brightness-mapping mode (0, 1), where | ||
|
||
0 - exponential mode | ||
1 - linear mode | ||
|
||
What: /sys/class/leds/<led>/pwm | ||
Date: April 2012 | ||
KernelVersion: 3.5 | ||
Contact: Johan Hovold <[email protected]> | ||
Description: | ||
Set the PWM-input control mask (5 bits), where | ||
|
||
bit 5 - PWM-input enabled in Zone 4 | ||
bit 4 - PWM-input enabled in Zone 3 | ||
bit 3 - PWM-input enabled in Zone 2 | ||
bit 2 - PWM-input enabled in Zone 1 | ||
bit 1 - PWM-input enabled in Zone 0 | ||
bit 0 - PWM-input enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.