1# Copyright (c) 2019, Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  Worldsemi WS2812 LED strip, SPI binding
6
7  Driver bindings for controlling a WS2812 or compatible LED
8  strip with a SPI master.
9
10  The SPI driver should be usable as long as a zephyr SPI API driver
11  is available for your board. Hardware specific tuning is required
12  using these properties:
13
14    - spi-max-frequency
15    - spi-zero-frame
16    - spi-one-frame.
17
18  Use of this driver implies an 8x internal memory overhead (1 byte of
19  driver RAM overhead per bit of pixel data).
20
21compatible: "worldsemi,ws2812-spi"
22
23include: [spi-device.yaml, ws2812.yaml]
24
25properties:
26
27  spi-cpol:
28    type: boolean
29    description: Set SPI clock polarity.
30
31  spi-cpha:
32    type: boolean
33    description: Set SPI clock phase.
34
35  spi-one-frame:
36    type: int
37    required: true
38    description: 8-bit SPI frame to shift out for a 1 pulse.
39
40  spi-zero-frame:
41    type: int
42    required: true
43    description: 8-bit SPI frame to shift out for a 0 pulse.
44