-
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.
backlight: lp855x: add a device tree structure
Enable supporting the DT structure of LP855x family devices. If the platform data is NULL, the driver tries to parse a DT structure. Then, the platform data is copied from the DT. Documentation is added as well. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- Loading branch information
Kim, Milo
authored and
Linus Torvalds
committed
Apr 30, 2013
1 parent
c365e59
commit 4add066
Showing
2 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/video/backlight/lp855x.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 @@ | ||
lp855x bindings | ||
|
||
Required properties: | ||
- compatible: "ti,lp8550", "ti,lp8551", "ti,lp8552", "ti,lp8553", | ||
"ti,lp8556", "ti,lp8557" | ||
- reg: I2C slave address (u8) | ||
- dev-ctrl: Value of DEVICE CONTROL register (u8). It depends on the device. | ||
|
||
Optional properties: | ||
- bl-name: Backlight device name (string) | ||
- init-brt: Initial value of backlight brightness (u8) | ||
- pwm-period: PWM period value. Set only PWM input mode used (u32) | ||
- rom-addr: Register address of ROM area to be updated (u8) | ||
- rom-val: Register value to be updated (u8) | ||
|
||
Example: | ||
|
||
/* LP8556 */ | ||
backlight@2c { | ||
compatible = "ti,lp8556"; | ||
reg = <0x2c>; | ||
|
||
bl-name = "lcd-bl"; | ||
dev-ctrl = /bits/ 8 <0x85>; | ||
init-brt = /bits/ 8 <0x10>; | ||
}; | ||
|
||
/* LP8557 */ | ||
backlight@2c { | ||
compatible = "ti,lp8557"; | ||
reg = <0x2c>; | ||
|
||
dev-ctrl = /bits/ 8 <0x41>; | ||
init-brt = /bits/ 8 <0x0a>; | ||
|
||
/* 4V OV, 4 output LED string enabled */ | ||
rom_14h { | ||
rom-addr = /bits/ 8 <0x14>; | ||
rom-val = /bits/ 8 <0xcf>; | ||
}; | ||
}; |
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