37 lines
835 B
YAML
37 lines
835 B
YAML
description: nRFx S/W PWM
|
|
|
|
compatible: "nordic,nrf-sw-pwm"
|
|
|
|
include: [pwm-controller.yaml, base.yaml]
|
|
|
|
properties:
|
|
generator:
|
|
type: phandle
|
|
description: |
|
|
Reference to TIMER or RTC instance for generating PWM output signals
|
|
required: true
|
|
|
|
channel-count:
|
|
type: int
|
|
description: |
|
|
Number of PWM channels. Limited by RTC/TIMER instance compare registers
|
|
minus 1.
|
|
required: true
|
|
|
|
clock-prescaler:
|
|
type: int
|
|
description: |
|
|
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.
|
|
required: true
|
|
|
|
"#pwm-cells":
|
|
const: 1
|
|
|
|
pwm-cells:
|
|
- channel
|