Lines Matching +full:ws2812 +full:- +full:spi
2 * SPDX-License-Identifier: Apache-2.0
4 /dts-v1/;
7 #include <zephyr/dt-bindings/led/led.h>
8 #include "yd_esp32-pinctrl.dtsi"
9 #include <zephyr/dt-bindings/input/input-event-codes.h>
13 model = "VCC-GND Studio YD-ESP32 PROCPU";
17 uart-0 = &uart0;
18 i2c-0 = &i2c0;
21 led-strip = &rgb_led;
25 compatible = "gpio-keys";
36 zephyr,shell-uart = &uart0;
38 zephyr,code-partition = &slot0_partition;
39 zephyr,bt-hci = &esp32_bt_hci;
47 output-low;
54 current-speed = <115200>;
55 pinctrl-0 = <&uart0_default>;
56 pinctrl-names = "default";
60 current-speed = <115200>;
61 pinctrl-0 = <&uart1_default>;
62 pinctrl-names = "default";
66 current-speed = <115200>;
67 pinctrl-0 = <&uart2_default>;
68 pinctrl-names = "default";
81 clock-frequency = <I2C_BITRATE_STANDARD>;
82 sda-gpios = <&gpio0 21 GPIO_OPEN_DRAIN>;
83 scl-gpios = <&gpio0 22 GPIO_OPEN_DRAIN>;
84 pinctrl-0 = <&i2c0_default>;
85 pinctrl-names = "default";
89 #address-cells = <1>;
90 #size-cells = <0>;
92 pinctrl-0 = <&spim2_default>;
93 pinctrl-names = "default";
95 rgb_led: ws2812@0 {
96 compatible = "worldsemi,ws2812-spi";
98 /* SPI */
99 reg = <0>; /* ignored, but necessary for SPI bindings */
100 spi-max-frequency = <6400000>;
102 /* XL-5050RGBC-WS2812B */
103 chain-length = <1>;
104 spi-one-frame = <0xfc>; /* 11111100: 0.937 us high and 0.313 us low */
105 spi-zero-frame = <0xc0>; /* 11000000: 0.313 us high and 0.937 us low */
106 color-mapping = <LED_COLOR_ID_GREEN
113 #address-cells = <1>;
114 #size-cells = <0>;
116 pinctrl-0 = <&spim3_default>;
117 pinctrl-names = "default";