File tree Expand file tree Collapse file tree 3 files changed +29
-39
lines changed Expand file tree Collapse file tree 3 files changed +29
-39
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2019, Linaro Limited
2
+ # Copyright (c) 2019, Nordic Semiconductor ASA
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ # Common fields for LED strips
6
+
7
+ properties :
8
+ chain-length :
9
+ type : int
10
+ required : true
11
+ description : |
12
+ The number of devices in the daisy-chain.
13
+
14
+ color-mapping :
15
+ type : array
16
+ required : true
17
+ description : |
18
+ Channel to color mapping (or pixel order).
19
+
20
+ For example a GRB channel to color mapping would be
21
+
22
+ color-mapping = <LED_COLOR_ID_GREEN
23
+ LED_COLOR_ID_RED
24
+ LED_COLOR_ID_BLUE>;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ description: |
6
6
7
7
Driver bindings for daisy chains of a TLC5971 devices using a single device
8
8
tree node. Length of daisy chains in pixels is defined by the chain-length
9
- property.
9
+ property. Note: chain-length must be a multiple of 4. A single TLC5971 device
10
+ supports 4 RGB LEDs.
10
11
11
12
The color order of the TLC5971 is BGR. Applications can provide custom mappings
12
13
using the color-mapping property.
@@ -28,23 +29,4 @@ description: |
28
29
29
30
compatible : " ti,tlc5971"
30
31
31
- include : spi-device.yaml
32
-
33
- properties :
34
- chain-length :
35
- type : int
36
- required : true
37
- description : |
38
- The number of RGB LEDs in the daisy-chain.
39
- Must be multiple of 4. A single TLC5971 device supports 4 RGB LEDs.
40
-
41
- color-mapping :
42
- type : array
43
- required : true
44
- description : |
45
- Channel to color mapping (or pixel order).
46
- For example a BGR channel to color mapping would be
47
-
48
- color-mapping = <LED_COLOR_ID_BLUE
49
- LED_COLOR_ID_GREEN
50
- LED_COLOR_ID_RED>;
32
+ include : [spi-device.yaml, led-strip.yaml]
Original file line number Diff line number Diff line change @@ -34,25 +34,9 @@ description: |
34
34
property. The pixel order depends on the model and it can be configured
35
35
using the color-mapping property.
36
36
37
- properties :
38
- chain-length :
39
- type : int
40
- required : true
41
- description : |
42
- The number of devices in the daisy-chain.
43
-
44
- color-mapping :
45
- type : array
46
- required : true
47
- description : |
48
- Channel to color mapping (or pixel order).
49
-
50
- For example a GRB channel to color mapping would be
51
-
52
- color-mapping = <LED_COLOR_ID_GREEN
53
- LED_COLOR_ID_RED
54
- LED_COLOR_ID_BLUE>;
37
+ include : led-strip.yaml
55
38
39
+ properties :
56
40
reset-delay :
57
41
type : int
58
42
default : 8
You can’t perform that action at this time.
0 commit comments