2020-06-13 04:08:10 +08:00
|
|
|
# Copyright (c) 2020 Google LLC.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
description: Atmel SAM0 TCC in PWM mode
|
|
|
|
|
|
|
|
compatible: "atmel,sam0-tcc-pwm"
|
|
|
|
|
2022-03-13 23:30:30 +08:00
|
|
|
include:
|
|
|
|
- name: base.yaml
|
|
|
|
- name: pwm-controller.yaml
|
|
|
|
- name: pinctrl-device.yaml
|
2020-06-13 04:08:10 +08:00
|
|
|
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
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":
|
2022-04-22 17:33:59 +08:00
|
|
|
const: 2
|
2020-06-13 04:08:10 +08:00
|
|
|
|
|
|
|
pwm-cells:
|
|
|
|
- channel
|
2022-04-22 17:33:59 +08:00
|
|
|
- period
|