File tree Expand file tree Collapse file tree 4 files changed +40
-29
lines changed Expand file tree Collapse file tree 4 files changed +40
-29
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ compatible: "gpio-leds"
36
36
37
37
child-binding :
38
38
description : GPIO LED child node
39
+
40
+ include :
41
+ - name : led-node.yaml
42
+ property-allowlist :
43
+ - label
44
+
39
45
properties :
40
46
gpios :
41
47
type : phandle-array
42
48
required : true
43
- label :
44
- type : string
45
- description : |
46
- Human readable string describing the LED. It can be used by an
47
- application to identify this LED or to retrieve its number/index
48
- (i.e. child node number) on the parent device.
Original file line number Diff line number Diff line change 5
5
6
6
child-binding :
7
7
description : LED child node
8
+
9
+ include : led-node.yaml
10
+
8
11
properties :
9
- label :
10
- type : string
11
- description : Human readable string describing the LED
12
12
index :
13
13
type : int
14
14
description : |
@@ -17,16 +17,3 @@ child-binding:
17
17
controller. For example, this allows to handle boards where the
18
18
LEDs in an array/strip are not wired following the LED order of
19
19
the controller.
20
- color-mapping :
21
- type : array
22
- description : |
23
- Channel to color mapping of a multicolor LED. If a LED supports
24
- several colors, then the color-mapping property can be used to
25
- describe how the hardware channels and the colors are mapped.
26
-
27
- For example the channel to color mapping of RGB LEDs would be
28
-
29
- color-mapping =
30
- <LED_COLOR_ID_RED>,
31
- <LED_COLOR_ID_GREEN>,
32
- <LED_COLOR_ID_BLUE>;
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Seagate Technology LLC
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ # Common fields for LED nodes
5
+
6
+ properties :
7
+ label :
8
+ type : string
9
+ description : |
10
+ Human readable string describing the LED. It can be used by an
11
+ application to identify this LED or to retrieve its number/index
12
+ (i.e. child node number) on the parent device.
13
+ color-mapping :
14
+ type : array
15
+ description : |
16
+ Channel to color mapping of a multicolor LED. If a LED supports
17
+ several colors, then the color-mapping property can be used to
18
+ describe how the hardware channels and the colors are mapped.
19
+
20
+ For example the channel to color mapping of RGB LEDs would be
21
+
22
+ color-mapping =
23
+ <LED_COLOR_ID_RED>,
24
+ <LED_COLOR_ID_GREEN>,
25
+ <LED_COLOR_ID_BLUE>;
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ compatible: "pwm-leds"
10
10
11
11
child-binding :
12
12
description : PWM LED child node
13
+
14
+ include :
15
+ - name : led-node.yaml
16
+ property-allowlist :
17
+ - label
18
+
13
19
properties :
14
20
pwms :
15
21
required : true
@@ -22,10 +28,3 @@ child-binding:
22
28
brigtness granularity) and lesser than 50 milliseconds (average visual
23
29
persistence time of the human eye). Typical values for the PWM period
24
30
are 10 or 20 milliseconds.
25
-
26
- label :
27
- type : string
28
- description : |
29
- Human readable string describing the LED. It can be used by an
30
- application to identify this LED or to retrieve its number/index
31
- (i.e. child node number) on the parent device.
You can’t perform that action at this time.
0 commit comments