Lines Matching +full:led +full:- +full:usb +full:- +full:mode

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>
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.
18 Many LED devices expose more than one current output that can be connected
19 to one or more discrete LED component. Since the arrangement of connections
20 can influence the way of the LED device initialization, the LED components
21 have to be tightly coupled with the LED device binding. They are represented
22 by child nodes of the parent LED device binding.
25 led-sources:
27 List of device current outputs the LED is connected to. The outputs are
28 identified by the numbers that must be defined in the LED device binding
30 $ref: /schemas/types.yaml#/definitions/uint32-array
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
41 Color of the LED. Use one of the LED_COLOR_ID_* prefixed definitions from
42 the header include/dt-bindings/leds/common.h. If there is no matching
48 function-enumerator:
56 The label for this LED. If omitted, the label is taken from the node name
58 no other LED class device can be assigned the same label. This property 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
67 will keep the LED at whatever its current state is, without producing a
71 - on
72 - off
73 - keep
76 linux,default-trigger:
79 the LED.
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
88 # LED "double" flashes at a load average based rate
89 - heartbeat
90 # LED indicates disk activity
91 - disk-activity
92 # LED indicates disk read activity
93 - disk-read
94 # LED indicates disk write activity
95 - disk-write
96 # LED flashes at a fixed, configurable rate
97 - timer
98 # LED alters the brightness for the specified duration with one software
99 # timer (requires "led-pattern" property)
100 - pattern
101 # LED indicates mic mute state
102 - audio-micmute
103 # LED indicates audio mute state
104 - audio-mute
105 # LED indicates bluetooth power state
106 - bluetooth-power
107 # LED indicates camera flash state
108 - flash
109 # LED indicated keyboard capslock
110 - kbd-capslock
111 # LED indicates MTD memory activity
112 - mtd
113 # LED indicates NAND memory activity (deprecated),
115 - nand-disk
116 # LED indicates network activity
117 - netdev
118 # No trigger assigned to the LED. This is the default mode
120 - none
121 # LED indicates remote control feedback
122 - rc-feedback
123 # LED indicates camera torch state
124 - torch
125 # LED indicates USB gadget activity
126 - usb-gadget
127 # LED indicates USB host activity
128 - usb-host
129 # LED indicates USB port state
130 - usbport
131 # LED is triggered by CPU activity
132 - pattern: "^cpu[0-9]*$"
133 # LED is triggered by Bluetooth activity
134 - pattern: "^hci[0-9]+-power$"
135 # LED is triggered by SD/MMC activity
136 - pattern: "^mmc[0-9]+$"
137 # LED is triggered by WLAN activity
138 - pattern: "^phy[0-9]+tx$"
140 led-pattern:
145 - one-shot : two numbers specifying delay on and delay off (in ms),
146 - timer : two numbers specifying delay on and delay off (in ms),
147 - pattern : the pattern is given by a series of tuples, of
150 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
151 $ref: /schemas/types.yaml#/definitions/uint32-matrix
156 led-max-microamp:
158 Maximum LED supply current in microamperes. This property can be made
161 For flash LED controllers with configurable current this property is
162 mandatory for the LEDs in the non-flash modes (e.g. torch or indicator).
164 max-brightness:
168 It could happen that an LED is made so bright that it gets damaged or
171 Note that this flag is mainly used for PWM-LEDs, where it is not possible
173 led-max-microamp.
176 panic-indicator:
178 This property specifies that the LED should be used, if at all possible,
182 retain-state-shutdown:
184 This property specifies that the LED should not be turned off or changed
188 trigger-sources:
190 List of devices which should be used as a source triggering this LED
192 indicate its state. E.g. USB 2.0 LED may react to device(s) in a USB 2.0
195 each of them having its own LED assigned (assuming they are not
199 state of the line (with or without inversion flags) to the LED.
200 In many cases LED can be related to more than one device (e.g. one USB LED
201 vs. multiple USB ports). Each source should be represented by a node in
204 #trigger-source-cells property in the source node.
205 $ref: /schemas/types.yaml#/definitions/phandle-array
207 active-high:
210 Makes LED active high. To turn the LED ON, line needs to be
213 active-low:
216 Makes LED active low. To turn the LED ON, line needs to be
219 inactive-high-impedance:
222 Set LED to high-impedance mode to turn the LED OFF. LED might also
223 describe this mode as tristate.
225 # Required properties for flash LED child nodes:
226 flash-max-microamp:
228 Maximum flash LED supply current in microamperes. Required for flash LED
231 flash-max-timeout-us:
233 Maximum timeout in microseconds after which the flash LED is turned off.
234 Required for flash LED nodes with configurable timeout.
237 - if:
239 - active-low
242 active-high: false
247 - |
248 #include <dt-bindings/gpio/gpio.h>
249 #include <dt-bindings/leds/common.h>
251 led-controller {
252 compatible = "gpio-leds";
254 led-0 {
256 linux,default-trigger = "heartbeat";
260 led-1 {
263 trigger-sources = <&ohci_port1>, <&ehci_port1>;
267 - |
268 #include <dt-bindings/leds/common.h>
270 led-controller {
271 compatible = "maxim,max77693-led";
273 led {
276 led-sources = <0>, <1>;
277 led-max-microamp = <50000>;
278 flash-max-microamp = <320000>;
279 flash-max-timeout-us = <500000>;
283 - |
284 #include <dt-bindings/leds/common.h>
287 #address-cells = <1>;
288 #size-cells = <0>;
290 led-controller@30 {
293 #address-cells = <1>;
294 #size-cells = <0>;
296 led@1 {
298 linux,default-trigger = "heartbeat";
300 function-enumerator = <1>;
303 led@2 {
306 function-enumerator = <2>;
309 led@3 {
312 function-enumerator = <3>;