1/* 2 * Copyright (c) 2019, Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/led/led.h> 8 9#include "../nrf52-bindings.h" 10 11&arduino_spi { /* MOSI on D11 / P0.23 */ 12 compatible = "nordic,nrf-spim"; 13 led_strip: ws2812@0 { 14 compatible = "worldsemi,ws2812-spi"; 15 16 /* SPI */ 17 reg = <0>; /* ignored, but necessary for SPI bindings */ 18 spi-max-frequency = <SPI_FREQ>; 19 20 /* WS2812 */ 21 chain-length = <16>; /* arbitrary; change at will */ 22 color-mapping = <LED_COLOR_ID_GREEN 23 LED_COLOR_ID_RED 24 LED_COLOR_ID_BLUE>; 25 spi-one-frame = <ONE_FRAME>; 26 spi-zero-frame = <ZERO_FRAME>; 27 }; 28}; 29 30/ { 31 aliases { 32 led-strip = &led_strip; 33 }; 34}; 35