raspberrypi,pico-pio-ws2812

Vendor: Raspberry Pi Foundation

Description

The pio node configured for ws2812.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

bit-waveform

array

This property defines the waveform for sending 1-bit data.
The program uses the first three elements of the array.
Where, let these value be T0, T1, and T2.
The T0 is equal to T0H in the datasheet.
The T2 is equal to T1L in the datasheet.
The T1 is equal to (T1H-T0H) or (T0L-T1L) in the datasheet.

Code-0
   +------+                 +---
   |      |                 |
   |  T0  |      T1+T2      |
   |      |                 |
---+      +-----------------+

Code-1
   +---------------+        +---
   |               |        |
   |     T0+T1     |   T2   |
   |               |        |
---+               +--------+


The frequency determines the wave period.
The T0~T2 means ratio in one period.

For example, T0=3, T1=3, T2=4 and the frequency is 800kHz case,
T0H is
  (1 / 800kHz) * (3/10) = 375ns
T0L is
  (1 / 800kHz) * ((4+3)/10) = 875ns

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.