drivers: counter: mcux: add support for TPM

Add TPM native Zephyr driver. It's mainly inspired from the GPT
counter implementation.

Signed-off-by: Marouen Ghodhbane <marouen.ghodhbane@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Marouen Ghodhbane 2023-05-16 18:21:07 +02:00 committed by Alberto Escolar
commit 3fb0e784ff
5 changed files with 346 additions and 0 deletions

View file

@ -0,0 +1,32 @@
# Copyright 2023-2024 NXP
# SPDX-License-Identifier: Apache-2.0
description: NXP Timer/PWM Module (TPM) used as timer
compatible: "nxp,tpm-timer"
include: base.yaml
properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
prescaler:
type: int
required: true
enum:
- 1
- 2
- 4
- 8
- 16
- 32
- 64
- 128
description: Input clock prescaler