-
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.
[media] Add device tree support to adp1653 flash driver
Nokia N900 is switching to device tree, make sure we can use flash there, too. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
- Loading branch information
Pavel Machek
authored and
Mauro Carvalho Chehab
committed
Apr 8, 2015
1 parent
09f5012
commit b6100f1
Showing
2 changed files
with
118 additions
and
9 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,37 @@ | ||
* Analog Devices ADP1653 flash LED driver | ||
|
||
Required Properties: | ||
|
||
- compatible: Must contain be "adi,adp1653" | ||
|
||
- reg: I2C slave address | ||
|
||
- gpios: References to the GPIO that controls the power for the chip. | ||
|
||
There are two led outputs available - flash and indicator. One led is | ||
represented by one child node, nodes need to be named "flash" and "indicator". | ||
|
||
Required properties of the LED child node: | ||
- max-microamp : see Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Required properties of the flash LED child node: | ||
|
||
- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt | ||
- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Example: | ||
|
||
adp1653: led-controller@30 { | ||
compatible = "adi,adp1653"; | ||
reg = <0x30>; | ||
gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */ | ||
|
||
flash { | ||
flash-timeout-us = <500000>; | ||
flash-max-microamp = <320000>; | ||
max-microamp = <50000>; | ||
}; | ||
indicator { | ||
max-microamp = <17500>; | ||
}; | ||
}; |
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