nordic,nrf-pwm-pulse-io

Description

nRF PWM pulse_io controller

The nRF PWM peripheral exposed through the pulse_io API. Select it by
overwriting the compatible of an nRF PWM node.

Examples

&pinctrl {
        pwm1_default: pwm1_default {
                group1 {
                        psels = <NRF_PSEL(PWM_OUT0, 1, 3)>;
                };
        };

        pwm1_sleep: pwm1_sleep {
                group1 {
                        psels = <NRF_PSEL(PWM_OUT0, 1, 3)>;
                        low-power-enable;
                };
        };
};

&pwm1 {
        compatible = "nordic,nrf-pwm-pulse-io";
        status = "okay";
        #pulse-io-cells = <1>;
        pinctrl-0 = <&pwm1_default>;
        pinctrl-1 = <&pwm1_sleep>;
        pinctrl-names = "default", "sleep";
};

/ {
        led_strip: ws2812 {
                compatible = "worldsemi,ws2812-pulse-io";
                pulse-ios = <&pwm1 0>;
                chain-length = <8>;
                color-mapping = <LED_COLOR_ID_GREEN
                                 LED_COLOR_ID_RED
                                 LED_COLOR_ID_BLUE>;
        };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

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

This property is required.

pinctrl-names

string-array

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

This property is required.

idleout-supported

boolean

Indicates if the PWM instance has the IDLEOUT register. Set by the
SoC devicetree on nRF PWM nodes.

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.

memory-regions

phandle-array

List of memory region phandles

memory-region-names

string-array

A list of names, one for each corresponding phandle in memory-region

#pulse-io-cells

int

Number of cells in a pulse-ios specifier. Must be 1; the single
cell selects the channel index on the controller.

This property is required.

Constant value: 1

Specifier cell names

  • pulse-io cells: channel