Lines Matching +full:function +full:- +full:off

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
32 function:
34 LED function. Use one of the LED_FUNCTION_* prefixed definitions
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:
50 Integer to be used when more than one instance of the same function is
59 deprecated - use 'function' and 'color' properties instead.
60 function-enumerator has no effect when this property is present.
62 default-state:
64 The initial state of the LED. If the LED is already on or off and the
65 default-state property is set the to same value, then no glitch should be
66 produced where the LED momentarily turns off (or on). The "keep" setting
71 - on
72 - off
73 - keep
74 default: off
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 (see also "default-state" property)
87 - default-on
89 - heartbeat
91 - disk-activity
93 - disk-read
95 - disk-write
97 - timer
99 # timer (requires "led-pattern" property)
100 - pattern
102 - audio-micmute
104 - audio-mute
106 - bluetooth-power
108 - flash
110 - kbd-capslock
112 - mtd
115 - nand-disk
117 - netdev
120 - none
122 - torch
124 - usb-gadget
126 - usb-host
128 - usbport
130 - pattern: "^cpu[0-9]*$"
132 - pattern: "^hci[0-9]+-power$"
134 - pattern: "^mmc[0-9]+$"
136 - pattern: "^phy[0-9]+tx$"
138 led-pattern:
143 - one-shot : two numbers specifying delay on and delay off (in ms),
144 - timer : two numbers specifying delay on and delay off (in ms),
145 - pattern : the pattern is given by a series of tuples, of
148 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
149 $ref: /schemas/types.yaml#/definitions/uint32-matrix
154 led-max-microamp:
160 mandatory for the LEDs in the non-flash modes (e.g. torch or indicator).
162 max-brightness:
169 Note that this flag is mainly used for PWM-LEDs, where it is not possible
171 led-max-microamp.
174 panic-indicator:
180 retain-state-shutdown:
182 This property specifies that the LED should not be turned off or changed
186 trigger-sources:
202 #trigger-source-cells property in the source node.
203 $ref: /schemas/types.yaml#/definitions/phandle-array
205 active-low:
211 inactive-high-impedance:
214 Set LED to high-impedance mode to turn the LED OFF. LED might also
218 flash-max-microamp:
223 flash-max-timeout-us:
225 Maximum timeout in microseconds after which the flash LED is turned off.
231 - |
232 #include <dt-bindings/gpio/gpio.h>
233 #include <dt-bindings/leds/common.h>
235 led-controller {
236 compatible = "gpio-leds";
238 led-0 {
239 function = LED_FUNCTION_STATUS;
240 linux,default-trigger = "heartbeat";
244 led-1 {
245 function = LED_FUNCTION_USB;
247 trigger-sources = <&ohci_port1>, <&ehci_port1>;
251 - |
252 #include <dt-bindings/leds/common.h>
254 led-controller {
255 compatible = "maxim,max77693-led";
258 function = LED_FUNCTION_FLASH;
260 led-sources = <0>, <1>;
261 led-max-microamp = <50000>;
262 flash-max-microamp = <320000>;
263 flash-max-timeout-us = <500000>;
267 - |
268 #include <dt-bindings/leds/common.h>
271 #address-cells = <1>;
272 #size-cells = <0>;
274 led-controller@30 {
277 #address-cells = <1>;
278 #size-cells = <0>;
282 linux,default-trigger = "heartbeat";
283 function = LED_FUNCTION_INDICATOR;
284 function-enumerator = <1>;
289 function = LED_FUNCTION_INDICATOR;
290 function-enumerator = <2>;
295 function = LED_FUNCTION_INDICATOR;
296 function-enumerator = <3>;