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.
Merge tag 'leds_for_4.18-rc1' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/j.anaszewski/linux-leds Pull LED updates from Jacek Anaszewski: "This was quite a fruitful cycle, taking into account usual traffic on linux-leds list, as we managed to merge three new LED class drivers. New LED class drivers with related DT bindings: - add LED driver for CR0014114 board - add Spreadtrum SC27xx breathing light controller driver - introduce the lm3601x LED driver LED class fix: - ensure workqueue is initialized before setting brightness Improvements and fixes to existing LED class drivers: - fix return value check in sc27xx_led_probe() - use sysfs_match_string() helper in wm831x_status_src_store()" * tag 'leds_for_4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds: leds: class: ensure workqueue is initialized before setting brightness leds: lm3601x: Introduce the lm3601x LED driver dt: bindings: lm3601x: Introduce the lm3601x driver leds: sc27xx: Fix return value check in sc27xx_led_probe() leds: Add Spreadtrum SC27xx breathing light controller driver dt-bindings: leds: Add SC27xx breathing light controller documentation leds: wm831x-status: Use sysfs_match_string() helper leds: add LED driver for CR0014114 board dt-bindings: Add vendor prefix and docs for CR0014114
- Loading branch information
Showing
11 changed files
with
1,237 additions
and
18 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,54 @@ | ||
Crane Merchandising System - cr0014114 LED driver | ||
------------------------------------------------- | ||
|
||
This LED Board is widely used in vending machines produced | ||
by Crane Merchandising Systems. | ||
|
||
Required properties: | ||
- compatible: "crane,cr0014114" | ||
|
||
Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt | ||
apply. In particular, "reg" and "spi-max-frequency" properties must be given. | ||
|
||
LED sub-node properties: | ||
- label : | ||
see Documentation/devicetree/bindings/leds/common.txt | ||
- linux,default-trigger : (optional) | ||
see Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Example | ||
------- | ||
|
||
led-controller@0 { | ||
compatible = "crane,cr0014114"; | ||
reg = <0>; | ||
spi-max-frequency = <50000>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
led@0 { | ||
reg = <0>; | ||
label = "red:coin"; | ||
}; | ||
led@1 { | ||
reg = <1>; | ||
label = "green:coin"; | ||
}; | ||
led@2 { | ||
reg = <2>; | ||
label = "blue:coin"; | ||
}; | ||
led@3 { | ||
reg = <3>; | ||
label = "red:bill"; | ||
}; | ||
led@4 { | ||
reg = <4>; | ||
label = "green:bill"; | ||
}; | ||
led@5 { | ||
reg = <5>; | ||
label = "blue:bill"; | ||
}; | ||
... | ||
}; |
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,45 @@ | ||
* Texas Instruments - lm3601x Single-LED Flash Driver | ||
|
||
The LM3601X are ultra-small LED flash drivers that | ||
provide a high level of adjustability. | ||
|
||
Required properties: | ||
- compatible : Can be one of the following | ||
"ti,lm36010" | ||
"ti,lm36011" | ||
- reg : I2C slave address | ||
- #address-cells : 1 | ||
- #size-cells : 0 | ||
|
||
Required child properties: | ||
- reg : 0 - Indicates a IR mode | ||
1 - Indicates a Torch (white LED) mode | ||
|
||
Required properties for flash LED child nodes: | ||
See Documentation/devicetree/bindings/leds/common.txt | ||
- flash-max-microamp : Range from 11mA - 1.5A | ||
- flash-max-timeout-us : Range from 40ms - 1600ms | ||
- led-max-microamp : Range from 2.4mA - 376mA | ||
|
||
Optional child properties: | ||
- label : see Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Example: | ||
led-controller@64 { | ||
compatible = "ti,lm36010"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x64>; | ||
|
||
led@0 { | ||
reg = <1>; | ||
label = "white:torch"; | ||
led-max-microamp = <376000>; | ||
flash-max-microamp = <1500000>; | ||
flash-max-timeout-us = <1600000>; | ||
}; | ||
} | ||
|
||
For more product information please see the links below: | ||
http://www.ti.com/product/LM36010 | ||
http://www.ti.com/product/LM36011 |
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.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,41 @@ | ||
LEDs connected to Spreadtrum SC27XX PMIC breathing light controller | ||
|
||
The SC27xx breathing light controller supports to 3 outputs: | ||
red LED, green LED and blue LED. Each LED can work at normal | ||
PWM mode or breath light mode. | ||
|
||
Required properties: | ||
- compatible: Should be "sprd,sc2731-bltc". | ||
- #address-cells: Must be 1. | ||
- #size-cells: Must be 0. | ||
- reg: Specify the controller address. | ||
|
||
Required child properties: | ||
- reg: Port this LED is connected to. | ||
|
||
Optional child properties: | ||
- label: See Documentation/devicetree/bindings/leds/common.txt. | ||
|
||
Examples: | ||
|
||
led-controller@200 { | ||
compatible = "sprd,sc2731-bltc"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x200>; | ||
|
||
led@0 { | ||
label = "red"; | ||
reg = <0x0>; | ||
}; | ||
|
||
led@1 { | ||
label = "green"; | ||
reg = <0x1>; | ||
}; | ||
|
||
led@2 { | ||
label = "blue"; | ||
reg = <0x2>; | ||
}; | ||
}; |
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.