File tree Expand file tree Collapse file tree 6 files changed +33
-0
lines changed
samples/drivers/led_strip/boards
tests/drivers/build_all/display Expand file tree Collapse file tree 6 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 8
8
#include <nordic/nrf52840_qiaa.dtsi>
9
9
#include "adafruit_itsybitsy_nrf52840-pinctrl.dtsi"
10
10
#include <zephyr/dt-bindings/input/input-event-codes.h>
11
+ #include <zephyr/dt-bindings/led/led.h>
11
12
12
13
/ {
13
14
model = "Adafruit ItsyBitsy nRF52840 Express";
107
108
compatible = "apa,apa102";
108
109
reg = <0>;
109
110
spi-max-frequency = <5250000>;
111
+ chain-length = <1>;
112
+ color-mapping = <LED_COLOR_ID_BLUE
113
+ LED_COLOR_ID_GREEN
114
+ LED_COLOR_ID_RED>;
110
115
};
111
116
};
112
117
Original file line number Diff line number Diff line change 8
8
#include <atmel/samd21.dtsi>
9
9
#include <atmel/samx2xx18.dtsi>
10
10
#include "adafruit_trinket_m0-pinctrl.dtsi"
11
+ #include <zephyr/dt-bindings/led/led.h>
11
12
12
13
/ {
13
14
model = "Adafruit Trinket M0";
87
88
compatible = "apa,apa102";
88
89
reg = <0>;
89
90
spi-max-frequency = <24000000>;
91
+ chain-length = <1>;
92
+ color-mapping = <LED_COLOR_ID_BLUE
93
+ LED_COLOR_ID_GREEN
94
+ LED_COLOR_ID_RED>;
90
95
};
91
96
};
92
97
Original file line number Diff line number Diff line change 8
8
#include <nordic/nrf52832_qfaa.dtsi>
9
9
#include "blueclover_plt_demo_v2_nrf52832-pinctrl.dtsi"
10
10
#include <zephyr/dt-bindings/input/input-event-codes.h>
11
+ #include <zephyr/dt-bindings/led/led.h>
11
12
12
13
/ {
13
14
model = "Blue Clover PLT Demo Board V2";
107
108
compatible = "apa,apa102";
108
109
reg = <0>;
109
110
spi-max-frequency = <5250000>;
111
+ chain-length = <4>;
112
+ color-mapping = <LED_COLOR_ID_BLUE
113
+ LED_COLOR_ID_GREEN
114
+ LED_COLOR_ID_RED>;
110
115
};
111
116
};
112
117
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
+ #include <zephyr/dt-bindings/led/led.h>
8
+
7
9
&spi2 {
8
10
9
11
lpd8806: lpd8806@0 {
10
12
compatible = "greeled,lpd8806";
11
13
reg = <0>;
12
14
spi-max-frequency = <2000000>;
15
+ chain-length = <1>;
16
+ color-mapping = <LED_COLOR_ID_RED
17
+ LED_COLOR_ID_GREEN
18
+ LED_COLOR_ID_BLUE>;
13
19
};
14
20
};
15
21
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
+ #include <zephyr/dt-bindings/led/led.h>
8
+
7
9
&spi1 {
8
10
9
11
apa102: apa102@0 {
10
12
compatible = "apa,apa102";
11
13
reg = <0>;
12
14
spi-max-frequency = <5250000>;
15
+ chain-length = <1>;
16
+ color-mapping = <LED_COLOR_ID_BLUE
17
+ LED_COLOR_ID_GREEN
18
+ LED_COLOR_ID_RED>;
13
19
};
14
20
};
15
21
Original file line number Diff line number Diff line change 10
10
* (and be extended to test) real hardware.
11
11
*/
12
12
13
+ #include <zephyr/dt-bindings/led/led.h>
14
+
13
15
/ {
14
16
test {
15
17
#address-cells = <1>;
83
85
compatible = "greeled,lpd8806";
84
86
reg = <2>;
85
87
spi-max-frequency = <2000000>;
88
+ chain-length = <1>;
89
+ color-mapping = <LED_COLOR_ID_RED
90
+ LED_COLOR_ID_GREEN
91
+ LED_COLOR_ID_BLUE>;
86
92
};
87
93
88
94
test_led_strip_1: ws2812_spi@3 {
You can’t perform that action at this time.
0 commit comments