1#include <zephyr/dt-bindings/led/led.h> 2 3/* Wiring: 4 * - M1.S connected to GND 5 * - SDOUT connected to M1.D 6 * - ~300 ohm resistor between M1.D and TP5 (5V / Vbus) 7 */ 8 9&pinctrl { 10 i2s0_default_alt: i2s0_default_alt { 11 group1 { 12 psels = <NRF_PSEL(I2S_SCK_M, 0, 20)>, 13 <NRF_PSEL(I2S_LRCK_M, 0, 19)>, 14 <NRF_PSEL(I2S_SDOUT, 0, 18)>, 15 <NRF_PSEL(I2S_SDIN, 0, 21)>; 16 }; 17 }; 18}; 19 20i2s_led: &i2s0 { 21 status = "okay"; 22 pinctrl-0 = <&i2s0_default_alt>; 23 pinctrl-names = "default"; 24 25 led_strip: ws2812@0 { 26 compatible = "worldsemi,ws2812-i2s"; 27 28 reg = <0>; 29 chain-length = <10>; /* arbitrary; change at will */ 30 color-mapping = <LED_COLOR_ID_GREEN 31 LED_COLOR_ID_RED 32 LED_COLOR_ID_BLUE>; 33 out-active-low; 34 reset-delay = <120>; 35 }; 36}; 37 38/ { 39 aliases { 40 led-strip = &led_strip; 41 }; 42}; 43