nordic,nrf-sw-pwm

Vendor: Nordic Semiconductor

Description

nRFx S/W PWM

Properties

Node specific 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

Deprecated node specific properties

Deprecated properties not inherited from the base binding file.

Name

Type

Details

timer-instance

int

Timer instance to use for generating the PWM output signals. Deprecated
in favour of 'generator' property.

Base properties

Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “nordic,nrf-sw-pwm” compatible.

Name

Type

Details

label

string

Human readable string describing the device (used as device_get_binding() argument)

This property is required.

See Important properties for more information.

status

string

indicates the operational status of a device

Legal values: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss'

See Important properties for more information.

compatible

string-array

compatible strings

This property is required.

See Important properties for more information.

reg

array

register space

See Important properties for more information.

reg-names

string-array

name of each register space

interrupts

array

interrupts for device

See Important properties for more information.

interrupts-extended

compound

extended interrupt specifier for device

interrupt-names

string-array

name of each interrupt

interrupt-parent

phandle

phandle to interrupt controller node

clocks

phandle-array

Clock gate information

clock-names

string-array

name of each clock

#address-cells

int

number of address cells in reg property

#size-cells

int

number of size cells in reg property

dmas

phandle-array

DMA channels specifiers

dma-names

string-array

Provided names of DMA channel specifiers

io-channels

phandle-array

IO channels specifiers

io-channel-names

string-array

Provided names of IO channel specifiers

Specifier cell names

  • pwm cells: channel