boards: Add chain length and colour mapping to LED strips

Adds chain length and colour mapping properties to LED strip devices
on boards where these parameters are now required

Signed-off-by: Jamie McCrae <spam@helper3000.net>
This commit is contained in:
Jamie McCrae 2024-04-17 19:51:55 +01:00 committed by Henrik Brix Andersen
commit 8ca399919b
6 changed files with 33 additions and 0 deletions

View file

@ -10,6 +10,8 @@
* (and be extended to test) real hardware.
*/
#include <zephyr/dt-bindings/led/led.h>
/ {
test {
#address-cells = <1>;
@ -83,6 +85,10 @@
compatible = "greeled,lpd8806";
reg = <2>;
spi-max-frequency = <2000000>;
chain-length = <1>;
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;
};
test_led_strip_1: ws2812_spi@3 {