Lines Matching +full:string +full:- +full:array +full:- +full:property

1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <[email protected]>
11 - Pavel Machek <[email protected]>
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
37 $ref: /schemas/types.yaml#/definitions/string
42 the header include/dt-bindings/leds/common.h. If there is no matching
48 function-enumerator:
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:
65 default-state property is set the to same value, then no glitch should be
69 $ref: /schemas/types.yaml#/definitions/string
71 - on
72 - off
73 - keep
76 linux,default-trigger:
78 This parameter, if present, is a string defining the trigger assigned to
80 $ref: /schemas/types.yaml#/definitions/string
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 - rc-feedback
124 - torch
126 - usb-gadget
128 - usb-host
130 - usbport
132 - pattern: "^cpu[0-9]*$"
134 - pattern: "^hci[0-9]+-power$"
136 - pattern: "^mmc[0-9]+$"
138 - pattern: "^phy[0-9]+tx$"
140 led-pattern:
142 Array of integers with default pattern for certain triggers.
144 Each trigger may parse this property differently:
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:
167 property is not required. This property is used to set a software limit.
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:
196 hardwired). In such cases this property should contain phandle(s) of
204 #trigger-source-cells property in the source node.
205 $ref: /schemas/types.yaml#/definitions/phandle-array
207 active-high:
213 active-low:
219 inactive-high-impedance:
222 Set LED to high-impedance mode to turn the LED OFF. LED might also
226 flash-max-microamp:
231 flash-max-timeout-us:
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";
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>;
298 linux,default-trigger = "heartbeat";
300 function-enumerator = <1>;
306 function-enumerator = <2>;
312 function-enumerator = <3>;