1/* 2 * Copyright (c) 2021 Seagate Technology LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/led/led.h> 8 9#include "../f070rb-bindings.h" 10 11&spi1 { /* MOSI on PA7 */ 12 dmas = <&dma1 3 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)>, 13 <&dma1 2 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>; 14 dma-names = "tx", "rx"; 15 16 led_strip: b1414@0 { 17 compatible = "everlight,b1414", "worldsemi,ws2812-spi"; 18 19 /* SPI */ 20 reg = <0>; /* ignored, but necessary for SPI bindings */ 21 spi-max-frequency = <B1414_SPI_FREQ>; 22 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */ 23 24 /* B1414 */ 25 chain-length = <18>; /* arbitrary; change at will */ 26 spi-one-frame = <B1414_ONE_FRAME>; 27 spi-zero-frame = <B1414_ZERO_FRAME>; 28 color-mapping = <LED_COLOR_ID_BLUE 29 LED_COLOR_ID_GREEN 30 LED_COLOR_ID_RED>; 31 32 reset-delay = <250>; 33 status = "okay"; 34 }; 35}; 36 37&dma1 { 38 status = "okay"; 39}; 40 41/ { 42 aliases { 43 led-strip = &led_strip; 44 }; 45}; 46