-
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.
Merge tag 'leds-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/pavel/linux-leds Pull LED updates from Pavel Machek: "This contains usual small updates to drivers, and removal of PAGE_SIZE limits on /sys/class/leds/<led>/trigger. We should not be really having that many triggers; but with cpu activity triggers we do, and we'll eventually need to fix it, but... remove the limit for now" * tag 'leds-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds: (26 commits) leds: trigger: netdev: fix handling on interface rename leds: an30259a: add a check for devm_regmap_init_i2c leds: mlxreg: Fix possible buffer overflow leds: pca953x: Use of_device_get_match_data() leds: core: Fix leds.h structure documentation leds: core: Fix devm_classdev_match to reference correct structure leds: core: Remove extern from header leds: lm3601x: Convert class registration to device managed leds: flash: Add devm_* functions to the flash class leds: flash: Remove extern from the header file leds: flash: Convert non extended registration to inline leds: Kconfig: Be consistent with the usage of "LED" leds: remove PAGE_SIZE limit of /sys/class/leds/<led>/trigger leds: tlc591xx: update the maximum brightness leds: lm3692x: Use flags from LM3692X_BRT_CTRL leds: lm3692x: Use flags from LM3692X_BOOST_CTRL leds: lm3692x: Handle failure to probe the regulator leds: lm3692x: Don't overwrite return value in error path leds: lm3692x: Print error value on dev_err leds: tlc591xx: use devm_led_classdev_register_ext() ...
- Loading branch information
Showing
20 changed files
with
858 additions
and
207 deletions.
There are no files selected for viewing
139 changes: 139 additions & 0 deletions
139
Documentation/ABI/testing/sysfs-class-led-driver-el15203000
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,139 @@ | ||
What: /sys/class/leds/<led>/hw_pattern | ||
Date: September 2019 | ||
KernelVersion: 5.5 | ||
Description: | ||
Specify a hardware pattern for the EL15203000 LED. | ||
The LEDs board supports only predefined patterns by firmware | ||
for specific LEDs. | ||
|
||
Breathing mode for Screen frame light tube: | ||
"0 4000 1 4000" | ||
|
||
^ | ||
| | ||
Max-| --- | ||
| / \ | ||
| / \ | ||
| / \ / | ||
| / \ / | ||
Min-|- --- | ||
| | ||
0------4------8--> time (sec) | ||
|
||
Cascade mode for Pipe LED: | ||
"1 800 2 800 4 800 8 800 16 800" | ||
|
||
^ | ||
| | ||
0 On -|----+ +----+ +--- | ||
| | | | | | ||
Off-| +-------------------+ +-------------------+ | ||
| | ||
1 On -| +----+ +----+ | ||
| | | | | | ||
Off |----+ +-------------------+ +------------------ | ||
| | ||
2 On -| +----+ +----+ | ||
| | | | | | ||
Off-|---------+ +-------------------+ +------------- | ||
| | ||
3 On -| +----+ +----+ | ||
| | | | | | ||
Off-|--------------+ +-------------------+ +-------- | ||
| | ||
4 On -| +----+ +----+ | ||
| | | | | | ||
Off-|-------------------+ +-------------------+ +--- | ||
| | ||
0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) | ||
|
||
Inverted cascade mode for Pipe LED: | ||
"30 800 29 800 27 800 23 800 15 800" | ||
|
||
^ | ||
| | ||
0 On -| +-------------------+ +-------------------+ | ||
| | | | | | ||
Off-|----+ +----+ +--- | ||
| | ||
1 On -|----+ +-------------------+ +------------------ | ||
| | | | | | ||
Off | +----+ +----+ | ||
| | ||
2 On -|---------+ +-------------------+ +------------- | ||
| | | | | | ||
Off-| +----+ +----+ | ||
| | ||
3 On -|--------------+ +-------------------+ +-------- | ||
| | | | | | ||
Off-| +----+ +----+ | ||
| | ||
4 On -|-------------------+ +-------------------+ +--- | ||
| | | | | | ||
Off-| +----+ +----+ | ||
| | ||
0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) | ||
|
||
Bounce mode for Pipe LED: | ||
"1 800 2 800 4 800 8 800 16 800 16 800 8 800 4 800 2 800 1 800" | ||
|
||
^ | ||
| | ||
0 On -|----+ +-------- | ||
| | | | ||
Off-| +---------------------------------------+ | ||
| | ||
1 On -| +----+ +----+ | ||
| | | | | | ||
Off |----+ +-----------------------------+ +-------- | ||
| | ||
2 On -| +----+ +----+ | ||
| | | | | | ||
Off-|---------+ +-------------------+ +------------- | ||
| | ||
3 On -| +----+ +----+ | ||
| | | | | | ||
Off-|--------------+ +---------+ +------------------ | ||
| | ||
4 On -| +---------+ | ||
| | | | ||
Off-|-------------------+ +----------------------- | ||
| | ||
0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) | ||
|
||
Inverted bounce mode for Pipe LED: | ||
"30 800 29 800 27 800 23 800 15 800 15 800 23 800 27 800 29 800 30 800" | ||
|
||
^ | ||
| | ||
0 On -| +---------------------------------------+ | ||
| | | | ||
Off-|----+ +-------- | ||
| | ||
1 On -|----+ +-----------------------------+ +-------- | ||
| | | | | | ||
Off | +----+ +----+ | ||
| | ||
2 On -|---------+ +-------------------+ +------------- | ||
| | | | | | ||
Off-| +----+ +----+ | ||
| | ||
3 On -|--------------+ +---------+ +------------------ | ||
| | | | | | ||
Off-| +----+ +----+ | ||
| | ||
4 On -|-------------------+ +----------------------- | ||
| | | | ||
Off-| +---------+ | ||
| | ||
0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) | ||
|
||
What: /sys/class/leds/<led>/repeat | ||
Date: September 2019 | ||
KernelVersion: 5.5 | ||
Description: | ||
EL15203000 supports only indefinitely patterns, | ||
so this file should always store -1. | ||
|
||
For more info, please see: | ||
Documentation/ABI/testing/sysfs-class-led-trigger-pattern |
69 changes: 69 additions & 0 deletions
69
Documentation/devicetree/bindings/leds/leds-el15203000.txt
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,69 @@ | ||
Crane Merchandising System - EL15203000 LED driver | ||
-------------------------------------------------- | ||
|
||
This LED Board (aka RED LEDs board) is widely used in | ||
coffee vending machines produced by Crane Merchandising Systems. | ||
The board manages 3 LEDs and supports predefined blinking patterns | ||
for specific leds. | ||
|
||
Vending area LED encoded with symbol 'V' (hex code 0x56). | ||
Doesn't have any hardware blinking pattern. | ||
|
||
Screen light tube LED which surrounds vending machine screen and | ||
encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern. | ||
|
||
Water Pipe LED encoded with symbol 'P' (hex code 0x50) and | ||
actually consists of 5 LEDs that exposed by protocol like one LED. | ||
Supports next patterns: | ||
- cascade pattern | ||
- inversed cascade pattern | ||
- bounce pattern | ||
- inversed bounce pattern | ||
|
||
Required properties: | ||
- compatible : "crane,el15203000" | ||
- #address-cells : must be 1 | ||
- #size-cells : must be 0 | ||
|
||
Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt | ||
apply. In particular, "reg" and "spi-max-frequency" properties must be given. | ||
|
||
Optional LED sub-node properties: | ||
- function: | ||
see Documentation/devicetree/bindings/leds/common.txt | ||
- color: | ||
see Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Example | ||
------- | ||
|
||
#include <dt-bindings/leds/common.h> | ||
|
||
led-controller@0 { | ||
compatible = "crane,el15203000"; | ||
reg = <0>; | ||
spi-max-frequency = <50000>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* water pipe */ | ||
led@50 { | ||
reg = <0x50>; | ||
function = "pipe"; | ||
color = <LED_COLOR_ID_RED>; | ||
}; | ||
|
||
/* screen frame */ | ||
led@53 { | ||
reg = <0x53>; | ||
function = "screen"; | ||
color = <LED_COLOR_ID_RED>; | ||
}; | ||
|
||
/* vending area */ | ||
led@56 { | ||
reg = <0x56>; | ||
function = "vend"; | ||
color = <LED_COLOR_ID_RED>; | ||
}; | ||
}; |
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
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.