Skip to content

Commit

Permalink
dts: bindings: pwm: add binding for the NXP Kinetis Pulse Width Timer
Browse files Browse the repository at this point in the history
Add devicetree binding for the NXP Kinetis Pulse Width Timer (PWT).

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information
henrikbrixandersen authored and MaureenHelm committed Jan 20, 2021
1 parent ff1d8ef commit aecb38b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dts/bindings/pwm/nxp,kinetis-pwt.yaml
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

0 comments on commit aecb38b

Please sign in to comment.