1/* 2 * Copyright (c) 2019, Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/gpio/gpio.h> 8#include <zephyr/dt-bindings/led/led.h> 9 10/ { 11 led_strip: ws2812 { 12 compatible = "worldsemi,ws2812-gpio"; 13 14 chain-length = <16>; /* arbitrary */ 15 color-mapping = <LED_COLOR_ID_GREEN 16 LED_COLOR_ID_RED 17 LED_COLOR_ID_BLUE>; 18 /* 19 * Arduino D11 / P0.25, which was chosen to match the pin 20 * used in nrf52dk_nrf52832.overlay. 21 */ 22 gpios = <&gpio0 25 0>; 23 }; 24 25 aliases { 26 led-strip = &led_strip; 27 }; 28}; 29