zephyr/dts/bindings/pwm/atmel,sam0-tcc-pwm.yaml
Michael Hope 38cfd6c2e6 dts: pwm: add a binding for the SAM0 TCC in PWM mode
The SAM0 Timer/Counter for Control Applications can act as a counter
or generator.  Add a binding for the TCC in PWM mode and helper to
check the compat mode.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-01 08:10:59 -05:00

62 lines
862 B
YAML

# Copyright (c) 2020 Google LLC.
# SPDX-License-Identifier: Apache-2.0
description: Atmel SAM0 TCC in PWM mode
compatible: "atmel,sam0-tcc-pwm"
include: [pwm-controller.yaml, base.yaml]
properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
clock-names:
required: true
label:
required: true
channels:
type: int
required: true
description: Number of channels this TCC has
enum:
- 2
- 3
- 4
- 6
counter-size:
type: int
required: true
description: Width of the TCC counter in bits
enum:
- 16
- 24
prescaler:
type: int
required: true
description: PWM prescaler
enum:
- 1
- 2
- 4
- 8
- 16
- 64
- 256
- 1024
"#pwm-cells":
const: 1
pwm-cells:
- channel