zephyr/dts/bindings/pwm/atmel,sam-pwm.yaml

47 lines
815 B
YAML

#
# Copyright (c) 2019, Aurelien Jarno
#
# SPDX-License-Identifier: Apache-2.0
#
title: Atmel SAM PWM
description: >
This binding gives a base representation of the Atmel SAM PWM
inherits:
!include [pwm.yaml, base.yaml]
properties:
compatible:
constraint: "atmel,sam-pwm"
reg:
category: required
interrupts:
category: required
peripheral-id:
type: int
description: peripheral ID
category: required
prescaler:
type: int
category: required
description: Clock prescaler at the input of the PWM (0 to 10)
divider:
type: int
category: required
description: Clock divider at the input of the PWM (1 to 255)
"#pwm-cells":
const: 2
"#cells":
- channel
# period in terms of nanoseconds
- period