Lines Matching +full:flash +full:- +full:leds

1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/common.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Common leds properties
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 LED and flash LED devices provide the same basic functionality as current
15 regulators, but extended with LED and flash LED specific features like
16 blinking patterns, flash timeout, flash faults and external flash strobe mode.
25 led-sources:
30 $ref: /schemas/types.yaml#/definitions/uint32-array
35 from the header include/dt-bindings/leds/common.h. If there is no
42 the header include/dt-bindings/leds/common.h. If there is no matching
48 function-enumerator:
59 deprecated - use 'function' and 'color' properties instead.
60 function-enumerator has no effect when this property is present.
62 default-state:
65 default-state property is set the to same value, then no glitch should be
71 - on
72 - off
73 - keep
76 linux,default-trigger:
83 - enum:
84 # LED will act as a back-light, controlled by the framebuffer system
85 - backlight
86 # LED will turn on (but for leds-gpio see "default-state" property in
87 # Documentation/devicetree/bindings/leds/leds-gpio.yaml)
88 - default-on
90 - heartbeat
92 - disk-activity
94 # use "disk-activity"
95 - ide-disk
97 - timer
99 # timer (requires "led-pattern" property)
100 - pattern
102 - pattern: "^mmc[0-9]+$"
104 led-pattern:
109 - one-shot : two numbers specifying delay on and delay off (in ms),
110 - timer : two numbers specifying delay on and delay off (in ms),
111 - pattern : the pattern is given by a series of tuples, of
114 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
115 $ref: /schemas/types.yaml#/definitions/uint32-matrix
120 led-max-microamp:
125 For flash LED controllers with configurable current this property is
126 mandatory for the LEDs in the non-flash modes (e.g. torch or indicator).
128 panic-indicator:
134 retain-state-shutdown:
140 trigger-sources:
143 activity. Some LEDs can be related to a specific device and should somehow
154 #trigger-source-cells property in the source node.
155 $ref: /schemas/types.yaml#/definitions/phandle-array
157 # Required properties for flash LED child nodes:
158 flash-max-microamp:
160 Maximum flash LED supply current in microamperes. Required for flash LED
163 flash-max-timeout-us:
165 Maximum timeout in microseconds after which the flash LED is turned off.
166 Required for flash LED nodes with configurable timeout.
171 - |
172 #include <dt-bindings/gpio/gpio.h>
173 #include <dt-bindings/leds/common.h>
175 led-controller {
176 compatible = "gpio-leds";
178 led-0 {
180 linux,default-trigger = "heartbeat";
184 led-1 {
187 trigger-sources = <&ohci_port1>, <&ehci_port1>;
191 - |
192 #include <dt-bindings/leds/common.h>
194 led-controller {
195 compatible = "maxim,max77693-led";
200 led-sources = <0>, <1>;
201 led-max-microamp = <50000>;
202 flash-max-microamp = <320000>;
203 flash-max-timeout-us = <500000>;
207 - |
208 #include <dt-bindings/leds/common.h>
211 #address-cells = <1>;
212 #size-cells = <0>;
214 led-controller@30 {
217 #address-cells = <1>;
218 #size-cells = <0>;
222 linux,default-trigger = "heartbeat";
224 function-enumerator = <1>;
230 function-enumerator = <2>;
236 function-enumerator = <3>;