Lines Matching +full:default +full:- +full:trigger
1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
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
74 default: off
76 linux,default-trigger:
78 This parameter, if present, is a string defining the trigger assigned to
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:
106 Array of integers with default pattern for certain triggers.
108 Each trigger may parse this property differently:
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:
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:
154 #trigger-source-cells property in the source node.
155 $ref: /schemas/types.yaml#/definitions/phandle-array
158 flash-max-microamp:
163 flash-max-timeout-us:
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>;