dts: counter: Remove old kinetis lptmr binding

Remove deprecated nxp,kinetis-lptmr compatible string
which is superseded by nxp,lptmr compatible due to
removing family specific name.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2025-03-11 08:35:18 -05:00 committed by Benjamin Cabé
parent f013e20bc5
commit b990f96feb
5 changed files with 5 additions and 43 deletions

View File

@ -6,17 +6,6 @@
config COUNTER_MCUX_LPTMR
bool "MCUX LPTMR driver"
default y
depends on DT_HAS_NXP_LPTMR_ENABLED || \
COUNTER_MCUX_KINETIS_LPTMR
depends on DT_HAS_NXP_LPTMR_ENABLED
help
Enable support for the MCUX Low Power Timer (LPTMR).
config COUNTER_MCUX_KINETIS_LPTMR
bool
default y
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
select DEPRECATED
help
The compatible string "nxp,kinetis-lptmr" should
be switched to "nxp,lptmr" in DT. The former will
be removed eventually.

View File

@ -4,14 +4,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT nxp_lptmr
#include <zephyr/devicetree.h>
#include <zephyr/sys/util.h>
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr)
#define DT_DRV_COMPAT nxp_kinetis_lptmr
#else
#define DT_DRV_COMPAT nxp_lptmr
#endif
#include <zephyr/drivers/counter.h>
#include <zephyr/irq.h>
#include <fsl_lptmr.h>

View File

@ -6,21 +6,10 @@
config MCUX_LPTMR_TIMER
bool "MCUX LPTMR timer"
default n
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED || \
MCUX_KINETIS_LPTMR
depends on DT_HAS_NXP_LPTMR_ENABLED
depends on !COUNTER_MCUX_LPTMR
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This module implements a kernel device driver for the NXP MCUX Low
Power Timer (LPTMR) and provides the standard "system clock driver"
interfaces.
config MCUX_KINETIS_LPTMR
bool
default y
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
select DEPRECATED
help
The compatible string "nxp,kinetis-lptmr" should
be switched to "nxp,lptmr" in DT. The former will
be removed eventually.

View File

@ -4,15 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/devicetree.h>
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr)
#define DT_DRV_COMPAT nxp_kinetis_lptmr
#else
#define DT_DRV_COMPAT nxp_lptmr
#endif
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/time_units.h>
#include <fsl_lptmr.h>

View File

@ -1,8 +0,0 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
description: Deprecated compatible for NXP LPTMR
compatible: "nxp,kinetis-lptmr"
include: nxp,lptmr.yaml