Skip to content

Commit

Permalink
[media] media: i2c/adp1653: Documentation for devicetree support for …
Browse files Browse the repository at this point in the history
…adp1653

Documentation for adp1653 bindings.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
pavelmachek authored and mchehab committed Apr 27, 2015
1 parent cb0c9e1 commit b2dbde5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/adp1653.txt
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 "adi,adp1653"

- reg: I2C slave address

- enable-gpios: Specifier of the GPIO connected to EN pin

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>;
enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */

flash {
flash-timeout-us = <500000>;
flash-max-microamp = <320000>;
max-microamp = <50000>;
};
indicator {
max-microamp = <17500>;
};
};

0 comments on commit b2dbde5

Please sign in to comment.