forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: bindings: pwm: add binding for the NXP Kinetis Pulse Width Timer
Add devicetree binding for the NXP Kinetis Pulse Width Timer (PWT). Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
- Loading branch information
1 parent
ff1d8ef
commit aecb38b
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (c) 2021 Vestas Wind Systems A/S | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Kinetis PWT PWM Capture | ||
|
||
compatible: "nxp,kinetis-pwt" | ||
|
||
include: [pwm-controller.yaml, base.yaml] | ||
|
||
properties: | ||
reg: | ||
required: true | ||
|
||
interrupts: | ||
required: true | ||
|
||
prescaler: | ||
type: int | ||
required: true | ||
enum: | ||
- 1 | ||
- 2 | ||
- 4 | ||
- 8 | ||
- 16 | ||
- 32 | ||
- 64 | ||
- 128 | ||
description: Input clock prescaler | ||
|
||
"#pwm-cells": | ||
const: 3 | ||
|
||
pwm-cells: | ||
- channel | ||
# period in terms of nanoseconds | ||
- period | ||
- flags |