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&lpspi3 { 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 = <6400000>; 16 17 /* WS2812 */ 18 chain-length = <2>; /* arbitrary; change at will */ 19 spi-cpha; 20 spi-one-frame = <0xf0>; /* 11110000: 625 ns high and 625 ns low */ 21 spi-zero-frame = <0xc0>; /* 11000000: 312.5 ns high and 937.5 ns low */ 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