nordic,nrf-sw-pwm

Vendor: Nordic Semiconductor

Description

nRFx S/W PWM

Properties

Properties not inherited from the base binding file.

Name

Type

Details

generator

phandle

Reference to TIMER or RTC instance for generating PWM output signals

channel-count

int

Number of PWM channels. Limited by RTC/TIMER instance compare registers
minus 1.

This property is required.

clock-prescaler

int

Clock prescaler for RTC or TIMER used for generating PWM output signals.

RTC: needs to be set to 0, which gives 32768 Hz base clock for PWM
generation.

TIMER: 16 MHz / 2^prescaler base clock is used for PWM generation.

This property is required.

ppi-base

int

PPI base used for PPI index calculation used for PWM output generation

This property is required.

gpiote-base

int

GPIOTE base used for GPIOTE index calculation used for PWM output generation

This property is required.

#pwm-cells

int

Number of items to expect in a pwm specifier

This property is required.

Constant value: 1

Specifier cell names

  • pwm cells: channel