zephyr/dts/bindings/pwm/atmel,sam-pwm.yaml
Gerson Fernando Budke d2e9b4682c drivers: pwm: sam: Update to use clock control
This update Atmel SAM pwm driver to use clock control driver.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-03-21 14:12:25 -07:00

41 lines
660 B
YAML

# Copyright (c) 2019, Aurelien Jarno
# SPDX-License-Identifier: Apache-2.0
description: Atmel SAM PWM
compatible: "atmel,sam-pwm"
include:
- name: base.yaml
- name: pwm-controller.yaml
- name: pinctrl-device.yaml
properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
prescaler:
type: int
required: true
description: Clock prescaler at the input of the PWM (0 to 10)
divider:
type: int
required: true
description: Clock divider at the input of the PWM (1 to 255)
"#pwm-cells":
const: 3
pwm-cells:
- channel
# period in terms of nanoseconds
- period
- flags