Lines Matching +full:led +full:- +full:current +full:- +full:microamp
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Richtek RT8515 1.5A dual channel LED driver
10 - Linus Walleij <linus.walleij@linaro.org>
13 The Richtek RT8515 is a dual channel (two mode) LED driver that
14 supports driving a white LED in flash or torch mode. The maximum
15 current for each mode is defined in hardware using two resistors
22 enf-gpios:
26 ent-gpios:
30 richtek,rfs-ohms:
34 resistors limits the maximum flash current. This must be set
35 for the property flash-max-microamp to work, the RFS resistor
37 flash LED.
39 richtek,rts-ohms:
43 resistors limits the maximum torch current. This must be set
44 for the property torch-max-microamp to work, the RTS resistor
46 torch LED.
48 led:
54 flash-max-timeout-us: true
56 flash-max-microamp:
58 description: The maximum current for flash mode
60 ground. The maximum hardware current setting is calculated
63 maximum current of 700mA. By setting this attribute in
65 current below the hardware limit. This requires the RFS
68 led-max-microamp:
70 description: The maximum current for torch mode
72 ground. The maximum hardware current setting is calculated
75 maximum current of 700mA. By setting this attribute in
77 current below the hardware limit. This requires the RTS
83 - compatible
84 - ent-gpios
85 - enf-gpios
86 - led
91 - |
92 #include <dt-bindings/gpio/gpio.h>
93 #include <dt-bindings/leds/common.h>
95 led-controller {
97 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
98 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
99 richtek,rfs-ohms = <16000>;
100 richtek,rts-ohms = <100000>;
102 led {
105 flash-max-timeout-us = <250000>;
106 flash-max-microamp = <150000>;
107 led-max-microamp = <25000>;