1/*
2 * Copyright (c) 2021, STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/led/led.h>
8
9&arduino_spi {
10	led_strip: ws2812@0 {
11		compatible = "worldsemi,ws2812-spi";
12
13		/* SPI */
14		reg = <0>; /* ignored, but necessary for SPI bindings */
15		spi-max-frequency = <4000000>;
16		frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
17
18		/* WS2812 */
19		chain-length = <16>; /* arbitrary; change at will */
20		spi-one-frame = <0x70>;
21		spi-zero-frame = <0x40>;
22		color-mapping = <LED_COLOR_ID_GREEN
23				 LED_COLOR_ID_RED
24				 LED_COLOR_ID_BLUE>;
25	};
26};
27
28/ {
29	aliases {
30		led-strip = &led_strip;
31	};
32};
33