Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
* 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:
|
|
- led-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
|
|
- led-max-microamp : 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>;
|
|
led-max-microamp = <50000>;
|
|
};
|
|
indicator {
|
|
led-max-microamp = <17500>;
|
|
};
|
|
};
|