led_strip: add a APA102 driver.
The APA102 is a RGB LED with integrated controller. LEDs can be daisy-chained and use SPI for communication. The SPI port is configured via Device Tree. Tested on the Adafruit Trinket M0. Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
d9538ec6b3
commit
8ee282e319
5 changed files with 137 additions and 0 deletions
17
dts/bindings/led_strip/apa,apa-102.yaml
Normal file
17
dts/bindings/led_strip/apa,apa-102.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: APA102 SPI LED strip
|
||||
id: apa,apa102
|
||||
version: 0.1
|
||||
|
||||
description: APA102 SPI LED strip binding
|
||||
|
||||
inherits:
|
||||
!include spi-device.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "apa,apa102"
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue