boards: Add chain length and colour mapping to LED strips
Adds chain length and colour mapping properties to LED strip devices on boards where these parameters are now required Signed-off-by: Jamie McCrae <spam@helper3000.net>
This commit is contained in:
parent
f4a3771f8e
commit
8ca399919b
6 changed files with 33 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
|||
* (and be extended to test) real hardware.
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/led/led.h>
|
||||
|
||||
/ {
|
||||
test {
|
||||
#address-cells = <1>;
|
||||
|
@ -83,6 +85,10 @@
|
|||
compatible = "greeled,lpd8806";
|
||||
reg = <2>;
|
||||
spi-max-frequency = <2000000>;
|
||||
chain-length = <1>;
|
||||
color-mapping = <LED_COLOR_ID_RED
|
||||
LED_COLOR_ID_GREEN
|
||||
LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
|
||||
test_led_strip_1: ws2812_spi@3 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue