zephyr/samples/drivers/led_ws2812/boards/nucleo_f070rb.overlay

45 lines
831 B
Plaintext

/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <dt-bindings/led/led.h>
#include "../f070rb-bindings.h"
&spi1 { /* MOSI on PA7 */
dmas = <&dma1 3 0x20440>, <&dma1 2 0x20480>;
dma-names = "tx", "rx";
led_strip: b1414@0 {
compatible = "everlight,b1414", "worldsemi,ws2812-spi";
label = "B1414";
/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <B1414_SPI_FREQ>;
/* B1414 */
chain-length = <18>; /* arbitrary; change at will */
spi-one-frame = <B1414_ONE_FRAME>;
spi-zero-frame = <B1414_ZERO_FRAME>;
color-mapping = <LED_COLOR_ID_BLUE
LED_COLOR_ID_GREEN
LED_COLOR_ID_RED>;
reset-delay = <250>;
status = "okay";
};
};
&dma1 {
status = "okay";
};
/ {
aliases {
led-strip = &led_strip;
};
};