1#include <zephyr/dt-bindings/led/led.h>
2
3&pinctrl {
4	i2s0_default_alt: i2s0_default_alt {
5		group1 {
6			/* Default I2S config for the nRF5340, P1.13 is the output */
7			psels = <NRF_PSEL(I2S_SCK_M, 1, 15)>,
8				<NRF_PSEL(I2S_LRCK_M, 1, 12)>,
9				<NRF_PSEL(I2S_SDOUT, 1, 13)>,
10				<NRF_PSEL(I2S_SDIN, 1, 14)>;
11		};
12	};
13};
14
15i2s_led: &i2s0 {
16	status = "okay";
17	pinctrl-0 = <&i2s0_default_alt>;
18	pinctrl-names = "default";
19
20	led_strip: ws2812@0 {
21		compatible = "worldsemi,ws2812-i2s";
22
23		reg = <0>;
24		chain-length = <42>; /* arbitrary; change at will */
25		color-mapping = <LED_COLOR_ID_GREEN
26					LED_COLOR_ID_RED
27					LED_COLOR_ID_BLUE>;
28		reset-delay = <500>;
29	};
30};
31
32/ {
33	aliases {
34		led-strip = &led_strip;
35	};
36};
37