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 <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
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 # LED will act as a back-light, controlled by the framebuffer system
84 - backlight
85 # LED will turn on (but for leds-gpio see "default-state" property in
86 # Documentation/devicetree/bindings/leds/leds-gpio.yaml)
87 - default-on
89 - heartbeat
91 - disk-activity
93 # use "disk-activity"
94 - ide-disk
96 - timer
98 # timer (requires "led-pattern" property)
99 - pattern
101 led-pattern:
103 Array of integers with default pattern for certain triggers.
105 Each trigger may parse this property differently:
106 - one-shot : two numbers specifying delay on and delay off (in ms),
107 - timer : two numbers specifying delay on and delay off (in ms),
108 - pattern : the pattern is given by a series of tuples, of
111 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
112 $ref: /schemas/types.yaml#/definitions/uint32-matrix
117 led-max-microamp:
119 Maximum LED supply current in microamperes. This property can be made
122 For flash LED controllers with configurable current this property is
123 mandatory for the LEDs in the non-flash modes (e.g. torch or indicator).
125 panic-indicator:
127 This property specifies that the LED should be used, if at all possible,
131 retain-state-shutdown:
133 This property specifies that the LED should not be turned off or changed
137 trigger-sources:
145 hardwired). In such cases this property should contain phandle(s) of
151 #trigger-source-cells property in the source node.
152 $ref: /schemas/types.yaml#/definitions/phandle-array
155 flash-max-microamp:
160 flash-max-timeout-us:
168 - |
169 #include <dt-bindings/gpio/gpio.h>
170 #include <dt-bindings/leds/common.h>
172 led-controller {
173 compatible = "gpio-leds";
175 led-0 {
177 linux,default-trigger = "heartbeat";
181 led-1 {
184 trigger-sources = <&ohci_port1>, <&ehci_port1>;
188 led-controller@0 {
189 compatible = "maxim,max77693-led";
195 led-sources = <0>, <1>;
196 led-max-microamp = <50000>;
197 flash-max-microamp = <320000>;
198 flash-max-timeout-us = <500000>;
203 #address-cells = <1>;
204 #size-cells = <0>;
206 led-controller@30 {
209 #address-cells = <1>;
210 #size-cells = <0>;
214 linux,default-trigger = "heartbeat";
216 function-enumerator = <1>;
222 function-enumerator = <2>;
228 function-enumerator = <3>;